/*
  WOW! English — v2: докрученный вариант редизайна (v1 заморожена в site/new).
  Geologica, светлая или тёмная тема по системе. Бренд с логотипа: красный #E94849 и синий #3A619B;
  для текста и кнопок красный затемнён до AA — заливка #D3393B (4,7:1 с белым), текст #C8343A.

  Правила системы (вкус Димы, design/refs/patterns.md):
  — один радиус 20px на все блоки, пилюли — только кнопки, чипы и теги; вложенное — 14px;
  — почти без теней: глубина через наложения (реплики-пузыри поверх карточек), тень только у всплывающего;
  — один фирменный эффект везде: перелив красный ↔ синий (лого, ключевые слова заголовков, подпись «Стратега»);
  — сквозной мотив — реплика-пузырь: угол 6px «хвостиком» (первый экран, чат метода, отзывы, шаги записи);
  — один ритм секций.
*/

@font-face {
  font-family: "Geologica";
  src: url("assets/fonts/geologica-cyrillic-ext.woff2?v=1") format("woff2");
  font-display: swap;
  font-weight: 300 700;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Geologica";
  src: url("assets/fonts/geologica-cyrillic.woff2?v=1") format("woff2");
  font-display: swap;
  font-weight: 300 700;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  src: url("assets/fonts/geologica-latin-ext.woff2?v=1") format("woff2");
  font-display: swap;
  font-weight: 300 700;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geologica";
  src: url("assets/fonts/geologica-latin.woff2?v=1") format("woff2");
  font-display: swap;
  font-weight: 300 700;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --font: "Geologica", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --page: #f7f5f2;
  --band: #efebe5;
  --surface: #ffffff;
  --surface-2: #f2eee8;
  --ink: #14213d;
  --muted: #5b6478;
  --line: rgba(20, 33, 61, 0.1);
  --line-strong: rgba(20, 33, 61, 0.2);

  --red: #e94849;
  --red-fill: #d3393b;
  --red-fill-hover: #bb2f32;
  --red-text: #c42f36;   /* 4,65:1 на бежевой секции #efebe5 (было #c8343a — 4,41, ниже порога AA) */
  --red-soft: #fdeaea;
  --blue: #3a619b;
  --blue-text: #3a619b;
  --blue-soft: #e7eef8;
  --navy: #14213d;
  --navy-2: #1d3260;
  --arrow: #14213d;
  --on-arrow: #ffffff;

  --on-dark: #f5f7fb;
  --on-dark-muted: rgba(245, 247, 251, 0.72);

  /* фирменный перелив: середина синяя, края красные, между ними коралл — для текста на светлом */
  --flow: linear-gradient(100deg, #d3393b 0%, #dd5a4b 22%, #3a619b 50%, #dd5a4b 78%, #d3393b 100%);
  --flow-dark: linear-gradient(100deg, #ff6b6b 0%, #ffb199 25%, #9dbbf0 50%, #ffb199 75%, #ff6b6b 100%);
  /* для мелкого текста: только цвета текста темы (красный и синий с контрастом ≥ 4,5:1), без светлого коралла посередине */
  --flow-text: linear-gradient(100deg, var(--red-text) 0%, var(--blue-text) 50%, var(--red-text) 100%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --shadow-float: 0 2px 6px rgba(20, 33, 61, 0.08), 0 22px 48px -18px rgba(20, 33, 61, 0.45);

  --r: 20px;
  --r-in: 14px;
  --bubble: 20px 20px 20px 6px;
  --bubble-out: 20px 20px 6px 20px;

  --container: 1200px;
  --gutter: 24px;
  --section: clamp(80px, 9vw, 128px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --header-h: 84px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b1220;
    --band: #0f182b;
    --surface: #131d33;
    --surface-2: #19253f;
    --ink: #edf1f8;
    --muted: #a3aec4;
    --line: rgba(237, 241, 248, 0.1);
    --line-strong: rgba(237, 241, 248, 0.22);
    --red-text: #ff7a7a;
    --red-soft: rgba(233, 72, 73, 0.16);
    --blue-text: #9dbbf0;
    --blue-soft: rgba(58, 97, 155, 0.28);
    --arrow: #edf1f8;
    --on-arrow: #0b1220;
    --flow: var(--flow-dark);
    --shadow-float: 0 2px 6px rgba(0, 0, 0, 0.35), 0 22px 48px -18px rgba(0, 0, 0, 0.85);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.9vw, 54px); line-height: 1.04; letter-spacing: -0.03em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
s { text-decoration-thickness: 1.5px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 70%, white); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--page); text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* ── Фирменный перелив ────────────────────────────────── */
@keyframes brand-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.flow {
  background: var(--flow);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: brand-flow 7s ease-in-out infinite;
  /* у букв с хвостами (у, р, д) градиент не обрезается */
  padding-bottom: 0.08em; margin-bottom: -0.08em;
}
.brand-logo {
  display: block;
  width: 88px;
  aspect-ratio: 354 / 274;
  background: var(--flow);
  background-size: 220% 100%;
  -webkit-mask: url("assets/wow-logo.svg") center / contain no-repeat;
  mask: url("assets/wow-logo.svg") center / contain no-repeat;
  animation: brand-flow 7s ease-in-out infinite;
}
.brand-logo-lg { width: 120px; background-image: var(--flow-dark); }

/* ── Кнопки и ссылки ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 500; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.25s var(--spring);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-primary { background: var(--red-fill); color: #fff; }
.btn-primary:hover { background: var(--red-fill-hover); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #fdeaea; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px;
  font-weight: 500; text-decoration: none;
}
.link-arrow::after { content: "↓"; transition: transform 0.25s var(--spring); }
.link-arrow:hover::after { transform: translateY(3px); }
.link-on-dark { color: var(--on-dark); }

/* ── Шапка ────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-caption { font-size: 12px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.nav { position: relative; display: flex; gap: 2px; margin-inline: auto; }
.nav a {
  position: relative; z-index: 1;
  padding: 8px 10px; border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav a:hover, .nav a.is-current { color: var(--ink); }
/* под курсором (и при фокусе с клавиатуры) текст пункта переливается красным ↔ синим — тот же перелив, что у логотипа;
   цвета текста — те же, что у ссылок на странице (4,7:1 и 5,4:1 на подложке), так что читаемость не страдает */
.nav a:hover, .nav a:focus-visible {
  background: var(--flow-text) 0 50% / 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: brand-flow 2.8s ease-in-out infinite;
}
/* подложка-«пилюля» переезжает к текущему разделу и под курсор; пока курсор в меню — на ней мягкий перелив тех же цветов */
.nav-pill {
  position: absolute; left: 0; top: 0; height: 100%; width: var(--w, 0px);
  border-radius: 999px; background: var(--surface-2);
  transform: translateX(var(--x, 0px)); opacity: 0;
  transition: transform 0.45s var(--spring), width 0.45s var(--spring), opacity 0.25s var(--ease);
}
.nav.has-pill .nav-pill { opacity: 1; }
.nav:hover .nav-pill, .nav:focus-within .nav-pill {
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--red) 14%, var(--surface-2)) 0%,
    color-mix(in srgb, var(--blue) 16%, var(--surface-2)) 50%,
    color-mix(in srgb, var(--red) 14%, var(--surface-2)) 100%) 0 50% / 220% 100%;
  animation: brand-flow 4s ease-in-out infinite;
}
@media (forced-colors: active) {
  .nav a:hover, .nav a:focus-visible { background: none; color: LinkText; -webkit-text-fill-color: currentColor; animation: none; }
}
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.header-phone { font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--red-text); }

