/* Главная (Figma 1:11080 desktop, 1:10395 mobile) */

/* ============================================================
   Hero (Figma 58:15148): слайдер новостей + слайдер акций
   ============================================================ */
/* До категорий — 40px, дальше все секции по 128px */
.hero-sliders {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  padding: 16px;
  border-radius: 16px;
  background: #f1f1f3;
}

/* --- Слайдер новостей (835×320) --- */
.news-slider {
  position: relative;
  flex: 1 1 835px;
  min-width: 0;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  background: #16161a url('../../img/hero-news-slide-bg.png') center / cover no-repeat;
}

.news-slider__track {
  position: relative;
  height: 100%;
}

.news-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 72px 34px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.news-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.news-slide__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border-left: 5px solid #f6e200;
  padding-left: 24px;
}

.news-slide__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  max-width: 100%;
  padding: 6px 20px;
  border-radius: 99px;
  background: linear-gradient(102deg, #fd8e2d 10%, #a548fb 128%);
  font-weight: var(--fw-bold);
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: var(--ls-base);
  text-align: center;
  color: #ffffff;
}

.news-slide__title {
  max-width: 320px;
  font-weight: var(--fw-bold);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: #ffffff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.news-slide__desc {
  max-width: 300px;
  margin-top: -8px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: var(--ls-base);
  color: #dcdcdc;
}

/* Цена слайда-товара (поле «Цена» записи слайда):
   тёмная плашка — жёлтая цена читается на бликах фона */
.news-slide__price {
  display: inline-flex;
  align-items: center;
  margin-top: -8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(12, 12, 16, 0.72);
  backdrop-filter: blur(2px);
  font-weight: var(--fw-bold);
  font-size: 28px;
  line-height: 1;
  letter-spacing: var(--ls-base);
  color: #f6e200;
}

.news-slide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 4px;
  background: #ffd600;
  font-weight: var(--fw-bold);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #1a1a1a;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.news-slide__btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.news-slide__image {
  flex-shrink: 0;
}

.news-slide__image img {
  display: block;
  width: 460px;
  height: 330px;
  object-fit: contain;
  filter: drop-shadow(2px 6px 32px rgba(0, 0, 0, 0.12));
}

.news-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 19px;
  background: #f6e200;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.06));
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.15s ease;
}

.news-slider__arrow img {
  width: 12px;
  height: 18px;
}

.news-slider__arrow--prev {
  left: 24px;
}

.news-slider__arrow--prev img {
  transform: rotate(180deg);
}

.news-slider__arrow--next {
  right: 24px;
}

.news-slider__arrow:hover {
  background: #ffd600;
}

.news-slider__arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.news-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.news-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.news-slider__dot.is-active {
  width: 24px;
  background: #f6e200;
}

/* --- Слайдер акций (282×400): карточка товара как на референсе --- */
.sale-slider {
  position: relative;
  flex: 0 0 282px;
  height: 400px;
  padding: 22px 22px 44px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.sale-slider__track {
  position: relative;
  height: 100%;
}

.sale-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.sale-slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* Верх: бейдж скидки + избранное */
.sale-slide__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
}

.sale-slide__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 63px;
  background: linear-gradient(95deg, #2d92fd 11%, #fb48bd 119%);
  font-weight: var(--fw-bold);
  font-size: 13px;
  letter-spacing: var(--ls-base);
  color: #ffffff;
}

.sale-slide__fav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.sale-slide__fav:hover {
  opacity: 1;
}

/* Фото по центру, стрелки по бокам на его уровне */
.sale-slide__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 168px;
  margin: 10px 24px 14px;
}

.sale-slide__photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.1));
}

.sale-slider__arrow {
  position: absolute;
  top: 140px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  color: #9b9ba1;
  transition: color 0.2s ease, transform 0.15s ease;
}

.sale-slider__arrow--prev {
  left: 4px;
}

.sale-slider__arrow--next {
  right: 4px;
}

.sale-slider__arrow:hover {
  color: var(--text-black);
}

.sale-slider__arrow:active {
  transform: scale(0.9);
}

.sale-slide__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  height: 36px;
  font-weight: var(--fw-bold);
  font-size: 14px;
  line-height: 18px;
  letter-spacing: var(--ls-base);
  color: #272727;
}

