/* Публичная страница «Мантии». Цвета и скругления — переменные из app.css (светлая и тёмная темы работают сами).
   Движение: только transform и opacity, ease-out с сильным хвостом, кнопки пружинят при нажатии (scale .97),
   наведение — только на устройствах с мышью, при prefers-reduced-motion всё замирает в конечном состоянии. */
.landing {
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --grad: var(--primary);
  --shadow-lg: 0 1px 2px rgba(20, 24, 36, .05), 0 12px 32px -8px rgba(20, 24, 36, .14), 0 32px 64px -24px rgba(20, 24, 36, .18);
  padding: 0; max-width: none; margin: 0; overflow-x: clip;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .landing { --shadow-lg: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 40px -8px rgba(0, 0, 0, .55), 0 32px 64px -24px rgba(0, 0, 0, .6); }
}
:root[data-theme="dark"] .landing { --shadow-lg: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 40px -8px rgba(0, 0, 0, .55), 0 32px 64px -24px rgba(0, 0, 0, .6); }

.l-skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.l-skip:focus { left: 8px; }
.l-wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.l-narrow { width: min(820px, 100% - 40px); }
.landing h1, .landing h2, .landing h3 { text-wrap: balance; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Кнопки ---------- */
.landing h1, .landing h2, .landing h3, .demo-page h1, .demo-page h2 { font-family: var(--serif); }
.landing .btn { border-radius: 12px; font-weight: 600; transition: transform .16s var(--ease), background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.landing .btn:active { transform: scale(.97); }
.landing .btn-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 6px 16px -6px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-ghost { background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .landing .btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 10px 22px -6px color-mix(in srgb, var(--primary) 80%, transparent); }
  .btn-ghost:hover { background: var(--surface); }
}
.btn:focus-visible, .landing a:focus-visible, .landing summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ---------- Шапка ---------- */
.l-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.l-head.is-scrolled { border-bottom-color: var(--line); }
.l-head-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.l-nav { display: flex; gap: 6px; margin-left: 12px; flex: 1; }
.l-nav a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 7px 12px; border-radius: 9px; transition: color .15s ease, background-color .15s ease; }
@media (hover: hover) and (pointer: fine) { .l-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); text-decoration: none; } }
.l-head-actions { display: flex; gap: 8px; margin-left: auto; }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding: 72px 0 0; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 72%),
              radial-gradient(38% 38% at 88% 18%, color-mix(in srgb, var(--stage-appeal) 16%, transparent), transparent 72%),
              radial-gradient(34% 34% at 8% 30%, color-mix(in srgb, var(--stage-first) 10%, transparent), transparent 72%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 62% at 50% 0%, #000, transparent 78%); mask-image: radial-gradient(70% 62% at 50% 0%, #000, transparent 78%); }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line)); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-ok) 55%, transparent); animation: l-pulse 2.4s ease-out infinite; }
@keyframes l-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 { font-size: clamp(34px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 22px; max-width: 17em; }
.grad { color: var(--accent); font-style: italic; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 36em; margin: 0 0 34px; text-wrap: pretty; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-center { justify-content: center; }
.cta-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; max-width: 46em; }
.cta-note a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 30%, transparent); text-underline-offset: 3px; }
.trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--text); font-size: 14.5px; font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust .ico { width: 17px; height: 17px; color: var(--c-ok); stroke-width: 2.4; }

/* Появление первого экрана: короткая лесенка, один раз при загрузке */
.hero-inner > .hero-search, .stage { animation: l-rise .5s .05s var(--ease) both; }
.stage { animation-delay: .25s; animation-duration: .7s; }
@keyframes l-rise { from { opacity: 0; transform: translateY(16px) scale(.985); } }

