/* ==========================================================================
   Лендинг «Агент по заявкам». Токены — из панели (public/panel/panel.css).
   Порядок: токены → база → типографика → компоненты → навигация →
   первые экраны A/B/C → макеты интерфейса → секции → адаптив.
   ========================================================================== */

/* ---------- шрифты: локальные, без Google Fonts (docs/LEGAL-REVIEW п.13) ---------- */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('fonts/inter-tight-latin.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; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('fonts/inter-tight-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('fonts/inter-latin.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; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  color-scheme: light;
  --bg: #F7F7F8;
  --surface: #FFFFFF;
  --surface-2: #EFEFF2;
  --ink: #0A0A0D;
  --ink-2: #5B5B66;
  --ink-3: #9A9AA5;
  --ink-3t: #6E6E79; /* ink-3 для мелкого текста: контраст ≥ 4.5 */
  --line: rgba(10, 10, 13, .08);
  --line-2: rgba(10, 10, 13, .14);
  --dark: #0A0A0F;
  --on-dark: #F4F4F6;
  --accent: #5B4CFF;
  --accent-bg: #5B4CFF14;
  --accent-bg-2: #5B4CFF24;
  --grad: linear-gradient(135deg, #1B1150 0%, #3B2BD9 38%, #7C5CFF 70%, #C9B8FF 100%);
  --glow: rgba(91, 76, 255, .35);
  --ok: #1F9D67;
  --ok-bg: #1F9D6714;
  --warn: #C77700;
  --warn-bg: #F5B94226;
  --shadow-1: 0 8px 30px rgba(10, 10, 13, .06);
  --shadow-2: 0 24px 70px rgba(10, 10, 13, .10);
  --shadow-glow: 0 40px 100px -30px rgba(91, 76, 255, .35);
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 10px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --gut: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --sec: clamp(96px, 12vw, 176px);
  --tight: 'Inter Tight', Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- типографика ---------- */
h1, h2, h3, .num {
  font-family: var(--tight);
  font-weight: 600;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(44px, 7.4vw, 118px); line-height: .94; letter-spacing: -.05em; }
.h2 { font-size: clamp(36px, 5.2vw, 76px); line-height: 1; letter-spacing: -.045em; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.03em; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ink-2); }

/* слова в масках (core.js split) */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; padding-right: .06em; margin-right: -.06em; }
.w { display: inline-block; will-change: transform; }
html.js:not(.is-static) [data-split] { visibility: hidden; }

/* ---------- компоненты ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  font-size: 16px; font-weight: 500; letter-spacing: -.01em;
  transition: background-color .2s var(--ease-out), box-shadow .3s var(--ease-out), color .2s;
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--dark); color: var(--on-dark); box-shadow: 0 10px 30px -12px rgba(10, 10, 15, .5); }
.btn-primary:hover { background: #22222B; box-shadow: 0 14px 40px -12px rgba(91, 76, 255, .55); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-on-grad { background: #fff; color: var(--ink); }
.btn-on-grad:hover { background: #F4F2FF; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { height: 58px; padding: 0 32px; font-size: 17px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 13px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); flex: none; }
.chip-accent { background: var(--accent-bg); border-color: transparent; color: var(--accent); }
.chip-ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }

/* обещание пробного периода рядом с кнопкой */
.trial-note { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); max-width: 30em; }
.trial-note b { color: var(--ink); font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--tight); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; box-shadow: 0 8px 20px -8px var(--glow); flex: none;
}
.logo-mark svg { width: 15px; height: 15px; fill: #fff; }

/* ---------- навигация ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .5s var(--ease-out), background-color .3s, box-shadow .3s; }
.nav__in { display: flex; align-items: center; gap: 28px; height: 76px; }
.nav.is-solid { background: rgba(247, 247, 248, .78); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__login { font-size: 15px; color: var(--ink-2); padding: 0 8px; }
.nav__login:hover { color: var(--ink); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.nav__burger span { display: block; width: 20px; height: 1.6px; margin: 5px auto; background: var(--ink); transition: transform .3s var(--ease-out); }

/* ---------- первые экраны: общее ---------- */
.hero { position: relative; }
.hero[hidden] { display: none; }
.hero-trial { display: inline-flex; align-items: center; gap: 10px; }

/* ==========================================================================
   A — «Путь заявки»: текст слева, справа сцена чат → бронь → Telegram
   ========================================================================== */
.ha__stage { position: relative; height: min(640px, 72svh); min-height: 520px; }
.ha__glow { position: absolute; inset: 8% 4% 4% 12%; background: var(--grad); filter: blur(90px); opacity: .22; border-radius: 50%; pointer-events: none; }

/* шаги пути под сценой */
.steps { position: absolute; left: 0; right: 0; bottom: -8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.step { position: relative; padding-top: 14px; font-size: 13px; line-height: 1.3; color: var(--ink-3t); }
.step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--line-2); }
.step b { display: block; font-family: var(--tight); font-weight: 600; font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.step__bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.step.is-on { color: var(--ink); }
.step.is-on b { color: var(--accent); }

/* ==========================================================================
   Макеты интерфейса (общие для вариантов)
   ========================================================================== */
.ui-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); border: 1px solid var(--line); }