.burger {
  display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: transparent;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); background: var(--page); }
.mobile-nav { display: grid; padding: 12px 0 20px; }
.mobile-nav a { padding: 14px 0; font-size: 20px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-phone { border: 0; color: var(--red-text); }

/* ── Общие элементы ───────────────────────────────────── */
.section { padding-block: var(--section); }
.section-alt { background: var(--band); }
.section-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-lead { font-size: 18px; color: var(--muted); max-width: 60ch; }

/* подпись раздела: строчными, с чёрточкой — без капса */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 15px; font-weight: 500; color: var(--red-text); }
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 14px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px; font-weight: 500; color: var(--on-dark);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(233, 72, 73, 0.25); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }

.tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; background: var(--surface-2); color: var(--ink); white-space: nowrap;
}
.tag-hot { background: var(--red-soft); color: var(--red-text); }
.tag-calm { background: var(--blue-soft); color: var(--blue-text); }

/* реплика-пузырь — сквозной мотив */
.bubble {
  display: inline-block; padding: 12px 18px; border-radius: var(--bubble);
  background: #fff; color: var(--navy); font-weight: 600; font-size: 17px; line-height: 1.2; white-space: nowrap;
  box-shadow: var(--shadow-float);
}
.bubble-red { background: var(--red-fill); color: #fff; border-radius: var(--bubble-out); }

/* ── Первый экран ─────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px;
  padding-top: 16px; padding-bottom: 40px;
}
.hero-main {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  padding: clamp(28px, 3.6vw, 52px);
  border-radius: var(--r); color: var(--on-dark);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(233, 72, 73, 0.5) 0%, rgba(233, 72, 73, 0) 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(58, 97, 155, 0.85) 0%, rgba(58, 97, 155, 0) 60%),
    linear-gradient(150deg, #14213d 0%, #1d3260 100%);
}
.hero-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: 0.08; mix-blend-mode: overlay; }
.hero-skyline {
  position: absolute; z-index: -1; right: -24px; bottom: -6px; width: min(56%, 520px); aspect-ratio: 319 / 169;
  background: #fff; opacity: 0.07;
  -webkit-mask: url("assets/wow-skyline.svg") center bottom / contain no-repeat;
  mask: url("assets/wow-skyline.svg") center bottom / contain no-repeat;
}
.hero-title { display: grid; grid-template-columns: minmax(0, 1fr); font-size: clamp(38px, 4.05vw, 58px); line-height: 1; letter-spacing: -0.035em; text-wrap: initial; }
/* Набор текста по образцу altunin.pro: фраза после «чтобы» стирается и печатается заново, рядом мигает каретка (app.js).
   Живая строка и невидимые копии всех фраз лежат в одной ячейке сетки — высоту задаёт самая длинная, текст ниже не прыгает. */
.hero-live, .hero-size { grid-area: 1 / 1; }
.hero-size { visibility: hidden; pointer-events: none; user-select: none; }
.hero-size::before { content: attr(data-t); }
.hero-type {
  padding-bottom: 0.06em;
  background: var(--flow-dark); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: brand-flow 7s ease-in-out infinite;
}
/* ненабранный хвост невидим, но занимает место: переносы строк сразу итоговые, слова не «перескакивают» при наборе */
.hero-type__rest { visibility: hidden; }
/* каретка: пустой inline-элемент с левой границей и нулевой итоговой шириной (отрицательный правый отступ) —
   на переносы строк не влияет; показывается только пока идёт набор (класс is-typing ставит app.js) */
.hero-type__caret {
  display: none; font-size: 0.66em; margin: 0 -3px 0 0.14em; border-left: 3px solid #ff8f7e; border-radius: 1px;
  animation: caret-blink 1.05s step-end infinite;
}
.hero-title.is-typing .hero-type__caret { display: inline; }
@keyframes caret-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: var(--on-dark-muted); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.proof {
  display: inline-flex; align-items: center; gap: 12px; margin-top: auto; padding: 7px 18px 7px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--on-dark); text-decoration: none; transition: background-color 0.2s var(--ease);
}
.proof:hover { background: rgba(255, 255, 255, 0.14); }
.proof-faces { display: flex; }
.proof-faces img { width: 34px; height: 34px; border-radius: 11px; object-fit: cover; border: 2px solid #1b2b52; }
.proof-faces img + img { margin-left: -9px; }
.proof-text { display: grid; font-size: 13px; line-height: 1.3; color: var(--on-dark-muted); }
.proof-text b { font-size: 14px; font-weight: 500; color: var(--on-dark); }

.hero-side { position: relative; min-height: 0; }
.video { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: #0b1220; isolation: isolate; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.video:hover img { transform: scale(1.03); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%;
  display: grid; place-items: center; width: 84px; height: 84px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94); color: var(--red-fill);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
}
.video-play svg { width: 34px; height: 34px; margin-left: 4px; fill: currentColor; }
.video-play:hover { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.22); }
.video.is-playing .video-play, .video.is-playing .video-caption { display: none; }
.hero-video { height: 100%; min-height: 520px; }
/* Татьяна правее центра кадра — держим лицо и ладони в узкой карточке */
.hero-video img { position: absolute; inset: 0; object-position: 66% 30%; }
.hero-video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 58%, rgba(11, 18, 32, 0.8) 100%);
}
.video.is-playing::after { display: none; }
.hero-side:has(.is-playing) .float { opacity: 0; pointer-events: none; }
.video-caption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 2px; color: #fff; }
.video-caption strong { font-size: 18px; font-weight: 600; }
.video-caption span { font-size: 14px; color: rgba(255, 255, 255, 0.78); }

