/* ==========================================================================
   air.css - «воздушный» премиальный слой для лендингов Expert Letters
   Подключается ПОСЛЕ встроенных стилей страницы и переопределяет их.
   Один файл на оба лендинга (landing.html и experts.html).

   Где что менять:
   1. Шрифты ........ --font-body, --font-serif (блок ТОКЕНЫ)
   2. Цвета ......... блок ТОКЕНЫ
   3. Воздух ........ --space-section (отступы между блоками), --gutter (поля)
   4. Размеры текста  блок ТИПОГРАФИКА
   ========================================================================== */

/* ---------- ШРИФТЫ (лежат в assets/fonts, интернет не нужен) ---------- */
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../assets/fonts/onest-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../assets/fonts/onest-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- ТОКЕНЫ ---------- */
:root {
  --font-body: 'Onest', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --bg: #FAFBFD;
  --bg-elevated: #FFFFFF;
  --bg-soft: #F1F4F9;
  --ink: #0B1220;
  --text: #0B1220;
  --text-secondary: #4F5A6E;
  --text-muted: #6B7689;
  --accent: #2563EB;
  --primary: #1E40AF;
  --hair: rgba(15, 23, 42, .09);
  --hair-strong: rgba(15, 23, 42, .16);
  --border: rgba(15, 23, 42, .09);
  --border-strong: rgba(15, 23, 42, .16);

  --radius: 28px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .03), 0 18px 50px -24px rgba(11, 18, 32, .12);
  --shadow-lg: 0 2px 4px rgba(11, 18, 32, .03), 0 40px 90px -36px rgba(11, 18, 32, .22);
  --header-h: 84px;

  --gutter: clamp(24px, 4vw, 56px);                 /* боковые поля */
  --space-section: clamp(88px, 11vw, 168px);        /* воздух между блоками */
  --space-head: clamp(56px, 7vw, 104px);             /* воздух под заголовком блока */
  --container: 1200px;
}

