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

: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; }
.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 { min-height: 100svh; }
.ha__pin { min-height: 100svh; display: flex; align-items: center; padding: 108px 0 56px; }
.ha__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.ha__text { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.ha .h1 { font-size: clamp(44px, 5.6vw, 88px); }
.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); }
.hb__glow { position: absolute; left: 50%; top: 6%; width: 70%; height: 70%; transform: translateX(-50%); background: var(--grad); filter: blur(120px); opacity: .28; border-radius: 50%; pointer-events: none; }
.hb__screen { position: relative; max-width: 1180px; margin: 0 auto; transform-origin: 50% 0%; transform: rotateX(22deg) scale(.9); border-radius: var(--r-xl); }
html.is-static .hb__screen { transform: none; }
.hb__float { position: absolute; z-index: 3; }
.hb__float--1 { left: 1%; top: 18%; }
.hb__float--2 { right: 0; top: 8%; }
.hb__float--3 { right: 4%; bottom: 22%; }

/* кабинет владельца: экран «Сегодня» */
.dash { display: grid; grid-template-columns: 200px 1fr; min-height: 560px; background: var(--bg); border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: 0 60px 140px -40px rgba(27, 17, 80, .35), var(--shadow-2); overflow: hidden; text-align: left; }
.dash__side { background: var(--surface); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.dash__side .logo { font-size: 14px; gap: 10px; margin: 0 6px 18px; }
.dash__side .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
.dash__nav { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); }
.dash__nav.is-on { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.dash__nav svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.dash__nav em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 7px; }
.dash__main { padding: 24px; display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: min-content; gap: 14px; }
.dash__top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dash__top h3 { font-size: 22px; }
.dash__top .chip { height: 28px; }
.dash__hero { grid-row: span 2; border-radius: var(--r-lg); background: var(--grad); color: #fff; padding: 22px; display: flex; flex-direction: column; gap: 6px; min-height: 212px; position: relative; overflow: hidden; }
.dash__hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); }
.dash__hero small { font-size: 12.5px; opacity: .75; }
.dash__hero .num { font-size: 56px; line-height: 1; letter-spacing: -.04em; }
.dash__hero p { font-size: 14px; opacity: .85; max-width: 26em; }
.dash__hero .btn { margin-top: auto; align-self: flex-start; height: 38px; font-size: 13.5px; padding: 0 16px; }
.kpi { background: var(--surface); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-1); }
.kpi small { font-size: 12.5px; color: var(--ink-3t); }
.kpi .num { font-size: 30px; line-height: 1.1; margin-top: 4px; }
.kpi .num span { font-size: 14px; color: var(--ok); font-family: Inter, sans-serif; letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.leads { grid-column: 1 / -1; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 8px 8px 4px; }
.lead-row { display: grid; grid-template-columns: 36px 1.2fr 1.4fr 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.lead-row:last-child { border-bottom: 0; }
.lead-row .ava { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.lead-row b { font-weight: 500; }
.lead-row span { color: var(--ink-2); }
.lead-row .chip { height: 26px; font-size: 12px; padding: 0 10px; }

/* ==========================================================================
   C — «Сфера»: живой градиент-помощник, вокруг — реплики диалога
   ========================================================================== */
.hc { min-height: 100svh; }
.hc__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 112px 0 48px; position: relative; overflow: clip; }
.hc__orb-wrap { position: relative; width: clamp(260px, 32vw, 460px); aspect-ratio: 1; margin-bottom: clamp(24px, 3vw, 40px); }
.orb { position: absolute; inset: 0; border-radius: 50%; }
.orb__halo { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, .28), rgba(124, 92, 255, 0) 62%); }
.orb__core { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--grad); box-shadow: inset 0 -30px 80px rgba(27, 17, 80, .45), inset 0 30px 60px rgba(255, 255, 255, .25), var(--shadow-glow); }
.orb__blob { position: absolute; border-radius: 50%; filter: blur(28px); mix-blend-mode: screen; }
.orb__blob--1 { width: 70%; height: 70%; left: -10%; top: -6%; background: radial-gradient(circle, #C9B8FF, transparent 65%); animation: orb1 11s linear infinite; }
.orb__blob--2 { width: 60%; height: 60%; right: -12%; bottom: -8%; background: radial-gradient(circle, #7C5CFF, transparent 65%); animation: orb2 9s linear infinite; }
.orb__blob--3 { width: 46%; height: 46%; left: 30%; top: 36%; background: radial-gradient(circle, #FFFFFF, transparent 62%); opacity: .55; animation: orb3 7s ease-in-out infinite alternate; }
.orb__shine { position: absolute; left: 16%; top: 10%; width: 38%; height: 22%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, .55), transparent 70%); transform: rotate(-24deg); }
@keyframes orb1 { from { transform: rotate(0deg) translateX(12%) rotate(0deg); } to { transform: rotate(360deg) translateX(12%) rotate(-360deg); } }
@keyframes orb2 { from { transform: rotate(360deg) translateY(10%) rotate(-360deg); } to { transform: rotate(0deg) translateY(10%) rotate(0deg); } }
@keyframes orb3 { from { transform: translate(-14%, 8%) scale(.9); } to { transform: translate(10%, -12%) scale(1.15); } }
.orb-breathe { animation: breathe 4.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.975); } 50% { transform: scale(1.025); } }
.hc.is-thinking .orb__blob { animation-duration: 3s; }
.orb__state { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); z-index: 3; }
.orb__state .chip { background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-1); }
.bubble { position: absolute; z-index: 4; max-width: 300px; }
.bubble--in { right: calc(100% + 10px); top: 16%; }
.bubble--out { left: calc(100% + 10px); top: 42%; }
.bubble .msg { max-width: none; box-shadow: var(--shadow-2); }
.bubble--out .msg { background: var(--surface); }
.hc__clock { position: absolute; left: calc(100% + 24px); top: 2%; font-family: var(--tight); font-weight: 600; font-size: 13px; color: var(--ink-3t); white-space: nowrap; }
.hc__text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; position: relative; z-index: 2; }
.hc .h1 { font-size: clamp(42px, 6.4vw, 100px); max-width: 13ch; }
.hc .lead { text-align: center; }
.hc .cta-row { justify-content: center; }

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

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1200px) {
  .nav__links { gap: 20px; }
  .dash { grid-template-columns: 170px 1fr; }
}
@media (max-width: 1024px) {
  .nav__links, .nav__login { display: none; }
  .ha__pin { padding-top: 112px; }
  .ha__grid { grid-template-columns: 1fr; }
  .ha__stage { height: 600px; max-width: 620px; width: 100%; margin: 0 auto; }
  .dash { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .hb__float { display: none; }
  .bubble--in { right: auto; left: -8%; top: -8%; }
  .bubble--out { left: auto; right: -8%; top: auto; bottom: 4%; }
  .hc__clock { display: none; }
}
@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; }
  .ha__pin { padding-bottom: 104px; }
  .dash__main { grid-template-columns: 1fr; padding: 14px; }
  .dash__hero { grid-row: auto; }
  .lead-row { grid-template-columns: 32px 1fr auto; }
  .lead-row > :nth-child(3), .lead-row > :nth-child(4) { display: none; }
  .bubble { max-width: 230px; }
  .bubble .msg { font-size: 13.5px; }
}
@media (max-width: 480px) {
  .cta-row .btn { width: 100%; }
  .hc__orb-wrap { width: 230px; margin-top: 40px; margin-bottom: 36px; }
  .bubble--in { left: -22%; top: -14%; }
  .bubble--out { right: -22%; bottom: -6%; }
  .nav__cta .btn span.long { display: none; }
}
@media (min-width: 481px) { .nav__cta .btn span.short { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .orb__blob, .orb-breathe, .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); }
.bubble { width: max-content; max-width: 290px; }
.hc__orb-wrap { width: clamp(220px, min(30vw, 36vh), 380px); }
.hc .h1 { font-size: clamp(40px, 5.4vw, 88px); max-width: 18ch; }
.hc__text { gap: 20px; }
@media (max-width: 480px) { .bubble { max-width: 210px; } }