.sale-slide__name:hover {
  color: var(--text-brown-dark);
}

.sale-slide__prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 12px;
}

.sale-slide__price {
  font-weight: var(--fw-bold);
  font-size: 20px;
  color: #1f2124;
}

.sale-slide__old {
  font-size: 14px;
  color: #717182;
}

.sale-slide__cart {
  align-self: center;
  margin-top: auto;
  height: 36px;
  padding: 0 36px;
  border-radius: 90px;
  background: var(--yellow-500);
  font-weight: var(--fw-bold);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-brown-dark);
  transition: background 0.2s ease;
}

.sale-slide__cart:hover {
  background: var(--yellow-450);
}

/* Точки в тёмной капсуле внизу по центру */
.sale-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(31, 33, 36, 0.75);
  transform: translateX(-50%);
}

.sale-slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.sale-slider__dot.is-active {
  width: 16px;
  background: var(--yellow-500);
}

@media (max-width: 1023px) {
  .hero-sliders {
    flex-direction: column;
  }

  .news-slider {
    flex: 0 0 auto;
  }

  .sale-slider {
    flex: 0 0 auto;
    max-width: 420px;
  }

  .news-slide {
    padding: 24px 64px 40px;
    gap: 20px;
  }

  .news-slide__image img {
    width: 260px;
    height: 190px;
  }
}

@media (max-width: 640px) {
  .news-slide__image {
    display: none;
  }

  .news-slide {
    padding: 20px 56px 40px;
  }
}

/* ============================================================
   Категории (aqsham-categories.html): сетка с «трассами»
   ============================================================ */
.cats {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 128px;
}

.cats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.cats__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 190px;
  padding: 18px;
  border: 1px solid #e2e0db;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cats__card:hover {
  border-color: #e5d232;
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -18px rgba(15, 30, 61, 0.35);
}

.cats__trace {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cats__card:hover .cats__trace {
  opacity: 1;
}

.cats__trace svg {
  width: 100%;
  height: 100%;
}

.cats__trace path {
  stroke: #f5efa8;
  stroke-width: 1.3;
  fill: none;
}

.cats__trace circle {
  fill: #e5d232;
}

.cats__num {
  position: relative;
  z-index: 1;
  font-family: 'Inter', monospace;
  font-size: 11px;
  color: #8a8578;
}

.cats__img {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.cats__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--nav-dark);
  transition: background 0.25s ease;
}

.cats__icon svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  transition: stroke 0.25s ease;
}

.cats__card:hover .cats__icon {
  background: #e5d232;
}

.cats__card:hover .cats__icon svg {
  stroke: var(--nav-dark);
}

.cats__card:hover .cats__icon svg circle[fill] {
  fill: var(--nav-dark);
}

.cats__label {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-weight: var(--fw-bold);
  font-size: 13.5px;
  line-height: 1.28;
  letter-spacing: var(--ls-base);
  color: var(--nav-dark);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

/* «Перейти в каталог» — тёмная карточка */
.cats__card--all {
  align-items: flex-start;
  justify-content: flex-end;
  background: var(--nav-dark);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.cats__card--all .cats__label {
  font-size: 14px;
  color: #ffffff;
  transition: color 0.25s ease;
}

.cats__arrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #e5d232;
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--nav-dark);
  transition: background 0.25s ease, color 0.25s ease;
}

.cats__card--all:hover {
  border-color: #e5d232;
  background: #e5d232;
}

.cats__card--all:hover .cats__label {
  color: var(--nav-dark);
}

.cats__card--all:hover .cats__arrow {
  background: var(--nav-dark);
  color: #e5d232;
}

.cats__card--all .cats__trace path {
  stroke: rgba(229, 210, 50, 0.35);
}

@media (max-width: 1023px) {
  .cats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .cats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* --- Hero-слайдер (1:11098) --- */
.hero {
  background: #f1f1f2;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  height: 384px;
  margin: 0 auto;
  padding: 0 130px;
}

.hero__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 27px;
  background: var(--yellow-450);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.06));
}

.hero__arrow--prev img {
  transform: rotate(180deg);
}

