/* ОВ-Когито — система дизайна v2
   По мотивам референса thrad.ai: страница в рамке из волосяных линий, крупные светлые заголовки,
   кнопки-прямоугольники с «+», квадратные номера, метки секций с акцентным квадратом.
   Цвет бренда — фиолетовый из логотипа; фон — светлая лавандовая «бумага». Чёрного почти нет. */
:root {
  --paper: #F4F0FF;
  --paper-2: #ECE5FF;
  --white: #FFFFFF;
  --ink: #1B1830;
  --muted: #5A566E;
  --line: #DDD4F5;
  --line-strong: #C7BBEA;
  --accent: #6236E8;
  --accent-ink: #4B22C9;
  --accent-soft: #ECE6FF;
  --accent-tint: #F5F2FF;
  --blue: #2F7BFF;
  --ok: #1D7A4E;
  --err: #B3261E;

  --font: "Onest", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --page: 1280px;
  --pad: clamp(16px, 4vw, 48px);
  --r: 6px;
  --r-lg: 12px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(34px, 3.5vw, 50px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.12; }
h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.small { font-size: 14px; color: var(--muted); }

/* Рамка страницы */
.page { width: 100%; max-width: var(--page); margin: 0 auto; }
.frame { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* Метка секции: акцентный квадрат + слово */
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--accent-ink); margin-bottom: 14px; font-weight: 500; }
.label::before { content: ""; width: 8px; height: 8px; background: var(--accent); }

/* Иконки */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { pointer-events: none; }
.ico svg, .usp__icon svg, .header__phone svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.ico svg { width: 22px; height: 22px; }
.card:hover .ico, .step__body:hover .ico, .about:hover .ico { background: var(--accent); color: #fff; transform: rotate(-6deg); }
.step__body .ico { width: 40px; height: 40px; margin-bottom: 12px; }
.step__body .ico svg { width: 20px; height: 20px; }

/* Квадратный номер */
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; border-radius: 3px; flex-shrink: 0; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 50px; padding: 0 18px 0 20px;
  border-radius: var(--r); border: 1px solid transparent;
  font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); box-shadow: 0 10px 24px -12px rgba(98, 54, 232, .8); transform: translateY(-1px); }
.btn--line { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn__plus { font-size: 22px; font-weight: 300; line-height: 1; transition: transform .3s var(--ease); }
.btn:hover .btn__plus { transform: rotate(90deg); }
.link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-thickness .2s, color .2s; }
.link:hover { text-decoration-thickness: 2px; color: var(--accent); }
.link--btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* Карточки: общий hover */
.card { transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
@media (hover: hover) {
  .card:hover { background-color: var(--white); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(66, 34, 160, .45); }
}

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); padding: 0 var(--pad); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { border-radius: 8px; }
.brand__name { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header__phone { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--white); color: var(--accent); transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.header__phone svg { width: 19px; height: 19px; }
.header__promo { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid #CFC2FF; color: var(--accent-ink); font-size: 13px; text-decoration: none; white-space: nowrap; transition: background-color .2s, transform .2s; }
.header__promo b { font-weight: 600; }
.header__promo:hover { background: #DFD5FF; transform: translateY(-1px); }
.header__phone:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--white); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Первый экран */
.hero { border-bottom: 1px solid var(--line); }
.hero__main { display: grid; grid-template-columns: 1.2fr .8fr; }
.hero__text { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(32px, 4vw, 56px) 12px clamp(18px, 2.2vw, 30px) var(--pad); }
.hero__stage {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  padding: 0 clamp(8px, 1.2vw, 16px) var(--hero-under, clamp(18px, 2.2vw, 30px));
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 100%;
  background-color: var(--paper);
}
.hero__stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 0 30%, var(--paper) 72%); pointer-events: none; }
.hero__glow { position: absolute; left: 50%; top: 58%; width: 70%; height: 70%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(98, 54, 232, .20), rgba(47, 123, 255, .10) 55%, transparent); filter: blur(10px); z-index: 1; }

