/* =====================================================================
   Безопасный Бизнес — деловой стиль: тёмно-синий первый экран, светлые разделы,
   яркие сине-фиолетовые и бирюзовые акценты, анимации кнопок и карточек.
   ===================================================================== */

:root {
  --navy: #0b1b3a;
  --navy-2: #12295a;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e1e7f0;
  --line-strong: #c9d3e3;
  --text: #0f1b2d;
  --muted: #5a6a82;
  --primary: #2457d6;
  --primary-dark: #1b45ad;
  --primary-soft: #eaf0fe;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --grad: linear-gradient(120deg, #2457d6, #7c3aed 50%, #06b6d4);
  --green: #15803d;
  --green-soft: #e7f6ec;
  --amber: #b45309;
  --amber-soft: #fdf3e2;
  --red: #c42d2d;
  --red-soft: #fdeaea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .06);
  --shadow-hover: 0 2px 4px rgba(15, 27, 45, .06), 0 14px 34px rgba(15, 27, 45, .1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 18px; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
img, svg { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.good { color: var(--green); }
.mid { color: var(--amber); }
.bad { color: var(--red); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(36, 87, 214, .45); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.section { padding: 64px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__head h2 { margin: 0; flex: 1 1 100%; }
.section__lead { color: var(--muted); max-width: 760px; margin: 8px 0 0; flex: 1 1 auto; }
.eyebrow { color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow--light { color: #9fb6f5; }
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.lead-dark { font-size: 18px; }
.h1-sm { font-size: clamp(26px, 3.2vw, 36px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.disclaimer { color: var(--muted); font-size: 14px; margin-top: 24px; padding: 14px 16px; border-left: 3px solid var(--line-strong); background: var(--surface); border-radius: 8px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); box-shadow: 0 6px 18px rgba(36, 87, 214, .25); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--lg { padding: 15px 26px; font-size: 17px; }
.btn--block { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.more { color: var(--primary); font-weight: 650; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 4px 18px rgba(15, 27, 45, .08); }
.header__top { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; text-decoration: none; white-space: nowrap; }
.logo__icon { width: 30px; height: 30px; color: var(--primary); }
.header__actions { display: flex; gap: 8px; margin-left: auto; }
.nav { border-top: 1px solid var(--line); background: var(--surface); }
.nav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav__inner::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 550; padding: 11px 10px; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--primary); border-color: var(--primary); }
.nav__mobile-actions { display: none; }
.burger { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Первый экран ---------- */
.hero, .page-hero { background: radial-gradient(1000px 420px at 85% -10%, rgba(64, 120, 255, .28), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; }
.hero { padding: 72px 0 80px; }
.hero h1 { max-width: 760px; }
.hero .lead, .page-hero .lead { color: #c9d6f2; }
.hero__grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: center; }
.hero__panel { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 24px; }
.hero__panel-title { font-weight: 700; margin-bottom: 14px; }
.hero__step { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #dbe5fb; }
.hero__step span { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.hero__meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); margin: 18px 0 10px; overflow: hidden; }
.hero__meter i { display: block; height: 100%; background: #6f9bff; border-radius: 4px; animation: meter 2.4s ease-out both; }
@keyframes meter { from { width: 0; } }
.hero__panel-note { color: #a9bbe3; font-size: 14px; margin: 0; }
.page-hero { padding: 48px 0 52px; }
.page-hero--compact { padding: 40px 0 36px; }
.page-hero .eyebrow { color: #9fb6f5; }

/* ---------- Сетки и карточки ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.split--center { align-items: center; }
.card, .panel, .benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card { position: relative; display: flex; flex-direction: column; padding: 24px; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card p { color: var(--muted); font-size: 15px; }
.card--link:hover, .card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--line-strong); }
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.card__letter { position: absolute; top: 20px; right: 22px; font-weight: 800; color: #cbd5e6; font-size: 20px; }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.panel { padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 22px; }
.benefit { padding: 22px; }
.benefit p { color: var(--muted); margin: 0; }
.benefit__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 12px; }
.price { font-weight: 750; white-space: nowrap; }
.price__note { display: inline-block; font-size: 11px; font-weight: 650; letter-spacing: .03em; color: var(--amber); background: var(--amber-soft); border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.badge { position: absolute; top: -11px; left: 20px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.tag { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); margin-bottom: 8px; }
.tag--high { background: var(--red-soft); color: var(--red); }
.tag--medium { background: var(--amber-soft); color: var(--amber); }
.tag--low { background: var(--green-soft); color: var(--green); }

.list { padding-left: 20px; margin: 0 0 12px; }
.list li { margin: 4px 0; }
.list--check, .list--cross, .list--muted { list-style: none; padding: 0; }
.list--check li, .list--cross li, .list--muted li { position: relative; padding-left: 26px; }
.list--check li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.list--cross li::before { content: "×"; position: absolute; left: 4px; top: -1px; color: var(--red); font-weight: 800; }
.list--muted li { color: var(--muted); }
.list--muted li::before { content: "+"; position: absolute; left: 4px; color: var(--muted); }
.list--cols { columns: 2; column-gap: 32px; }
.list--cols li { break-inside: avoid; }
.facts-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0; font-size: 14px; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; }
.facts-list--wide { grid-template-columns: 140px 1fr; font-size: 16px; }
.note-box { margin-top: 20px; padding: 14px 16px; background: var(--primary-soft); border-radius: 10px; color: #23365c; font-size: 15px; }

/* ---------- Шаги, тарифы, FAQ ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 38px; right: -16px; width: 12px; height: 2px; background: var(--line-strong); }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }
.steps__num { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 750; margin-bottom: 12px; }
.tariff-mini { display: grid; gap: 10px; }
.tariff-mini__item { display: flex; justify-content: space-between; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.tariff-mini__item span { color: var(--muted); font-size: 14px; }
.tariff { padding-top: 28px; }
.tariff--popular { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.tariff__price { font-size: 30px; font-weight: 800; margin: 4px 0; }
.tariff__price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq__item summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::after { content: "+"; color: var(--primary); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font: inherit; font-size: 14px; color: var(--text); transition: border-color .15s, background .15s; }
.chip input { display: none; }
.chip:has(input:checked), .chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.mini-calc__total { font-size: 26px; font-weight: 800; margin: 10px 0 2px; }

/* ---------- Формы ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea, .input { font: inherit; font-weight: 400; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36, 87, 214, .15); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field--wide { grid-column: 1 / -1; }
.lead-form h3 { margin-bottom: 6px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); margin: 4px 0 14px; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--primary); }
.consent a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-form__status { margin: 12px 0 0; font-size: 14px; padding: 10px 12px; border-radius: 8px; }
.lead-form__status.ok { background: var(--green-soft); color: var(--green); }
.lead-form__status.err { background: var(--amber-soft); color: var(--amber); }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.form-hint { color: var(--red); font-size: 14px; margin-top: 10px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-row:last-child { border-bottom: 0; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.check-row span { display: grid; }
.check-row small { color: var(--muted); }

/* ---------- Диагностика ---------- */
.stepper { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); }
.stepper li span { width: 22px; height: 22px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.stepper li.done { border-color: var(--primary); }
.stepper li.done span { background: var(--primary); color: #fff; }
.stepper li.current { border-color: var(--primary); color: var(--text); font-weight: 650; }
.stepper li.current span { background: var(--primary-soft); color: var(--primary); }
.q-field { border: 0; padding: 0; margin: 0 0 22px; }
.q-field legend { font-weight: 700; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.option { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.option input { accent-color: var(--primary); margin: 0; }
.option:hover { border-color: var(--primary); }
.option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.option--answer { padding: 14px 16px; font-weight: 600; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.choice { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.choice input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.choice span { display: grid; }
.choice small { color: var(--muted); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress__bar { height: 100%; background: var(--primary); transition: width .3s; }
.progress__label { color: var(--muted); font-size: 14px; margin: 10px 0 24px; }
.question h2 { font-size: clamp(21px, 2.6vw, 26px); }
.question__hint { color: var(--muted); margin-bottom: 22px; }
.answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.review { list-style: none; padding: 0; margin: 0 0 18px; }
.review__dir { margin-top: 24px; font-size: 16px; color: var(--muted); }
.review__item { width: 100%; display: flex; justify-content: space-between; gap: 16px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; font: inherit; color: var(--text); cursor: pointer; }
.review__item:hover { border-color: var(--primary); }
.ans { white-space: nowrap; font-size: 14px; }
.ans--yes { color: var(--green); }
.ans--partial, .ans--unknown { color: var(--amber); }
.ans--no, .ans--none { color: var(--red); }
.ans--na { color: var(--muted); }

/* ---------- Результат и калькулятор ---------- */
.summary { margin-bottom: 24px; }
.score { display: flex; align-items: center; gap: 14px; }
.score p { margin: 2px 0 0; }
.ring { --p: 0; --c: var(--primary); width: 76px; height: 76px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); }
.ring span { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; }
.ring--good { --c: var(--green); }
.ring--mid { --c: #d98a1d; }
.ring--bad { --c: var(--red); }
.result-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.result-grid > * { min-width: 0; }
.findings { list-style: none; padding: 0; margin: 0; }
.findings li { padding: 14px 0; border-top: 1px solid var(--line); }
.findings li:first-child { border-top: 0; }
.finding__top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.finding__top .tag { margin-bottom: 0; }
.finding__text { font-weight: 650; margin: 6px 0 2px; }
.plan__stage h3 { margin-top: 12px; }
.rec { list-style: none; padding: 0; margin: 0 0 12px; }
.rec a { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.rec a:hover { color: var(--primary); }
.rec .ico { color: var(--primary); }
.big-price { font-size: clamp(26px, 3vw, 32px); font-weight: 800; margin: 4px 0 8px; }
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.calc__result { position: sticky; top: 130px; }
.breakdown { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.breakdown td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.breakdown td:last-child { text-align: right; padding-left: 12px; white-space: nowrap; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg); font-size: 14px; color: var(--muted); }
.table .yes { color: var(--green); font-weight: 650; }
.table .no { color: var(--red); font-weight: 650; }

/* ---------- Подробные страницы, база знаний ---------- */
.detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.detail__main { min-width: 0; }
.detail__main h2 { margin-top: 8px; }
.detail__side { position: sticky; top: 130px; }
.kb-tools { display: grid; gap: 12px; margin-bottom: 24px; }
.kb-tools .input { max-width: 420px; }
.chips--filter { margin: 0; }
.article h2 { margin-top: 28px; font-size: 22px; }
.article p, .article li { font-size: 17px; }

/* ---------- Подвал ---------- */
.footer { background: var(--navy); color: #c9d6f2; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 48px 24px 24px; }
.footer a { display: block; color: #c9d6f2; text-decoration: none; padding: 3px 0; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer .muted { color: #95a6c9; }
.footer__brand { font-weight: 800; color: #fff; font-size: 18px; }
.footer__title { font-weight: 700; color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 24px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #95a6c9; }

/* ---------- Документы (политика, согласие, оферта) ---------- */
.doc { padding-top: 24px; padding-bottom: 48px; }
.doc h1 { font-size: 30px; margin: 12px 0 8px; }
.doc h2 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { line-height: 1.65; }
.ph { background: #fff3cd; color: #5c4400; padding: 0 4px; border-radius: 4px; }
.doc .draft { border: 1px solid #e6c866; background: #fff8e1; color: #5c4400; border-radius: 10px; padding: 10px 14px; font-size: 14px; }

/* ---------- Появление (только лёгкая анимация, контент виден всегда) ---------- */
.reveal.is-in { animation: rise .4s ease both; }
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .header__actions .btn:nth-child(3) { display: none; }
}
@media (max-width: 980px) {
  .hero__grid, .split, .detail, .result-grid, .calc { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .detail__side, .calc__result { position: static; }
}
@media (max-width: 860px) {
  .header__actions { display: none; }
  .burger { display: block; }
  .nav { display: none; }
  .nav.is-open { display: block; max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav__inner { flex-direction: column; gap: 0; padding-bottom: 16px; overflow: visible; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.is-active { border-color: var(--line); }
  .nav__mobile-actions { display: grid; gap: 8px; margin-top: 14px; }
  .nav__mobile-actions a { padding: 12px 16px; border: 1px solid transparent; }
  .nav__mobile-actions .btn--primary { border-color: var(--primary); color: #fff; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .hero { padding: 44px 0 52px; }
  .grid--2, .grid--3, .grid--4, .steps, .answers, .choice-grid, .form-grid, .footer__grid { grid-template-columns: 1fr; }
  .list--cols { columns: 1; }
  .stepper li { font-size: 0; gap: 0; justify-content: center; }
  .stepper li span { font-size: 12px; }
  .facts-list--wide { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 auto; }
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- Живость: фон, кнопки, карточки ---------- */
.hero, .page-hero { position: relative; overflow: hidden; isolation: isolate; }
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.net { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9; }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; z-index: 0;
  background: radial-gradient(circle, rgba(64, 120, 255, .22), transparent 65%); animation: glow 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-180px, 120px) scale(1.15); } }
.btn { position: relative; overflow: hidden; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s; }
.btn--primary { background-image: linear-gradient(110deg, var(--primary) 0%, #3d6ff0 45%, #5b8cff 50%, #3d6ff0 55%, var(--primary) 100%); background-size: 250% 100%; background-position: 100% 0; }
.btn--primary:hover { background-position: 0 0; transform: translateY(-1px); transition: background-position .6s ease, box-shadow .2s, transform .15s; }
.btn--ghost:hover, .btn--light:hover { transform: translateY(-1px); }
.ripple { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(255, 255, 255, .55); pointer-events: none; animation: ripple .65s ease-out forwards; }
.btn--ghost .ripple { background: rgba(36, 87, 214, .25); }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }
.card, .benefit, .quick__tile { --mx: -200px; --my: -200px; }
.card::before, .quick__tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(36, 87, 214, .09), transparent 60%); }
.card:hover::before, .quick__tile:hover::before { opacity: 1; }
.card:hover { transform: translateY(-3px); border-color: rgba(36, 87, 214, .35); }
.header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 27, 58, .08); }
.quick { gap: 14px; }
.quick__tile { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.quick__tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11, 27, 58, .10); border-color: rgba(36, 87, 214, .4); }
.quick__tile .card__icon { grid-row: span 2; margin: 0; }
.quick__body b { display: block; font-size: 17px; margin-bottom: 4px; }
.quick__body small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.quick__go { grid-column: 2; color: var(--primary); font-weight: 650; font-size: 14px; transition: letter-spacing .2s; }
.quick__tile:hover .quick__go { letter-spacing: .02em; }
.pkg--popular { border-color: var(--primary); box-shadow: 0 10px 30px rgba(36, 87, 214, .12); }
.pkg__badge { position: absolute; top: -11px; left: 20px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 12px; }
.pkg__docs { margin: 4px 0 8px; font-size: 14px; }
.pkg__docs summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.pkg__docs ul { margin-top: 8px; }
.h3 { font-size: 18px; margin: 18px 0 8px; }
.h3:first-child { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .header, .footer, .no-print, .actions, .lead-form { display: none !important; }
  body { background: #fff; }
  .page-hero { background: none; color: var(--text); padding: 0 0 12px; }
  .page-hero .lead { color: var(--text); }
  .panel, .card { box-shadow: none; break-inside: avoid; }
  .result-grid { grid-template-columns: 1fr; }
}

/* ---------- Краски и анимации ---------- */
.btn--primary { background-image: linear-gradient(110deg, #2457d6, #6d3df0 35%, #2f80ed 65%, #2457d6); background-size: 300% 100%;
  animation: flow 8s ease-in-out infinite; box-shadow: 0 6px 18px rgba(76, 70, 230, .28); }
.btn--primary:hover { box-shadow: 0 10px 28px rgba(108, 61, 240, .38); transform: translateY(-2px); background-position: 100% 0; }
.btn--primary:active, .btn--ghost:active, .btn--light:active { transform: scale(.97); }
@keyframes flow { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.hero .btn--primary.btn--lg { animation: flow 8s ease-in-out infinite, pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, .55), 0 6px 18px rgba(76, 70, 230, .3); }
  70% { box-shadow: 0 0 0 14px rgba(124, 58, 237, 0), 0 6px 18px rgba(76, 70, 230, .3); } 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0), 0 6px 18px rgba(76, 70, 230, .3); } }
.btn--ghost:hover { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; color: var(--violet); }
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn:hover::after { left: 130%; }
.btn--ghost::after { background: linear-gradient(100deg, transparent, rgba(124, 58, 237, .12), transparent); }

.hero h1 { background: linear-gradient(100deg, #fff 0%, #fff 40%, #a5c4ff 55%, #c4b5fd 65%, #fff 80%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.eyebrow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow--light, .page-hero .eyebrow { background: linear-gradient(90deg, #9fb6f5, #c4b5fd, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; margin-top: 12px; background: var(--grad); background-size: 200% 100%; animation: flow 6s ease-in-out infinite; }
.page-hero h1::after, .hero h1::after, .card h2::after, .panel h2::after, .detail h2::after, .drawer h2::after { display: none; }

/* Цветные иконки: каждая карточка в ряду своего оттенка */
.card__icon, .benefit__icon { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.grid > :nth-child(6n+1) .card__icon, .grid > :nth-child(6n+1).quick__tile .card__icon { background: #e8efff; color: #2457d6; }
.grid > :nth-child(6n+2) .card__icon, .grid > :nth-child(6n+2).quick__tile .card__icon { background: #f1eaff; color: #7c3aed; }
.grid > :nth-child(6n+3) .card__icon, .grid > :nth-child(6n+3).quick__tile .card__icon { background: #e0f7fb; color: #0891b2; }
.grid > :nth-child(6n+4) .card__icon, .grid > :nth-child(6n+4).quick__tile .card__icon { background: #fde8f3; color: #db2777; }
.grid > :nth-child(6n+5) .card__icon, .grid > :nth-child(6n+5).quick__tile .card__icon { background: #e5f7ec; color: #15803d; }
.grid > :nth-child(6n+6) .card__icon, .grid > :nth-child(6n+6).quick__tile .card__icon { background: #fff1e0; color: #d97706; }
.card:hover .card__icon, .quick__tile:hover .card__icon { transform: translateY(-3px) rotate(-6deg) scale(1.08); box-shadow: 0 8px 18px rgba(36, 87, 214, .18); }
.benefit:hover .benefit__icon { transform: scale(1.12) rotate(8deg); }

/* Градиентная рамка карточек при наведении */
.card, .quick__tile, .pkg { background-clip: padding-box; }
.card::after, .quick__tile::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .3s; }
.card:hover::after, .quick__tile:hover::after { opacity: 1; }
.card:hover, .quick__tile:hover { box-shadow: 0 16px 36px rgba(76, 70, 230, .14); }

.steps__num { background: var(--grad); background-size: 200% 200%; animation: flow 6s ease-in-out infinite; box-shadow: 0 6px 14px rgba(124, 58, 237, .25); }
.steps li:hover .steps__num { transform: scale(1.12); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.more { display: inline-flex; gap: 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.more:hover { text-decoration: none; filter: brightness(1.1); }
.more span, .quick__go { transition: transform .25s; display: inline-block; }
.more:hover span { transform: translateX(4px); }
.quick__go { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quick__tile:hover .quick__go { transform: translateX(4px); letter-spacing: 0; }
.big-price, .mini-calc__total { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pkg__badge { background: var(--grad); background-size: 200% 100%; animation: flow 5s ease-in-out infinite; }
.pkg--popular { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.nav a.is-active { color: var(--violet); border-color: var(--violet); }
.nav a { transition: color .2s, border-color .2s; }
.chip:has(input:checked), .chip.is-active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(124, 58, 237, .25); }
.chip:hover { border-color: var(--violet); }

/* Появление блоков при прокрутке — по очереди */
.reveal.is-in { animation: rise2 .55s cubic-bezier(.2, .7, .2, 1) both; }
.grid > .reveal:nth-child(2) { animation-delay: .06s; }
.grid > .reveal:nth-child(3) { animation-delay: .12s; }
.grid > .reveal:nth-child(4) { animation-delay: .18s; }
.grid > .reveal:nth-child(5) { animation-delay: .24s; }
.grid > .reveal:nth-child(6) { animation-delay: .3s; }
@keyframes rise2 { from { transform: translateY(14px); } to { transform: none; } }
