.homecarousel-block {
  margin: 24px auto 32px;
  width: 100%;
  max-width: 1320px;
  padding: 0 12px;
  box-sizing: border-box;
  margin-bottom: -20px !important;
}

.homecarousel {
  position: relative;
  width: 100%;
}

.homecarousel__viewport {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 0 8px;
  width: 100%;
  box-sizing: border-box;
}

.homecarousel__viewport::-webkit-scrollbar {
  display: none;
}

.homecarousel__card {
  position: relative;
  flex: 0 0 calc((100% - 80px) / 6);
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
  background: #111;
  aspect-ratio: 1 / 1;
}

.homecarousel__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.homecarousel__card:hover .homecarousel__image {
  transform: scale(1.04);
}

.homecarousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 6%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.05) 100%);
  z-index: 1;
}

.homecarousel__content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 16px 14px 18px;
  text-align: center;
}

.homecarousel__subtitle {
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 6px;
  opacity: .95;
}

.homecarousel__title {
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

.homecarousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #222;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.homecarousel__nav--prev {
  left: -21px;
}

.homecarousel__nav--next {
  right: -21px;
}

.homecarousel__nav:hover {
  background: #fff;
}

@media (max-width: 1199px) {
  .homecarousel__card {
    flex-basis: calc((100% - 48px) / 4);
  }
}

@media (max-width: 991px) {
  .homecarousel__card {
    flex-basis: calc((100% - 32px) / 3);
  }
}

@media (max-width: 767px) {
  .homecarousel-block {
    padding: 0 8px;
  }

  .homecarousel__card {
    flex-basis: calc(44% - 8px);
    min-width: 160px;
  }

  .homecarousel__nav {
    display: none;
  }

  .homecarousel__viewport {
    padding: 0 4px 8px;
  }
}