/* чат-виджет на сайте клиента */
.chat { position: absolute; left: 0; top: 4%; width: min(390px, 68%); padding: 0; overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat__ava { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; flex: none; }
.chat__ava svg { width: 14px; height: 14px; fill: #fff; }
.chat__title { font-weight: 500; font-size: 15px; line-height: 1.2; }
.chat__sub { font-size: 12.5px; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.chat__sub::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.chat__site { margin-left: auto; font-size: 12px; color: var(--ink-3t); }
.chat__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 250px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.42; }
.msg--in { align-self: flex-end; background: var(--dark); color: var(--on-dark); border-bottom-right-radius: 6px; }
.msg--out { align-self: flex-start; background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 6px; }
.msg__time { display: block; margin-top: 4px; font-size: 11px; opacity: .55; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 14px; border-radius: 18px; background: var(--surface-2); }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dot 1.1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.check { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: 12.5px; color: var(--ink-2); }
.check svg { width: 14px; height: 14px; stroke: var(--ok); fill: none; stroke-width: 2; flex: none; }
.chat__input { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 0 6px 0 16px; height: 46px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 14px; color: var(--ink-3t); }
.chat__send { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--dark); display: grid; place-items: center; }
.chat__send svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }

/* календарь броней */
.cal { position: absolute; right: 0; top: 30%; width: min(400px, 70%); padding: 18px; }
.cal__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.cal__title { font-family: var(--tight); font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.cal__sub { font-size: 12px; color: var(--ink-3t); }
.cal__grid { display: grid; grid-template-columns: 92px repeat(5, 1fr); gap: 5px; font-size: 11.5px; }
.cal__d { text-align: center; color: var(--ink-3t); padding-bottom: 2px; }
.cal__d.is-sat { color: var(--accent); font-weight: 600; }
.cal__r { color: var(--ink-2); display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__c { height: 30px; border-radius: 8px; background: var(--surface-2); position: relative; }
.cal__c.is-busy { background: #E4E2F3; }
.cal__c.is-target { background: var(--surface-2); outline: 1.5px dashed transparent; }
.cal__new { position: absolute; inset: 0; border-radius: 8px; background: var(--grad); box-shadow: 0 8px 20px -8px var(--glow); }

/* бронь-«капсула», летящая из чата в календарь */
.fly { position: absolute; z-index: 5; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px; border-radius: var(--r-pill); background: var(--grad); color: #fff; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-glow); white-space: nowrap; }
.fly i { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-style: normal; }
.fly svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 2.4; }

/* уведомление владельцу в мессенджере */
.note { position: absolute; right: 4%; top: -2%; width: min(340px, 62%); padding: 14px 16px; border-radius: 22px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 6; }
.note__top { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3t); }
.note__app { width: 26px; height: 26px; border-radius: 7px; background: #2AABEE; display: grid; place-items: center; flex: none; }
.note__app svg { width: 14px; height: 14px; fill: #fff; }
.note__top span:last-child { margin-left: auto; }
.note__title { margin-top: 8px; font-weight: 600; font-size: 14.5px; }
.note__text { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); margin-top: 2px; }
.note__btns { display: flex; gap: 8px; margin-top: 10px; }
.note__btns span { flex: 1; text-align: center; height: 32px; line-height: 32px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; background: var(--surface-2); }
.note__btns span:first-child { background: var(--dark); color: var(--on-dark); }

/* ==========================================================================
   B — «Продукт выходит на сцену»: гигантская типографика + кабинет,
   который поднимается и выпрямляется по прокрутке (Apple / Linear)
   ========================================================================== */
.hb { padding-top: clamp(128px, 15vh, 176px); text-align: center; overflow: clip; }
.hb__text { display: flex; flex-direction: column; align-items: center; gap: 26px; position: relative; z-index: 2; }
.hb .h1 { font-size: clamp(46px, 8.4vw, 136px); max-width: 11ch; }
.hb .lead { text-align: center; }
.hb .cta-row { justify-content: center; }
.hb__scene { position: relative; margin-top: clamp(56px, 7vw, 96px); perspective: 1800px; perspective-origin: 50% 0%; padding-bottom: var(--sec); }

/* предсостояния (только с JS) */
html.js:not(.is-static) [data-in] { opacity: 0; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1200px) {
  .nav__links { gap: 20px; }
}
@media (max-width: 1024px) {
  .nav__links, .nav__login { display: none; }
  .ha__stage { height: 600px; max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav__in { height: 64px; gap: 12px; }
  .nav__cta .btn { height: 38px; padding: 0 14px; font-size: 14px; }
  .ha__stage { height: 540px; min-height: 0; }
  .chat { width: 88%; }
  .cal { width: 86%; top: 40%; }
  .note { width: 78%; right: 0; top: auto; bottom: 64px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 14px; bottom: -64px; }
}
@media (max-width: 480px) {
  .cta-row .btn { width: 100%; }
  .nav__cta .btn span.long { display: none; }
}
@media (min-width: 481px) { .nav__cta .btn span.short { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .typing span { animation: none !important; }
}

/* статическая ветка: конечные состояния сцен */
html.is-static [data-a="typing"], html.is-static [data-a="fly"] { display: none; }
html.is-static .step__bar { transform: none; }

/* правки после первого просмотра: продукт и пробный период — в первом экране */
.hb { padding-top: clamp(112px, 13vh, 150px); }
.hb__text { gap: 22px; }
.hb .h1 { font-size: clamp(44px, 6.6vw, 108px); max-width: 14ch; }
.hb__scene { margin-top: clamp(40px, 5vw, 64px); }

/* ==========================================================================
   Секции лендинга
   ========================================================================== */
.sec { padding: var(--sec) 0; position: relative; }
.sec--tight { padding-top: calc(var(--sec) * .5); }
.sec__head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 880px; margin-bottom: clamp(48px, 6vw, 88px); }
.sec__head--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.sec__head--center .lead { text-align: center; }

/* заявление, которое заливается по скроллу */
.statement { font-family: var(--tight); font-weight: 600; font-size: clamp(30px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.04em; max-width: 22ch; }
html.js:not(.is-static) [data-fill] .w { opacity: .16; }

/* сетки карточек */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border-radius: var(--r-xl); padding: clamp(24px, 2.4vw, 34px); box-shadow: var(--shadow-1); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; }
.card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.card__num { font-family: var(--tight); font-weight: 600; font-size: 14px; color: var(--accent); }
.card__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-bg); display: grid; place-items: center; margin-bottom: 6px; }
.card__ico svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* как работает: шаги с мини-макетами */
.how { counter-reset: how; }
.how .card { min-height: 100%; }
.mini { margin-top: auto; padding-top: 18px; }
.mini__field { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 14px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); }
.mini__field span.btn { height: 30px; padding: 0 12px; font-size: 12.5px; margin-left: auto; }
.mini__bars { display: grid; gap: 8px; }
.mini__bar { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.mini__bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }
.mini__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mini__tags .chip { height: 26px; font-size: 12px; padding: 0 10px; }

/* возможности: бенто */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * { grid-column: span 2; }
.bento > .span-3 { grid-column: span 3; }
.bento > .span-4 { grid-column: span 4; }

/* надёжность: схема «ИИ спрашивает — база отвечает» */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.trust__list { display: grid; gap: 22px; margin-top: 8px; }
.trust__item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.trust__item .card__ico { width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.trust__item .card__ico svg { width: 20px; height: 20px; }
.trust__item h3 { font-size: 18px; margin-bottom: 4px; }
.trust__item p { color: var(--ink-2); font-size: 15px; }
.flow { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-2); border: 1px solid var(--line); padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 12px; font-size: 14px; }
.flow__row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg); }
.flow__row b { font-weight: 600; font-family: var(--tight); letter-spacing: -.01em; }
.flow__row .chip { margin-left: auto; height: 26px; font-size: 12px; }
.flow__row code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--accent); background: var(--accent-bg); padding: 2px 8px; border-radius: 6px; }
.flow__arrow { justify-self: center; width: 2px; height: 18px; background: var(--line-2); border-radius: 2px; }
.flow__row--bad { background: #D6454510; color: var(--ink-2); }
.flow__row--bad s { color: #D64545; }

/* каналы и интеграции */
.channels { display: flex; flex-wrap: wrap; gap: 12px; }
.channel { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px 0 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-weight: 500; font-size: 16px; }
.channel__ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.channel__ico svg { width: 18px; height: 18px; }
.channel small { color: var(--ink-3t); font-weight: 400; font-size: 13px; }
.channel--soon { opacity: .7; box-shadow: none; background: transparent; border-style: dashed; border-color: var(--line-2); }

/* отрасли: бегущая строка */
.marquee { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.marquee__track { display: flex; gap: 12px; width: max-content; }
.marquee .chip { height: 52px; padding: 0 22px; font-size: 16.5px; color: var(--ink); box-shadow: var(--shadow-1); }
html.is-static .marquee__track { flex-wrap: wrap; width: auto; }

/* сравнение */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-1); border: 1px solid var(--line); overflow: hidden; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--tight); font-weight: 600; font-size: 16px; letter-spacing: -.02em; background: var(--bg); }
.compare thead th.is-us { background: var(--accent-bg); color: var(--accent); }
.compare td.is-us { background: #5B4CFF08; color: var(--ink); font-weight: 500; }
.compare td { color: var(--ink-2); }
.compare td:first-child { color: var(--ink); font-weight: 500; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-xl); }

