/* ============================================================================
   styles.css — Тема лендинга Max Merkulov
   Тёмный графит + дозированное золото. Mobile-first. Лёгкие анимации.
   Цвета и шрифты меняются в блоке :root ниже.
   ========================================================================== */

:root {
  /* Палитра */
  --bg:        #0f0f10;   /* основной фон (графит, не чистый чёрный) */
  --bg-2:      #16161a;   /* фон карточек/секций */
  --bg-3:      #1e1e24;   /* фон при наведении / вложенные блоки */
  --line:      #2a2a30;   /* линии и границы */
  --gold:      #c9a24b;   /* основное тёплое золото */
  --gold-2:    #e5c76b;   /* светлое золото (градиент/ховер) */
  --gold-dim:  #8a7233;   /* приглушённое золото */
  --text:      #ededed;   /* основной текст */
  --muted:     #a8a8b2;   /* второстепенный текст (контраст с запасом под WCAG AA) */
  --white:     #ffffff;

  /* Типографика */
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-grunge: 'Anton', 'Montserrat', sans-serif;

  /* Размеры */
  --max:       1160px;    /* максимальная ширина контента */
  --radius:    16px;
  --header-h:  68px;
}

/* ---- Сброс ------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  scroll-behavior: smooth; scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; /* iOS не масштабирует текст в ландшафте */
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; touch-action: manipulation; }

/* ---- Утилиты ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.gold { color: var(--gold); }

.accent-word {
  font-family: var(--font-grunge);
  font-size: clamp(34px, 10.5vw, 120px);
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;       /* грандж-слово в одну строку */
  max-width: 100%;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.95;
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 4.5vw, 40px);
  line-height: 1.1;
  margin-bottom: 12px;
}
.section-subtitle { color: var(--muted); font-size: clamp(15px, 2.4vw, 18px); max-width: 620px; }
.section-head { margin-bottom: 36px; }

/* ---- Кнопки ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px;
  font-family: var(--font-head);
  font-weight: 700; font-size: 15px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1407;
  box-shadow: 0 8px 26px rgba(201,162,75,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201,162,75,.4); }
.btn-ghost {
  background: transparent; color: var(--gold);
  border: 1.5px solid var(--gold-dim);
}
.btn-ghost:hover { background: rgba(201,162,75,.1); border-color: var(--gold); }
.btn-block { width: 100%; }

/* ---- Доступность: фокус с клавиатуры + skip-link ----------------------- */
/* Видимый фокус только при навигации с клавиатуры (мышью не мешает) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
/* У полей формы индикатор фокуса — золотая рамка (.form-field input:focus ниже) */