.hero__arrow {
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero__arrow:hover {
  background: var(--yellow-500);
}

.hero__arrow:active {
  transform: scale(0.94);
}

/* Плавная смена слайда (fade), синхронизирована с js/pages/home.js */
.hero__slide {
  transition: opacity 0.3s ease;
}

.hero__slide.is-fading {
  opacity: 0;
}

.hero__slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 40px;
}

.hero__content {
  width: 441px;
  border-left: 5px solid var(--yellow-450);
  padding-left: 29px;
  padding-right: 20px;
}

.hero__title {
  font-weight: var(--fw-bold);
  font-size: 36.8px;
  line-height: 44.16px;
  letter-spacing: -0.4px;
  color: var(--text-dark-900);
}

.hero__title-bar {
  display: block;
  width: 216px;
  height: 4px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--yellow-450);
}

.hero__desc {
  max-width: 400px;
  padding-top: 8px;
  padding-bottom: 26px;
  font-weight: var(--fw-medium);
  font-size: 16.32px;
  line-height: 26.112px;
  letter-spacing: var(--ls-base);
  color: #555555;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 40px;
  border: 2px solid var(--yellow-450);
  border-radius: 4px;
  background: #ffd600;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.1));
  font-weight: var(--fw-bold);
  font-size: 14.08px;
  line-height: 1;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dark-900);
}

.hero__image {
  padding: 0 10px;
}

.hero__image img {
  width: 283px;
  height: 260px;
  object-fit: contain;
}

/* Точки-индикаторы и мобильная кнопка «Подробнее»:
   на desktop скрыты (в макете 1:11098 точек нет) */
.hero__dots,
.hero__btn--mobile {
  display: none;
}

/* --- Featured товар + категории (1:11117, 1:11153, 1:11194) --- */
.catalog-preview {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Единая решётка секции (Figma 1:11117+1:11153+1:11194): 6 колонок,
   featured-карточка занимает 2×2, категории — колонки 3–6 двух рядов,
   подкатегории — третий ряд целиком. Всё с одним gap 20. */
.catalog-preview__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

/* Featured-карточка */
.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  width: 380px;
  height: 563px; /* Figma 1:11117 — грид не растягивает карточку */
  align-self: start;
  flex-shrink: 0;
  padding: 20px;
  border: 1px solid var(--yellow-400);
  border-radius: 15px;
  background: url('../../img/featured-card-bg.png') center / cover no-repeat;
  overflow: hidden;
}

.featured-card__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-card__title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-card__title {
  flex: 1 1 0;
  min-width: 0;
  font-weight: var(--fw-bold);
  font-size: 28px;
  line-height: 28px;
  letter-spacing: var(--ls-base);
  color: var(--text-brown-dark);
}

.featured-card__share,
.featured-card__copy {
  display: flex;
  flex-shrink: 0;
}

.featured-card__art {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.featured-card__art-label {
  color: var(--text-gray-blue);
}

.featured-card__art-value {
  font-weight: 700;
  color: var(--text-dark-900);
}

.featured-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.featured-card__stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.featured-card__rating-count {
  margin-left: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-gray-blue);
}

.featured-card__stock {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #22c55e;
}

.featured-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: hidden;
}

.featured-card__image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.featured-card__footer {
  display: flex;
  flex-direction: column;
}

.featured-card__price-label {
  margin-bottom: 16px; /* Figma: параграф «Цена» с pb 16 до значения */
  font-weight: var(--fw-medium);
  font-size: 20px;
  line-height: 34.28px;
  letter-spacing: var(--ls-base);
  color: var(--text-blue-dark);
}

.featured-card__price {
  font-weight: var(--fw-bold);
  font-size: 20px;
  line-height: 34.28px;
  letter-spacing: var(--ls-base);
  color: var(--text-blue-dark);
}

.featured-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 39px;
  margin-top: 16px;
  border-radius: 20px;
  background: var(--yellow-400);
  font-weight: var(--fw-medium);
  font-size: 15px;
  letter-spacing: var(--ls-base);
  color: var(--bg-white);
}

/* Категории и подкатегории — прозрачные обёртки:
   их li — прямые элементы общей решётки */
.category-grid,
.subcategory-row {
  display: contents;
}

.category-grid > li,
.subcategory-row > li {
  min-width: 0;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  height: 100%;
  border: 1px solid var(--bg-gray-200);
  border-radius: 12px;
  background: var(--bg-white);
  box-shadow: 0 8px 24px rgba(31, 31, 31, 0.1);
  overflow: hidden;
}

