/* Платформа Ярослава Кирдуна. Светлая «редакционная» тема, один шрифт, без тяжёлых эффектов. */
/* Пока грузится Manrope, текст рисуется Arial, растянутым до той же ширины (замерено: 101,5%): строки не прыгают. */
@font-face { font-family: "Manrope Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 101.5%; }
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #101114;
  --ink-2: #33363d;
  --muted: #62666f;
  --line: #e4e1d9;
  --line-2: #d3cfc5;
  --accent: #2346ff;
  --accent-2: #1a35d6;
  --accent-soft: #e8ecff;
  --accent-ink: #ffffff;
  --dark: #0f1013;
  --dark-2: #1a1c21;
  --dark-line: rgba(255, 255, 255, .1);
  --on-dark: #f3f2ee;
  --on-dark-muted: #a6a8b0;
  --ok: #0e8a4f;
  --bad: #d23b4f;
  --r: 18px;
  --r-sm: 12px;
  --max: 1180px;
  --pad: clamp(16px, 4vw, 32px);
  --font: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 2px rgba(16, 17, 20, .04), 0 8px 24px -12px rgba(16, 17, 20, .12);
  --shadow-lg: 0 2px 4px rgba(16, 17, 20, .04), 0 24px 48px -20px rgba(35, 70, 255, .28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.center { text-align: center; margin-top: 28px; }

/* ---------- кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .7em 1.2em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: .85em 1.5em; font-size: 1.04rem; }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px rgba(35, 70, 255, .7); }
.btn-accent:hover { background: var(--accent-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2c33; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { flex: none; }
.link { color: var(--accent); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 1.05rem; }
.logo-name { font-size: 1.08rem; letter-spacing: -.02em; }
.logo-name span { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.nav a:hover, .nav a.active { background: var(--surface); color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: grid; place-items: center; min-width: 44px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 700; font-size: .85rem; }
.lang:hover { border-color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease); }
.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 { padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 6vw, 64px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(14, 138, 79, .16); }
.hero h1 { font-size: clamp(2.15rem, 5.4vw, 4.25rem); line-height: 1.02; letter-spacing: -.04em; }
.hl { color: var(--accent); }
.lead { margin-top: 20px; font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.guarantees { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin-top: 28px; max-width: 40em; }
.guarantees li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.guarantees svg { flex: none; color: var(--ok); margin-top: 2px; }

/* живое демо Кордона */
.demo { background: var(--dark); color: var(--on-dark); border-radius: 24px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(16, 17, 20, .5); }
.demo-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--dark-line); }
.demo-head b { display: block; font-size: .98rem; }
.demo-head small { color: var(--on-dark-muted); font-size: .84rem; }
.demo-ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #35d07f; margin-left: auto; }
.demo-chat { height: 290px; overflow-y: auto; padding: 14px 2px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .93rem; line-height: 1.45; background: var(--dark-2); }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { border-bottom-left-radius: 6px; }
.msg.bad { box-shadow: inset 3px 0 0 #ff6b7d; }
.msg.ok { box-shadow: inset 3px 0 0 #35d07f; }
.msg b { display: block; margin-bottom: 2px; }
.msg ul { margin: 6px 0 0 18px; color: var(--on-dark-muted); }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--on-dark-muted); opacity: .5; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; }
.demo-chips button { border: 1px solid var(--dark-line); background: transparent; color: var(--on-dark); border-radius: 999px; padding: 7px 11px; font-size: .82rem; cursor: pointer; min-height: 36px; }
.demo-chips button:hover { border-color: rgba(255, 255, 255, .35); }
.demo-input { display: flex; gap: 8px; }
.demo-input input { flex: 1; min-width: 0; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 999px; padding: 12px 16px; color: var(--on-dark); }
.demo-input input::placeholder { color: var(--on-dark-muted); }
.demo-input button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }
.demo-note { margin-top: 12px; font-size: .8rem; color: var(--on-dark-muted); }
.demo-note a { color: #9db0ff; }

.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(36px, 6vw, 64px); border-top: 1px solid var(--line); }
.proof div { padding: 18px 18px 0 0; }
.proof div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.proof dt { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; }
.proof dd { color: var(--muted); font-size: .9rem; line-height: 1.4; margin-top: 4px; }

/* ---------- секции ---------- */
/* Ниже первого экрана браузер не рисует секции, пока до них не доскроллят: быстрее первый показ на слабых телефонах. */
.sec, .band, .final { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.sec { padding: clamp(56px, 9vw, 112px) 0; }
.sec-tight { padding-top: clamp(40px, 6vw, 72px); }
.sec-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.sec h2, .final h2, .band h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); letter-spacing: -.035em; }
.sec-lead { margin-top: 14px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.1rem); }