/* реплики над карточкой видео: выходят за её край, слегка плывут за курсором */
.float {
  position: absolute; z-index: 3; pointer-events: none;
  translate: calc(var(--px, 0) * var(--depth, 0) * 1px) calc(var(--py, 0) * var(--depth, 0) * 1px);
  transition: translate 0.4s var(--ease), opacity 0.3s var(--ease);
}
.float .bubble { animation: bob 6s ease-in-out infinite; }
.float-a { left: -28px; top: 34px; rotate: -5deg; }
.float-b { right: -16px; top: 44%; rotate: 6deg; }
.float-b .bubble { font-size: 22px; padding: 12px 18px; animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fact { display: grid; gap: 6px; align-content: start; padding: 22px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.fact b { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact:nth-child(odd) b { color: var(--red-text); }
.fact:nth-child(even) b { color: var(--blue-text); }
.fact > span { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ── Лента фраз ───────────────────────────────────────── */
.ribbon-wrap { overflow: hidden; padding: 30px 0; margin: -14px 0 -30px; }
.ribbon {
  position: relative; z-index: 2; width: 104%; margin-left: -2%;
  background: var(--red-fill); color: #fff; overflow: hidden; rotate: -1.6deg;
}
.ribbon-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-group { display: flex; align-items: center; gap: 26px; padding: 15px 26px 15px 0; font-size: clamp(18px, 1.9vw, 24px); font-weight: 500; white-space: nowrap; }
.ribbon-group i { font-style: normal; font-size: 0.7em; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Курсы ────────────────────────────────────────────── */
.course-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.segmented button {
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 500;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 33, 61, 0.08); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  font-size: 14px; color: var(--ink); transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--page); border-color: var(--ink); }
.chip-count { min-width: 20px; padding: 1px 6px; border-radius: 999px; font-size: 12px; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--muted); text-align: center; }
.chip.is-active .chip-count { background: rgba(255, 255, 255, 0.18); color: inherit; }
.chip[disabled] { opacity: 0.45; cursor: default; }

.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course {
  --tone: var(--red-fill);
  --tone-soft: var(--red-soft);
  --tone-text: var(--red-text);
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform 0.35s var(--spring), border-color 0.3s var(--ease);
}
/* строки карточек в одном ряду выровнены: цены, параметры и кнопки на одной высоте */
@supports (grid-template-rows: subgrid) {
  .course { display: grid; grid-template-rows: subgrid; grid-row: span 7; row-gap: 14px; }
  .course > .btn { align-self: end; }
  .course h3 { align-self: end; }
  .course-help { display: flex; }
}
.course:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.course[hidden] { display: none; }
/* подсветка рамки под курсором — в цвете карточки */
.course::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), var(--tone), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.course:hover::before { opacity: 1; }
.tone-blue { --tone: var(--blue); --tone-soft: var(--blue-soft); --tone-text: var(--blue-text); }
.tone-navy { --tone: var(--navy-2); --tone-soft: var(--surface-2); --tone-text: var(--ink); }
@media (prefers-color-scheme: dark) { .tone-navy { --tone: #4b6aa3; } }
.course-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.course-top .tag:first-of-type { margin-left: auto; }
.course-icon { position: relative; width: 52px; height: 52px; border-radius: var(--r-in); background: var(--tone); flex: none; }
.course-icon::after {
  content: ""; position: absolute; inset: 11px; background: #fff;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.course h3 { font-size: 24px; }
.course-desc { font-size: 15px; color: var(--muted); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; align-content: start; column-gap: 10px; row-gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.price s { order: 2; font-size: 15px; color: var(--muted); }
.price b { order: 1; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--tone-text); font-variant-numeric: tabular-nums; }
.price span { order: 3; width: 100%; font-size: 13px; color: var(--muted); }
.specs { display: grid; align-content: start; gap: 8px; margin: 0; }
.specs div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 14px; line-height: 1.45; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.extras { display: grid; align-content: start; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.extras li { display: flex; gap: 8px; align-items: flex-start; }
.extras li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background-color: var(--tone-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23d3393b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tone-blue .extras li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%233a619b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tone-navy .extras li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%238a94a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.course .btn { align-self: stretch; }
.course-help {
  position: relative; overflow: hidden; isolation: isolate; flex-direction: column; justify-content: flex-end; gap: 14px;
  color: #fff; border: 0;
  background:
    radial-gradient(90% 70% at 100% 100%, rgba(233, 72, 73, 0.85), transparent 65%),
    linear-gradient(150deg, #14213d 0%, #1d3260 55%, #3a619b 100%);
}
.course-help::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: 0.1; mix-blend-mode: overlay; }
.course-help::before { display: none; }
.course-help-bubble {
  position: absolute; right: 22px; top: 22px; display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: var(--bubble-out); background: #fff; color: var(--red-fill); font-size: 34px; font-weight: 700; rotate: 8deg;
}
.course-help h3 { font-size: 26px; max-width: 12em; }
.course-help p { color: rgba(255, 255, 255, 0.82); }
.courses-empty { margin-top: 16px; color: var(--muted); }

/* ── Карусель с «подглядыванием» (спека Яндекс Афиши: без точек, стрелки 60px поверх края) ── */
.carousel { position: relative; }
.carousel-track { scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -3px; }
.carousel-arrow {
  position: absolute; top: 50%; z-index: 5; translate: 0 -50%;
  display: none; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 50%;
  background: var(--arrow); color: var(--on-arrow);
  opacity: 0; transition: opacity 0.3s var(--ease), transform 0.15s var(--ease);
}
.carousel-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-arrow:active { transform: scale(0.94); }
.carousel-prev { left: -30px; }
.carousel-next { right: -30px; }
.carousel.is-scrollable .carousel-arrow { display: grid; }
.carousel.is-scrollable:hover .carousel-arrow, .carousel-arrow:focus-visible { opacity: 1; }
.carousel-arrow[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .carousel-arrow { display: none !important; } }

/* ── Спикинг-клаб ─────────────────────────────────────── */
.club {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; padding: 16px;
  border-radius: var(--r); color: var(--on-dark);
  background:
    radial-gradient(80% 90% at 100% 100%, rgba(233, 72, 73, 0.9), transparent 60%),
    radial-gradient(70% 80% at 0% 0%, rgba(58, 97, 155, 0.95), transparent 65%),
    #1d3260;
}
.club::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--grain); opacity: 0.1; mix-blend-mode: overlay; }
.club-video { border-radius: var(--r-in); aspect-ratio: 16 / 9; align-self: center; }
.club-bubble { position: absolute; z-index: 3; left: 0; top: 0; translate: -18px -18px; rotate: -6deg; }
.club-body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(16px, 3vw, 40px); }
.club-body h2 { font-size: clamp(30px, 3.6vw, 46px); }
.club-body p { color: var(--on-dark-muted); font-size: 17px; }
.club-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; margin: 0; padding: 0; list-style: none; }
.club-facts li { display: grid; padding: 12px 16px; border-radius: var(--r-in); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.16); }
.club-facts b { font-size: 18px; font-weight: 600; }
.club-facts span { font-size: 13px; color: var(--on-dark-muted); }

/* ── Метод ────────────────────────────────────────────── */
.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; }
.method .card { padding: clamp(24px, 3vw, 36px); }
.method h3 { font-size: 24px; margin-bottom: 16px; }
.method-how {
  grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: var(--navy); color: var(--on-dark); border: 0; position: relative; overflow: hidden; isolation: isolate;
}
.method-how::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 60% at 100% 0%, rgba(233, 72, 73, 0.4), transparent 60%), radial-gradient(80% 70% at 0% 100%, rgba(58, 97, 155, 0.7), transparent 60%); }
.method-how p { color: var(--on-dark-muted); font-size: 17px; }
.chat { display: grid; gap: 10px; }
.chat-msg {
  width: fit-content; max-width: 82%; padding: 12px 18px; border-radius: var(--bubble); font-size: 18px; font-weight: 500;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.14);
}
.chat-out { justify-self: end; border-radius: var(--bubble-out); background: var(--red-fill); border-color: transparent; }
.chat-typing {
  justify-self: end; display: inline-flex; gap: 5px; padding: 15px 18px; border-radius: var(--bubble-out);
  background: rgba(211, 57, 59, 0.55);
}
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: typing 1.2s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
/* сообщения появляются по очереди, когда блок доехал до экрана */
.js .chat-msg, .js .chat-typing { opacity: 0; }
.chat.is-in .chat-msg { animation: msg-in 0.55s var(--spring) both; animation-delay: calc(var(--n) * 0.8s + 0.2s); }
.chat.is-in .chat-typing { animation: msg-in 0.45s var(--spring) 2.8s both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(12px) scale(0.94); } to { opacity: 1; transform: none; } }
.numbered { counter-reset: n; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: baseline; font-size: 16px; }
.numbered li::before { content: counter(n, decimal-leading-zero); font-weight: 600; font-size: 14px; color: var(--red-text); font-variant-numeric: tabular-nums; }
.instead { display: grid; margin: 0; padding: 0; list-style: none; }
.instead li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.instead li:last-child { border-bottom: 0; padding-bottom: 0; }
.instead b { font-weight: 500; }
.instead s { color: var(--muted); font-size: 14px; }
.instead s::before { content: "вместо "; text-decoration: none; display: inline-block; margin-right: 4px; color: var(--muted); }