/* ---------- Форма пробного поиска ---------- */
.hero-search { width: min(820px, 100%); text-align: left; }
.demo-form { display: grid; gap: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); }
.demo-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.demo-title { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.import-tabs { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; }
.demo-form .tab { border: 0; background: transparent; color: var(--muted); border-radius: 8px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.demo-form .tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(20, 24, 36, .12), 0 0 0 1px var(--line); }
.import-panel[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 12px; }
.field-row.one { grid-template-columns: 1fr; }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld label { font-weight: 600; font-size: 13px; color: var(--muted); }
.fld label span { font-weight: 400; }
.demo-form .input { width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease; }
.demo-form .input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.demo-form .input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.demo-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.demo-note { color: var(--muted); font-size: 13.5px; }
.demo-error { color: var(--danger); font-weight: 600; margin: 0; }

/* ---------- Окно продукта ---------- */
.stage { position: relative; z-index: 1; margin-top: 40px; max-height: 494px; overflow: hidden; padding: 24px 0 0; contain: paint;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.win { position: relative; margin: 0 auto; width: min(960px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.win-bar i:nth-child(1) { background: #ee6a5f; } .win-bar i:nth-child(2) { background: #f4bf4f; } .win-bar i:nth-child(3) { background: #61c554; }
.win-url { display: flex; align-items: center; gap: 8px; margin-left: 14px; padding: 6px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; min-width: 0; }
.win-url .ico { width: 15px; height: 15px; }
.win-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; padding: 22px; text-align: left; }
.win-title { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; font-size: 18px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip-appeal { color: var(--stage-appeal); background: color-mix(in srgb, var(--stage-appeal) 14%, var(--surface)); }
.win-sub { margin: 6px 0 18px; color: var(--muted); font-size: 13.5px; }
.chain { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 10px; }
.chain::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--stage-first), var(--stage-appeal), var(--stage-cassation)); border-radius: 2px;
  transform-origin: top; animation: l-draw 1s .7s var(--ease) both; }
@keyframes l-draw { from { transform: scaleY(0); } }
.chain li { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  animation: l-rise .5s calc(.6s + var(--i) * .16s) var(--ease) both; }
.chain b { display: block; font-size: 14px; } .chain small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.chain em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; }
.node { width: 14px; height: 14px; margin-left: 5px; border-radius: 50%; background: var(--c); border: 3px solid var(--surface-2); box-shadow: 0 0 0 2px var(--c); position: relative; z-index: 1; }
.n-first { --c: var(--stage-first); } .n-appeal { --c: var(--stage-appeal); } .n-cass { --c: var(--stage-cassation); }
.win-side { display: grid; gap: 12px; align-content: start; }
.dl, .hear { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); animation: l-rise .5s 1.1s var(--ease) both; }
.dl { background: color-mix(in srgb, var(--c-deadline) 12%, var(--surface)); border-color: color-mix(in srgb, var(--c-deadline) 40%, var(--line)); }
.hear { animation-delay: 1.25s; }
.dl b, .hear b { display: block; font-size: 14px; } .dl span { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0; } .dl small, .hear small { display: block; color: var(--muted); font-size: 12px; }
.hear .ico { width: 26px; height: 26px; color: var(--c-hearing); }
.ring { width: 54px; height: 54px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4.5; }
.ring-bg { stroke: color-mix(in srgb, var(--c-deadline) 22%, transparent); }
.ring-fg { stroke: var(--c-deadline); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 26; animation: l-ring 1.1s 1.2s var(--ease) both; }
@keyframes l-ring { from { stroke-dashoffset: 100; } }
.notify { position: absolute; right: -14px; top: -14px; display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); text-align: left; animation: l-notify .55s 2.2s var(--ease) both; }
@keyframes l-notify { from { opacity: 0; transform: translateX(24px) scale(.95); } }
.notify b { display: block; font-size: 13px; } .notify small { display: block; color: var(--muted); font-size: 12.5px; }
.notify-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; }

/* ---------- Цифры ---------- */
.l-facts { border-block: 1px solid var(--line); background: var(--surface); position: relative; z-index: 2; }
.l-facts-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px; padding: 30px 0; }
.l-facts b { display: block; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; font-weight: 800; }
.l-facts span { color: var(--muted); font-size: 14px; }

/* ---------- Разделы ---------- */
.sec { padding: 104px 0; }
.sec-alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { max-width: 46em; margin-bottom: 44px; }
.sec h2, .showcase h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 14px; }
.sec-lead { color: var(--muted); font-size: 18px; line-height: 1.55; margin: 0; text-wrap: pretty; }