.category-card__image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 20px 21px;
  border-bottom: 1px solid var(--bg-gray-200);
}

.category-card__image img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.category-card__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* подпись не выше 4 строк (высота карточки позволяет) */
  line-clamp: 4;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  padding: 15px 10px;
  font-weight: var(--fw-bold);
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: var(--ls-base);
  text-align: center;
  color: var(--dark-navy);
  overflow: hidden;
  /* Мягкий перенос: рвём слово только когда иначе не влезает, с дефисом */
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

/* Длинное слово («Электромонтажные», «дифференциального») при 16px не влезает
   в колонку и рвётся посередине — такой подписи отдаём 14px */
.category-card__name--long {
  font-size: 14px;
  line-height: 19px;
}

/* --- Адаптив --- */
@media (max-width: 1279px) {
  .hero__inner {
    padding: 0 40px;
  }

  .hero__slide {
    padding: 0 24px;
  }

  /* Промежуточная решётка: 4 колонки (140px-картинки не дают ужать 6) */
  .catalog-preview__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  /* Hero: вертикальный стек (Figma 1:10406), фиксированная высота 690 —
     слайды разной длины не «прыгают» */
  .hero__inner {
    position: relative;
    height: auto;
    min-height: 690px;
    padding: 48px 24px 40px;
    box-sizing: border-box;
    align-items: stretch;
  }

  .hero__slide {
    flex: 1 1 auto;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 0;
  }

  /* Стабильные зоны текста: заголовок 2 строки, подпись 2 строки */
  .hero__title {
    min-height: 62px;
  }

  .hero__desc {
    min-height: 54px;
  }

  .hero__content {
    width: 100%;
    border-left: none;
    padding: 0;
  }

  .hero__title {
    font-size: 28px;
    line-height: 31px;
  }

  .hero__desc {
    padding-bottom: 0;
    font-size: 16px;
    line-height: 20px;
  }

  .hero__image {
    align-self: center;
    padding: 0;
  }

  .hero__btn {
    margin-top: 8px;
  }

  .hero__content .hero__btn {
    align-self: center;
  }

  .hero__arrow {
    /* Figma 1:10688/1:10691: 320px от верха блока — уровень картинки */
    position: absolute;
    top: 320px;
    z-index: 5;
  }

  .hero__arrow--prev {
    left: 24px;
  }

  .hero__arrow--next {
    right: 24px;
  }

  /* Мобильная раскладка: решётка распадается на стек,
     ul-обёртки снова становятся скролл-рядами */
  .catalog-preview__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .featured-card {
    width: 100%;
  }

  /* Категории: горизонтальный скролл (Figma 1:10465) */
  .category-grid,
  .subcategory-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: calc(-1 * var(--container-padding));
    margin-right: calc(-1 * var(--container-padding));
    padding: 4px var(--container-padding) 16px;
  }

  .category-grid::-webkit-scrollbar,
  .subcategory-row::-webkit-scrollbar {
    display: none;
  }

  .category-grid > li,
  .subcategory-row > li {
    flex: 0 0 232px;
    display: flex;
    height: auto;
    min-height: 283px;
  }

  .category-card {
    width: 232px;
    height: auto;
    min-height: 283px;
  }

  /* Кнопка «Подробнее» в hero по центру (Figma 1:10418) */
  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* На mobile кнопка идёт после фото и точек (Figma 1:10406) —
     кнопку из текста скрываем, показываем дубль в конце слайда */
  .hero__content .hero__btn {
    display: none;
  }

  .hero__btn--mobile {
    display: inline-flex;
    align-self: center;
    margin-top: auto; /* кнопка прижата к низу фиксированного блока (Figma y=601) */
  }

  /* Точки-индикаторы (Figma 1:10413): активная 15px #3a362d, неактивные 10px #95938f */
  .hero__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 12px;
    align-self: center;
    min-height: 15px;
  }

  .hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #95938f;
  }

  .hero__dot.is-active {
    width: 15px;
    height: 15px;
    background: #3a362d;
  }
}

@media (max-width: 767px) {
  .hero__title {
    font-size: 28px;
  }

  .hero__image img {
    width: 283px;
    height: 260px;
  }
}