/* ── Лестница уровней ─────────────────────────────────── */
.ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 12px; margin: 0; padding: 0; list-style: none; }
.step {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  min-height: calc(230px + var(--i) * 48px); padding: 20px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform 0.35s var(--spring);
}
.step:hover { transform: translateY(-4px); }
.step-code {
  font-size: 34px; font-weight: 650; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(120deg, var(--blue) 0%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 16px; }
.step-words { font-size: 13px; font-weight: 500; color: var(--red-text); }
.step p:last-of-type { font-size: 13px; line-height: 1.5; color: var(--muted); }
/* «столбик» ступени растёт снизу, когда лестница доехала до экрана */
.step::after {
  content: ""; flex: 1 1 auto; min-height: 16px; margin: 10px -8px -8px; border-radius: var(--r-in);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 6px, transparent 6px 14px),
    linear-gradient(180deg, color-mix(in srgb, var(--blue) calc(18% + var(--i) * 4%), transparent) 0%,
      color-mix(in srgb, var(--red) calc(22% + var(--i) * 8%), transparent) 100%);
  transform-origin: bottom;
  transition: transform 0.9s var(--ease) calc(var(--i) * 110ms + 150ms);
}
.js .ladder:not(.is-in) .step::after { transform: scaleY(0); }

/* ── Преподаватель ────────────────────────────────────── */
.teacher { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.teacher-photo { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; }
.teacher-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.teacher-badge { position: absolute; left: 20px; bottom: 20px; rotate: -3deg; font-size: 15px; }
.teacher-text { display: grid; gap: 16px; }
.teacher-text > p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 58ch; }
.pull {
  position: relative; margin: 8px 0; padding-left: 28px;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
}
.pull::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--red), var(--blue)); }
.certs { margin-top: 24px; container-type: inline-size; }
.certs-title { font-size: 15px; font-weight: 500; }
.certs-title span { font-weight: 400; color: var(--muted); }
/* сертификаты веером: раскрываются под курсором, выбранный выходит вперёд.
   Размеры — в долях ширины колонки (cqi), веер всегда помещается: 1,5 × разлёт + полкарточки < 50 % */