/* тарифы */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--shadow-1); padding: clamp(26px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan__name { font-family: var(--tight); font-weight: 600; font-size: 22px; letter-spacing: -.02em; display: flex; align-items: center; justify-content: space-between; }
.plan__for { color: var(--ink-2); font-size: 15px; min-height: 3em; }
.plan__price { font-family: var(--tight); font-weight: 600; font-size: 48px; letter-spacing: -.045em; line-height: 1; }
.plan__price small { font-family: Inter, sans-serif; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); margin-left: 4px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.plan li svg { width: 18px; height: 18px; stroke: var(--ok); fill: none; stroke-width: 2.2; margin-top: 2px; }
.plan li.is-off { color: var(--ink-3t); }
.plan li.is-off svg { stroke: var(--ink-3); }
.plan .btn { margin-top: auto; width: 100%; }
.plan__trial { font-size: 13.5px; color: var(--ink-2); text-align: center; line-height: 1.4; }
.plan--best { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow), var(--shadow-2); }
.plan--best .plan__for, .plan--best .plan__price small, .plan--best .plan__trial { color: rgba(255, 255, 255, .78); }
.plan--best li svg { stroke: #fff; }
.plan--best .chip { background: rgba(255, 255, 255, .18); color: #fff; border-color: transparent; }
.pricing-note { margin-top: 28px; text-align: center; color: var(--ink-2); font-size: 15px; }

/* вопросы */
.faq { max-width: 900px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; font-family: var(--tight); font-weight: 600; font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 14px no-repeat; transition: rotate .3s var(--ease-out); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 26px 24px; color: var(--ink-2); max-width: 68ch; }

/* финальный призыв — единственный градиент экрана */
.final { background: var(--grad); color: #fff; border-radius: clamp(28px, 3vw, 40px); padding: clamp(40px, 6vw, 96px); position: relative; overflow: hidden; box-shadow: var(--shadow-glow); }
.final::after { content: ''; position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 62%); pointer-events: none; }
.final .h2 { max-width: 14ch; position: relative; z-index: 1; }
.final__letter { position: relative; z-index: 1; margin-top: 24px; max-width: 40em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .86); }
.final__sign { margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.final .cta-row { margin-top: 36px; position: relative; z-index: 1; }
.final .trial-note { color: rgba(255, 255, 255, .8); }
.final .trial-note b { color: #fff; }

/* подвал */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: var(--sec); font-size: 14px; color: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer__grid nav { display: grid; gap: 10px; align-content: start; }
.footer__grid a:hover { color: var(--ink); }
.footer__legal { margin-top: 40px; font-size: 13px; color: var(--ink-3t); line-height: 1.6; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .pricing { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > *, .bento > .span-3, .bento > .span-4 { grid-column: span 1; }
  .bento > .span-wide { grid-column: 1 / -1; }
  .trust { grid-template-columns: 1fr; }
  .pricing { max-width: 560px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-4, .bento { grid-template-columns: 1fr; }
  .bento > .span-wide { grid-column: auto; }
  .compare { min-width: 680px; }
  .channel { height: 54px; font-size: 15px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- элементы после текстов копирайтера ---------- */
.h1-chip { font-family: Inter, sans-serif; letter-spacing: 0; line-height: 1; margin-bottom: 24px; }
.h1 .h1-chip { display: inline-flex; }
.h1__main { display: block; }
.hb .h1 { display: flex; flex-direction: column; align-items: center; }
.hb .h1 { max-width: 16ch; }

.dbcheck { align-self: flex-start; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: 14px; background: var(--ok-bg); border: 1px dashed rgba(31, 157, 103, .35); font-size: 12.5px; color: var(--ink-2); max-width: 94%; }
.dbcheck svg { width: 16px; height: 16px; stroke: var(--ok); fill: none; stroke-width: 1.6; flex: none; }
.dbcheck b { color: var(--ok); font-weight: 600; }
.cal__legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.cal__legend b { width: 14px; height: 10px; border-radius: 3px; background: var(--grad); flex: none; }

/* живое демо */
.demo { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.demo__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.demo__prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.demo__prompts .chip { cursor: pointer; height: 38px; font-size: 14px; color: var(--ink); background: var(--bg); }
.demo__prompts .chip:hover { background: var(--accent-bg); color: var(--accent); }
.demo__chat { min-height: 440px; display: flex; }
.demo__chat > * { flex: 1; }
.demo__fallback { box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.demo__fallback .chat__body { flex: 1; }

/* помощник / вы */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo__col { background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--shadow-1); padding: clamp(26px, 3vw, 44px); }
.duo__title { display: flex; align-items: center; gap: 14px; font-size: 26px; margin-bottom: 26px; }
.duo__you { width: 34px; height: 34px; border-radius: 10px; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 15px; }
.duo__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.duo__list li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.duo__list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .7; }
.duo__list b { color: var(--ink); font-weight: 600; }

.ind__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ind__tags .chip { background: var(--bg); color: var(--ink); height: 34px; }
.sec-statement { margin-top: clamp(56px, 7vw, 104px); }
.trust__data { margin-top: 16px; }
.trust .flow { align-self: start; }
.integr { margin-top: 22px; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }

@media (max-width: 1024px) {
  .demo, .duo { grid-template-columns: 1fr; }
}
html.is-static [data-a="db"] { display: flex; }
/* сцена A: календарь ниже чата, реплика помощника не перекрывается */
@media (min-width: 1025px) {
  .chat { width: min(380px, 60%); top: 0; }
  .cal { top: auto; bottom: 64px; width: min(360px, 56%); }
  .note { top: 6%; right: 0; }
}
.trust > *, .trust__item > div { min-width: 0; }
.flow__row { flex-wrap: wrap; }
@media (max-width: 640px) { .flow__row .chip { margin-left: 0; } .flow__row code { font-size: 11.5px; } }

/* ---------- живое демо со сценой «путь заявки» ---------- */
.demo { align-items: start; }
.demo__text { padding-top: 12px; }
.demo__chat { display: block; min-height: 0; position: relative; }
.demo__chat > * { flex: none; }
.demo__stage { height: 600px; min-height: 0; }
.demo__stage .ha__glow { opacity: .16; }
.demo__prompts .chip.is-active { background: var(--dark); color: var(--on-dark); border-color: transparent; }
.demo__replay { position: absolute; left: 0; top: calc(100% + 18px); border: 0; background: none; padding: 6px 0; cursor: pointer; font-size: 14px; color: var(--accent); font-weight: 500; }
.demo__replay:hover { text-decoration: underline; }
.demo { padding-bottom: clamp(56px, 6vw, 88px); }
@media (max-width: 1024px) {
  .demo__stage { height: 600px; max-width: 620px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .demo { padding: 20px 16px 120px; }
  .demo__stage { height: 560px; }
}
html.is-static .demo__replay { display: none; }
.note__btns[hidden] { display: none; }
@media (min-width: 1025px) { .demo__stage.is-short .note { top: auto; bottom: 90px; } }
@media (max-width: 1024px) { .demo__stage.is-short .note { top: auto; bottom: 90px; } }
.note__btns span { white-space: nowrap; }
/* демо на узких экранах: колонка чат → календарь → шаги, уведомление всплывает сверху */
@media (max-width: 768px) {
  .demo { padding-bottom: 28px; }
  .demo__stage { height: auto; display: flex; flex-direction: column; gap: 14px; }
  .demo__stage .chat { position: relative; top: 0; width: 100%; }
  .demo__stage .chat__body { min-height: 0; }
  .demo__stage .cal { position: relative; top: 0; bottom: auto; right: auto; width: 100%; }
  .demo__stage .note, .demo__stage.is-short .note { top: 56px; bottom: auto; right: 0; width: 92%; }
  .demo__stage .steps { position: static; margin-top: 8px; }
  .demo__replay { position: static; margin-top: 10px; }
  .note__btns span { font-size: 12px; }
}
@media (max-width: 768px) { .demo__stage.is-short .cal { display: none; } }

/* три выгоды под лидом первого экрана */
.gains { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 900px; text-align: left; }
.gains li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; font-size: 14px; line-height: 1.45; color: var(--ink-2); box-shadow: var(--shadow-1); }
.gains b { display: block; font-family: var(--tight); font-weight: 600; font-size: 17px; letter-spacing: -.02em; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 768px) { .gains { grid-template-columns: 1fr; } .gains li { padding: 12px 16px; } }
.hb .h1 { font-size: clamp(42px, 5.9vw, 92px); max-width: 20ch; }
.hb__text { gap: 20px; }
.gains li { padding: 13px 16px; }
.gains b { font-size: 16px; }
@media (max-width: 768px) { .hb__text .gains { order: 5; } .hb__text .trial-note { order: 4; } }
/* первый экран: текст компактнее, чтобы верх сцены (окно кабинета) был виден на 1440×900 и 1440×800 */
.hb .lead { max-width: 52em; text-wrap: balance; }
.trial-note { max-width: 46em; }
@media (min-width: 900px) {
  .hb { padding-top: clamp(96px, 11vh, 128px); }
  .hb__text { gap: 14px; }
  .hb .h1 { font-size: clamp(42px, min(5.6vw, 9.4vh), 92px); }
  .h1 .h1-chip { margin-bottom: 14px; }
  .gains { max-width: 1000px; gap: 10px; margin: 2px 0; }
  .gains li { padding: 11px 15px; font-size: 13.5px; line-height: 1.4; }
  .gains b { font-size: 15.5px; margin-bottom: 2px; }
}
@media (max-width: 768px) {
  .gains { gap: 8px; }
  .gains li { padding: 10px 14px; font-size: 13.5px; line-height: 1.4; }
  .gains b { font-size: 15px; margin-bottom: 1px; }
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.ind h3 { margin-top: 2px; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* сравнение v2: отметки, шапка «наша» колонка, липкий первый столбец на телефоне */
.compare { table-layout: fixed; }
.compare col, .compare th:first-child { width: 22%; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--ink); padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.compare tr:last-child th { border-bottom: 0; }
.compare td { font-size: 14.5px; line-height: 1.4; padding: 16px 22px; }
.compare td, .compare td.is-us { position: relative; }
.compare td:has(.mk) { padding-left: 44px; }
.compare td .mk { position: absolute; left: 20px; top: 18px; }
.compare td.is-us { background: #5B4CFF0A; color: var(--ink); font-weight: 500; border-left: 1px solid #5B4CFF22; }
.compare thead th.is-us { border-left: 1px solid #5B4CFF22; }
.compare tbody tr:last-child td { font-family: var(--tight); font-weight: 600; font-size: 15.5px; color: var(--ink); letter-spacing: -.01em; }
.compare tbody tr:last-child td.is-us { color: var(--accent); }
.compare__us { display: inline-flex; align-items: center; gap: 10px; }
.compare__us .logo-mark { width: 26px; height: 26px; border-radius: 8px; }
.compare__us .logo-mark svg { width: 12px; height: 12px; }
.mk { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; flex: none; }
.mk::before { content: ''; width: 9px; height: 9px; background: center / contain no-repeat; }
.mk--y { background: var(--ok-bg); }
.mk--y::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F9D67' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.mk--n { background: #D6454512; }
.mk--n::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D64545' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.mk--m { background: var(--warn-bg); }
.mk--m::before { width: 8px; height: 2.4px; border-radius: 2px; background: var(--warn); }
.compare__legend { display: flex; gap: 22px; margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }
.compare__legend span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 1024px) {
  .compare { min-width: 900px; }
  .compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
  .compare thead th:first-child { background: var(--bg); }
}
@media (max-width: 640px) {
  .compare-wrap { overflow: visible; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; min-width: 0; }
  .compare { background: none; border: 0; box-shadow: none; }
  .compare thead { display: none; }
  .compare tbody { display: grid; gap: 12px; }
  .compare tr { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
  .compare tbody th { position: static; box-shadow: none; border: 0; padding: 16px 18px 6px; font-family: var(--tight); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
  .compare td { border: 0; padding: 6px 18px 6px 44px; font-size: 14px; }
  .compare td::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--ink-3t); margin-bottom: 1px; }
  .compare td .mk { left: 18px; top: 24px; }
  .compare td.is-us { order: -1; margin: 4px 12px 8px; padding: 10px 12px 10px 38px; border: 0; border-radius: 12px; background: var(--accent-bg); }
  .compare td.is-us .mk { left: 12px; top: 28px; }
  .compare td.is-us::before { color: var(--accent); font-weight: 600; }
  .compare tbody th { order: -2; }
  .compare td:last-child { padding-bottom: 14px; }
  .compare td.is-us:last-child { padding-bottom: 10px; }
}
@media (max-width: 640px) { .compare tbody th:first-child { width: auto; } .compare tr { padding-bottom: 10px; } }

/* мелкие заголовки на Inter Tight: плотный трекинг «слепляет» буквы — только у крупных h1/h2 */
.gains b, .card h3, .trust__item h3, .duo__title, .faq summary, .plan__name, .cal__title,
.compare thead th, .compare tbody th, .demo .h3 { letter-spacing: .035em; }
/* крупные заголовки чуть свободнее */
.h1 { letter-spacing: -.035em; }
.h2 { letter-spacing: -.03em; }
.statement { letter-spacing: -.025em; }

/* ==========================================================================
   Правки QA 2026-10-04
   ========================================================================== */
/* список шагов: у <ol> оставался отступ браузера, карточки «Как работает» были сдвинуты вправо */
.how { list-style: none; margin: 0; padding: 0; }
/* контраст мелкого текста: зелёный и серый номера шагов — на ≥4.5:1 */
:root { --ok-t: #167A50; }
.chip-ok, .chat__sub, .dbcheck b { color: var(--ok-t); }
.step b { color: var(--ink-3t); }
.chat__input { color: var(--ink-2); }
/* таблица сравнения: карточки до 900px (на 641–900 «наша» колонка уезжала за край), без внутреннего скролла до 1024 */
@media (min-width: 901px) and (max-width: 1024px) {
  .compare { min-width: 0; }
  .compare tbody th, .compare thead th:first-child { position: static; box-shadow: none; }
  .compare td, .compare tbody th, .compare thead th { padding-left: 14px; padding-right: 14px; }
  .compare td:has(.mk) { padding-left: 38px; }
  .compare td .mk { left: 14px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; background: none; border: 0; box-shadow: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; min-width: 0; }
  .compare thead { display: none; }
  .compare tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .compare tr { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; padding-bottom: 10px; }
  .compare tbody th { position: static; box-shadow: none; border: 0; padding: 16px 18px 6px; font-family: var(--tight); font-weight: 600; font-size: 17px; letter-spacing: -.02em; order: -2; width: auto; }
  .compare td { border: 0; padding: 6px 18px 6px 44px; font-size: 14px; }
  .compare td::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--ink-3t); margin-bottom: 1px; }
  .compare td .mk { left: 18px; top: 24px; }
  .compare td.is-us { order: -1; margin: 4px 12px 8px; padding: 10px 12px 10px 38px; border: 0; border-radius: 12px; background: var(--accent-bg); }
  .compare td.is-us .mk { left: 12px; top: 28px; }
  .compare td.is-us::before { color: var(--accent); font-weight: 600; }
  .compare td:last-child { padding-bottom: 14px; }
  .compare td.is-us:last-child { padding-bottom: 10px; }
}
/* на планшете и телефоне кнопка «Попробовать» прижата к правому краю, а не к логотипу */
@media (max-width: 1024px) { .nav__cta { margin-left: auto; } }
/* кликабельные зоны на touch ≥44px */
@media (max-width: 768px) {
  .logo { min-height: 44px; }
  .nav__cta .btn { height: 44px; }
}
@media (max-width: 768px), (pointer: coarse) {
  .demo__prompts .chip { height: 44px; }
  .demo__replay { padding: 13px 0; }
  .footer__grid nav { gap: 0; }
  .footer__grid nav a { padding: 11px 0; }
  /* ссылка внутри абзаца: padding у inline-элемента увеличивает зону нажатия, строки не сдвигаются */
  .faq details p a { padding: 14px 0; }
}
/* 320px: слово «Круглосуточно.» в заголовке не помещалось в 44px */
@media (max-width: 360px) {
  .hb .h1 { font-size: 38px; }
}
/* длинная подпись кнопки переносится, а не вылезает за края (320–480px) */
@media (max-width: 480px) {
  .cta-row .btn { white-space: normal; height: auto; min-height: 56px; padding: 10px 22px; text-align: center; line-height: 1.25; }
  .final { padding: 36px 24px; }
}
/* зоны нажатия ссылок меню на десктопе */
.nav__links a { padding: 11px 0; }

/* ---------- Живое демо: карточки не перекрывают реплики чата ----------
   Раньше чат, календарь и уведомление лежали друг на друге (absolute) и закрывали вопрос клиента, «Проверку по базе» и ответ.
   Теперь сцена — сетка: чат слева, календарь и уведомление справа (контейнер ≥620px) или одна колонка. */
.demo__chat { container-type: inline-size; }
.demo__chat .demo__stage { height: auto; min-height: 0; max-width: 720px; margin: 0 auto; display: grid; gap: 14px 16px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.demo__chat .demo__stage .chat, .demo__chat .demo__stage .cal, .demo__chat .demo__stage .note, .demo__chat .demo__stage.is-short .note {
  position: relative; inset: auto; top: auto; right: auto; bottom: auto; left: auto; width: 100%; margin: 0; }
.demo__chat .demo__stage .steps { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; margin-top: 6px; }
.demo__chat .demo__stage.is-short .cal { display: none; }
.demo__chat .demo__stage .chat__body { min-height: 0; }
.demo__chat .demo__stage .cal__grid { grid-template-columns: 104px repeat(5, minmax(0, 1fr)); }
.demo__chat .demo__stage .cal__r { white-space: normal; text-overflow: clip; line-height: 1.15; }
.demo__replay[hidden] { display: inline-block; visibility: hidden; }
@container (min-width: 620px) {
  .demo__chat .demo__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "chat cal" "chat note" "steps steps"; }
  .demo__chat .demo__stage .chat { grid-area: chat; }
  .demo__chat .demo__stage .cal { grid-area: cal; }
  .demo__chat .demo__stage .note { grid-area: note; align-self: start; }
  .demo__chat .demo__stage .steps { grid-area: steps; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
  .demo__chat .demo__stage.is-short { grid-template-rows: auto auto; grid-template-areas: "chat note" "steps steps"; }
}
@media (max-width: 1279px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1280px) {
  .demo { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}
@media (max-width: 768px) { .demo__chat .demo__stage { gap: 14px; } }


/* ---------- Индивидуальное решение: широкая тёмная карточка под тарифами ---------- */
.custom { margin-top: 56px; scroll-margin-top: 96px; position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start;
  background: var(--dark); color: var(--on-dark); border-radius: var(--r-xl); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2); padding: clamp(28px, 4vw, 56px); }
.custom::before { content: ''; position: absolute; z-index: -1; right: -12%; top: -45%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: var(--grad); filter: blur(70px); opacity: .45; pointer-events: none; }
.custom__main { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.custom .chip.custom__chip { background: rgba(255, 255, 255, .12); color: var(--on-dark); border-color: transparent; }
.custom__title { font-family: var(--tight); font-weight: 600; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.12; letter-spacing: -.02em; max-width: 16em; }
.custom__lead { color: rgba(244, 244, 246, .78); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; max-width: 28em; }
.custom__prices { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 6px; }
.custom__prices p { display: grid; gap: 4px; }
.custom__prices b { font-family: var(--tight); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.custom__prices small { font-family: Inter, sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 0; color: rgba(244, 244, 246, .78); }
.custom__prices span { font-size: 14px; color: rgba(244, 244, 246, .78); }
.custom__note { font-size: 14.5px; color: rgba(244, 244, 246, .78); }
.custom__cta { margin-top: 6px; min-height: 52px; }
.custom__cta:hover { background: #F4F2FF; }
.custom__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 15.5px; line-height: 1.45; min-width: 0; }
.custom__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; }
.custom__list svg { width: 18px; height: 18px; stroke: #B9AEFF; fill: none; stroke-width: 2.2; margin-top: 2px; }
.faq a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1024px) {
  .custom { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; margin-top: 40px; }
}
@media (max-width: 480px) {
  .custom { padding: 28px 22px; }
  .custom__cta { width: 100%; }
}