.skip-link {
  position: absolute; left: 12px; top: -200px; z-index: 200;
  background: var(--gold); color: #1a1407;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ---- Анимация появления ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(15,15,16,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header.scrolled { background: rgba(15,15,16,.95); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.header__logo { font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.header__logo b { color: var(--gold); }
.header__nav { display: none; gap: 26px; }
.header__nav a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.header__nav a:hover { color: var(--gold); }
.header__cta { display: none; }
.header__burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px; background: none;
}
.header__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.header.menu-open .header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.menu-open .header__burger span:nth-child(2) { opacity: 0; }
.header.menu-open .header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное выпадающее меню */
.header__mobile {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px 20px 24px;
  transform: translateY(-120%); transition: transform .3s ease; z-index: 99;
}
.header.menu-open .header__mobile { transform: translateY(0); }
.header__mobile a { padding: 13px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
.header__mobile .btn { margin-top: 16px; }

@media (min-width: 900px) {
  .header__nav, .header__cta { display: flex; }
  .header__burger, .header__mobile { display: none; }
}

/* ============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; padding: calc(var(--header-h) + 40px) 0 64px;
  background:
    radial-gradient(1200px 500px at 75% -10%, rgba(201,162,75,.14), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(201,162,75,.06), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero__inner { display: grid; gap: 40px; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(32px, 6.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -.5px;
  text-align: left;
  max-width: 18ch;
  text-wrap: balance; /* ровное распределение строк */
  hyphens: none;
}
.hero__title .accent { color: var(--gold); display: inline; }
.hero__subtitle { color: var(--muted); font-size: clamp(16px, 2.6vw, 20px); max-width: 52ch; margin-top: 20px; }
.hero__cta-row { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero__cta-note { color: var(--muted); font-size: 13px; }

.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.hero__stat {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.hero__stat-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 5vw, 30px); color: var(--gold); }
.hero__stat-label { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Hero коллаж трансформаций */
/* Сетка 2×2: колонки всегда выровнены; фото показываются целиком, без обрезки.
   (Масонри column-count балансирует по высоте и при разных пропорциях фото «съезжает».) */
.hero__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero__collage-item {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2); line-height: 0;
}
/* Фото вписывается ПОЛНОСТЬЮ (без обрезки); по краям — тёмные поля под цвет фона */
.hero__collage-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero__collage-item span {
  position: absolute; left: 10px; bottom: 10px; right: 10px; width: max-content; max-width: calc(100% - 20px);
  background: rgba(15,15,16,.85); color: var(--gold); font-family: var(--font-head);
  font-weight: 800; font-size: 14px; line-height: 1.2; padding: 5px 10px; border-radius: 8px; backdrop-filter: blur(4px);
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .hero__title { padding-left: 4%; } /* чуть левее центра */
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  /* правый коллаж слегка опускаем, чтобы верх совпал с началом заголовка */
  .hero__collage { margin-top: 6px; }
}

/* ============================================================================
   РЕЗУЛЬТАТЫ (слайдер кейсов)
   ========================================================================== */
.results { background: var(--bg); }
.results__head { text-align: left; }

.slider { position: relative; }
.slider__track {
  display: flex; align-items: flex-start; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 18px; scrollbar-width: thin; scrollbar-color: var(--gold-dim) transparent;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; /* без «отскока» страницы при свайпе */
}
.slider__track::-webkit-scrollbar { height: 6px; }
.slider__track::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }

.case {
  flex: 0 0 86%; max-width: 380px; scroll-snap-align: start;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s, transform .2s;
}
.case:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
/* Картинка показывается ЦЕЛИКОМ, без обрезки — карточка подстраивается под пропорции фото */
.case__img { position: relative; background: var(--bg-3); line-height: 0; }
.case__img img { width: 100%; height: auto; display: block; }
.case__goal {
  position: absolute; top: 12px; left: 12px;
  background: rgba(15,15,16,.85); color: var(--gold); font-size: 12px; font-weight: 700;
  line-height: 1.3; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px); border: 1px solid var(--gold-dim);
}
.case__body { padding: 18px 20px 22px; }
.case__result { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--gold); }
.case__name { font-weight: 700; font-size: 16px; margin: 6px 0 8px; }
.case__text { color: var(--muted); font-size: 14px; }