/* работы */
.cases { display: grid; gap: clamp(20px, 3vw, 32px); }
.case { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(14px, 2vw, 20px); }
.case:nth-child(even) .case-img { order: 2; }
.case-img { border-radius: 16px; overflow: hidden; background: var(--bg); aspect-ratio: 16 / 10; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: clamp(4px, 2vw, 20px); }
.case-tag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; font-weight: 600; }
.case h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 10px 0 12px; letter-spacing: -.03em; }
.case-body > p:not(.case-tag):not(.stack) { color: var(--ink-2); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.facts li { background: var(--accent-soft); color: var(--accent-2); font-weight: 700; font-size: .86rem; padding: 6px 11px; border-radius: 999px; }
.stack { margin-top: 14px; color: var(--muted); font-size: .84rem; }
.case-links { display: flex; align-items: center; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge.live { color: var(--ok); border-color: rgba(14, 138, 79, .25); background: rgba(14, 138, 79, .07); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.more-h { font-size: 1.2rem; margin: clamp(40px, 6vw, 64px) 0 18px; }
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.mini-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mini-tag { color: var(--accent-2); font-weight: 700; font-size: .9rem; }
.mini-text { color: var(--ink-2); font-size: .92rem; flex: 1; }
.mini .stack { margin-top: 0; }
.mini-private { color: var(--muted); font-size: .88rem; font-style: italic; }

/* цены */
.price-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button, .cur button {
  border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 9px 16px; min-height: 42px;
  font-weight: 700; font-size: .94rem; cursor: pointer; color: var(--ink-2);
}
.tabs button[aria-selected="true"], .cur button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cur { display: flex; gap: 4px; }
.cur button { padding: 7px 12px; min-height: 40px; font-size: .86rem; }
.panel + .panel { margin-top: 28px; }
.js .panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 8px; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pack { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px 22px; }
.pack.best { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.pack-badge { position: absolute; top: -13px; left: 22px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.pack h4 { font-size: 1.3rem; letter-spacing: -.02em; }
.pack-for { color: var(--muted); font-size: .92rem; margin-top: 6px; min-height: 2.8em; }
.pack-price { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; margin-top: 16px; }
.pack-price small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pack-days { color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.inc { list-style: none; display: grid; gap: 8px; margin: 18px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.inc li { display: flex; gap: 9px; align-items: flex-start; font-size: .94rem; line-height: 1.4; }
.inc svg { flex: none; color: var(--ok); margin-top: 2px; }
.exc { color: var(--muted); font-size: .86rem; margin-bottom: 20px; flex: 1; }
.exc b { color: var(--ink-2); font-weight: 700; }
.price-note { margin-top: 22px; color: var(--muted); font-size: .94rem; text-align: center; }

/* демо-полоса */
.band { background: var(--dark); color: var(--on-dark); padding: clamp(56px, 8vw, 96px) 0; }
.band .eyebrow { color: #8fa3ff; }
.band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.band-item { border: 1px solid var(--dark-line); border-radius: var(--r); padding: 22px; background: var(--dark-2); }
.band-num { font-weight: 800; color: #8fa3ff; font-size: .9rem; }
.band-item h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.band-item p { color: var(--on-dark-muted); font-size: .95rem; }

/* калькулятор */
.calc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.calc-left { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 30px); display: grid; gap: 24px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-label { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 10px; padding: 0; }
textarea, .final-form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: var(--bg); resize: vertical; min-height: 84px; line-height: 1.5; }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { margin-top: 8px; font-size: .88rem; color: var(--accent-2); font-weight: 600; min-height: 1.3em; }
.types, .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.types label, .opts label { position: relative; cursor: pointer; }
.types input, .opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.types label > span, .opts label > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 14px; font-weight: 600; font-size: .94rem; line-height: 1.3; transition: border-color .15s, background-color .15s; }
.opts em { font-style: normal; color: var(--muted); font-weight: 700; font-size: .86rem; white-space: nowrap; }
.types input:checked + span, .opts input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.opts input:checked + span em { color: var(--accent-2); }
.types input:focus-visible + span, .opts input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; margin-bottom: 10px; }
.range-top output { font-size: 1.3rem; color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; transition: background-color .18s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .18s var(--ease); }
.switch input:checked + .sw { background: var(--accent); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.switch input:focus-visible + .sw { outline: 3px solid var(--accent); outline-offset: 2px; }
.calc-right { position: sticky; top: 86px; background: var(--dark); color: var(--on-dark); border-radius: 24px; padding: clamp(20px, 3vw, 30px); }
.res-label { color: var(--on-dark-muted); font-weight: 700; font-size: .9rem; }
.res-price { font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; margin-top: 6px; line-height: 1.1; }
.res-days { color: var(--on-dark-muted); margin-top: 6px; }
.res-days b { color: var(--on-dark); }
.res-list { list-style: none; margin: 18px 0 20px; padding: 16px 0 0; border-top: 1px solid var(--dark-line); display: grid; gap: 8px; font-size: .92rem; }
.res-list li { display: flex; justify-content: space-between; gap: 12px; color: var(--on-dark-muted); }
.res-list li span:last-child { color: var(--on-dark); font-weight: 700; white-space: nowrap; }
.res-note { margin-top: 12px; color: var(--on-dark-muted); font-size: .82rem; }

/* процесс */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.step { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.step::before { content: "0" counter(s); display: block; font-weight: 800; color: var(--accent); font-size: .9rem; margin-bottom: 12px; }
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* обо мне, оплата */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.about-p { color: var(--ink-2); font-size: 1.06rem; margin-bottom: 16px; max-width: 38em; }
.about-side { display: grid; gap: 16px; }
.not, .pay { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.not h3, .pay h3 { font-size: 1.1rem; margin-bottom: 12px; }
.not ul { list-style: none; display: grid; gap: 8px; }
.not li { padding-left: 24px; position: relative; color: var(--ink-2); font-size: .95rem; }
.not li::before { content: "×"; position: absolute; left: 4px; top: -1px; color: var(--bad); font-weight: 800; }
.pay dl { display: grid; gap: 12px; }
.pay dt { font-weight: 800; font-size: .95rem; }
.pay dd { color: var(--muted); font-size: .92rem; }
.npd { margin-top: 12px; font-weight: 700; color: var(--ok); font-size: .92rem; }

/* вопросы */
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 700; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; font-size: 1.4rem; font-weight: 600; color: var(--muted); transition: rotate .2s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 18px 18px; color: var(--ink-2); }

/* дневник */
.diary-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.timeline { list-style: none; border-left: 2px solid var(--line); padding-left: 22px; display: grid; gap: 22px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline time { font-size: .84rem; color: var(--muted); font-weight: 700; }
.timeline h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.timeline p { color: var(--ink-2); font-size: .94rem; }

/* финал и подвал */
.final { padding: clamp(64px, 10vw, 120px) 0; text-align: center; background: var(--surface); border-top: 1px solid var(--line); }
.final-in { max-width: 720px; }
.final .sec-lead { margin-inline: auto; max-width: 34em; }
.final-form { display: grid; gap: 12px; margin: 28px auto 16px; text-align: left; }
.final-form .btn { justify-self: center; }
.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; font-weight: 600; color: var(--ink-2); }
.foot a:hover { color: var(--accent); }

/* плавающая кнопка заказа на телефоне */
.mbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none; }
.mbar .btn { width: 100%; box-shadow: 0 12px 30px -10px rgba(16, 17, 20, .45); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; translate: -50% 20px; opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: .92rem; font-weight: 600; max-width: min(92vw, 460px); text-align: center; transition: opacity .2s, translate .2s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: #fff; padding: 12px; text-align: center; z-index: 70; }
.noscript a { color: #9db0ff; }

/* ---------- плавное появление: только где браузер умеет scroll-driven, и только если пользователь не против движения ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes rise { from { opacity: 0; translate: 0 22px; } }
    .reveal { animation: rise linear backwards; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
  .dot { animation: pulse 2.4s ease-in-out 3; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(14, 138, 79, 0); } }
  .typing i { animation: blink 1s infinite; }
  .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes blink { 50% { opacity: 1; } }
  .btn-accent:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-in, .case, .calc, .about, .faq-in, .diary-in { grid-template-columns: minmax(0, 1fr); }
  .case:nth-child(even) .case-img { order: 0; }
  .calc-right { position: static; }
  .packs { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; gap: 22px; }
  .pack-for { min-height: 0; }
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof div:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof div:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 18px; }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 66px 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--pad) 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .2); display: none; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .burger { display: block; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .top-actions .btn span { display: none; }
  .top-actions .btn { width: 44px; padding: 0; min-height: 44px; }
  .logo-name { font-size: .95rem; }
  .guarantees { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .demo-chat { height: 250px; }
  .price-bar { flex-direction: column; align-items: stretch; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
  .cur { align-self: flex-start; }
  .mbar.show { display: block; }
  .foot { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