.cert-fan {
  --cw: clamp(124px, 40cqi, 236px); --spread: min(104px, 17cqi); --tilt: 6deg;
  position: relative; height: calc(var(--cw) * 0.75 + 104px); margin-top: 8px;
}
.cert-fan:hover, .cert-fan:focus-within { --spread: min(124px, 19cqi); --tilt: 3deg; }
.cert {
  position: absolute; left: 50%; top: 30px; width: var(--cw); margin-left: calc(var(--cw) / -2); padding: 0; overflow: hidden; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-in); background: var(--surface);
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 14px 30px -14px rgba(20, 33, 61, 0.35);
  transform: translateX(calc(var(--k) * var(--spread))) translateY(calc(var(--k) * var(--k) * 6px)) rotate(calc(var(--k) * var(--tilt)));
  transition: transform 0.5s var(--spring);
}
.cert:hover, .cert:focus-visible { z-index: 5; transform: translateX(calc(var(--k) * var(--spread))) translateY(-16px) rotate(0deg); }
.cert img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: #fff; }
.cert span { display: grid; padding: 10px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.cert b { font-size: 14px; font-weight: 600; color: var(--ink); }

/* ── Отзывы: реплики в карусели ───────────────────────── */
.carousel-track.reviews {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  /* лента выходит за контейнер до краёв экрана, первая карточка — по сетке */
  --bleed: max(var(--gutter), calc((100% - var(--container)) / 2));
  padding: 8px var(--bleed) 12px; scroll-padding-inline: var(--bleed);
}
.carousel-reviews .carousel-prev { left: max(6px, calc(max(var(--gutter), (100% - var(--container)) / 2) - 30px)); }
.carousel-reviews .carousel-next { right: max(6px, calc(max(var(--gutter), (100% - var(--container)) / 2) - 30px)); }
.review { flex: 0 0 min(400px, 84%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.review-bubble {
  flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--bubble);
}
.review blockquote { margin: 0; font-size: 15px; line-height: 1.65; }
.review blockquote::before { content: "“"; display: block; height: 30px; font-size: 60px; line-height: 1; font-weight: 700; color: var(--red); }
.review-result { margin-top: auto; padding: 12px 14px; border-radius: var(--r-in); background: var(--red-soft); font-size: 14px; }
.review-result b { color: var(--red-text); font-weight: 600; }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-left: 4px; }
.review figcaption > span:not(.avatar) { display: grid; font-size: 13px; color: var(--muted); line-height: 1.35; }
.review figcaption b { font-size: 15px; color: var(--ink); font-weight: 600; }
.avatar { width: 44px; height: 44px; flex: none; border-radius: var(--r-in); object-fit: cover; }
.avatar-letter { display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); font-weight: 600; }
.review-src {
  margin-left: auto; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  font-size: 12px; color: var(--muted); transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.review-src:hover { color: var(--ink); border-color: var(--ink); }

/* ── Как начать и запись ──────────────────────────────── */
.signup { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.signup-info { display: grid; gap: 24px; }
.steps { counter-reset: s; display: grid; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center;
  padding: 18px 22px 18px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--bubble);
  background: var(--red-fill); color: #fff; font-size: 22px; font-weight: 600;
}
.steps li:nth-child(2)::before { background: var(--blue); }
.steps li:nth-child(3)::before { background: var(--navy-2); }
.steps b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 15px; }
.steps a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; white-space: nowrap; }
.center { display: grid; gap: 16px; margin-top: 8px; }
.center-title { font-size: 18px; font-weight: 600; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 0; padding: 0; list-style: none; }
.perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; }
.perk-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r-in); background: var(--surface); border: 1px solid var(--line); color: var(--red-text); }
.perk-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prices div { display: grid; gap: 4px; padding: 18px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.prices span { font-size: 14px; color: var(--muted); }
.prices b { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.signup > .lead-form { position: sticky; top: calc(var(--header-h) + 24px); }

.form { display: grid; gap: 16px; }
.lead-form.card { padding: clamp(24px, 3vw, 36px); }
.form h3 { font-size: 26px; }
.form-lead { color: var(--muted); font-size: 15px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.field i { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-in);
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 16px; font-weight: 400;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.field input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent); }
.field.is-invalid input { border-color: var(--red-fill); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.field-error { font-size: 13px; font-weight: 400; color: var(--red-text); }
.form .btn { width: 100%; }
.form-legal { font-size: 12px; color: var(--muted); }
.form-status { padding: 14px 16px; border-radius: var(--r-in); background: var(--blue-soft); font-size: 15px; line-height: 1.55; }
.form-status a:not(.btn) { display: inline-block; margin-top: 4px; font-weight: 500; color: inherit; text-underline-offset: 3px; overflow-wrap: anywhere; }
.form-status .btn { margin-top: 12px; }
.form.is-sent .field, .form.is-sent .check, .form.is-sent .btn[type="submit"], .form.is-sent .form-legal { display: none; }

/* ── Контакты ─────────────────────────────────────────── */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
.contacts-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3.5vw, 44px); }
.contacts-card h2 { font-size: clamp(28px, 3.2vw, 40px); }
.contacts-place { color: var(--muted); font-size: 17px; }
.contacts-list { display: grid; margin: 8px 0; padding: 0; list-style: none; }
.contacts-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contacts-list span { color: var(--muted); }
.contacts-list a { text-decoration: none; overflow-wrap: anywhere; }
.contacts-list a:hover { color: var(--red-text); }
.contacts-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }
.map { position: relative; height: 100%; min-height: 460px; overflow: hidden; background: var(--surface-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }

/* ── Подвал ───────────────────────────────────────────── */
.footer { position: relative; overflow: hidden; background: #0b1220; color: var(--on-dark); padding: 72px 0 0; }
.footer-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.footer-brand p { color: var(--on-dark-muted); font-size: 14px; max-width: 30ch; }
.footer-nav, .footer-contacts { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer a:not(.btn) { text-decoration: none; color: var(--on-dark); }
.footer a:not(.btn):hover { color: #ffb199; }
.footer-contacts span { color: var(--on-dark-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding-top: 24px; font-size: 13px; color: var(--on-dark-muted); }
.footer .by {
  background: var(--flow-dark); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: brand-flow 5s ease-in-out infinite;
}
.footer .by:hover { color: transparent; }
/* огромная надпись внизу — тот же перелив, срезана краем страницы */
.footer-giant {
  margin: 28px 0 0; text-align: center; white-space: nowrap; user-select: none;
  font-size: clamp(46px, 12.6vw, 190px); font-weight: 650; line-height: 0.78; letter-spacing: -0.055em;
  background: var(--flow-dark); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: brand-flow 7s ease-in-out infinite;
  translate: 0 0.12em; opacity: 0.95;
}

/* ── Нижняя панель на телефоне ───────────────────────── */
.sticky-cta { display: none; }

/* ── Шторка записи: справа на компьютере, снизу на телефоне ── */
.sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
  width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: transparent; color: var(--ink); overflow: visible;
}
.sheet::backdrop { background: rgba(11, 18, 32, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet .form {
  position: relative; height: 100%; overflow-y: auto; align-content: start;
  padding: 44px 32px 32px; border-radius: var(--r) 0 0 var(--r); background: var(--surface);
}
.sheet[open] .form { animation: sheet-in-x 0.45s var(--ease); }
.sheet[open]::backdrop { animation: fade-in 0.3s var(--ease); }
.sheet.is-closing .form { animation: sheet-out-x 0.28s var(--ease) forwards; }
.sheet.is-closing::backdrop { animation: fade-out 0.28s var(--ease) forwards; }
@keyframes sheet-in-x { from { transform: translateX(100%); } }
@keyframes sheet-out-x { to { transform: translateX(100%); } }
@keyframes sheet-in-y { from { transform: translateY(100%); } }
@keyframes sheet-out-y { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.sheet-handle { display: none; }
.sheet h3 { padding-right: 44px; }
.sheet-course {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-in);
  background: var(--surface-2); border: 1px solid var(--line);
}
.sheet-course[hidden] { display: none; }
.sheet-course .course-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--red-fill); }
.sheet-course .course-icon::after { inset: 9px; }
.sheet-course-text { display: grid; line-height: 1.35; }
.sheet-course-text b { font-size: 16px; font-weight: 600; }
.sheet-course-text small { font-size: 13px; color: var(--muted); }
.modal-close {
  position: absolute; right: 16px; top: 16px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--surface-2); font-size: 24px; line-height: 1; color: var(--ink); transition: background-color 0.2s var(--ease);
}
.modal-close:hover { background: var(--line-strong); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.lightbox::backdrop { background: rgba(11, 18, 32, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { max-width: min(92vw, 900px); max-height: 84vh; width: auto; border-radius: var(--r-in); background: #fff; }
.lightbox[open] img { animation: pop 0.4s var(--spring); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
.lightbox-caption { margin-top: 12px; text-align: center; color: #fff; font-size: 14px; }
.lightbox .modal-close { position: fixed; right: 16px; top: 16px; background: rgba(255, 255, 255, 0.92); color: var(--navy); }

/* ── Появление при прокрутке (лесенкой внутри групп) ─── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.7s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Согласие в форме, ссылки-кнопки, панель cookie, карта по согласию ─── */
.btn-ink { background: var(--ink); color: var(--page); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 82%, var(--red-fill)); }

.linklike {
  padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer;
}
.linklike:hover { color: var(--red-text); }

.check { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.check-box {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.check-box::after {
  content: ""; width: 12px; height: 7px; margin-top: -3px;
  border: 2.5px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(0); transition: transform 0.25s var(--spring);
}
.check input:checked + .check-box { background: var(--red-fill); border-color: var(--red-fill); }
.check input:checked + .check-box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check-box { outline: 3px solid color-mix(in srgb, var(--blue) 70%, white); outline-offset: 2px; }
.check.is-invalid .check-box { border-color: var(--red-fill); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.check-text a, .form-legal a { color: inherit; font-weight: 500; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.check-text a:hover, .form-legal a:hover { color: var(--red-text); }
.check .field-error { grid-column: 2; }

.cookie-panel {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: grid; gap: 14px; width: min(440px, calc(100vw - 32px)); padding: 22px;
  border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-float); animation: cookie-in 0.5s var(--ease) both;
}
.cookie-panel[hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }
.cookie-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.cookie-text { font-size: 14px; line-height: 1.55; color: var(--muted); }
.cookie-text a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-actions .btn { min-height: 48px; padding: 0 12px; white-space: normal; text-align: center; }
/* пока панель открыта, нижняя полоса записи на телефоне не лезет поверх неё */
.has-cookie-panel .sticky-cta { visibility: hidden; }

.map-consent {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 28px; text-align: center;
  background:
    radial-gradient(circle at 22% 28%, color-mix(in srgb, var(--red) 14%, transparent), transparent 46%),
    radial-gradient(circle at 78% 72%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 50%),
    var(--surface-2);
}
.map-consent p { max-width: 38ch; font-size: 15px; line-height: 1.5; color: var(--muted); }
.map-consent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.map.is-loading .map-consent { visibility: hidden; }
html:not(.js) [data-map-show] { display: none; }

.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; padding-top: 22px; font-size: 13px; color: var(--on-dark-muted); }
.footer-docs { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-docs a:not(.btn), .footer-docs .linklike { color: var(--on-dark-muted); text-decoration: none; font-size: 13px; }
.footer-docs a:not(.btn):hover, .footer-docs .linklike:hover { color: #ffb199; }
.footer-operator { max-width: 44ch; }

/* ── Страницы документов ──────────────────────────────── */
.doc { padding-block: clamp(24px, 3.5vw, 48px) var(--section); }
.doc-wrap { display: grid; gap: clamp(24px, 3vw, 40px); }
.doc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.doc-crumbs a { text-decoration: none; }
.doc-crumbs a:hover { color: var(--red-text); }
.doc-head { display: grid; gap: 14px; max-width: 840px; }
.doc-head h1 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.03em; }
.doc-meta { font-size: 15px; color: var(--muted); }

.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.doc-layout-single { grid-template-columns: minmax(0, 760px); }
.doc-toc {
  position: sticky; top: calc(var(--header-h) + 24px); padding: 18px 18px 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 14px;
}
.doc-toc summary { padding-bottom: 8px; font-weight: 600; list-style: none; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.doc-toc a { display: block; margin-inline: -8px; padding: 6px 8px; border-radius: 10px; color: var(--muted); line-height: 1.35; text-decoration: none; }
.doc-toc a:hover { background: var(--surface-2); color: var(--ink); }

.doc-body { max-width: 760px; font-size: 16px; line-height: 1.65; }
.doc-body > * + * { margin-top: 14px; }
.doc-body h2 { margin-top: 44px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body ul, .doc-body ol { display: grid; gap: 8px; margin-bottom: 0; padding-left: 22px; }
.doc-body li { text-wrap: pretty; }
.doc-body a { color: var(--blue-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc-body a:hover { color: var(--red-text); }
.doc-body a.btn { color: #fff; text-decoration: none; }
.doc-body code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font: 500 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.doc-note { padding: 14px 18px; border-radius: var(--r-in); background: var(--blue-soft); font-size: 15px; line-height: 1.55; }

.doc-card { display: grid; gap: 10px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.doc-card-label { font-size: 13px; color: var(--muted); }
.doc-card-name { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.doc-dl { display: grid; grid-template-columns: minmax(130px, 210px) minmax(0, 1fr); margin: 6px 0 0; }
.doc-dl dt, .doc-dl dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.doc-dl dt { padding-right: 16px; font-size: 14px; color: var(--muted); }
.doc-dl dd { overflow-wrap: anywhere; }
.doc-dl dt:last-of-type, .doc-dl dd:last-of-type { border-bottom: 0; }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.doc-actions-note { font-size: 14px; color: var(--muted); }

.doc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.doc-body th { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); text-align: left; font-weight: 600; }
.doc-body td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-body tr:last-child td { border-bottom: 0; }
.doc-body td small { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

.doc-others { display: grid; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc-others-title { font-size: 14px; color: var(--muted); }
.doc-others ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.doc-others a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color 0.2s var(--ease);
}
.doc-others a:hover { border-color: var(--ink); }

@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; }
  .doc-toc summary { position: relative; padding-right: 28px; cursor: pointer; }
  .doc-toc summary::after { content: "+"; position: absolute; right: 2px; top: -2px; font-size: 22px; font-weight: 400; color: var(--muted); }
  .doc-toc[open] summary::after { content: "–"; }
}
@media (min-width: 961px) {
  .doc-toc summary { pointer-events: none; }
}

@media (max-width: 720px) {
  .cookie-panel { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; padding: 18px; }
  .cookie-actions { grid-template-columns: 1fr; }
  .doc-body { font-size: 15px; }
  .doc-dl { grid-template-columns: minmax(0, 1fr); }
  .doc-dl dt { padding: 10px 0 0; border-bottom: 0; }
  .doc-dl dd { padding: 2px 0 10px; }
  /* таблицы раскладываются в карточки: подпись столбца — над значением */
  .doc-table-wrap { overflow: visible; border: 0; background: none; }
  .doc-body table, .doc-body tbody, .doc-body tr, .doc-body td { display: block; }
  .doc-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc-body tr { margin-bottom: 12px; padding: 4px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .doc-body td { padding: 12px 0; }
  .doc-body tr:last-child td { border-bottom: 1px solid var(--line); }
  .doc-body td:last-child, .doc-body tr:last-child td:last-child { border-bottom: 0; }
  .doc-body td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
  .doc-body td:empty { display: none; }
  .doc-others a { min-height: 48px; }
}

@media print {
  .header, .footer, .cookie-panel, .skip, .sticky-cta, .doc-toc, .doc-others, .doc-crumbs, .doc-actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .doc { padding: 0; }
  .doc-layout { display: block; }
  .doc-body, .doc-head { max-width: none; }
  .doc-table-wrap { overflow: visible; border: 0; }
  .doc-body a { color: #000; text-decoration: underline; }
  .doc-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .doc-body h2 { break-after: avoid; }
  .doc-body tr { break-inside: avoid; }
}

/* ── Адаптив ──────────────────────────────────────────── */
/* шапка: логотип с подписью «англо-китайский центр» (239), меню (598), телефон и кнопка (292) и два зазора = ~1170 px;
   контейнер при полосе прокрутки на 1261 px — 1198, запас ~28 px; ниже 1260 меню уходит в бургер */
@media (max-width: 1260px) {
  .nav { display: none; }
  .burger { display: inline-block; }
}

@media (max-width: 1140px) {
  .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .step { min-height: 0; }
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-courses .carousel-prev { left: -12px; }
  .carousel-courses .carousel-next { right: -12px; }
}

@media (max-width: 960px) {
  :root { --header-h: 74px; }
  .brand-logo { width: 80px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-video { min-height: 0; height: auto; aspect-ratio: 16 / 11; }
  .float-a { left: 14px; top: -16px; }
  .float-b { right: 14px; top: auto; bottom: 72px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club, .method, .teacher, .signup, .contacts { grid-template-columns: minmax(0, 1fr); }
  .method-how { grid-row: auto; }
  .teacher-photo { position: relative; top: 0; max-width: 420px; }
  .signup > .lead-form { position: static; }
  .map { height: 360px; min-height: 0; }
  .footer-row { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 70px; }
  body { font-size: 15px; }
  .header-phone { display: none; }
  .header-row { gap: 12px; }
  .brand-logo { width: 68px; }
  .hero-main { padding: 28px 22px; gap: 20px; }
  .hero-cta { gap: 4px 16px; }
  .hero-cta .btn { width: 100%; }
  .proof { margin-top: 4px; }
  .proof-faces img:nth-child(n + 4) { display: none; }
  .proof-text { font-size: 0; }
  .proof-text b { font-size: 14px; }
  .hero-video { aspect-ratio: 4 / 3.6; }
  .bubble { font-size: 15px; padding: 10px 14px; }
  .float-b .bubble { font-size: 18px; }
  .video-play { width: 68px; height: 68px; }
  .fact { padding: 18px; }
  .ribbon-group { padding-block: 11px; gap: 18px; padding-right: 18px; }

  .course-controls { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segmented button { min-width: 0; padding: 0 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  /* курсы на телефоне — лента с «подглядыванием» вместо простыни в 5 000 px */
  .courses {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  }
  .course { flex: 0 0 84%; scroll-snap-align: start; display: flex; }
  .course h3 { align-self: auto; }
  .course .btn { margin-top: auto; }
  .course-help { min-height: 420px; }
  .course:hover { transform: none; }

  .review { flex-basis: 86%; }
  .carousel-track.reviews { gap: 12px; }
  .club { padding: 10px; }
  .club-bubble { translate: 6px -14px; }
  .club-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .club-facts li { padding: 10px 12px; }
  .club-body .btn { width: 100%; }
  .ladder { grid-template-columns: 1fr; gap: 10px; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; row-gap: 4px; padding: 18px; }
  .step-code { grid-row: span 3; font-size: 30px; }
  .step p:last-of-type { margin-top: 2px; }
  .step::after {
    grid-column: 1 / -1; min-height: 6px; height: 6px; margin: 10px 0 0; border-radius: 6px;
    width: calc((var(--i) + 1) / 6 * 100%); background: linear-gradient(90deg, var(--blue), var(--red));
    transform-origin: left;
  }
  .js .ladder:not(.is-in) .step::after { transform: scaleX(0); }
  .cert span { padding: 8px 10px; font-size: 12px; }
  .cert b { font-size: 13px; }
  .perks { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 48px 1fr; gap: 14px; padding: 16px; }
  .steps li::before { width: 48px; height: 48px; font-size: 19px; }
  .prices b { font-size: 24px; }
  .contacts-cta .btn { width: 100%; }
  .footer-row { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: flex-start; }
  .footer-giant { margin-bottom: 72px; }

  .sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px;
    border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--line); box-shadow: var(--shadow-float);
    translate: 0 140%; transition: translate 0.35s var(--ease);
  }
  .sticky-cta.is-visible { translate: 0 0; }
  .sticky-cta .btn { min-height: 46px; }

  .sheet { inset: auto 0 0 0; width: 100%; height: auto; max-height: 92dvh; }
  .sheet .form { height: auto; max-height: 92dvh; padding: 30px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: var(--r) var(--r) 0 0; }
  .sheet[open] .form { animation-name: sheet-in-y; }
  .sheet.is-closing .form { animation-name: sheet-out-y; }
  .sheet-handle { display: block; position: absolute; left: 50%; top: 10px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-strong); }
}

@media (max-width: 480px) {
  .brand-caption { display: none; }
}

@media (max-width: 420px) {
  .header-actions .btn-sm { padding: 0 14px; }
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 0 16px; font-size: 15px; }
  .facts { gap: 10px; }
  .fact { padding: 16px 14px; }
  .fact b { font-size: 24px; }
  .fact > span { font-size: 13px; }
  .prices { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .review-bubble { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .chat-msg, .js .chat-typing { opacity: 1; transform: none; }
  .js .ladder:not(.is-in) .step::after { transform: none; }
}