.slider__nav { display: flex; gap: 10px; margin-top: 8px; }
.slider__btn {
  width: 46px; height: 46px; border-radius: 50%; background: var(--bg-2);
  border: 1px solid var(--line); color: var(--text); font-size: 18px;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.slider__btn:hover { border-color: var(--gold); color: var(--gold); }

@media (min-width: 700px) { .case { flex-basis: 44%; } }
@media (min-width: 1000px) { .case { flex-basis: 30%; } }

/* ============================================================================
   ЧТО ПОЛУЧАЕШЬ
   ========================================================================== */
.offer { background: var(--bg-2); }
.offer__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.offer__card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s, transform .2s;
}
.offer__card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.offer__icon { font-size: 28px; margin-bottom: 12px; }
.offer__card h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.offer__card p { color: var(--muted); font-size: 14px; }
@media (min-width: 700px) { .offer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .offer__grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================================
   ПРИЛОЖЕНИЕ (личный кабинет подопечного)
   Фирменная секция: лёгкое золотое свечение, чтобы выделить ключевую фичу.
   ========================================================================== */
.app {
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(201,162,75,.10), transparent 60%),
    radial-gradient(100% 70% at 0% 100%, rgba(201,162,75,.06), transparent 55%),
    var(--bg);
}
/* --- Галерея экранов (телефоны) --- */
/* Горизонтальная лента со scroll-snap на мобиле; на десктопе — в ряд по центру. */
.app__gallery {
  display: flex; gap: 18px; margin-bottom: 36px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 6px 4px 16px; -webkit-overflow-scrolling: touch;
}
.app__gallery::-webkit-scrollbar { height: 6px; }
.app__gallery::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }
.phone-wrap { flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; }
.phone__caption {
  margin-top: 14px; font-family: var(--font-head); font-weight: 700;
  font-size: 14px; letter-spacing: .01em; color: var(--gold-2); text-align: center;
  transition: opacity .3s ease;
}
/* Мобильная лента с «фокусом»: класс .is-focus вешает JS (initAppFocus), когда
   телефоны реально прокручиваются. Подпись видна только у центрального экрана,
   соседние притушены и без подписи — при свайпе подписи мягко перетекают, а не
   оставляют яркий обрезанный хвост текста у края. На десктопе (ряд) класса нет. */
.app__gallery.is-focus .phone-wrap { transition: opacity .35s ease; }
.app__gallery.is-focus .phone-wrap:not(.is-active) { opacity: .6; }
.app__gallery.is-focus .phone-wrap:not(.is-active) .phone__caption { opacity: 0; }

/* --- Выгоды --- */
.app__benefits { display: grid; gap: 14px; grid-template-columns: 1fr; }
.app__benefit {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; transition: border-color .2s, transform .2s, background .2s;
}
.app__benefit:hover { border-color: var(--gold-dim); transform: translateY(-2px); background: var(--bg-3); }
.app__benefit-icon {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; color: var(--gold);
  background: rgba(201,162,75,.10); border: 1px solid rgba(201,162,75,.25);
}
.app__benefit-icon svg { width: 22px; height: 22px; }
.app__benefit h3 { font-family: var(--font-head); font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.app__benefit p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* --- Телефон-мокап (CSS-заглушка вместо реального скриншота) --- */
.phone {
  position: relative; width: 232px; max-width: 78vw;
  background: #0b0b0c; border: 2px solid #2c2c33; border-radius: 34px;
  padding: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(201,162,75,.12);
}
.phone__notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 20px; background: #0b0b0c; border-radius: 0 0 12px 12px; z-index: 2;
}
.phone__screen {
  position: relative;
  background: linear-gradient(180deg, #161619, #121215);
  border-radius: 26px; overflow: hidden; aspect-ratio: 9/19; padding: 28px 14px 16px;
}
.phone__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; padding: 0; }
.appui { display: flex; flex-direction: column; height: 100%; }
.appui__top { margin-bottom: 12px; }
.appui__label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.appui__day { font-family: var(--font-head); font-weight: 800; font-size: 17px; margin-top: 2px; }
.appui__list { display: flex; flex-direction: column; gap: 7px; }
.appui__ex {
  display: flex; align-items: center; gap: 11px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px;
}
.appui__check {
  flex: none; width: 18px; height: 18px; border-radius: 6px;
  border: 1.5px solid var(--line); background: transparent; position: relative;
}
.appui__ex.is-done .appui__check { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: var(--gold); }
.appui__ex.is-done .appui__check::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid #1a1407; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.appui__ex-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.appui__ex-name {
  font-weight: 600; font-size: 13px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.appui__ex.is-done .appui__ex-name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--gold-dim); }
.appui__ex-meta { font-size: 11px; color: var(--gold); font-weight: 700; white-space: nowrap; }
.appui__timer {
  margin: 12px 0; align-self: flex-start;
  background: rgba(201,162,75,.12); border: 1px solid rgba(201,162,75,.3); color: var(--gold-2);
  font-weight: 700; font-size: 12px; padding: 7px 14px; border-radius: 999px;
}