/* ==========================================================================
   Секции лендинга
   ========================================================================== */
.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, .hc .h1 { display: flex; flex-direction: column; align-items: center; }
.hb .h1 { max-width: 16ch; }
.ha .h1 { display: flex; flex-direction: column; align-items: flex-start; }
.ha__text { gap: 26px; }

.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; }
.dash__example { margin-top: auto; font-size: 11.5px; color: var(--ink-3t); padding: 0 10px; }
.float-chip { height: 42px !important; padding: 0 16px !important; box-shadow: var(--shadow-2); background: #fff; }
.chip-ok.float-chip { background: #F1FAF5; }
.note--static { position: static; width: 310px; }

/* живое демо */
.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; }
}
@media (max-width: 640px) {
  .dbcheck span { display: none; }
  .note--static { width: 260px; }
}
html.is-static [data-a="db"] { display: flex; }
.hc__clock { display: flex; flex-direction: column; gap: 2px; font-weight: 500; font-family: Inter, sans-serif; }
.hc__clock .num { font-size: 44px; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
/* сцена 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; } }
.hc__orb-wrap { width: clamp(200px, min(26vw, 30vh), 340px); }
.hc__pin { padding-top: 100px; }
@media (max-width: 1024px) { .hc__clock { display: none; } }
@media (max-height: 800px) and (min-width: 1025px) { .hc__orb-wrap { width: clamp(180px, 24vh, 300px); } .hc .h1 { font-size: clamp(40px, 4.8vw, 76px); } }

/* ---------- живое демо со сценой «путь заявки» ---------- */
.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; } }
.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, .dash__top h3,
.compare thead th, .compare tbody th, .demo .h3 { letter-spacing: -.005em; }
.gains b, .card h3, .trust__item h3, .duo__title, .faq summary, .plan__name, .cal__title, .dash__top h3,
.compare thead th, .compare tbody th, .demo .h3 { letter-spacing: .01em; }
.gains b, .card h3, .trust__item h3, .duo__title, .faq summary, .plan__name, .cal__title, .dash__top h3,
.compare thead th, .compare tbody th, .demo .h3 { letter-spacing: .025em; }
.gains b, .card h3, .trust__item h3, .duo__title, .faq summary, .plan__name, .cal__title, .dash__top h3,
.compare thead th, .compare tbody th, .demo .h3 { letter-spacing: .035em; }
/* крупные заголовки чуть свободнее */
.h1 { letter-spacing: -.035em; }
.h2 { letter-spacing: -.03em; }
.statement { letter-spacing: -.025em; }
