/* ============================================================================
 * GORILLA - ГЛАВНАЯ СТРАНИЦА (все секции)
 * ----------------------------------------------------------------------------
 * Собран из инлайновых <style> секций front-page.php при рефакторинге v1.1.0:
 * один файл вместо десятка инлайнов, все размеры/отступы - от токенов
 * gorilla-layout.css / gorilla-type-scale.css. Грузится только на главной.
 *
 * Секции (по порядку на странице):
 *   1. Hero-слайдер          .hero-*
 *   2. Каталог               .g-catalog / .product-card
 *   3. Бегущая строка        .features-*
 *   4. «О бренде»            .g-story-*
 *   5. Амбассадоры           .g-ambassadors (карточки = .persona-card)
 *   6. Платформы             .g-world
 *   7. FAQ                   .faq-*
 *   8. Соцсети               .g-social / .g-soc
 * ============================================================================ */

/* ========================== 1. Hero-слайдер ===============================
   Первый экран (переработан 09.09, v2.14). Композиция:
     · медиа слайда (видео бренда / баннер клиента) - cover на весь экран;
     · вуаль .hero-slide__veil - градиенты, дающие читаемость белого текста
       на ЛЮБОМ кадре видео (у баннеров - только лёгкий низ, они самодостаточны);
     · лозунг строго по центру экрана, три строки, под ним вторичная кнопка;
     · низ: подсказка скролла по центру, точки/стрелки справа;
     · у баннеров-картинок CTA остаётся в нарисованной в макете рамке
       (.hero-actions, позицию считает JS - docs/hero-banners-spec.md).
   Интерактив: въезд строк из-под маски, параллакс медиа + затемнение и
   растворение лозунга при скролле (переменные --hero-par/--hero-dim/--hero-fade
   ставит JS), бегущая капля в подсказке скролла. Всё уважает
   prefers-reduced-motion. */
.hero-static-section {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  /* Fit the visible screen, including the preheader above this section.
     Stable viewport units prevent the composition jumping with browser chrome. */
  height: calc(100vh - var(--hero-top, 40px));
  height: calc(100svh - var(--hero-top, 40px));
  min-height: 480px;
  /* фон под нижней полосой кнопки на мобильном (сливается с тёмным баннером) */
  background: #0a0a0a;
  /* значения по умолчанию для скролл-эффектов (JS их обновляет) */
  --hero-par: 0px;
  --hero-dim: 0;
  --hero-fade: 1;
  /* сколько секции уехало ниже кромки экрана (прехидер над hero + мобильный
     запас 84px); JS уточняет по факту - от этого пляшут низ подсказки и точек */
  --hero-foot: 0px;
  --hero-pad-b: 0px;
}

/* Лента слайдов = нативный горизонтальный скролл со snap-точками - ровно тот
   же приём, что у рядов каталога (.g-catrow__track) и карусели амбассадоров:
   свайп на тач-экранах «из коробки», инерция iOS, никакой своей математики
   drag. Стрелки/точки просто вызывают scrollTo. */
.hero-slides-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;   /* свайп не уводит назад по истории */
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.hero-slides-wrap::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;         /* свайп листает ровно на один слайд */
}
.hero-slide picture { display: contents; }

/* обёртка медиа: её двигает параллакс, вуаль и текст остаются на месте */
.hero-slide__media { position: absolute; inset: 0; overflow: hidden; }
.hero-slide--center .hero-slide__media {
  /* запас 8% на сдвиг: при параллаксе края не оголяются */
  transform: translate3d(0, var(--hero-par), 0) scale(1.08);
  will-change: transform;
}

/* --- Вуаль читаемости -----------------------------------------------------
   Три слоя: мягкое пятно под лозунгом (центр), затемнение сверху под
   фиксированную шапку и снизу - к следующей чёрной секции. Так белый текст
   читается на светлом небе и на тёмном зале одинаково. */
.hero-slide__veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(6, 8, 10, 0.44) 0%, rgba(6, 8, 10, 0.18) 43%, rgba(6, 8, 10, 0) 76%),
    linear-gradient(to bottom, rgba(6, 8, 10, 0.68) 0, rgba(6, 8, 10, 0.18) 16%, rgba(6, 8, 10, 0) 30%),
    linear-gradient(to top, rgba(6, 8, 10, 0.72) 0, rgba(6, 8, 10, 0.12) 20%, rgba(6, 8, 10, 0) 38%);
}
/* баннеры клиента самодостаточны - им только лёгкий низ под точки/кнопку */
.hero-slide__veil--soft {
  background: linear-gradient(to top, rgba(6, 8, 10, 0.55) 0, rgba(6, 8, 10, 0) 26%);
}
/* дополнительное затемнение при скролле (кадр «уходит» вместе с секцией) */
.hero-slide__veil::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #06080a;
  opacity: var(--hero-dim);
}

/* --- Подпись вёрсткой поверх KV -------------------------------------------
   Баннеры: ПК - блок в правой (свободной) половине KV, мобила - сверху по
   центру. Видео-слайд - отдельный режим .hero-caption--center (ниже). */