/* Появление при прокрутке (только если JS загрузился) */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .5s calc(var(--i, 0) * 70ms) ease-out, transform .55s calc(var(--i, 0) * 70ms) var(--ease); }

/* ---------- Возможности ---------- */
.bento { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cell { position: relative; grid-column: span 4; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.cell-1 { grid-column: span 7; } .cell-2 { grid-column: span 5; }
.cell::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--primary) 13%, transparent), transparent 70%); }
@media (hover: hover) and (pointer: fine) {
  .cell:hover::after { opacity: 1; }
  .cell { transition: border-color .2s ease, transform .25s var(--ease); }
  .cell:hover { border-color: color-mix(in srgb, var(--primary) 38%, var(--line)); }
}
.cell-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; margin-bottom: 18px; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line)); }
.cell h3 { font-size: 19px; letter-spacing: -0.015em; margin: 0 0 8px; line-height: 1.25; }
.cell p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.viz { margin-top: auto; padding-top: 22px; }
.viz-search { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.viz-search .typed { padding: 9px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); font: 600 14px var(--mono); }
.caret { width: 2px; height: 20px; background: var(--primary); margin-left: -2px; animation: l-blink 1.1s steps(1) infinite; }
@keyframes l-blink { 50% { opacity: 0; } }
.viz-search em { margin-left: 10px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--c-ok); }
.viz-layers { display: flex; align-items: center; gap: 8px 6px; flex-wrap: wrap; }
.viz-layers span { padding: 6px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); }
.viz-layers i { width: 14px; height: 2px; background: var(--line); border-radius: 2px; }
.viz-layers span:nth-of-type(1) { color: var(--stage-prep); } .viz-layers span:nth-of-type(2) { color: var(--stage-first); }
.viz-layers span:nth-of-type(3) { color: var(--stage-appeal); } .viz-layers span:nth-of-type(4) { color: var(--stage-cassation); }
.viz-bar span { display: block; height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--c-deadline) 20%, transparent); overflow: hidden; }
.viz-bar b { display: block; height: 100%; width: 72%; border-radius: 8px; background: var(--c-deadline); transform-origin: left; }
.js .cell.in .viz-bar b { animation: l-fill 1.1s .3s var(--ease) both; }
@keyframes l-fill { from { transform: scaleX(0); } }
.viz-bar small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