.device { position: relative; width: min(560px, 100%); z-index: 2; }
.device__body { position: relative; z-index: 2; padding: 14px; border-radius: 26px; background: linear-gradient(160deg, #FFFFFF, #E4E1EE); box-shadow: inset 0 0 0 1px #CFCBDC, 0 30px 60px -30px rgba(40, 24, 110, .45); aspect-ratio: 4 / 2.6; }
.device__screen { height: 100%; border-radius: 14px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px #DCD9E6; }
.device__owl { position: absolute; z-index: 3; width: clamp(100px, 11vw, 158px); right: 7%; bottom: calc(100% - 26px); filter: drop-shadow(0 10px 14px rgba(40, 24, 110, .18)); }
.device__shadow { position: absolute; left: 6%; right: 6%; bottom: -18px; height: 30px; background: radial-gradient(closest-side, rgba(40, 24, 110, .28), transparent); z-index: 1; }

.scr-bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; background: var(--white); border-bottom: 1px solid var(--line); }
.scr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.scr-url { margin-left: 10px; font-size: 10px; color: var(--muted); background: var(--paper); padding: 2px 10px; border-radius: 4px; }
.scr-grid { flex: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px; padding: 12px; min-height: 0; }
.scr-quiz, .scr-chat { background: var(--white); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; line-height: 1.35; min-height: 0; overflow: hidden; }
.scr-step { color: var(--muted); font-size: 10px; }
.scr-progress { height: 3px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.scr-progress i { display: block; height: 100%; width: 60%; background: linear-gradient(90deg, var(--blue), var(--accent)); }
.scr-quiz b { font-weight: 500; font-size: 12px; margin: 2px 0; }
.scr-opt { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; }
.scr-opt.is-on { border-color: var(--accent); background: var(--accent-soft); }
.scr-msg { max-width: 92%; padding: 6px 9px; border-radius: 9px; }
.scr-msg--bot { background: var(--paper); border-bottom-left-radius: 2px; }
.scr-msg--me { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.scr-chips { display: flex; gap: 5px; margin-top: auto; }
.scr-chips span { padding: 4px 8px; border: 1px solid var(--accent); color: var(--accent-ink); border-radius: 5px; font-size: 10px; }

.hero__title { font-size: clamp(34px, 3.5vw, 50px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.12; text-wrap: initial; }
.hero__accent { color: var(--accent); font-weight: 500; }
.hero__lead { font-size: 18px; color: var(--muted); margin-top: 20px; max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero__micro { margin-top: 12px; font-size: 14px; color: var(--muted); }

.usp { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.usp__item { display: flex; align-items: center; gap: 16px; padding: clamp(14px, 1.8vw, 22px) var(--pad); transition: background-color .25s var(--ease); }
.usp__item + .usp__item { border-left: 1px solid var(--line); }
.usp__item:hover { background-color: var(--accent-tint); }
.usp__icon { display: grid; place-items: center; width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--accent); transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.usp__icon svg { width: 28px; height: 28px; }
.usp__item:hover .usp__icon { background: var(--accent); color: #fff; transform: translateY(-2px); }
.usp__item b { display: block; font-size: clamp(26px, 2.3vw, 34px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; }
.usp__item span:not(.usp__icon) { display: block; font-size: 15px; line-height: 1.4; color: var(--muted); max-width: 17em; }/* Секции */
.section { padding: clamp(56px, 8vw, 112px) var(--pad); border-bottom: 1px solid var(--line); }
.section--tint { background: var(--paper-2); }
.section__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 56px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head > p { color: var(--muted); max-width: 32em; }

/* Ячейки */
.cells { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cells--3 { grid-template-columns: repeat(3, 1fr); }
.cell { padding: 28px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.cell h3 { margin-bottom: 10px; }
.cell p { color: var(--muted); font-size: 16px; }

/* Демо */
.demo { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.demo__lead { margin-top: 20px; color: var(--muted); max-width: 34em; }
.tools { margin-top: 36px; display: grid; gap: 10px; }
.tools li { display: flex; gap: 16px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.tools h3 { margin-bottom: 6px; }
.tools p { color: var(--muted); font-size: 16px; margin-bottom: 8px; }
.tools__hint { color: var(--muted); font-size: 15px; }

/* Чат */
.chat {
  display: flex; flex-direction: column;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden;
  height: 560px; max-height: calc(100vh - 120px);
  box-shadow: 0 30px 70px -40px rgba(66, 34, 160, .55);
}
.chat__top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat__logo { border-radius: 7px; }
.chat__top div { display: grid; line-height: 1.25; }
.chat__top b { font-weight: 500; font-size: 15px; }
.chat__top span { font-size: 13px; color: var(--muted); }
.chat__close { margin-left: auto; width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; font-size: 22px; line-height: 1; cursor: pointer; transition: border-color .2s, background-color .2s; }
.chat__close:hover { border-color: var(--ink); background: var(--paper); }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.45; animation: msg-in .25s ease-out; }
.msg--bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 3px; align-self: flex-start; }
.msg--user { background: var(--accent); color: #fff; border-bottom-right-radius: 3px; align-self: flex-end; }
.msg a { color: var(--accent-ink); }
.msg--typing { color: var(--muted); }
.msg--typing i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: currentColor; animation: dot 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat__options { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: var(--white); min-height: 64px; }
.chat__options button, .chat__options a {
  min-height: 38px; padding: 7px 12px; border-radius: var(--r); border: 1px solid var(--accent);
  background: var(--white); color: var(--accent-ink); font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  transition: background-color .2s, color .2s, transform .2s;
}
.chat__options button:hover, .chat__options a:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

.chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px;
  background: var(--accent); color: #fff; border: 0; border-radius: var(--r-lg); cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(98, 54, 232, .8);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s, background-color .2s;
}
.chat-launch img { border-radius: 8px; background: var(--white); }
.chat-launch span { font-size: 15px; font-weight: 500; }
.chat-launch.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.chat-launch.is-visible:hover { background: var(--accent-ink); transform: translateY(-2px); }
.chat-pop { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(400px, calc(100vw - 32px)); }
.chat-pop .chat { height: min(580px, calc(100vh - 40px)); max-height: none; box-shadow: 0 30px 80px -20px rgba(27, 24, 48, .4); }

/* Подход */
.why { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why__item { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.why__item h3 { margin-bottom: 8px; }
.why__item p { color: var(--muted); font-size: 16px; }
.band { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 420px 1fr; align-items: center; gap: 24px 56px; padding: clamp(24px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.band__owl { mix-blend-mode: multiply; width: 100%; max-width: 420px; margin: -40px 0; }
.band__quote { font-size: clamp(26px, 3vw, 40px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 28px; }

/* Цены */
.promo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 22px 26px; margin-bottom: 28px;
  background: var(--accent-soft); border: 1px solid #CFC2FF; border-radius: var(--r-lg);
}
.promo__text { display: grid; gap: 4px; max-width: 40em; }
.promo__text b { font-size: 20px; font-weight: 500; color: var(--accent-ink); }
.promo__text span { color: var(--muted); font-size: 15px; }
.promo__timer { display: grid; gap: 2px; text-align: right; }
.promo__label { font-size: 13px; color: var(--muted); }
.promo__count { font-size: 30px; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--accent-ink); }

.packs { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.packs__row { display: grid; grid-template-columns: 1.1fr 1.6fr 140px; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--line); align-items: baseline; transition: background-color .2s; }
.packs__row:not(.packs__row--head):hover { background: var(--accent-tint); }
.packs__row--head { border-top: 0; font-size: 13px; color: var(--muted); padding-top: 14px; padding-bottom: 14px; background: var(--paper); }
.packs__row b { font-weight: 500; }
.packs__row > span:not(.packs__price) { color: var(--muted); font-size: 16px; }
.packs__price { text-align: right; font-size: 20px; font-weight: 500; white-space: nowrap; }
.packs__row--head span:last-child { text-align: right; }

.price-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.price-card { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.price-card h3 { margin-bottom: 10px; }
.plist div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plist div:last-child { border-bottom: 0; }
.plist dd { margin: 0; white-space: nowrap; font-weight: 500; }
.price-card .small { margin-top: 10px; }
.price-note { margin-top: 20px; }

/* Калькулятор */
.calc { margin-top: 48px; display: grid; grid-template-columns: 1fr 300px; gap: 24px 40px; padding: clamp(20px, 3vw, 36px); background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); }
.calc__head { grid-column: 1 / -1; display: grid; gap: 6px; }
.calc__head h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; letter-spacing: -0.02em; }
.calc__head p { color: var(--muted); }
.calc__form { display: grid; gap: 20px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 14px; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); font-size: 15px; transition: background-color .2s, border-color .2s, transform .2s; }
.chip:hover span { border-color: var(--accent); transform: translateY(-1px); }
.chip span small { color: var(--muted); font-size: 13px; }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.calc__total { display: grid; gap: 6px; align-content: start; padding: 24px; background: var(--accent-tint); border: 1px solid #DDD3FF; border-radius: var(--r-lg); }
.calc__old { color: var(--muted); text-decoration: line-through; font-size: 16px; min-height: 1.4em; }
.calc__sum { font-size: 40px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc__cap { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

/* Этапы с волнистой линией */
.steps { position: relative; }
.steps__line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.steps__path { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.steps__path--done { stroke: var(--accent); stroke-width: 2.5; }
.steps__dot { fill: var(--accent); stroke: var(--paper); stroke-width: 4; }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.step { display: grid; grid-template-rows: 120px auto; }
.step__n { justify-self: center; align-self: start; }
.step:nth-child(even) .step__n { align-self: end; }
.step__n { width: 44px; height: 44px; border-radius: 4px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line-strong); font-weight: 500; position: relative; z-index: 1; transition: background-color .3s, color .3s, border-color .3s; }
.step.is-reached .step__n { background: var(--accent); color: #fff; border-color: var(--accent); }
.step__body { position: relative; z-index: 1; margin-top: 20px; padding: 18px 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .25s, background-color .25s, transform .25s, box-shadow .25s; }
.step.is-reached .step__body { border-color: #CFC2FF; }
.step__body:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(66, 34, 160, .45); }
.step h3 { margin: 6px 0 6px; }
.step h3 { font-size: 17px; }
.step p { color: var(--muted); font-size: 15px; }

/* Условия */
.terms { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.checks { margin: 32px 0 20px; border-top: 1px solid var(--line); }
.checks li { position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.about { padding: clamp(24px, 3vw, 36px); background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line); }
.about__title { margin-bottom: 16px; }
.about p { color: var(--muted); margin-bottom: 12px; }
.about__btn { margin-top: 8px; }
.req { margin: 20px 0 0; border-top: 1px solid var(--line); }
.req div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; font-weight: 500; text-align: right; }

/* FAQ */
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); transition: background-color .2s; }
.faq__list details:hover { background: var(--white); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 12px; font-size: clamp(17px, 1.6vw, 20px); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-size: 28px; font-weight: 300; line-height: .9; color: var(--accent); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 12px 24px; color: var(--muted); max-width: 46em; }

/* Квиз */
.quiz { display: grid; grid-template-columns: 420px 1fr; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.quiz__side { padding: clamp(24px, 3vw, 40px); background: var(--accent-soft); border-right: 1px solid #DDD3FF; display: flex; flex-direction: column; gap: 14px; }
.quiz__side .label { margin-bottom: 0; }

.quiz__side p { color: var(--muted); }
.quiz__side .small { margin-top: auto; }
.quiz__progress { height: 4px; background: rgba(98, 54, 232, .18); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.quiz__progress span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--blue), var(--accent)); transition: width .4s var(--ease); }
.quiz__count { font-size: 15px; color: var(--ink) !important; font-weight: 500; }
.quiz__main { padding: clamp(20px, 3vw, 40px); min-height: 520px; display: flex; flex-direction: column; }
.quiz__form { display: flex; flex-direction: column; flex: 1; }
.quiz__stage { flex: 1; }
.quiz__q { font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 6px; }
.quiz__hint { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: grid; gap: 2px; height: 100%; padding: 16px 18px 16px 50px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); transition: border-color .2s, background-color .2s, transform .2s, box-shadow .2s; position: relative; }
.opt:hover span { border-color: var(--accent); background: var(--white); transform: translateY(-2px); box-shadow: 0 14px 30px -24px rgba(66, 34, 160, .5); }
.opt span::before { content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border: 1.5px solid #8C88A0; border-radius: 50%; background: #fff; }
.opt input[type="checkbox"] + span::before { border-radius: 4px; }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.opt input:checked + span::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
.opt input[type="checkbox"]:checked + span::before { box-shadow: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt b { font-weight: 500; }
.opt small { color: var(--muted); font-size: 14px; }
.opt em { font-style: normal; color: var(--accent-ink); font-size: 14px; font-weight: 500; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quiz__err { color: var(--err); font-size: 15px; margin-top: 12px; min-height: 1.4em; }

.result__sum { font-size: clamp(40px, 5vw, 64px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.result__old { color: var(--muted); text-decoration: line-through; }
.result__lines { margin: 20px 0; border-top: 1px solid var(--line); }
.result__lines li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.result__lines li span:last-child { white-space: nowrap; font-weight: 500; }
.result__lines li.is-minus span:last-child { color: var(--ok); }
.result__note { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* Формы */
.lead { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.lead h4 { margin: 0; font-size: 20px; font-weight: 500; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9D97B5; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field__err { color: var(--err); font-size: 14px; }
.field__err:empty { display: none; }
.lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--muted); align-items: start; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__status { font-size: 15px; }
.lead__status:empty { display: none; }
.lead__status.is-err { color: var(--err); }
.lead__status.is-ok { color: var(--ok); }
.sent { padding: 20px; border-radius: var(--r-lg); background: var(--accent-soft); display: grid; gap: 12px; }
.sent h4 { margin: 0; font-size: 20px; font-weight: 500; }
.sent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sent textarea { width: 100%; min-height: 120px; font: inherit; font-size: 14px; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contacts__lead { color: var(--muted); margin: 18px 0 28px; max-width: 30em; }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-list a { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; background: var(--paper); }
.contact-list svg { width: 40px; height: 40px; padding: 9px; border-radius: var(--r); background: var(--accent); fill: #fff; flex-shrink: 0; transition: transform .25s var(--ease); }
.contact-list a:hover svg { transform: scale(1.08); }
.contact-list span { display: grid; font-size: 15px; color: var(--muted); word-break: break-word; }
.contact-list b { color: var(--ink); font-weight: 500; font-size: 16px; }
.cform { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cform h3 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.cform:hover { transform: none; }

/* Футер */
.footer { padding: 0 0 24px; font-size: 14px; color: var(--muted); }
.footer__in { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 24px; padding: 32px var(--pad); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.footer__brand { display: flex; gap: 12px; align-items: center; align-self: start; }
.footer__brand img { border-radius: 8px; }
.footer__brand div { display: grid; line-height: 1.3; }
.footer__brand b { color: var(--ink); font-weight: 600; }
.footer__docs { display: grid; gap: 6px; }
.footer__docs a, .footer__req a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer__docs a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer__req { display: grid; gap: 4px; text-align: right; align-content: start; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--pad) 0; border-top: 1px solid var(--line); }
.credit { display: inline-block; padding: 6px 12px; border-radius: var(--r); background: var(--paper-2); color: var(--ink); font-size: 13px; }

/* Cookie */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: 440px; padding: 16px; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 20px 50px -20px rgba(27, 24, 48, .35); display: grid; gap: 12px; font-size: 14px; color: var(--muted); }
.cookie { max-width: 460px; padding: 20px; gap: 10px; line-height: 1.5; opacity: 0; transform: translateY(16px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.cookie.is-shown { opacity: 1; transform: none; }
.cookie__title { font-size: 17px; font-weight: 500; color: var(--ink); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cookie__actions .btn { flex: 1; }
.cookie[hidden] { display: none; }

/* Появление при прокрутке (только с JS и без запрета анимаций) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .cells .reveal:nth-child(3n+2), .js .why .reveal:nth-child(3n+2), .js .price-cols .reveal:nth-child(2) { transition-delay: .08s; }
  .js .cells .reveal:nth-child(3n), .js .why .reveal:nth-child(3n), .js .price-cols .reveal:nth-child(3) { transition-delay: .16s; }
  .js .reveal.is-in.card:hover { transition-delay: 0s; }

  .hero__text > * { animation: rise .9s var(--ease) both .1s; }
  .hero__text > *:nth-child(2) { animation-delay: .2s; }
  .hero__text > *:nth-child(3) { animation-delay: .3s; }
  .hero__text > *:nth-child(4) { animation-delay: .38s; }
  .device__body { animation: rise 1s var(--ease) both; }
  .device__owl { animation: owl-land 1.2s var(--ease) both .35s; }
  .scr-msg, .scr-chips { animation: rise .5s var(--ease) both; }
  .scr-msg:nth-child(1) { animation-delay: .9s; }
  .scr-msg:nth-child(2) { animation-delay: 1.5s; }
  .scr-msg:nth-child(3) { animation-delay: 2.2s; }
  .scr-chips { animation-delay: 2.6s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes owl-land { from { opacity: 0; transform: translateY(-36px) scale(.96); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Меню в «бургер» */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__in { gap: 14px; }
  .header__promo { margin-left: auto; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px;
  }
  .nav.is-open a { padding: 14px 0; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav.is-open a::after { display: none; }
}

/* Планшет */
@media (max-width: 1080px) {
  .hero__main { grid-template-columns: 1fr; }
  .hero__stage { border-top: 1px solid var(--line); padding-top: 220px; padding-bottom: 48px; }
  .why { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 260px 1fr; }
  .demo { grid-template-columns: 1fr; }
  .quiz { grid-template-columns: 1fr; }
  .quiz__side { border-right: 0; border-bottom: 1px solid #DDD3FF; }
  .quiz__side .small { margin-top: 0; }
  .calc { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; gap: 0; }
  .step { grid-template-rows: none; grid-template-columns: 44px 1fr; gap: 28px; padding: 10px 0; }
  .step__n, .step:nth-child(even) .step__n { justify-self: start; align-self: start; margin-top: 16px; }
  .step__body { margin-top: 0; }
  .contacts { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__req { text-align: left; }
}

/* Телефон */
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --header-h: 58px; }
  .frame { border: 0; }
  .header__in { border: 0; }

  .header__promo-text { display: none; }
  .header__in { gap: 10px; }
  .hero__stage { padding-top: 140px; padding-bottom: 32px; background-size: 100% 44px, 44px 100%; }
  .hero__text { padding-top: 28px; padding-bottom: 32px; }
  .device { width: 92%; }
  .device__body { padding: 8px; border-radius: 16px; }
  .device__screen { border-radius: 10px; }
  .device__owl { width: 86px; right: 6%; bottom: calc(100% - 14px); }
  .scr-grid { grid-template-columns: 1fr; padding: 8px; }
  .scr-quiz { display: none; }
  .scr-chat { font-size: 10.5px; padding: 9px; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .usp { grid-template-columns: 1fr; }
  .usp__item { padding: 18px var(--pad); align-items: center; }
  .usp__item + .usp__item { border-left: 0; border-top: 1px solid #CDBEFF; }
  .usp__icon { width: 48px; height: 48px; }
  .section__head { grid-template-columns: 1fr; }
  .cells--3, .why { grid-template-columns: 1fr; }
  .cell, .why__item { padding: 22px 20px 24px; }
  .band { grid-template-columns: 1fr; text-align: left; }
  .band__owl { max-width: 220px; margin: -20px auto -10px; }
  .chat { height: 520px; }
  .promo { padding: 20px; }
  .promo__timer { text-align: left; }
  .packs__row { grid-template-columns: 1fr auto; padding: 16px 18px; gap: 4px 16px; }
  .packs__row > span:not(.packs__price) { grid-column: 1; grid-row: 2; font-size: 15px; }
  .packs__row b { grid-column: 1; }
  .packs__price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 18px; }
  .packs__row--head { display: none; }
  .packs__row:nth-child(2) { border-top: 0; }
  .price-cols { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .quiz__main { min-height: 0; }
  .quiz__side { gap: 10px; }
  .lead__row { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; }
  .chat-launch span { display: none; }
  .chat-launch { padding: 5px; right: 14px; bottom: 14px; }
  .chat-pop { right: 8px; bottom: 8px; width: calc(100vw - 16px); }
  .cookie { left: 8px; right: 8px; bottom: 8px; max-width: none; padding: 16px; }
  .cookie__actions .btn { flex: 1 1 100%; }
}
@media (min-width: 761px) { .h-line { display: block; white-space: nowrap; } }
@media (max-width: 400px) {
  .brand__name { display: none; }
}