.hero-caption {
  position: absolute;
  z-index: 16; /* выше .hero-slide__link (15) - иначе ссылка слайда
                  перекрывала кнопку, ховер/клик уходили ей */
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: var(--hero-fade);
  /* мобила: сверху по центру, ниже фиксированной шапки */
  top: clamp(112px, 30vw, 150px);
  left: 16px;
  right: 16px;
  align-items: center;
  text-align: center;
  gap: 10px;
}
@media (min-width: 1024px) {
  .hero-caption {
    /* блок центрируется в свободной правой половине KV (банки слева) */
    top: 50%;
    left: 73%;
    right: auto;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: 44vw;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
}
.hero-caption__kicker {
  font-family: 'Jawbreak Sans Cut', 'DIN 2014', system-ui, sans-serif;
  font-size: clamp(17px, 1.8vw, 26px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--g-color-green);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero-caption__title {
  display: block;
  font-family: 'Jawbreak Sans Cut', 'DIN 2014', system-ui, sans-serif;
  /* 58px потолок: «СПОРТИВНОЕ ПИТАНИЕ» должно держаться одной строкой на ПК */
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
}
/* строка лозунга = маска, внутренний span выезжает снизу (см. hero.php).
   padding/-margin - чтобы маска не срезала ножки «Д» и мягкую тень. */
.hero-line {
  display: block;
  overflow: hidden;
  padding: 0.12em 0.16em;
  margin: -0.12em -0.16em;
}
.hero-line__in { display: block; }

/* Кнопка «Узнать больше»: зелёная пилюля с чёрным текстом (как «Купить» в
   шапке). Используется и общей нижней кнопкой слайдера, и в подписи баннера. */
.hero-btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;              /* тап-цель */
  background-color: var(--g-color-green);
  color: #0a0a0a;
  font-family: 'DIN 2014 UI', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hero-btn-more:hover {
  background-color: var(--g-color-paper, #f6f7f8);
  color: #0a0a0a;
}
.hero-btn-more__arrow { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.hero-btn-more:hover .hero-btn-more__arrow { transform: translateX(4px); }
/* кнопка в подписи баннера: ПК-only, кликабельна поверх ссылки слайда */
.hero-caption__btn { pointer-events: auto; margin-top: 8px; }
@media (max-width: 1023px) { .hero-caption__btn { display: none; } }
@media (min-width: 1024px) { .hero-actions { display: none; } }

/* --- Центрированный лозунг видео-слайда -----------------------------------
   «ЗАРЯДИ / СВОЙ / ИНСТИНКТ» - три строки строго по центру экрана и на ПК,
   и на мобиле. Кнопка - вторичная ghost-капсула под лозунгом (везде). */
.hero-caption--center,
.hero-caption--center.hero-caption {
  inset: 0;
  top: 0; left: 0; right: 0;
  transform: translate3d(0, calc(var(--hero-par) * -0.55), 0);
  width: auto;
  max-width: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--hero-caption-top, 112px) 24px 108px;
  gap: 0;
}
.hero-caption--center .hero-caption__title {
  font-size: clamp(44px, 12vw, 78px);
  line-height: 0.92;
  letter-spacing: 0;
  /* вуаль уже даёт контраст - тень только «подстраховка», без жирного ореола */
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.4);
}
@media (min-width: 768px) {
  .hero-caption--center .hero-caption__title { font-size: clamp(64px, min(7vw, 11.5svh), 120px); }
}
/* низкий ландшафт (напр. 900×420): лозунг меряем по высоте, а не по ширине */
@media (orientation: landscape) and (max-height: 560px) {
  /* низкий ландшафт: экран меряем по высоте, и лозунгу нужен явный отступ от
     шапки - при обычном центрировании первая строка почти касалась логотипа */
  .hero-caption--center .hero-caption__title { font-size: min(10.5vh, 7.2vw); }
  .hero-caption--center.hero-caption { padding-top: var(--hero-caption-top, 92px); padding-bottom: 66px; }
}
.hero-caption__btn--ghost,
.hero-caption--center .hero-caption__btn {
  display: inline-flex;
  margin-top: clamp(28px, 4svh, 40px);
  background: rgba(8, 10, 8, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 13px 28px;
  text-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-caption__btn--ghost:hover,
.hero-caption--center .hero-caption__btn:hover {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
}
@media (min-width: 1600px) {
  .hero-caption--center .hero-caption__btn { font-size: 13px; padding: 15px 34px; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .hero-caption--center .hero-caption__btn { margin-top: 18px; min-height: 40px; padding: 10px 22px; }
}

/* --- Появление: строки выезжают из-под маски каскадом ---------------------
   Именно animation, а не transition: класс is-active стоит на первом слайде
   уже в разметке, transition при первой отрисовке не сработал бы (нечему
   меняться) - лозунг просто возникал бы целиком. Смена слайда навешивает
   класс заново и анимация играет снова. */
.hero-line__in { opacity: 0; }
.hero-caption__kicker,
.hero-caption__btn { opacity: 0; }
/* уходящий слайд: подпись не пропадает рывком, а гаснет вместе с кадром */
.hero-line__in,
.hero-caption__kicker { transition: opacity 0.35s ease; }
.hero-slide.is-active .hero-line__in {
  animation: heroLineIn 0.95s cubic-bezier(0.19, 1, 0.22, 1) both;
}
.hero-slide.is-active .hero-caption__kicker,
.hero-slide.is-active .hero-caption__btn {
  animation: heroRiseIn 0.8s cubic-bezier(0.19, 1, 0.22, 1) both;
}
@keyframes heroLineIn {
  from { opacity: 0; transform: translateY(105%); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroRiseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero-slide.is-active .hero-caption__kicker { animation-delay: 0.14s; }
.hero-slide.is-active .hero-line:nth-child(1) .hero-line__in { animation-delay: 0.18s; }
.hero-slide.is-active .hero-line:nth-child(2) .hero-line__in { animation-delay: 0.30s; }
.hero-slide.is-active .hero-line:nth-child(3) .hero-line__in { animation-delay: 0.42s; }
.hero-slide.is-active .hero-line:nth-child(4) .hero-line__in { animation-delay: 0.54s; }
.hero-slide.is-active .hero-line:nth-child(5) .hero-line__in { animation-delay: 0.66s; }
.hero-slide.is-active .hero-caption__btn { animation-delay: 0.72s; }

.hero-slide-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* имиджевый видео-слайд - cover по центру; фон = цвет постера, чтобы не было
   чёрной вспышки до первого кадра */
.hero-slide-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #10161c center/cover no-repeat;
}
@media (min-width: 1024px) {
  /* Вылеты (красные поля макета баннера) ВСЕГДА за краями экрана: картинка
     шире окна на их долю - в окне остаётся только смысловой блок, строго по
     центру на любой ширине. Вертикальный фокус уточняет JS. */
  .hero-slide-img {
    width: 133.6%;
    max-width: none;
    margin-left: -16.8%;
    object-position: 50% 40%;
  }
}
/* весь баннер - ссылка (кнопка и стрелки/точки лежат выше по z) */
.hero-slide__link { position: absolute; inset: 0; z-index: 15; }

/* ── Общая кнопка баннера - в рамку из макета (позицию считает JS) ── */
.hero-actions {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5.5%;
  z-index: 20;
  opacity: var(--hero-fade);
}
.hero-actions .g-btn {
  font-size: 13px;
  padding: 10px 26px;
  letter-spacing: 0.12em;
}

/* ── Подсказка скролла: тонкая линия с бегущей каплей, по центру внизу ──
   Живёт только на видео-слайде: у баннеров низ по центру занят кнопкой. */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: calc(var(--hero-foot, 0px) + 26px);
  transform: translateX(-50%);
  z-index: 22;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'DIN 2014 UI', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  opacity: 0;
  transition: opacity 0.6s ease 1.1s, color 0.2s ease;
}
.hero-static-section.is-center .hero-scroll { opacity: var(--hero-fade); }
.hero-static-section.is-banner .hero-scroll { visibility: hidden; pointer-events: none; transition-delay: 0s; }
.hero-scroll:hover { color: #fff; }
.hero-scroll__rail {
  position: relative;
  width: 1px;
  height: 42px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
}
.hero-scroll__rail i {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 16px;
  background: var(--g-color-green, #8dc63f);
  animation: heroScrollCue 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes heroScrollCue {
  0%   { transform: translateY(-18px); opacity: 0; }
  22%  { opacity: 1; }
  72%  { opacity: 1; }
  100% { transform: translateY(44px); opacity: 0; }
}
@media (max-width: 1023px) {
  /* секция уходит за кромку на 84px - поднимаем подсказку в видимую зону */
  .hero-scroll { bottom: calc(var(--hero-foot, 84px) + env(safe-area-inset-bottom, 0px) + 18px); gap: 8px; }
  .hero-scroll__rail { height: 32px; }
}
@media (orientation: landscape) and (max-height: 560px) { .hero-scroll { display: none; } }

/* Two discreet progress rails, with full-size click targets. */
.hero-controls {
  position: absolute;
  left: 50%;
  bottom: calc(var(--hero-foot, 0px) + env(safe-area-inset-bottom, 0px) + 14px);
  transform: translateX(-50%);
  z-index: 22;
  opacity: var(--hero-fade);
}
.hero-dots { display: flex; align-items: center; gap: 10px; }
.hero-dot {
  width: clamp(56px, 7vw, 88px);
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero-dot i {
  display: block;
  position: relative;
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .3);
}
.hero-dot i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero-dot.is-active i::after { transform: scaleX(var(--hero-progress, 0)); }
.hero-dot:hover i { background: rgba(255, 255, 255, .5); }
@media (prefers-reduced-motion: reduce) {
  .hero-dot.is-active i::after { transform: scaleX(1); }
}
.hero-scroll:focus-visible,
.hero-dot:focus-visible,
.hero-caption__btn:focus-visible {
  outline: 2px solid var(--g-color-green, #8dc63f);
  outline-offset: 3px;
  border-radius: 999px;
}

@media (max-width: 1023px) {
  /* iOS 26 Safari рисует страницу за плавающей адресной строкой, и ни dvh,
     ни lvh, ни env(safe-area-inset-bottom) не дают честный физический низ
     экрана (проверено скринами клиента 17.07). Поэтому единицы вьюпорта не
     решают: баннеру даётся фиксированный запас 84px НИЖЕ кромки - линия
     сгиба всегда внутри картинки. */
  .hero-static-section {
    height: calc(100vh - var(--hero-top, 40px));
    height: calc(100svh - var(--hero-top, 40px));
    min-height: 480px;
  }
  /* привязка к рамке кнопки в моб. макете 1080×1920 (17.2% высоты секции) */
  .hero-actions { bottom: 17.2%; }

}

/* Уважаем «меньше движения»: без параллакса, без въездов и бегущей капли. */
@media (prefers-reduced-motion: reduce) {
  .hero-slide--center .hero-slide__media { transform: none; }
  .hero-caption--center, .hero-caption--center.hero-caption { transform: none; }
  .hero-slide.is-active .hero-line__in,
  .hero-slide.is-active .hero-caption__kicker,
  .hero-slide.is-active .hero-caption__btn { animation: heroFadeIn 0.4s ease both; }
  @keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }
  .hero-scroll__rail i { animation: none; top: 12px; }
  .hero-slide { transition: opacity 0.3s ease; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero-static-section { min-height: 360px; }
  .hero-scroll__rail { display: none; }
}

/* Both captions use the same centered geometry. The optional kicker sits
   above the title without shifting its baseline or the CTA between slides. */
.hero-slide--editorial .hero-caption__title { position: relative; }
.hero-slide--editorial .hero-caption__kicker {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 0;
  width: 100%;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: .12em;
}
.hero-slide--editorial .hero-caption__btn {
  background: var(--g-color-green);
  border-color: transparent;
  color: #0a0a0a;
}
.hero-slide--editorial .hero-caption__btn:hover { background: #fff; }
.hero-slide--editorial .hero-slide__veil--soft {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(6,8,10,.64), rgba(6,8,10,.24) 48%, transparent 80%),
    linear-gradient(to bottom, rgba(6,8,10,.68), transparent 30%),
    linear-gradient(to top, rgba(6,8,10,.72), transparent 38%);
}
.hero-btn-more:active { transform: translateY(2px); }
@media (max-width: 1023px) {
  .hero-slide--editorial .hero-caption__kicker { font-size: 14px; }
  .hero-scroll { left: 24px; transform: none; align-items:flex-start; bottom: 76px; }
  .hero-scroll__rail { display:none; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .hero-slide--editorial .hero-caption__kicker { bottom: calc(100% + 6px); font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .hero-line__in, .hero-slide.is-active .hero-caption__kicker, .hero-slide.is-active .hero-caption__btn { animation: none; opacity: 1; transform: none; }
}

.hero-slide--editorial { background: #090a09; }

/* ============================ 2. Каталог =================================== */
/* v1.9.0: десктопных табов .g-catalog__tabs больше нет - категории подписаны
   заголовками рядов (.g-catrow__title). .g-tab остался для мобильной
   плавающей плашки .g-catalog__bar. */
.g-tab {
  flex: 0 0 auto;
  font-family: 'DIN 2014 UI', system-ui, sans-serif;
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--g-color-navy);
  background: #fff;
  border: 1.5px solid rgb(var(--g-navy-rgb) / .22);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.g-tab:hover { border-color: var(--g-color-navy); }
.g-tab.is-active { background: var(--g-color-navy); color: #fff; border-color: var(--g-color-navy); }

/* Плавающая плашка категорий (мобайл) - стиль .gorilla-catbar со страниц
   каталога; живёт только пока секция «Каталог» на экране (класс .is-visible
   вешает IntersectionObserver), появляется liquid-glass анимацией снизу. */
.g-catalog__bar { display: none; }
@media (max-width: 767px) {
  .g-catalog__bar {
    display: flex;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    padding: 8px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: #000;
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.40), 0 1px 0 rgba(255, 255, 255, 0.10) inset;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.32, 0.72, 0.33, 1);
  }
  .g-catalog__bar::-webkit-scrollbar { display: none; }
  .g-catalog__bar.is-visible { opacity: 1; pointer-events: auto; transform: none; }
  .g-catalog__bar .g-tab {
    background: rgba(255, 255, 255, 0.10);
    border: 0;
    color: #fff;
    font-size: 12px;
    padding: 8px 14px;
  }
  .g-catalog__bar .g-tab.is-active { background: var(--g-color-green); color: #0a0a0a; }
  /* плашка не накрывает кнопку «Весь каталог» и точки, пока секция видна */
  #catalog.g-section { padding-bottom: 84px; }
}

/* Ряд-категория (v1.9.0): подпись + горизонтальный слайдер товаров.
   В ряду видно 4 карточки на десктопе, 3 на планшете, 2 на мобиле - ширину
   задаёт flex-basis ячейки, всё остальное уезжает вбок нативным скроллом со
   snap (свайп пальцем работает без JS; стрелки на десктопе - в gorilla-front-page.js).
   До v1.9.0 это была сетка с табами: одна категория за раз на десктопе. */
/* Раскладка рядов. Сетка на столько колонок, сколько карточек влезает в строку
   (2 / 3 / 4). Полная категория занимает строку целиком и листается слайдером;
   неполная (--n1/--n2/--n3) забирает ровно столько колонок, сколько у неё
   товаров, поэтому соседние неполные ряды садятся в одну строку: батончики (2)
   + мармелад (1) + функциональное питание (1) = ровно 4 колонки десктопа.
   Заголовок при этом у всех рядов на своём месте - сверху.
   Жёлоб между карточками задаёт padding ячейки, поэтому column-gap сетки = 0:
   иначе разрыв между соседними РЯДАМИ был бы шире, чем между карточками
   внутри ряда, и строка переставала читаться как единая линия. */
.g-catalog__stream {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: clamp(28px, 4vw, 44px);
  column-gap: 0;
}
.g-catrow { grid-column: span 2; }
.g-catrow--n1 { grid-column: span 1; }

@media (min-width: 768px) {
  .g-catalog__stream { grid-template-columns: repeat(3, 1fr); }
  .g-catrow { grid-column: span 3; }
  .g-catrow--n1 { grid-column: span 1; }
  .g-catrow--n2 { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .g-catalog__stream { grid-template-columns: repeat(4, 1fr); }
  .g-catrow { grid-column: span 4; }
  .g-catrow--n1 { grid-column: span 1; }
  .g-catrow--n2 { grid-column: span 2; }
  .g-catrow--n3 { grid-column: span 3; }
}

/* Карточка внутри неполного ряда занимает его целиком по числу товаров, чтобы
   её ширина совпала с карточками в полных рядах: ряд из 2 колонок и 2 карточек
   даёт по 50% ряда = те же 25% страницы. */
.g-catrow--n1 .g-catrow__cell { flex-basis: 100%; }
.g-catrow--n2 .g-catrow__cell { flex-basis: 50%; }
.g-catrow--n3 .g-catrow__cell { flex-basis: 33.3333%; }
.g-catrow__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.g-catrow__title {
  font-family: 'DIN 2014 UI', system-ui, sans-serif;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--g-color-navy);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a.g-catrow__title:hover { opacity: 0.6; }

.g-catrow__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* место под тень карточек, иначе overflow её срезает */
  padding-bottom: 6px;
}
/* На мобиле дорожка выходит за края контейнера до края экрана: так у
   следующей карточки видно «краешек» - подсказка, что ряд свайпается (на
   десктопе роль подсказки играют стрелки, и вынос только ломал бы счёт 4 в
   ряд - ячейка считается в % от ширины дорожки). */
@media (max-width: 767px) {
  .g-catrow__viewport { margin-inline: calc(var(--g-container-pad) * -1); }
  .g-catrow__track {
    padding-inline: var(--g-container-pad);
    /* Без scroll-padding `scroll-snap-type: x mandatory` при загрузке
       доснапливает ленту к первой карточке и съедает этот padding: карточка
       липла к краю экрана, тогда как подпись ряда оставалась на отступе
       контейнера - левый край выглядел кривым. scroll-padding говорит snap'у
       считать «началом» ленты линию контейнера. */
    scroll-padding-inline: var(--g-container-pad);
  }
}
.g-catrow__track::-webkit-scrollbar { display: none; }
.g-catrow__cell {
  flex: 0 0 50%;                 /* мобайл - 2 в ряд */
  scroll-snap-align: start;
  padding-right: 12px;
  box-sizing: border-box;
}
/* Паддинг-жёлоб одинаковый у ВСЕХ ячеек, включая последнюю: обнулить его у
   :last-child значило бы сделать последнюю карточку на жёлоб шире соседних. */
.g-catrow__cell .product-card { width: 100%; }

@media (min-width: 768px) {
  .g-catrow__cell { flex-basis: 33.3333%; padding-right: 16px; }  /* планшет - 3 */
}
@media (min-width: 1024px) {
  .g-catrow__cell { flex-basis: 25%; padding-right: 20px; }       /* десктоп - 4 */
}

/* Неполные ряды не выносятся за края экрана и не скроллятся: там нечего
   листать, а вынос ломал бы их место в общей строке. */
@media (max-width: 767px) {
  .g-catrow--n1 .g-catrow__viewport,
  .g-catrow--n2 .g-catrow__viewport { margin-inline: 0; }
  .g-catrow--n1 .g-catrow__track,
  .g-catrow--n2 .g-catrow__track { padding-inline: 0; overflow-x: visible; }
}

/* Стрелки - зелёные кружки по углам ряда: ровно тот же элемент, что в блоках
   «Амбассадоры» и «Попробуй Gorilla» (.persona-related__arrow), чтобы листалки
   по сайту выглядели одинаково. Раньше стояли парой у заголовка справа.
   Показываются на всех экранах, включая мобильный: свайп остаётся, но кружок
   подсказывает, что ряд листается. Атрибут hidden снимает JS - только если
   товаров действительно больше, чем влезает в ряд. */
.g-catrow__viewport { position: relative; }
.g-catrow__nav { display: none; }
.g-catrow__nav:not([hidden]) { display: block; }
.g-catrow__arrow {
  position: absolute;
  top: var(--carousel-media-center, 50%);
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #0a0a0a;
  background: rgb(var(--g-green-rgb));
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}
.g-catrow__arrow svg { width: 20px; height: 20px; display: block; }
/* Кружок «съезжает» на карточку на 6px, а не висит в отступе: у ряда на
   главной нет собственных боковых полей, как у .persona-related. */
.g-catrow__arrow--prev { left: -6px; }
.g-catrow__arrow--next { right: -6px; }
.g-catrow__arrow--next svg { transform: scaleX(-1); }
.g-catrow__arrow:hover { transform: translateY(-50%) scale(1.08); }
.g-catrow__arrow:active { transform: translateY(-50%) scale(0.96); }
/* Доехали до края - стрелка исчезает (как в persona-related), а не тускнеет. */
.g-catrow__arrow[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 767px) {
  .g-catrow__arrow { width: 36px; height: 36px; }
  .g-catrow__arrow svg { width: 16px; height: 16px; }
  /* дорожка на мобиле выходит за края экрана - кружки прижимаем внутрь */
  .g-catrow__arrow--prev { left: 4px; }
  .g-catrow__arrow--next { right: 4px; }
}

/* Карточка товара: единый источник стилей - gorilla-collection.css
   (v1.6.0: он подключён и на главной, дубли здесь удалены). */

/* ======================== 3. Бегущая строка ================================ */
.features-strip {
  background: var(--g-color-green);
  height: 100px;
  overflow: hidden;
  display: flex; align-items: center;
}
.features-marquee-outer {
  flex: 1; overflow: hidden;
  display: flex; align-items: center;
  position: relative;
}
.features-marquee-outer::before,
.features-marquee-outer::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 80px; pointer-events: none; z-index: 1;
}
.features-marquee-outer::before { left: 0; background: linear-gradient(to right, var(--g-color-green), transparent); }
.features-marquee-outer::after  { right: 0; background: linear-gradient(to left, var(--g-color-green), transparent); }

.features-marquee-track {
  display: flex; align-items: center;
  flex-wrap: nowrap; width: max-content;
  animation: features-scroll 83s linear infinite;
  will-change: transform;
}
.features-item {
  font-family: 'DIN 2014', system-ui, -apple-system, sans-serif;
  font-size: 22px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: #fff;
  padding: 0 40px;
  white-space: nowrap; flex-shrink: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.15);
}
.features-sep {
  flex-shrink: 0;
  color: rgba(255,255,255,0.65);
  font-size: 24px; font-weight: 300; line-height: 1;
}
@keyframes features-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 767px) {
  .features-strip { height: 82px; }
  .features-item { font-size: 16px; letter-spacing: 0.18em; padding: 0 28px; }
  .features-sep { font-size: 20px; }
  .features-marquee-track { animation-duration: 60s; }
}
@media (prefers-reduced-motion: reduce) {
  .features-marquee-track { animation: none; }
}

/* ========================= 5. «О бренде» ==================================
   Раунд 08.09 (ТЗ 4.1-4.2): вместо lifestyle-баннера с одним лозунгом -
   рассказ: тёмная плашка (кикер, заголовок, два предложения, «Читать дальше»)
   + фото. ПК - сплит текст|фото на всю ширину, левый край текста совпадает с
   краем .g-container; мобила - фото сверху 4:3, текст под ним. */
.g-story { position: relative; background: var(--g-color-navy); color: #fff; overflow: hidden; margin: 0; }
.g-story__grid { display: grid; grid-template-columns: 1fr; }
.g-story__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0a0a;
}
.g-story__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.g-story__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(40px, 6vw, 64px) var(--g-container-pad) clamp(48px, 6vw, 72px);
}
.g-story__kicker {
  display: inline-block;
  font-family: 'DIN 2014 UI', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--g-color-green);
  margin-bottom: 18px;
  padding-left: 22px;
  position: relative;
}
/* короткая зелёная черта перед кикером - тот же акцент, что у карточек
   «Почему Gorilla» */
.g-story__kicker::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 14px; height: 2px;
  background: var(--g-color-green);
}
.g-story__title {
  font-family: 'Jawbreak Sans Cut', 'DIN 2014', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 22px;
  max-width: 11ch;
}
.g-story__text {
  font-family: 'DIN 2014 UI', system-ui, sans-serif;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  text-transform: none; /* глобальный капс темы - рассказу не идёт (как манифест /o-nas/) */
  letter-spacing: 0;
  color: rgba(255, 255, 255, .80);
  max-width: 52ch;
}
.g-story__text p { margin: 0 0 14px; }
.g-story__text p:last-child { margin-bottom: 0; }
.g-story__ctas { margin-top: 30px; }
@media (min-width: 1024px) {
  .g-story__grid { grid-template-columns: minmax(0, 46%) minmax(0, 54%); }
  .g-story__media { order: 2; aspect-ratio: auto; height: 100%; min-height: 560px; }
  .g-story__body {
    min-height: 560px;
    padding: clamp(56px, 6vw, 96px) clamp(40px, 5vw, 88px) clamp(56px, 6vw, 96px)
             max(var(--g-container-pad), calc((100vw - var(--g-container-max)) / 2 + var(--g-container-pad)));
  }
}
@media (max-width: 767px) {
  .g-story__ctas { width: 100%; }
  .g-story__ctas .g-btn { width: 100%; max-width: 320px; text-align: center; justify-content: center; }
}

/* ========================= 6. Амбассадоры ==================================
   Карточки - тот же .persona-card, что на /lichnosti/ (стили в
   gorilla-persona-detail.css, грузится глобально). Здесь только раскладка
   карусели: ширины ячеек зеркалят сетку листинга (1/2/3 в ряд, тот же
   контейнер и зазор) - карточка на главной пиксель-в-пиксель равна карточке
   в каталоге амбассадоров. */
.g-ambassadors__viewport { position: relative; }
.g-ambassadors__slider { margin-inline: calc(-1 * var(--g-grid-gap-half)); }
.g-ambassadors__cell { padding: 0 var(--g-grid-gap-half); min-width: 0; }
/* тень как у карточек в сетке (не слипается с соседями за счёт зазора) */
.g-ambassadors .slick-list { overflow: hidden; padding-block: 6px; }

/* Фолбэк до инициализации slick: нативная прокрутка, ничего не прыгает. */
.g-ambassadors__slider:not(.slick-initialized) {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.g-ambassadors__slider:not(.slick-initialized)::-webkit-scrollbar { display: none; }
.g-ambassadors__slider:not(.slick-initialized) .g-ambassadors__cell { flex: 0 0 100%; }
@media (min-width: 640px) {
  .g-ambassadors__slider:not(.slick-initialized) .g-ambassadors__cell { flex-basis: 50%; }
}
@media (min-width: 1024px) {
  .g-ambassadors__slider:not(.slick-initialized) .g-ambassadors__cell { flex-basis: 33.3333%; }
}

/* Стрелки - тот же зелёный круг, что у карусели на детальной странице
   (.persona-related__arrow, gorilla-persona-detail.css); на широких экранах
   уходят в боковой отступ за контейнером. До инициализации slick стрелки
   спрятаны (обработчики вешает только slick, мёртвые кнопки не нужны). */
.g-ambassadors .persona-related__arrow { box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.35); }
.g-ambassadors__viewport > .persona-related__arrow { display: none; }
.g-ambassadors__viewport > .slick-initialized ~ .persona-related__arrow { display: flex; }
@media (max-width: 639px) {
  /* на мобильном слайдер листается свайпом, slick стрелки отключает сам -
     прячем жёстко, чтобы отключённые кнопки не всплывали при ресайзе */
  .g-ambassadors__viewport > .persona-related__arrow { display: none !important; }
}

/* Точки slick - зелёный акцент, неактивные тёмные на белой секции. */
.g-ambassadors .slick-dots {
  display: flex !important;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.g-ambassadors .slick-dots li { width: auto; height: auto; }
.g-ambassadors .slick-dots li button {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 50%;
  font-size: 0; line-height: 0;
  background: rgb(var(--g-navy-rgb) / 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.g-ambassadors .slick-dots li button:before { display: none; }
.g-ambassadors .slick-dots li.slick-active button {
  background: rgb(var(--g-green-rgb));
  transform: scale(1.35);
}

/* ========================== 7. Платформы ===================================
   Тот же визуальный язык, что у .persona-card: скругление --g-radius-card,
   мягкая тень, плавный тёмный скрим снизу и круглый зелёный бейдж-стрелка. */
.g-worlds__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--g-grid-gap);
}
.g-world {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--g-radius-card);
  min-height: clamp(420px, 38vw, 560px);
  isolation: isolate;
  text-decoration: none;
  box-shadow: 0 18px 40px -22px rgba(20, 22, 26, 0.28),
              0 2px 8px rgba(20, 22, 26, 0.06),
              0 0 0 1px rgba(20, 22, 26, 0.04);
  -webkit-tap-highlight-color: transparent;
}
.g-world__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s ease-out;
}
.g-world:hover .g-world__img,
.g-world:focus-visible .g-world__img { transform: scale(1.06); }
/* скрим 1:1 с .persona-card__meta - единый градиент подписей на карточках */
.g-world__veil {
  position: absolute;
  inset: 20% 0 0 0;
  z-index: 1;
  /* v2.9.1 (клиент: «плохо видны тексты разделов Амбассадоры/Платформы») -
     скрим усилен: подпись читается и на светлых обложках */
  background: linear-gradient(180deg,
              rgba(6, 9, 14, 0) 0%,
              rgba(6, 9, 14, 0.06) 24%,
              rgba(6, 9, 14, 0.22) 44%,
              rgba(6, 9, 14, 0.46) 62%,
              rgba(6, 9, 14, 0.68) 80%,
              rgba(6, 9, 14, 0.85) 100%);
}
.g-world__body {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  /* имя не наезжает на круглый бейдж-стрелку справа внизу */
  padding-right: 80px;
  color: #fff;
}
.g-world__title {
  font-family: 'Jawbreak Sans Cut', system-ui, sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: color 0.25s ease;
  margin: 0;
}
.g-world:hover .g-world__title,
.g-world:focus-visible .g-world__title { color: rgb(var(--g-green-rgb)); }
.g-world__sub {
  font-family: 'DIN 2014 UI', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}
/* круглый бейдж-стрелка - рецепт .persona-card::after (persona-detail.css) */
.g-world::after {
  content: "→";
  position: absolute;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 2px solid rgb(var(--g-green-rgb));
  color: rgb(var(--g-green-rgb));
  font-size: 20px; font-weight: 400; line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  z-index: 3;
  pointer-events: none;
  transition: transform 0.35s ease, background 0.35s ease;
}
.g-world:hover::after,
.g-world:focus-visible::after {
  background: rgb(var(--g-green-rgb));
  color: #0a0a0a;
  transform: translateX(3px);
}
@media (max-width: 1023px) {
  .g-worlds__grid { grid-template-columns: 1fr; gap: var(--g-grid-gap-half); }
  .g-world { min-height: 380px; }
}

/* ============================= 8. FAQ ====================================== */
.faq-section { position: relative; }
.faq-topics-wrapper {
  animation: fadeInUp 0.6s ease-out;
  width: 100%;
  min-height: 100px;
  max-width: 960px;
  margin-inline: auto;
}
.faq-topic {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  width: 100%;
  max-width: 100%;
}
.faq-topic:nth-child(1) { animation-delay: 0.1s; }
.faq-topic:nth-child(2) { animation-delay: 0.2s; }
.faq-topic:nth-child(3) { animation-delay: 0.3s; }
.faq-topic:nth-child(4) { animation-delay: 0.4s; }
.faq-topic:nth-child(5) { animation-delay: 0.5s; }

.faq-topic-trigger {
  border-radius: 0;
  box-shadow: 0 2px 8px rgb(var(--g-navy-rgb) / 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq-topic-trigger:hover {
  box-shadow: 0 4px 16px rgb(var(--g-navy-rgb) / 0.12);
  transform: translateY(-2px);
}
.faq-topic-trigger:active { transform: translateY(-1px); }
.faq-topic-trigger[aria-expanded="true"] { background-color: var(--g-color-navy) !important; }
.faq-topic-trigger[aria-expanded="true"] h3 { color: white !important; }
.faq-topic-trigger[aria-expanded="true"] .faq-topic-arrow { transform: rotate(180deg); }
.faq-topic-trigger[aria-expanded="true"] .faq-topic-arrow svg path { stroke: white; }
.faq-topic-arrow { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; }

.faq-question {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  width: 100%;
  max-width: 100%;
}
.faq-topic-content.active .faq-question { opacity: 1; transform: translateY(0); }
.faq-question:nth-child(1) { transition-delay: 0.05s; }
.faq-question:nth-child(2) { transition-delay: 0.1s; }
.faq-question:nth-child(3) { transition-delay: 0.15s; }
.faq-question:nth-child(4) { transition-delay: 0.2s; }
.faq-question:nth-child(5) { transition-delay: 0.25s; }
.faq-question:nth-child(6) { transition-delay: 0.3s; }
.faq-question:nth-child(7) { transition-delay: 0.35s; }
.faq-question:nth-child(8) { transition-delay: 0.4s; }

.faq-question-trigger {
  border-radius: 0;
  box-shadow: 0 1px 4px rgb(var(--g-navy-rgb) / 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq-question-trigger:hover {
  box-shadow: 0 2px 8px rgb(var(--g-navy-rgb) / 0.1);
  transform: translateX(4px);
}
.faq-question-trigger:active { transform: translateX(2px); }
.faq-question-trigger[aria-expanded="true"] { background-color: white !important; }
.faq-question-trigger[aria-expanded="true"] .faq-question-arrow { transform: rotate(180deg); }
.faq-question-arrow { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; }

.faq-topic-content {
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  will-change: max-height;
  width: 100%;
}
.faq-topic-content:not(.active) { overflow: hidden !important; opacity: 0; }
.faq-topic-content.active { overflow: visible !important; opacity: 1; }
.faq-topic-inner { width: 100%; }

.faq-answer-content {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  will-change: max-height;
  width: 100%;
}
.faq-topic-title {
  color: var(--g-color-navy);
  font-size: var(--g-fs-h2);
  font-family: 'DIN 2014 UI', 'DIN 2014', system-ui, sans-serif; /* v2.4.4: техничка - без Jawbreak */
  font-weight: 700;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0;
}
.faq-question-title {
  color: var(--g-color-navy);
  font-size: var(--g-fs-body-lg);
  font-family: 'DIN 2014', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}
.faq-answer-inner .rte {
  color: rgb(60, 60, 60);
  font-size: var(--g-fs-body);
  line-height: 1.6;
}
.faq-answer-inner .rte p { margin-bottom: 0.75rem; }
.faq-answer-inner .rte p:last-child { margin-bottom: 0; }
.faq-answer-inner .rte a {
  color: var(--g-color-navy);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}
.faq-answer-inner .rte a:hover { opacity: 0.7; }
.faq-answer-inner .rte ul,
.faq-answer-inner .rte ol { margin-left: 1.5rem; margin-bottom: 0.75rem; }
.faq-answer-inner .rte li { margin-bottom: 0.25rem; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .faq-topic-trigger,
  .faq-question-trigger { padding-left: 1.25rem; padding-right: 1.25rem; }
  .faq-answer-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (max-width: 640px) {
  .faq-topic-trigger h3 { font-size: var(--g-fs-h3) !important; }
  .faq-question-trigger h4 { font-size: var(--g-fs-body) !important; }
}
.faq-topic-trigger:focus-visible,
.faq-question-trigger:focus-visible {
  outline: 2px solid var(--g-color-navy);
  outline-offset: 2px;
}
@supports (-webkit-touch-callout: none) {
  .faq-topic-content,
  .faq-answer-content { transform: translateZ(0); -webkit-transform: translateZ(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-topic, .faq-topics-wrapper { animation: none; opacity: 1; }
  .faq-question { transition: none; }
}
html { scroll-behavior: smooth; }

/* 9. Соцсети «Подпишись» - переехали в общую оболочку: блок теперь на всех
   страницах над футером (template-parts/social-band.php), стили - в
   gorilla-layout.css. */

/* FAQ (v2.2.0): стартовое состояние аккордеона и обводка иконки были заданы
   инлайном в разметке. Раскрытую высоту по-прежнему выставляет JS, поэтому
   здесь только СВЁРНУТОЕ состояние - иначе все ответы видны при загрузке.
   Целимся в data-атрибуты: у этих блоков нет отдельного класса-состояния. */
[data-topic-content],
[data-answer-content] { max-height: 0; overflow: hidden; }
.faq-question-trigger svg path,
.faq-topic-trigger svg path { stroke: var(--g-color-navy); }

/* FAQ height follows CSS grid, so interrupted transitions cannot leave stale
   pixel heights or lose a click. Content stays in natural document flow. */
.faq-topic-content, .faq-answer-content {
  display: grid;
  grid-template-rows: 0fr;
  max-height: none;
  overflow: hidden !important;
  transition: grid-template-rows .3s ease, opacity .2s ease;
  will-change: auto;
}
.faq-topic-content.active, .faq-answer-content.active { grid-template-rows: 1fr; }
.faq-topic-inner, .faq-answer-inner { min-height: 0; overflow: hidden; }
.faq-topic-content:not(.active) > .faq-topic-inner,
.faq-answer-content:not(.active) > .faq-answer-inner { padding-top: 0; padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .faq-topic-content, .faq-answer-content, .faq-question { transition: none; }
}

/* Same native momentum carousel as the approved product recommendations. */
.g-ambassadors__viewport > .persona-related__arrow { display: flex; }
.g-ambassadors .persona-related__dots { margin-top: 24px; }
.g-ambassadors .persona-related__dot { background: #bbc0b4; }
.g-ambassadors .persona-related__dot.is-active { background: var(--g-color-green); }
.g-ambassadors .persona-related__cell .persona-card__media { background: #e9ebee; }

/* Home ambassadors use arrows and swipe; pagination dots are intentionally hidden. */
.g-ambassadors .persona-related__dots { display: none; }

/* Quiet playback control alongside the existing progress rails. */
.hero-controls { display: flex; align-items: center; gap: 12px; }
.hero-pause { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; background: rgba(0,0,0,.18); color: #fff; cursor: pointer; }
.hero-pause:hover { background: rgba(0,0,0,.4); }
.hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-pause .hero-pause__play, .hero-pause[aria-pressed="true"] .hero-pause__stop { display: none; }
.hero-pause[aria-pressed="true"] .hero-pause__play { display: block; }
@media (prefers-reduced-motion: reduce) { .hero-pause { display: none; } }

/* The slogan is brand artwork, independent of display-font loading. */
.hero-slide--center .hero-caption__title:has(.g-brand-slogan) { width: min(78vw, 55svh, 560px); max-width: 100%; }
.g-story__title--slogan { width: 100%; max-width: 420px; }
@media (orientation: landscape) and (max-height: 560px) {
  .hero-slide--center .hero-caption__title:has(.g-brand-slogan) { width: min(55vw, 38svh); }
}
