@font-face{font-family:"Open Runde";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/runde-400.woff2) format("woff2");}
@font-face{font-family:"Open Runde";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/runde-500.woff2) format("woff2");}
@font-face{font-family:"Open Runde";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/runde-600.woff2) format("woff2");}
@font-face{font-family:"Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/plexmono-cyr.woff2) format("woff2");unicode-range:U+0400-04FF;}
@font-face{font-family:"Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/plexmono-lat.woff2) format("woff2");unicode-range:U+0000-00FF,U+2010-2027,U+2192,U+2713;}

/* ===== Токены ===== */
:root {
  --ink: #15121e;
  --paper: #ffffff;
  --band: #f5f3f8;
  --line: #e3dfea;
  --mut: #5e5870;
  --rose: #d4235c;
  --rose-d: #b81c4e;
  --rose-soft: #ffe3ec;
  --peach: #ffd3bd;
  --lilac: #ddd4ff;
  --mint: #c5efda;
  --ok: #0e8a55;
  --card-d: #1f1b2b;
  --line-d: #342f44;
  --mut-d: #aaa4bd;
  --sans: "Open Runde", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-card: 24px;
  --r-mini: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  font: 400 16px/1.55 var(--sans);
  letter-spacing: -0.01em;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px;
  overflow-x: clip;
}
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.dark :focus-visible, .end :focus-visible { outline-color: var(--mint); }
.w { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 40px; max-width: 18em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Кнопки ===== */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--rose); color: #fff; font-weight: 500; text-decoration: none;
  border: 1.5px solid var(--rose); text-align: center; transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--rose-d); border-color: var(--rose-d); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--band); border-color: var(--mut); }
.btn.sm { padding: 9px 20px; font-size: 14px; }
.pill-btn {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px;
  padding: 5px 14px; font: 500 13px/1.2 var(--sans); cursor: pointer; transition: background .2s;
}
.pill-btn:hover { background: var(--band); }
.pill-btn[aria-pressed="false"] { color: var(--mut); }
.pill-btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); padding: 9px 16px; font-size: 14px; }
.pill-btn.dark:hover { background: #2a2538; }

/* ===== Шапка ===== */
.top { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; display: block; border-radius: 10px; }
.logo-text { font-weight: 600; font-size: 20px; letter-spacing: -0.04em; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--mut); font-weight: 500; font-size: 15px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--band); color: var(--ink); }

/* ===== Первый экран ===== */
.hero { display: grid; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 96px; }
.hero > * { min-width: 0; }
h1 { font-size: clamp(36px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -0.045em; }
.lead { margin: 24px 0 32px; font-size: 19px; line-height: 1.55; color: var(--mut); max-width: 31em; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li { padding: 6px 14px 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }

/* ===== Недельная сетка (главный образ) ===== */
.stage { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.week-note { margin-top: 14px; font-size: 14px; color: var(--mut); min-height: 44px; }
.week-note a { color: var(--ink); font-weight: 500; }

.wd {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px 12px 12px;
  background: var(--paper); border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -14px rgba(21, 18, 30, .28);
  margin-top: 12px;
  pointer-events: none;
}
.wd b { display: block; font-size: 14px; letter-spacing: -0.02em; }
.wd span { display: block; font-size: 13px; color: var(--ink); }
.wd em { display: block; font-style: normal; font-size: 12px; color: var(--mut); margin-top: 2px; }
.wd-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font: 600 13px var(--sans); font-style: normal; }
.wd-ico.lilac { background: var(--lilac); color: var(--ink); }
.wd-ico.peach { background: var(--peach); color: var(--ink); }
.js .wd { opacity: 0; transform: translateY(14px) scale(.96); }
.js .stage.in .wd { animation: wdIn .7s cubic-bezier(.2, .9, .3, 1) forwards; }
.js .stage.in .wd-push { animation-delay: .9s; }
.js .stage.in .wd-rem { animation-delay: 1.5s; }
.js .stage.in .wd-burn { animation-delay: 2.1s; }
@keyframes wdIn { to { opacity: 1; transform: none; } }
.wd.bump { animation: bump .5s ease !important; }
@keyframes bump { 40% { transform: translateY(-6px); } }

/* ===== Три шага ===== */
.how { padding: 0 0 72px; }
.strip { list-style: none; padding: 32px 0 0; border-top: 1px solid var(--line); display: grid; gap: 24px; counter-reset: s; }
.strip li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; }
.strip li::before { content: counter(s); grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 17px; }
.strip b { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; }
.strip span { color: var(--mut); }

/* ===== Боли ===== */
.band { background: var(--band); }
.pains { display: grid; gap: 16px; }
.pain { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; }
.pain time { font: 500 13px var(--sans); color: var(--mut); font-variant-numeric: tabular-nums; }
.pain h3 { font-size: 22px; margin: 6px 0 18px; letter-spacing: -0.03em; }
.pain p { margin-bottom: 10px; color: var(--mut); }
.pain p.now { color: var(--ink); }
.was span, .now span { display: inline-block; margin-right: 8px; padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink); }
.was span { background: var(--rose-soft); }
.now span { background: var(--mint); }