/* Экран «Прогресс»: столбчатый график + строки замеров */
.appui__bars { display: flex; align-items: flex-end; gap: 7px; height: 96px; padding: 6px 2px; }
.appui__bars span {
  flex: 1; border-radius: 4px 4px 2px 2px; min-height: 10px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-dim));
}
.appui__bars span:last-child { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.appui__stats { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.appui__stats li {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
.appui__stat-name { font-size: 12px; color: var(--text); font-weight: 600; }
.appui__stat-val { font-size: 12px; color: var(--gold); font-weight: 700; white-space: nowrap; }

/* Экран «База знаний»: список упражнений с play-иконкой */
.appui__know { display: flex; flex-direction: column; gap: 8px; }
.appui__know li {
  display: flex; align-items: center; gap: 11px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.appui__play {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(201,162,75,.12); border: 1px solid rgba(201,162,75,.3); position: relative;
}
.appui__play::after {
  content: ""; position: absolute; left: 10px; top: 8px;
  border: solid transparent; border-width: 5px 0 5px 8px; border-left-color: var(--gold-2);
}

/* Экран «Динамика»: две фото-плашки «до/после» + замер */
.appui__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.appui__photo {
  position: relative; border-radius: 12px; border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  display: flex; align-items: flex-end; padding: 8px;
}
.appui__photo span {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--text);
  background: rgba(15,15,16,.7); border-radius: 6px; padding: 3px 7px;
}
.appui__measure {
  margin-top: 10px; text-align: center; font-size: 12px; font-weight: 700; color: var(--gold);
  background: rgba(201,162,75,.1); border: 1px solid rgba(201,162,75,.25); border-radius: 999px; padding: 8px;
}

/* --- Закрывающая строка + CTA --- */
.app__closing {
  margin: 32px auto 0; max-width: 760px; text-align: center;
  font-size: clamp(16px, 2.4vw, 19px); color: var(--text);
}
.app__cta { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.app__cta .btn { width: 100%; }
.app__cta-note { color: var(--muted); font-size: 14px; }

/* --- Анимации (включаются классом .is-animated при попадании в кадр) --- */
/* Телефоны: выезд снизу со stagger */
.phone-wrap { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.app__gallery.is-animated .phone-wrap { opacity: 1; transform: none; }
.app__gallery.is-animated .phone-wrap:nth-child(2) { transition-delay: .1s; }
.app__gallery.is-animated .phone-wrap:nth-child(3) { transition-delay: .2s; }
.app__gallery.is-animated .phone-wrap:nth-child(4) { transition-delay: .3s; }

/* Столбики графика «вырастают» снизу */
.appui__bars span { transform: scaleY(0); transform-origin: bottom; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.app__gallery.is-animated .appui__bars span { transform: scaleY(1); }
.app__gallery.is-animated .appui__bars span:nth-child(1) { transition-delay: .35s; }
.app__gallery.is-animated .appui__bars span:nth-child(2) { transition-delay: .42s; }
.app__gallery.is-animated .appui__bars span:nth-child(3) { transition-delay: .49s; }
.app__gallery.is-animated .appui__bars span:nth-child(4) { transition-delay: .56s; }
.app__gallery.is-animated .appui__bars span:nth-child(5) { transition-delay: .63s; }
.app__gallery.is-animated .appui__bars span:nth-child(6) { transition-delay: .70s; }

/* Блик, один раз пробегающий по экрану при появлении */
.phone__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.10) 50%, transparent 65%);
  transform: translateX(-120%); opacity: 0;
}
.app__gallery.is-animated .phone__screen::after { animation: phoneSheen 1.1s ease-out .5s 1; }
@keyframes phoneSheen { 0% { transform: translateX(-120%); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateX(120%); opacity: 0; } }

/* Лёгкое «дыхание» телефонов после появления (мягкая глубина) */
@media (prefers-reduced-motion: no-preference) {
  .app__gallery.is-animated .phone { animation: phoneFloat 6.5s ease-in-out 1s infinite; }
  .app__gallery.is-animated .phone-wrap:nth-child(2) .phone { animation-delay: 1.8s; }
  .app__gallery.is-animated .phone-wrap:nth-child(3) .phone { animation-delay: 2.6s; }
  .app__gallery.is-animated .phone-wrap:nth-child(4) .phone { animation-delay: 3.4s; }
}
@keyframes phoneFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.phone { transition: box-shadow .3s ease; }
.phone:hover { box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(201,162,75,.3); }

@media (prefers-reduced-motion: reduce) {
  .phone-wrap { opacity: 1; transform: none; transition: none; }
  .appui__bars span { transform: scaleY(1); transition: none; }
  .phone__screen::after { display: none; }
}

@media (min-width: 700px) {
  .app__benefits { grid-template-columns: repeat(2, 1fr); }
  .app__cta { flex-direction: row; justify-content: center; }
  .app__cta .btn { width: auto; }
}
/* Десктоп: телефоны помещаются в ряд — центрируем, скролл уходит */
@media (min-width: 1040px) {
  .app__gallery { justify-content: center; flex-wrap: nowrap; }
  .app__benefits { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================================
   ФОРМАТЫ
   ========================================================================== */
.formats { background: var(--bg); }

.lead {
  background: linear-gradient(135deg, rgba(201,162,75,.14), rgba(201,162,75,.04));
  border: 1px solid var(--gold-dim); border-radius: var(--radius);
  padding: 28px 24px; margin-bottom: 32px; text-align: center;
}
.lead h3 { font-family: var(--font-head); font-weight: 800; font-size: clamp(20px, 4vw, 28px); margin-bottom: 10px; }
.lead p { color: var(--muted); max-width: 560px; margin: 0 auto 20px; font-size: 15px; }

.currency-note { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

.plans { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
.plan {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
}
.plan.is-highlight { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 14px 40px rgba(201,162,75,.15); position: relative; }
.plan__badge {
  align-self: flex-start; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1407;
  font-weight: 800; font-size: 12px; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.plan__name { font-family: var(--font-head); font-weight: 800; font-size: 19px; line-height: 1.2; }
.plan__period { color: var(--muted); font-size: 13px; margin-top: 4px; }
.plan__price { font-family: var(--font-head); font-weight: 900; font-size: 30px; color: var(--gold); margin: 16px 0 2px; }
.plan__price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan__buy { font-size: 14px; color: var(--text); margin: 14px 0; padding: 14px; background: var(--bg-3); border-radius: 12px; border-left: 3px solid var(--gold); }
.plan__includes-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 10px; }
.plan__includes { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.plan__includes li { font-size: 14px; color: var(--muted); padding-left: 24px; position: relative; }
.plan__includes li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.plan .btn { margin-top: auto; }
@media (min-width: 950px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================================
   ОБО МНЕ
   ========================================================================== */
.about { background: var(--bg-2); }
.about__inner { display: grid; gap: 32px; }
.about__photo {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4/5; background: var(--bg-3); max-width: 420px;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__name { font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 5vw, 34px); }
.about__role { color: var(--gold); font-weight: 600; margin: 4px 0 18px; }
.about__text p { color: var(--muted); margin-bottom: 14px; font-size: 16px; }
.about__proof {
  margin-top: 18px; padding: 18px 20px; background: var(--bg); border-radius: 12px;
  border-left: 3px solid var(--gold); font-size: 15px; color: var(--text);
}
@media (min-width: 850px) {
  .about__inner { grid-template-columns: .8fr 1.2fr; align-items: center; }
}

/* ============================================================================
   КАК РАБОТАЕМ
   ========================================================================== */
.process { background: var(--bg); }
.process__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.process__step {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  position: relative; overflow: hidden;
}
.process__num { font-family: var(--font-grunge); font-size: 46px; color: transparent; -webkit-text-stroke: 1px var(--gold-dim); line-height: 1; }
.process__step h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin: 8px 0 6px; }
.process__step p { color: var(--muted); font-size: 14px; }
@media (min-width: 700px) { .process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process__grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================================
   ДОП. ЭКСПЕРТИЗА
   ========================================================================== */
.expertise { background: var(--bg-2); }
.expertise__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.expertise__card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.expertise__card h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 8px; color: var(--gold); }
.expertise__card p { color: var(--muted); font-size: 14px; }
@media (min-width: 750px) { .expertise__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================================
   АКАДЕМИЯ
   ========================================================================== */
.academy { background: var(--bg); }
.academy__grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 24px; }
.lecture {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.lecture:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.lecture__cover { aspect-ratio: 16/10; background: var(--bg-3); }
.lecture__cover img { width: 100%; height: 100%; object-fit: cover; }
.lecture__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.lecture__title { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.lecture__result { color: var(--muted); font-size: 14px; margin-bottom: 16px; flex: 1; }
.lecture__price { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--gold); margin-bottom: 14px; }
@media (min-width: 650px) { .academy__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .academy__grid { grid-template-columns: repeat(4, 1fr); } }

.bundle {
  background: linear-gradient(135deg, rgba(201,162,75,.14), rgba(201,162,75,.04));
  border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center;
}
.bundle h3 { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.bundle p { color: var(--muted); }
.bundle__price { font-family: var(--font-head); font-weight: 900; font-size: 28px; color: var(--gold); }
@media (min-width: 700px) {
  .bundle { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============================================================================
   FAQ + ФОРМА
   ========================================================================== */
.faq { background: var(--bg-2); }
.faq__inner { display: grid; gap: 40px; }

.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; color: var(--text);
  padding: 18px 20px; font-family: var(--font-head); font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq__q::after { content: "+"; color: var(--gold); font-size: 22px; transition: transform .2s; }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* Форма */
.form-card { background: var(--bg); border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: 28px 24px; }
.form-card h3 { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-field input, .form-field select {
  width: 100%; padding: 14px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font-family: inherit;
  font-size: 16px; /* ≥16px — иначе iOS Safari зумит страницу при фокусе на поле */
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--gold); }
.form-thanks { color: var(--gold); font-weight: 600; padding: 14px 0; }
.form-error { color: #ff8a8a; font-weight: 600; font-size: 14px; padding: 12px 0 0; }
/* Антиспам-ловушка: уводим поле за экран (display:none некоторые боты пропускают) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-or { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 10px; }
.youform-embed { width: 100%; min-height: 520px; border: none; border-radius: 12px; background: var(--bg-2); }

@media (min-width: 900px) { .faq__inner { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ============================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer__inner { display: grid; gap: 28px; }
.footer__brand b { color: var(--gold); }
.footer__brand .logo { font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.footer__brand p { color: var(--muted); font-size: 14px; max-width: 34ch; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.footer__col a { display: block; color: var(--text); font-size: 15px; padding: 9px 0; transition: color .15s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; color: var(--muted); font-size: 13px; }
.footer__req { margin-top: 6px; }
.footer__disclaimer { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); opacity: .8; max-width: 70ch; }
@media (min-width: 750px) { .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ============================================================================
   ПРЕМИУМ-ПОЛИРОВКА
   ========================================================================== */

/* Тонкая текстура-зерно поверх всего — премиальная «дорогая» глубина */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Дозированное золотое свечение в секциях с акцент-словом */
.results, .formats, .academy { position: relative; }
.results::before, .formats::before, .academy::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 360px; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 100% at 22% 0%, rgba(201,162,75,.10), transparent 70%);
}
.results > .container, .formats > .container, .academy > .container { position: relative; z-index: 1; }

/* Иконки выгод — золотая плашка с SVG вместо эмодзи */
.offer__icon {
  width: 46px; height: 46px; border-radius: 12px; font-size: 0; margin-bottom: 14px;
  background: rgba(201,162,75,.10); border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.offer__icon svg { width: 24px; height: 24px; }

/* Бейдж тарифа со звездой-SVG */
.plan__badge { display: inline-flex; align-items: center; gap: 6px; }
.plan__badge svg { width: 13px; height: 13px; }

/* Счётчик цифр — без дрожания ширины */
.hero__stat-value { font-variant-numeric: tabular-nums; }
.hero__stat { transition: border-color .25s, transform .25s; }
.hero__stat:hover { border-color: var(--gold-dim); transform: translateY(-2px); }

/* Богаче ховеры карточек (тёплое золотое свечение + зум фото) */
.case { transition: border-color .25s, transform .25s, box-shadow .25s; }
.case:hover { box-shadow: 0 24px 60px -30px rgba(201,162,75,.5); }
.case__img { overflow: hidden; }
.case__img img { transition: transform .5s ease; }
.case:hover .case__img img { transform: scale(1.04); }

.offer__card { transition: border-color .25s, transform .25s, box-shadow .25s; }
.offer__card:hover { box-shadow: 0 20px 50px -28px rgba(201,162,75,.45); }

.lecture { transition: border-color .25s, transform .25s, box-shadow .25s; }
.lecture:hover { box-shadow: 0 20px 50px -28px rgba(201,162,75,.4); }
.lecture__cover { overflow: hidden; }
.lecture__cover img { transition: transform .5s ease; }
.lecture:hover .lecture__cover img { transform: scale(1.05); }

.plan { transition: border-color .25s, transform .25s, box-shadow .25s; }
.plan:not(.is-highlight):hover { border-color: var(--gold-dim); transform: translateY(-3px); box-shadow: 0 20px 50px -30px rgba(201,162,75,.35); }
.plan.is-highlight:hover { transform: translateY(-3px); }

/* Фильтр кейсов по цели */
.results__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  padding: 9px 16px; border-radius: 999px; transition: .2s; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--gold-dim); }
.chip.is-active { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1407; border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .case__img img, .lecture__cover img { transition: none; }
  .case:hover .case__img img, .lecture:hover .lecture__cover img { transform: none; }
}

/* ============================================================================
   МОБИЛЬНАЯ ПРОРАБОТКА (smartphone-first)
   База ниже = телефон: компактнее ритм, CTA во всю ширину, крупнее тач.
   На десктопе отступы и раскладку возвращаем просторнее в медиа min-width ниже.
   ========================================================================== */

/* Ритм секций: на телефоне плотнее (меньше «мёртвого» воздуха при скролле) */
.section { padding: 54px 0; }
.section-head { margin-bottom: 26px; }

/* Гарантированная высота тача у кнопок (≥44px с запасом) */
.btn { min-height: 50px; }

/* Чипы-фильтры — чуть выше для пальца + не липнут друг к другу */
.chip { padding: 11px 16px; }

/* HERO на телефоне: плотнее по вертикали, главный CTA — во всю ширину */
.hero { padding: calc(var(--header-h) + 22px) 0 44px; }
.hero__inner { gap: 30px; }
.hero__subtitle { margin-top: 16px; }
.hero__stats { margin-top: 26px; gap: 12px; }
.hero__stat { padding: 14px 16px; }
.hero__cta-row { width: 100%; gap: 12px; }
.hero__cta-row .btn { width: 100%; }
.hero__cta-note { width: 100%; text-align: center; }

/* Карточки тарифов на телефоне — комфортные внутренние поля */
.plan { padding: 24px 20px; }
.lead { padding: 24px 20px; }
.form-card { padding: 24px 20px; }

/* Слайдер кейсов: карточка крупнее в кадре + заметный «подгляд» следующей */
@media (max-width: 699px) {
  .case { flex-basis: 88%; }
  .slider__nav { justify-content: center; }
}

/* ---- Десктоп: возвращаем простор ---------------------------------------- */
@media (min-width: 768px) {
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 38px; }

  .hero { padding: calc(var(--header-h) + 44px) 0 80px; }
  .hero__inner { gap: 44px; }
  .hero__cta-row { width: auto; }
  .hero__cta-row .btn { width: auto; }
  .hero__cta-note { width: auto; text-align: left; }

  .plan { padding: 26px 24px; }
  .lead { padding: 28px 24px; }
  .form-card { padding: 28px 24px; }
}