/* ---------- Витрина сроков (всегда тёмная) ---------- */
.showcase { padding: 104px 0; background: #0d1220; color: #e8ecf8; position: relative; overflow: clip; }
.showcase::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 85% 20%, rgba(107, 140, 255, .22), transparent 70%), radial-gradient(40% 50% at 5% 90%, rgba(122, 79, 209, .2), transparent 70%); }
.showcase-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow-light { color: #aebfff; background: rgba(107, 140, 255, .12); border-color: rgba(107, 140, 255, .3); }
.sc-lead { color: #a9b3cc; font-size: 18px; line-height: 1.55; margin: 0 0 26px; text-wrap: pretty; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: #d4dbee; font-size: 16px; line-height: 1.45; }
.ticks .ico { color: #6fe0a6; margin-top: 1px; }
.proof { display: grid; gap: 10px; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.proof-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 15px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); }
.proof-row b { display: block; font-size: 15.5px; color: #fff; } .proof-row small { display: block; margin-top: 3px; color: #8f9ab5; font-size: 12.5px; line-height: 1.4; }
.proof-row.is-hot { background: rgba(217, 138, 16, .14); border-color: rgba(217, 138, 16, .45); }
.tag { flex: none; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .09); color: #d4dbee; }
.tag-ok { background: rgba(31, 157, 99, .2); color: #6fe0a6; } .tag-hot { background: #d98a10; color: #1a1305; }
.proof-note { margin: 2px 6px 4px; color: #8f9ab5; font-size: 12.5px; }

/* ---------- Боль, цена ошибки, до/после ---------- */
.kicker { margin: 0 0 10px; color: var(--danger); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.pains { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: pain; }
.pain { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.pain-x { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 22px; line-height: 1; font-weight: 700;
  color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.pain h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.pain p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.pain-x { width: 44px; height: 44px; border-radius: 13px; font-size: 26px; }
.risk { position: relative; padding: 96px 0; background: #1a0f12; color: #f3e9ea; overflow: clip; }
.risk::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 12% 0%, rgba(217, 80, 80, .26), transparent 70%), radial-gradient(40% 60% at 95% 100%, rgba(217, 138, 16, .16), transparent 70%); }
.risk .l-wrap { position: relative; }
.risk h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 14px; max-width: 18em; }
.risk .sc-lead { max-width: 40em; color: #d0b9bc; }
.risk-grid { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.risk-grid li { padding: 26px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 4px; }
.risk-grid b { font-size: clamp(34px, 4.4vw, 52px); line-height: 1; letter-spacing: -0.04em; font-weight: 800; color: #ffb4a8; }
.risk-grid span { font-size: 17px; font-weight: 600; color: #fff; }
.risk-grid small { color: #b79ea1; font-size: 13.5px; }
.risk-note { margin: 18px 0 0; color: #b79ea1; font-size: 14px; }
.mid-cta { margin-top: 30px; display: flex; justify-content: center; }
.mid-cta-dark { margin-top: 36px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ba-col { padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.ba-col h3 { margin: 0 0 18px; font-size: 22px; letter-spacing: -0.02em; }
.ba-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ba-col li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; font-size: 16px; }
.ba-before li { color: var(--muted); }
.ba-before li span { flex: none; width: 20px; text-align: center; color: var(--danger); font-weight: 700; font-size: 20px; line-height: 1.1; }
.ba-after { background: linear-gradient(160deg, color-mix(in srgb, var(--c-ok) 10%, var(--surface)), var(--surface) 60%); border-color: color-mix(in srgb, var(--c-ok) 38%, var(--line)); }
.ba-after .ico { color: var(--c-ok); stroke-width: 2.6; margin-top: 2px; }

/* ---------- Сравнение ---------- */
.cmp-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: center; font-size: 15.5px; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 14px; color: var(--muted); font-weight: 700; }
.cmp thead th.us { color: var(--primary); font-size: 16px; }
.cmp tbody th { text-align: left; font-weight: 600; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td { color: var(--muted); }
.cmp .us { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.cmp .yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--c-ok); font-weight: 800; font-size: 15px; }
.cmp td:nth-child(3) { color: var(--c-ok); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- Без риска ---------- */
.safe { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.safe li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.safe .ico { color: var(--c-ok); stroke-width: 2.6; margin-top: 2px; }
.safe b { display: block; font-size: 16px; margin-bottom: 3px; } .safe span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- Как это работает ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.step-n { display: block; margin-bottom: 18px; font-size: 56px; line-height: 1; font-family: var(--serif); font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.steps h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.015em; }
.steps p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15.5px; }

/* ---------- Для кого ---------- */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.who { padding: 32px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; }
.who h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.02em; }
.who p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 16px; }

/* ---------- Вопросы ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: border-color .2s ease; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 34%, var(--line)); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { margin: 0 0 20px; color: var(--muted); line-height: 1.65; font-size: 16px; }
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; opacity: 0; overflow: clip; transition: block-size .28s var(--ease), opacity .2s ease, content-visibility .28s allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }

/* ---------- Финал ---------- */
.final { padding: 0 0 104px; }
.final-card { position: relative; overflow: hidden; text-align: center; padding: 72px 28px; border-radius: 32px; color: #fff;
  background: radial-gradient(60% 90% at 0% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(120deg, #2f5bd6, #6a49d6 60%, #7a4fd1); box-shadow: var(--shadow-lg); }
.final-card h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.03em; font-weight: 800; line-height: 1.08; margin: 0 0 14px; }
.final-card p { color: rgba(255, 255, 255, .86); font-size: 18px; margin: 0 auto 30px; max-width: 32em; }
.btn-light { background: #fff; color: #1c2230; border-color: #fff; }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
@media (hover: hover) and (pointer: fine) { .btn-light:hover { box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .4); } }

.l-foot { border-top: 1px solid var(--line); padding: 32px 0 44px; }
.l-foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.l-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.l-foot a { color: var(--muted); }
.l-foot .small { max-width: 60em; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }

/* ---------- Страница результата пробного поиска ---------- */
.demo-wrap { max-width: 760px; }
.demo-page { padding-top: 40px; }
.demo-page h1 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.03em; font-weight: 800; margin: 8px 0 18px; }
.demo-progress { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: l-spin .8s linear infinite; flex: none; }
@keyframes l-spin { to { transform: rotate(360deg); } }
.demo-block { margin: 26px 0; }
.demo-block h2 { font-size: 20px; letter-spacing: -0.015em; margin: 0 0 10px; }
.demo-chain, .demo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.demo-chain li, .demo-list li { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.demo-chain li.missing { opacity: .65; border-style: dashed; }
.demo-chain small, .demo-list small { color: var(--muted); }
.demo-keep { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin: 18px 0 8px; padding: 16px 20px; border-radius: 16px;
  background: color-mix(in srgb, var(--primary) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line)); }
.demo-keep p { margin: 0; max-width: 34em; line-height: 1.45; }
.demo-cta { margin-top: 34px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.demo-cta h2 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 8px; }
.demo-cta p { color: var(--muted); margin: 0 0 18px; }

/* Липкая кнопка на телефоне: появляется, когда форма поиска ушла с экрана */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; display: flex; justify-content: center; align-items: center; gap: 8px;
    padding: 15px 20px; border-radius: 14px; background: var(--primary); color: var(--primary-ink); font-weight: 700; text-decoration: none;
    box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--primary) 75%, #000); opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none;
    transition: opacity .2s ease, transform .25s var(--ease); }
  .sticky-cta.show { opacity: 1; transform: none; pointer-events: auto; }
  .sticky-cta:active { transform: scale(.97); }
  .l-foot { padding-bottom: 96px; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .l-nav { display: none; }
  .hero { padding-top: 48px; }
  .win-body { grid-template-columns: 1fr; }
  .notify { right: 12px; top: auto; bottom: 12px; }
  .stage { max-height: 520px; }
  .l-facts-row { display: grid; grid-template-columns: repeat(2, 1fr); }
  .sec, .showcase { padding: 72px 0; }
  .final { padding-bottom: 72px; }
  .bento .cell, .cell-1, .cell-2 { grid-column: span 6; }
  .showcase-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps, .who-grid, .ba, .safe, .risk-grid { grid-template-columns: 1fr; }
  .pains { grid-template-columns: 1fr; }
  .risk { padding: 72px 0; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .bento .cell, .cell-1, .cell-2 { grid-column: 1 / -1; }
  .pains { grid-template-columns: 1fr; }
  .mid-cta .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .l-head .l-hide-s, .l-head-actions .l-hide-s { display: none !important; }
  .chain em { display: none; }
  .chain li { grid-template-columns: 24px 1fr; }
  .win-url { font-size: 12px; }
  .l-facts-row { gap: 20px 12px; }
  .final-card { padding: 48px 20px; border-radius: 26px; }
  .demo-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner > .hero-search, .stage, .chain::before, .chain li, .dl, .hear, .ring-fg, .notify, .eyebrow .dot, .caret, .viz-bar b { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .spinner { animation-duration: 2s; }
  .faq details::details-content { transition: none; }
}

/* ---------- Юридические документы ---------- */
.legal { max-width: 820px; padding: 48px 0 96px; }
.legal h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 10px; }
.legal-meta { color: var(--muted); margin: 0 0 14px; }
.legal-draft { margin: 0 0 24px; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; color: var(--text);
  background: color-mix(in srgb, var(--c-deadline) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c-deadline) 35%, var(--line)); }
.legal-toc { margin: 0 0 36px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.legal-toc li { padding: 3px 0; break-inside: avoid; }
.legal section { margin: 0 0 32px; }
.legal h2 { font-size: 21px; letter-spacing: -0.02em; margin: 0 0 12px; }
.legal h2 span { color: var(--muted); font-weight: 600; margin-right: 4px; }
.legal p, .legal li { line-height: 1.7; font-size: 16px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.legal-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 12px; }
.legal-table table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 14px 16px; text-align: left; vertical-align: top; font-size: 15px; line-height: 1.55; border-bottom: 1px solid var(--line); }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { width: 32%; font-weight: 700; }
.legal-other { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } .legal-table th { width: auto; display: block; padding-bottom: 2px; } .legal-table td { display: block; padding-top: 0; } }