/* ===== Тёмная полоса: что внутри ===== */
.dark { background: var(--ink); color: #fff; }
.sys-head { margin-bottom: 48px; }
.sys-head h2 { margin-bottom: 16px; color: #fff; }
.sys-head p { color: var(--mut-d); font-size: 18px; max-width: 32em; }
.bento { display: grid; gap: 16px; }
.tile { border-radius: var(--r-card); padding: 28px; color: var(--ink); display: flex; flex-direction: column; }
.tile.peach { background: var(--peach); }
.tile.lilac { background: var(--lilac); }
.tile.mint { background: var(--mint); }
.tile h3 { font-size: 22px; margin-bottom: 8px; }
.tile > p { font-size: 15px; color: rgba(21, 18, 30, .78); max-width: 26em; }
.mini { margin-top: auto; padding-top: 20px; }
.mini > * + * { margin-top: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: rgba(255, 255, 255, .55); border-radius: 999px; width: fit-content; max-width: 100%; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; font: 500 13px/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
.gaps { list-style: none; padding: 0; }
.gaps li { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; background: rgba(255, 255, 255, .7); border-radius: 12px; padding: 9px 12px; font-size: 14px; transition: background .25s; }
.gaps b { font-variant-numeric: tabular-nums; }
.gaps i { font-style: normal; font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px; }
.gaps li.fit i { background: #fff; color: var(--ok); }
.gaps li.nofit { opacity: .65; }
.gaps li.nofit i { background: var(--rose-soft); color: var(--rose-d); }
.flow { list-style: none; padding: 0; display: grid; gap: 6px; counter-reset: f; }
.flow li { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .55); border-radius: 12px; padding: 9px 12px; font-size: 14px; transition: background .3s, color .3s; }
.flow li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); flex: none; transition: background .3s; }
.flow li.done { background: rgba(255, 255, 255, .95); }
.flow li.done i { background: var(--ok); border-color: var(--ok); }
.burn-slot { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, .75); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.burn-slot span { font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--peach); transition: background .3s; }
.burn-slot span.free { background: var(--rose-soft); color: var(--rose-d); }
.burn-slot span.ok { background: #fff; color: var(--ok); }
.mini-log { font-size: 13px; min-height: 40px; color: rgba(21, 18, 30, .85); }
.mini label { font-size: 14px; display: block; }
.mini input[type=range] { width: 100%; height: 28px; accent-color: var(--rose); margin: 2px 0; cursor: pointer; }
.bubble { background: #fff; border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 14px; line-height: 1.45; }
.bot-btn { background: #fff; border-radius: 12px; padding: 12px; text-align: center; font-weight: 500; font-size: 15px; border: 1px solid rgba(21, 18, 30, .1); min-height: 46px; transition: opacity .2s; }
.iso { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.iso > div { background: rgba(255, 255, 255, .8); border-radius: 12px; padding: 12px; font-size: 13px; }
.iso > div + div { margin-top: 0; }
.iso i { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); margin-bottom: 8px; }
.iso b { display: block; font-size: 14px; }
.iso .dim { background: transparent; border: 1.5px dashed rgba(21, 18, 30, .35); }
.iso .dim i { background: rgba(21, 18, 30, .3); }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 28px; position: relative; font-size: 14px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; }
.log-card { background: var(--card-d); border: 1px solid var(--line-d); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; min-height: 260px; }
.log-top { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--line-d); color: var(--mut-d); font-size: 13px; }
.log-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-d); }
.log-top span { margin-left: 8px; }
.log-top em { margin-left: auto; font-style: normal; font-size: 12px; padding: 2px 10px; border: 1px solid var(--line-d); border-radius: 999px; }
.log { font: 400 13.5px/1.9 var(--mono); color: #d9d4ea; padding: 18px 20px; white-space: pre-wrap; overflow: hidden; flex: 1; letter-spacing: 0; }
.log .t { color: #7d7694; }
.log .ok { color: #7ee6b2; }

/* ===== Демо в Telegram ===== */
.demo-grid { display: grid; gap: 48px; align-items: center; }
.hint { margin-top: 8px; padding: 18px 20px; min-height: 92px; background: var(--band); border-left: 4px solid var(--rose); border-radius: 0 var(--r-mini) var(--r-mini) 0; font-size: 17px; color: var(--ink); }
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.tabs button { position: relative; border: 1px solid var(--line); background: var(--paper); color: var(--mut); border-radius: 999px; padding: 8px 18px; font: 500 14px/1.2 var(--sans); cursor: pointer; transition: background .2s; }
.tabs button:hover { background: var(--band); }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
#dot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--rose); border: 2px solid #fff; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 35, 92, .6); } 70% { box-shadow: 0 0 0 9px rgba(212, 35, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 35, 92, 0); } }
.phone { width: 320px; max-width: 100%; height: 540px; margin: 0 auto; background: #ece9f2; border-radius: 38px; border: 8px solid var(--ink); display: flex; flex-direction: column; overflow: hidden; font-size: 13.5px; }
.ph { padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; }
.ph-title { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ph-logo { width: 24px; height: 24px; border-radius: 7px; }
.ph small { display: block; font-weight: 400; color: var(--mut); font-size: 11px; margin-top: 2px; }
#chat { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.b, .u { max-width: 88%; padding: 9px 12px; border-radius: 16px; animation: slideIn .3s cubic-bezier(.25, 1, .5, 1) both; line-height: 1.45; }
.b { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.u { background: var(--rose-soft); align-self: flex-end; border-bottom-right-radius: 4px; }
.s { align-self: center; font-size: 11px; color: var(--mut); padding: 3px 12px; border-radius: 999px; background: rgba(21, 18, 30, .07); animation: fadeIn .4s ease both; }
#kb { display: grid; gap: 6px; padding: 10px; max-height: 220px; overflow-y: auto; background: #fff; border-top: 1px solid var(--line); }
#kb.m { grid-template-columns: 1fr 1fr; }
#kb button { background: #ece9f2; color: var(--ink); border: 0; border-radius: 12px; padding: 11px 8px; font: 500 13.5px/1.25 var(--sans); cursor: pointer; transition: background .2s; animation: fadeIn .3s ease; }
#kb button:hover { background: #ddd8e8; }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Калькулятор ===== */
.calc { display: grid; gap: 40px; align-items: start; }
.sl { margin-bottom: 26px; }
.sl label { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; margin-bottom: 8px; }
.sl label span { font-variant-numeric: tabular-nums; }
.sl input { width: 100%; height: 28px; accent-color: var(--rose); cursor: pointer; }
.res { background: var(--ink); color: #fff; border-radius: 28px; padding: 32px; }
.res > div { margin-bottom: 22px; }
.res span { display: block; font-size: 14px; color: var(--mut-d); margin-bottom: 4px; }
.res strong { font-weight: 600; font-size: 38px; letter-spacing: -0.04em; color: #7ee6b2; font-variant-numeric: tabular-nums; }
.res p { font-size: 14px; color: var(--mut-d); border-top: 1px solid var(--line-d); padding-top: 14px; }
.res p.fine { border: 0; padding-top: 6px; font-size: 13px; }
.vs { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.vs li { display: grid; grid-template-columns: 56px 1fr 84px; align-items: center; gap: 10px; font-size: 13px; color: var(--mut-d); }
.vs em { font-style: normal; }
.vs output { text-align: right; color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
.vs-bar { display: block; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.vs-bar b { display: block; height: 100%; width: var(--w, 0%); border-radius: 999px; background: var(--rose); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.vs-bar b.g { background: #7ee6b2; }

/* ===== Тариф ===== */
.price { display: grid; gap: 40px; align-items: center; }
.card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 32px; padding: 40px; }
.card h2 { font-size: 26px; margin-bottom: 16px; }
.price-line { display: flex; align-items: baseline; gap: 10px; }
.amount { font-size: 64px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.per { color: var(--mut); }
.trial { display: inline-block; margin-top: 14px; padding: 4px 14px; border-radius: 999px; background: var(--mint); font-size: 14px; font-weight: 500; }
.card ul { list-style: none; padding: 0; margin: 28px 0 32px; }
.card li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.card li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; }
.card .btn { display: block; }
.why h3 { font-size: 24px; margin-bottom: 14px; }
.why p { color: var(--mut); margin-bottom: 14px; font-size: 17px; max-width: 28em; }

/* ===== Сравнение ===== */
.table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--band); font-size: 13px; font-weight: 500; color: var(--mut); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody th { font-weight: 500; }
.cmp a { display: inline-block; padding: 4px 0; text-decoration-color: var(--line); text-underline-offset: 3px; }
.cmp a:hover { text-decoration-color: var(--ink); }
.cmp tr.self { background: var(--rose-soft); }
.cmp-note { margin-top: 16px; font-size: 14px; color: var(--mut); max-width: 44em; }

/* ===== Ответы ===== */
.answers { display: grid; gap: 32px 48px; }
.answers > div { border-top: 1px solid var(--ink); padding-top: 18px; }
.answers h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.025em; }
.answers p { color: var(--mut); }

/* ===== Финал ===== */
.end { text-align: center; padding: 96px 0; }
.end h2 { margin-inline: auto; color: #fff; }
.end p { color: var(--mut-d); margin: -16px 0 28px; }
.end-orb { margin: 0 auto 8px; display: block; width: 200px; height: 200px; }

/* ===== Подвал ===== */
.foot { padding: 40px 0; font-size: 13px; color: var(--mut); border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a { display: inline-block; padding: 6px 0; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.foot-links a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ===== Липкая кнопка (мобильные) ===== */
.bar { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 99; opacity: 0; pointer-events: none; transform: translateY(40px); transition: opacity .3s, transform .3s; padding: 16px 20px; font-size: 16px; box-shadow: 0 12px 30px -8px rgba(212, 35, 92, .5); }
.bar.visible { opacity: 1; pointer-events: auto; transform: none; }

/* ===== Выезжающие блоки ===== */
.js [data-reveal] { opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal="left"] { transform: translateX(-64px); }
.js [data-reveal="right"] { transform: translateX(64px); }
.js [data-reveal="up"] { transform: translateY(44px); }
.js [data-reveal].in { opacity: 1; transform: none; }
.bento > :nth-child(2), .pains > :nth-child(2), .strip > :nth-child(2) { transition-delay: .1s; }
.bento > :nth-child(3), .pains > :nth-child(3), .strip > :nth-child(3) { transition-delay: .2s; }

/* ===== Cookie ===== */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 560px; margin-inline: auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 24px 60px -16px rgba(21, 18, 30, .35); font-size: 14px; line-height: 1.5; }
.consent p { margin: 0 0 12px; color: var(--mut); }
.consent a { color: var(--ink); }
.consent .row { gap: 8px; flex-wrap: nowrap; }
.consent button { flex: 1; cursor: pointer; padding: 11px 14px; border-radius: 999px; font: 500 14px/1.2 var(--sans); border: 1px solid var(--line); background: #fff; color: var(--ink); }
.consent button:hover { background: var(--band); }
.consent button[data-v="yes"] { background: var(--rose); border-color: var(--rose); color: #fff; }
.consent button[data-v="yes"]:hover { background: var(--rose-d); }

/* ===== Юридические страницы и 404 ===== */
.legal { max-width: 800px; padding-top: 40px; padding-bottom: 80px; }
.legal .back { font-size: 14px; color: var(--mut); }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 20px 0 8px; letter-spacing: -0.04em; line-height: 1.1; }
.legal h2 { font-size: 21px; margin: 36px 0 12px; max-width: none; letter-spacing: -0.03em; }
.legal p, .legal li { margin: 0 0 10px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal .meta { color: var(--mut); }
.legal a { color: var(--rose-d); }
.legal .todo { background: #fff3cd; padding: 0 4px; border-radius: 4px; }
.notfound { text-align: center; padding-top: 96px; padding-bottom: 120px; max-width: 560px; }
.notfound .code { font-size: clamp(96px, 24vw, 168px); font-weight: 600; letter-spacing: -0.06em; line-height: 1; color: var(--rose); }
.notfound h1 { font-size: clamp(28px, 5vw, 38px); margin: 8px 0 14px; }
.notfound p { color: var(--mut); margin-bottom: 28px; }
.notfound .row { justify-content: center; }

/* ===== Адаптив ===== */
@media (max-width: 899px) {
  .nav { display: none; }
  .wd { margin-top: 10px; }
}
@media (max-width: 699px) {
  section { padding: 64px 0; }
  .w { padding: 0 16px; }
  .bar-in { height: 60px; }
  .top .btn { display: none; }
  .hero { padding-top: 32px; padding-bottom: 56px; gap: 40px; }
  .lead { font-size: 17px; }
  .row { flex-direction: column; }
  .row .btn { width: 100%; }
  .consent .row { flex-direction: row; }
  .tile, .pain, .card { padding: 22px; }
  .res { padding: 24px 20px; }
  .res strong { font-size: 30px; }
  .phone { height: 490px; border-width: 6px; border-radius: 32px; }
  .js [data-reveal="left"] { transform: translateX(-28px); }
  .js [data-reveal="right"] { transform: translateX(28px); }
  .hide-s { display: none; }
  .cmp { min-width: 0; }
  .cmp th, .cmp td { padding: 12px 14px; }
}
@media (min-width: 600px) {
  .foot-grid { flex-direction: row; justify-content: space-between; text-align: left; }
  .foot-links { flex-direction: row; gap: 24px; }
}
@media (min-width: 700px) {
  .bar { display: none; }
  body { padding-bottom: 0; }
  .pains, .strip { grid-template-columns: repeat(3, 1fr); }
  .answers { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .log-card { grid-column: span 2; }
  .demo-grid { grid-template-columns: 1fr 360px; }
  .calc, .price { grid-template-columns: 1.1fr .9fr; }
  .answers { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1fr) 520px; }
  .wd { position: absolute; margin-top: 0; width: 276px; }
  .wd-push { top: -22px; right: -28px; }
  .wd-rem { left: -64px; top: 44%; }
  .wd-burn { right: -24px; bottom: -98px; width: 296px; }
  .stage { margin-bottom: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .wd { opacity: 1; transform: none; }
}

/* Ссылка «Перейти к содержимому» для клавиатуры */
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 500; transition: top .15s; }
.skip:focus { top: 12px; }

/* Очень узкие экраны (320 px): заголовок не должен быть шире экрана */
@media (max-width: 420px) {
  h1 { font-size: clamp(26px, 8.2vw, 36px); }
  h2 { font-size: clamp(26px, 8vw, 32px); }
  .amount { font-size: 52px; }
}

/* Узкие экраны: колонки сетки не шире экрана, вкладки демо переносятся */
.demo-grid > *, .calc > *, .price > *, .bento > *, .pains > *, .answers > * { min-width: 0; }
.tabs { flex-wrap: wrap; }
@media (max-width: 420px) {
  .tabs button { padding: 8px 14px; font-size: 13px; }
}

/* ===== Чат бота на первом экране (повторяет настоящие кнопки бота) ===== */
.tg { background: #ece9f2; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(21, 18, 30, .25); }
.tg-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.tg-ava { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.tg-name b { display: block; font-size: 15px; letter-spacing: -0.02em; line-height: 1.2; }
.tg-name small { font-size: 12px; color: var(--mut); }
.tg-head .pill-btn { margin-left: auto; }
.tg-chat { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 236px; max-height: 300px; overflow-y: auto; font-size: 14px; scroll-behavior: smooth; }
.tg-kb { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 6px; padding: 10px; background: #fff; border-top: 1px solid var(--line); max-height: 230px; overflow-y: auto; }
.tg-kb button { background: #ece9f2; color: var(--ink); border: 0; border-radius: 12px; padding: 10px 6px; min-height: 40px; font: 500 13.5px/1.25 var(--sans); cursor: pointer; transition: background .2s; animation: fadeIn .3s ease; }
.tg-kb button:hover { background: #ddd8e8; }
.tg-kb button[aria-disabled="true"] { opacity: .6; }
.tg-kb button.wide { grid-column: 1 / -1; }