/* ---------- ОСНОВА ---------- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.003em;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(37, 99, 235, .16); }
.ln { display: inline; }

/* ---------- ШАПКА ---------- */
.header {
  background: rgba(250, 251, 253, .74);
  -webkit-backdrop-filter: saturate(1.5) blur(22px);
  backdrop-filter: saturate(1.5) blur(22px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.header.at-top { background: rgba(250, 251, 253, 0); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-inner { max-width: 1320px; padding: 0 var(--gutter); }
.logo-text { font-family: var(--font-body); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.logo-text span { color: var(--accent); font-weight: 500; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(37, 99, 235, .5); }
.nav { gap: clamp(22px, 2.6vw, 42px); }
.nav a { font-size: 14px; font-weight: 400; color: var(--text-secondary); letter-spacing: 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { gap: 8px; }

/* ---------- КНОПКИ ---------- */
.btn { border-radius: 999px; font-family: var(--font-body); font-weight: 500; font-size: 14.5px; padding: 12px 24px; letter-spacing: 0; }
.btn-lg { padding: 18px 36px; font-size: 15.5px; border-radius: 999px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 34px -14px rgba(11, 18, 32, .55); }
.btn-primary:hover { background: #17233F; transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(11, 18, 32, .55); }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { background: rgba(15, 23, 42, .05); color: var(--ink); }
.btn-outline { background: transparent; border: 1px solid var(--hair-strong); box-shadow: none; color: var(--ink); }
.btn-outline:hover { background: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.header .btn-primary { padding: 11px 22px; box-shadow: none; }
.link-quiet { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; color: var(--ink); padding: 6px 0; border-bottom: 1px solid var(--hair-strong); transition: border-color .25s, gap .25s; }
.link-quiet:hover { border-color: var(--ink); gap: 14px; }

/* ---------- ТИПОГРАФИКА БЛОКОВ ---------- */
.section { max-width: var(--container); padding: var(--space-section) var(--gutter); }
.section-header { max-width: 820px; margin: 0 auto var(--space-head); }
.section-header h2,
.final h2 {
  font-family: var(--font-body);
  font-size: clamp(34px, 4.3vw, 62px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.section-header h2 .ln, .final h2 .ln { display: block; }
.section-header p { font-size: clamp(17px, 1.4vw, 19px); font-weight: 300; line-height: 1.75; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
h1 em, h2 em, .accent { font-style: normal; font-weight: inherit; color: var(--accent); }

/* ---------- ПЕРВЫЙ ЭКРАН ---------- */
.hero { padding: 0; background: var(--bg); overflow: hidden; }
.aurora { opacity: .5; }
.hero-first { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-first::after {            /* мягкая «дымка» под текстом: сцена остаётся видимой справа */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(250, 251, 253, .95) 30%, rgba(250, 251, 253, .6) 47%, rgba(250, 251, 253, 0) 66%);
}
.hero-stage { position: relative; z-index: 2; width: 100%; max-width: 1320px; margin: 0 auto; padding: calc(var(--header-h) + 24px) var(--gutter) 120px; }
.hero-copy { max-width: 680px; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 40px; font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .7; }
.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(44px, 5vw, 78px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 40px;
  max-width: none;
  text-align: left;
  text-wrap: normal;
}
.hero h1 .ln { display: block; }
.hero h1 .ln.accent, .hero h1 .accent { font-style: normal; font-weight: 300; color: var(--accent); background: none; -webkit-text-fill-color: currentColor; }
.hero-lead { font-size: clamp(17px, 1.35vw, 20px); font-weight: 300; line-height: 1.75; color: var(--text-secondary); max-width: 520px; margin: 0 0 52px; text-align: left; }
.hero-lead span { display: inline; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 36px; }
.cta-note { display: block; margin-top: 32px; font-size: 14px; font-weight: 300; color: var(--text-muted); }
.scroll-hint { position: absolute; left: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); bottom: 36px; z-index: 2; display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.scroll-hint i { display: block; width: 1px; height: 48px; background: linear-gradient(var(--ink), transparent); opacity: .35; transform-origin: top; animation: air-scroll 2.6s ease-in-out infinite; }
@keyframes air-scroll { 0%, 100% { transform: scaleY(.4); opacity: .15; } 50% { transform: scaleY(1); opacity: .45; } }

/* цифры и логотипы */
.hero-meta { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.hero-stats {
  max-width: none; margin: 0; padding: clamp(48px, 6vw, 80px) 0;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-stat { text-align: left; padding: 0 clamp(20px, 4vw, 64px); }
.hero-stat:first-child { padding-left: 0; }
.hero-stat + .hero-stat { border-left: 1px solid var(--hair); }
.hero-stat .value { font-family: var(--font-body); font-size: clamp(52px, 6vw, 92px); font-weight: 200; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.hero-stat .label { margin-top: 18px; font-size: 14px; font-weight: 400; color: var(--text-muted); letter-spacing: .01em; }

.logo-strip-section { background: transparent; border: 0; padding: clamp(80px, 9vw, 128px) 0 clamp(96px, 11vw, 160px); }
.logo-strip-header { max-width: 640px; margin: 0 auto 56px; }
.logo-strip-header h2 { font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.logo-strip-header p { font-size: 15.5px; font-weight: 300; color: var(--text-secondary); }
.logo-strip-header p a { color: var(--ink) !important; font-weight: 500 !important; border-bottom: 1px solid var(--hair-strong); }
.logo-track { gap: 28px; animation-duration: 90s; }
.logo-item { width: 150px; height: 72px; background: transparent; border: 0; border-radius: 0; padding: 0 8px; }
.logo-item img { max-height: 40px; filter: grayscale(1); opacity: .62; mix-blend-mode: multiply; transition: opacity .35s, filter .35s; }
.logo-item:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- СРАВНЕНИЕ «СЕЙЧАС / С EXPERT LETTERS» ---------- */
#compare .section-header { margin-bottom: clamp(48px, 6vw, 88px); }
.cmp { max-width: 1040px; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.cmp-head { padding: 0 0 22px; border-bottom: 1px solid var(--hair-strong); }
.cmp-head div { padding: 0 8px; font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.cmp-head div + div { background: none; color: var(--accent); }
.cmp-row { border-top: 0; border-bottom: 1px solid var(--hair); }
.cmp-old, .cmp-new { padding: clamp(28px, 3.2vw, 44px) 8px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; font-weight: 300; gap: 18px; grid-template-columns: 18px 1fr; background: none; }
.cmp-old { color: var(--text-muted); }
.cmp-old svg { width: 16px; height: 16px; margin-top: 6px; color: #A3ADBF; }
.cmp-new { color: var(--ink); font-weight: 400; border-left: 0; padding-left: 8px; }
.cmp-new svg { width: 16px; height: 16px; margin-top: 6px; color: var(--accent); }
.cmp-t { white-space: normal; }
.cmp-foot { border-top: 0; padding: clamp(64px, 8vw, 112px) 0 0; font-weight: 300; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.15; letter-spacing: -0.035em; color: var(--ink); text-align: center; }

/* ---------- ТЁМНЫЙ БЛОК-ПРИЗЫВ ---------- */
.final { padding: clamp(120px, 16vw, 240px) 0; background: var(--ink); }
.final h2 { color: #fff; font-size: clamp(40px, 5.4vw, 84px); line-height: 1.02; margin-bottom: 56px; }
.final h2 em { color: #8FB0FF; }
.final-inner { max-width: 1000px; padding: 0 var(--gutter); }
.aurora--dark { opacity: .85; }

/* ---------- КАК ЭТО РАБОТАЕТ ---------- */
#how.section { max-width: 1320px; }
#how .section-header h2 .ln { display: block; }
.flow { gap: clamp(40px, 6vw, 96px); }
.step-btn { padding: clamp(24px, 2.6vw, 34px) 0; border-top: 1px solid var(--hair); grid-template-columns: 44px 1fr; gap: 16px; }
.step-n { font-size: 13px; font-weight: 400; letter-spacing: .08em; color: var(--text-muted); padding-top: 8px; }
.step-t { font-family: var(--font-body); font-size: clamp(21px, 1.9vw, 27px); font-weight: 300; letter-spacing: -0.03em; }
.step-d { font-size: 16px; font-weight: 300; line-height: 1.7; }
.step-btn[aria-selected="true"] .step-t { color: var(--ink); font-weight: 400; }
.step-btn[aria-selected="true"] .step-n { color: var(--accent); }
.window { border-radius: 30px; border: 1px solid var(--hair); box-shadow: var(--shadow-lg); }

/* ---------- ВИДЫ ЭКСПЕРТИЗ (редакционный список) ---------- */
.expertise-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); max-width: 1120px; margin: 0 auto; counter-reset: ex; }
.expertise-list span {
  counter-increment: ex; position: relative; display: block;
  padding: 34px 0 34px 56px; border: 0; border-top: 1px solid var(--hair); border-radius: 0;
  background: none; box-shadow: none;
  font-size: clamp(18px, 1.5vw, 21px); font-weight: 300; line-height: 1.4; color: var(--ink); letter-spacing: -0.015em;
  transition: color .3s, padding-left .35s cubic-bezier(.2, .7, .2, 1);
}
.expertise-list span::before { content: counter(ex, decimal-leading-zero); position: absolute; left: 0; top: 39px; font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--accent); }
.expertise-list span:hover { padding-left: 64px; color: var(--accent); }

/* ---------- ТАРИФЫ ---------- */
.pricing-section { background: none; }
.pricing-tabs { background: rgba(15, 23, 42, .05); border-radius: 999px; padding: 5px; margin-bottom: 56px; }
.pricing-tab { border-radius: 999px; font-weight: 500; padding: 11px 26px; }
.pricing-pills { gap: 10px 28px; margin-bottom: 64px !important; }
.pricing-pills span { padding: 0; background: none; border: 0; font-size: 14px; font-weight: 400; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 12px; }
.pricing-pills span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; }
.pricing-grid { gap: 24px; max-width: 1200px; }
.pricing-grid--4 { max-width: 1240px; }
.price-card { padding: clamp(32px, 3vw, 48px) clamp(26px, 2.4vw, 38px); background: #fff; border: 1px solid var(--hair); border-radius: 30px; box-shadow: none; transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s, border-color .45s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.price-name { font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 28px; }
.price-value { font-family: var(--font-body); font-size: clamp(40px, 3.6vw, 56px); font-weight: 200; letter-spacing: -0.05em; line-height: 1.05; margin-bottom: 10px; }
.price-value span { font-size: 15px; font-weight: 300; letter-spacing: 0; }
.price-limit { font-size: 14px; font-weight: 400; color: var(--accent); margin-bottom: 20px; }
.price-desc { font-size: 15px; font-weight: 300; line-height: 1.65; margin-bottom: 28px; }
.price-features { margin-bottom: 36px; }
.price-features li { font-size: 14.5px; font-weight: 300; margin-bottom: 12px; gap: 12px; }
.price-features li svg { width: 15px; height: 15px; margin-top: 4px; }
.price-card .btn { padding: 15px 24px; }
.price-card.featured { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 50px 100px -40px rgba(11, 18, 32, .55); }
.price-card.featured .price-name { color: #9FB3D9; }
.price-card.featured .price-limit { color: #8FB0FF; }
.price-card.featured .price-desc, .price-card.featured .price-features li { color: #C3CDE0; }
.price-card.featured .price-value span { color: #9FB3D9; }
.price-card.featured .price-features li svg { color: #8FB0FF; }
.price-card.featured .btn { background: #fff; color: var(--ink); box-shadow: none; }
.price-card.featured .btn:hover { background: #E8EEFF; }
.price-badge { top: -13px; padding: 6px 16px; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); }
.pricing-note { margin-top: 48px; font-size: 14px; font-weight: 300; }
.pricing-expert-intro p { font-size: 16px; font-weight: 300; }

/* ---------- ОТЗЫВЫ ---------- */
.reviews-grid { grid-template-columns: 1fr; max-width: 940px; margin: 0 auto; gap: clamp(72px, 9vw, 128px); }
.review-card { padding: 0; background: none; border: 0; box-shadow: none; text-align: center; align-items: center; gap: 40px; }
.review-card blockquote { font-weight: 300; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.45; letter-spacing: -0.025em; color: var(--ink); }
.review-card figcaption { justify-content: center; gap: 16px; text-align: left; }
.review-avatar { width: 48px; height: 48px; font-size: 16px; font-weight: 500; }
.review-name { font-size: 15px; font-weight: 500; }
.review-role { font-size: 14px; font-weight: 300; color: var(--text-muted); }

/* ---------- ВОПРОСЫ ---------- */
.faq-list { max-width: 880px; margin: 0 auto; gap: 0; }
.faq-item { background: none; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; }
.faq-item:first-child { border-top: 1px solid var(--hair); }
.faq-item summary { padding: clamp(26px, 3vw, 38px) 0; font-size: clamp(18px, 1.7vw, 23px); font-weight: 300; letter-spacing: -0.02em; border-radius: 0; line-height: 1.4; }
.faq-item summary::after { content: "+"; width: auto; height: auto; border: 0; margin: 0; transform: none; font-size: 30px; font-weight: 200; line-height: 1; color: var(--text-muted); transition: transform .35s cubic-bezier(.2, .7, .2, 1), color .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-answer { padding: 0 0 clamp(28px, 3vw, 40px); max-width: 720px; }
.faq-answer p { font-size: 17px; font-weight: 300; line-height: 1.8; color: var(--text-secondary); }

/* ---------- ПОДВАЛ ---------- */
.footer { background: transparent; border-top: 1px solid var(--hair); padding: clamp(72px, 8vw, 120px) var(--gutter) 40px; }
.footer-inner { max-width: 1320px; gap: 64px; }
.footer h4 { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 22px; }
.footer a { font-weight: 300; }
.footer-brand p { font-weight: 300; color: var(--text-secondary); max-width: 340px; margin-top: 18px; }

/* ---------- ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ: медленнее и мягче ---------- */
.rv { transition-duration: 1.2s, 1.2s; }
.reveal-ready .rv:not(.in) { transform: translateY(32px); }


/* ==========================================================================
   ОТМЕНА «СЛАЙДОВОГО» РЕЖИМА ИЗ ВСТРОЕННЫХ СТИЛЕЙ
   Раньше каждый блок сжимался до высоты экрана (vh-отступы, !important).
   Для просторной вёрстки эти правила отключены.
   ========================================================================== */
.ln { white-space: normal; }
.hero-lead span { white-space: normal; }
.cmp-t { white-space: normal; }

.hero { display: block; min-height: 0; }
main > .section, main > #how.section, main > #compare.section, main > #pricing.section {
  min-height: 0; display: block;
  padding-top: var(--space-section); padding-bottom: var(--space-section);
}
main > .section .section-header,
#how .section-header, #compare .section-header, #pricing .section-header { margin-bottom: var(--space-head) !important; max-width: 820px; }
#how .section-header h2, #compare .section-header h2 { line-height: 1.06; max-width: none; }
#compare.section { max-width: var(--container); }
#compare .cmp { max-width: 1040px; }
.final { min-height: 0 !important; display: block; }
main > .final { padding: clamp(120px, 16vw, 240px) 0; }

.hero-stats { background: none !important; border-color: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero-stats { border-top: 1px solid var(--hair) !important; border-bottom: 1px solid var(--hair) !important; }
.hero .logo-strip-section { background: transparent; border: 0; overflow: hidden; padding: clamp(80px, 9vw, 128px) 0 clamp(96px, 11vw, 160px); }
.hero .logo-strip-header { margin-bottom: 56px; }
.hero .logo-strip-header p { display: block !important; }
#pricing .pricing-pills { display: flex !important; }

.cta-note { margin-top: 32px !important; font-size: 14px; }
.step-btn { padding: clamp(24px, 2.6vw, 34px) 0 !important; }
.step-btn[aria-selected="true"]::before { top: clamp(24px, 2.6vw, 34px); bottom: clamp(24px, 2.6vw, 34px); left: -22px; width: 2px; }
.step-btn .step-d, .step-btn[aria-selected="true"] .step-d { font-size: 16px; line-height: 1.7; margin-top: 10px; }
.step-t { font-size: clamp(21px, 1.9vw, 27px); }
.flow-stage .window { height: clamp(500px, 68vh, 660px); }
.flow { gap: clamp(40px, 6vw, 96px); }

.price-card { padding-top: clamp(32px, 3vw, 48px) !important; padding-bottom: clamp(32px, 3vw, 48px) !important; }
.pricing-tabs { margin-bottom: 56px !important; }
.pricing-cta-wrap { margin-top: 56px !important; }
.price-features { margin-bottom: 36px !important; }
.price-features li { padding-top: 0 !important; padding-bottom: 0 !important; }
.price-value { font-size: clamp(40px, 3.6vw, 56px); }
.price-desc { margin-bottom: 28px; }
.price-limit { margin-bottom: 20px; }

.cmp-old, .cmp-new { font-size: clamp(17px, 1.5vw, 21px); padding-top: clamp(28px, 3.2vw, 44px); padding-bottom: clamp(28px, 3.2vw, 44px); }
.cmp-head div { padding-top: 0; padding-bottom: 0; }
.cmp-foot { padding-top: clamp(64px, 8vw, 112px); padding-bottom: 0; }
.faq-item summary { padding-top: clamp(26px, 3vw, 38px); padding-bottom: clamp(26px, 3vw, 38px); }
.faq-list { gap: 0; }

.price-value span { display: block; margin-top: 6px; }
.pricing-grid--4 .price-value { min-height: calc(clamp(40px, 3.6vw, 56px) * 1.05 + 30px); }

/* ---------- «КАК ЭТО РАБОТАЕТ»: весь блок на одном экране (компьютер) ---------- */
@media (min-width: 901px) and (min-height: 620px) {
  main > #how.section {
    min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
    display: flex; flex-direction: column; justify-content: center;
    padding-top: clamp(20px, 3.5vh, 44px); padding-bottom: clamp(20px, 3.5vh, 44px);
  }
  #how .section-header { margin-bottom: clamp(18px, 3.4vh, 40px) !important; }
  #how .section-header { max-width: 1080px; }
  #how .section-header h2 { font-size: clamp(26px, 4.4vh, 46px); margin-bottom: 0; line-height: 1.08; }
  #how .flow { gap: clamp(32px, 4vw, 64px); align-items: center; }
  #how .step-btn { padding: clamp(9px, 1.7vh, 20px) 0 !important; }
  #how .step-btn[aria-selected="true"]::before { top: clamp(9px, 1.7vh, 20px); bottom: clamp(9px, 1.7vh, 20px); }
  #how .step-t { font-size: clamp(17px, 2.3vh, 23px); }
  #how .step-btn .step-d, #how .step-btn[aria-selected="true"] .step-d { font-size: clamp(13px, 1.6vh, 15px); line-height: 1.5; margin-top: 3px; }
  #how .flow-stage .window { height: clamp(380px, 60vh, 580px); }
}

/* ---------- ПОЯВЛЕНИЕ ТЕКСТА (js/reveal.js) ---------- */
/* заголовки: слова выезжают из-под невидимой линии, строка за строкой */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .05em .16em; margin: 0 -.05em -.16em; }
.wi { display: inline-block; transform: translateY(115%); transition: transform 1.15s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.split-in .wi { transform: none; }
/* абзацы и блоки: мягкое проявление с подъёмом */
.rv-up { opacity: 0; transform: translateY(26px); transition: opacity 1.2s cubic-bezier(.16, 1, .3, 1), transform 1.2s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.rv-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .wi { transform: none; transition: none; }
  .rv-up { opacity: 1; transform: none; transition: none; }
}

/* ---------- ПЛАНШЕТ ---------- */
@media (max-width: 1080px) {
  .hero-first::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(250, 251, 253, .9) 34%, rgba(250, 251, 253, .35) 60%, rgba(250, 251, 253, 0) 80%); }
  .expertise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- ТЕЛЕФОН ---------- */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1080px) {
  :root { --scene-zone: min(96vw, 420px); }
  body { font-size: 16px; }
  .hero-first { align-items: flex-start; min-height: 100svh; }
  .hero-first::after { background: linear-gradient(180deg, var(--bg) 0, var(--bg) calc(100% - var(--scene-zone) - 70px), rgba(250, 251, 253, 0) calc(100% - var(--scene-zone) + 10px)); }
  .hero-stage { padding-top: calc(var(--header-h) + 28px); padding-bottom: calc(var(--scene-zone) + 12px); }
  .eyebrow { margin-bottom: 28px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 56px); margin-bottom: 28px; }
  .hero-lead { font-size: 17px; margin-bottom: 36px; }
  .cta-note { margin-top: 24px; }
  .scroll-hint { display: none; }
  .hero-stats { grid-template-columns: 1fr; padding: 24px 0; }
  .hero-stat { padding: 28px 0 !important; border-left: 0 !important; }
  .hero-stat + .hero-stat { border-top: 1px solid var(--hair); }
  .hero-stat .value { font-size: 56px; }
  .expertise-list { grid-template-columns: 1fr; }
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-old { padding-bottom: 0; }
  .cmp-new { padding-top: 12px; }
  .pricing-grid, .pricing-grid--4 { grid-template-columns: 1fr; }
  .final { padding: 120px 0; }
}

/* ---------- БЕЗ АНИМАЦИЙ ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint i { animation: none; }
  .rv { transition: none !important; }
}

/* ==========================================================================
   ЕДИНЫЕ РАЗМЕРЫ: заголовки и высота блоков (правится здесь, в одном месте)
   --h2-size      размер заголовка ВСЕХ блоков (кроме первого экрана и финала)
   --slide-pad    вертикальный отступ внутри блока
   --slide-gap    расстояние от заголовка до содержимого
   ========================================================================== */
:root {
  --h2-size: clamp(32px, min(4vw, 6vh), 54px);
  --slide-pad: clamp(64px, 10vw, 112px);
  --slide-gap: clamp(32px, 5vw, 56px);
}

main .section .section-header h2,
main #how .section-header h2,
main #compare .section-header h2 {
  font-size: var(--h2-size);
  line-height: 1.08;
  margin-bottom: 0;
}
main .section .section-header,
main #how .section-header,
main #compare .section-header,
main #pricing .section-header {
  margin-bottom: var(--slide-gap) !important;
}
main > .section,
main > #how.section,
main > #compare.section,
main > #pricing.section {
  padding-top: var(--slide-pad);
  padding-bottom: var(--slide-pad);
}

/* компьютер: каждый блок занимает не меньше одного экрана, содержимое по центру */
@media (min-width: 901px) and (min-height: 620px) {
  :root {
    --slide-pad: clamp(24px, 5vh, 64px);
    --slide-gap: clamp(20px, 4.5vh, 48px);
  }
  main > .section,
  main > #how.section,
  main > #compare.section,
  main > #pricing.section {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex; flex-direction: column; justify-content: center;
    padding-top: var(--slide-pad); padding-bottom: var(--slide-pad);
  }
  /* чтобы содержимое помещалось в экран: вертикальные отступы считаем от высоты окна */
  .cmp-old, .cmp-new { padding-top: clamp(14px, 2.4vh, 30px); padding-bottom: clamp(14px, 2.4vh, 30px); }
  .cmp-foot { padding-top: clamp(24px, 5vh, 64px); }
  .reviews-grid { gap: clamp(28px, 6vh, 72px); }
  .faq-item summary { padding-top: clamp(14px, 2.2vh, 26px); padding-bottom: clamp(14px, 2.2vh, 26px); }
  .pricing-tabs { margin-bottom: clamp(20px, 3.5vh, 40px) !important; }
  .pricing-cta-wrap { margin-top: clamp(20px, 3.5vh, 40px) !important; }
  .price-card { padding-top: clamp(22px, 3vh, 36px) !important; padding-bottom: clamp(22px, 3vh, 36px) !important; }
  #how .section-header h2 { font-size: var(--h2-size); }
}

/* финальный блок: тот же заголовок, чуть крупнее; высота как у остальных */
.final h2 { font-size: calc(var(--h2-size) * 1.15); }
@media (min-width: 901px) and (min-height: 620px) {
  main > .final {
    min-height: calc(100svh - var(--header-h));
    display: flex; flex-direction: column; justify-content: center;
    padding-top: var(--slide-pad); padding-bottom: var(--slide-pad);
  }
}

/* ---------- подгонка высоты под один экран (компьютер) ---------- */
@media (min-width: 901px) and (min-height: 620px) {
  main > .final { min-height: calc(100svh - var(--header-h)) !important; display: flex !important; flex-direction: column; justify-content: center; }
  .cmp-old, .cmp-new { padding-top: clamp(10px, 1.8vh, 22px); padding-bottom: clamp(10px, 1.8vh, 22px); }
  .cmp-foot { padding-top: clamp(16px, 3vh, 40px); font-size: clamp(22px, 2.6vw, 38px); }
  #how .flow-stage .window { height: clamp(340px, 52vh, 520px); }
  .faq-item summary { padding-top: clamp(10px, 1.8vh, 20px); padding-bottom: clamp(10px, 1.8vh, 20px); }
  .reviews-grid { gap: clamp(20px, 4vh, 48px); }
  .review-card blockquote { font-size: clamp(20px, 1.9vw, 28px); }
}


/* 3D first, then text — no FOUC of hero copy */
html:not(.hero-text-on) .hero-first .hero-copy,
html:not(.hero-text-on) .hero-first .scroll-hint {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}
html.hero-text-on .hero-first .hero-copy,
html.hero-text-on .hero-first .scroll-hint {
  visibility: visible;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  html:not(.hero-text-on) .hero-first .hero-copy,
  html:not(.hero-text-on) .hero-first .scroll-hint {
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto;
  }
}
