/* AdTrust — общий стиль сайта и кабинета: светлая страница, лавандовое небо, темные «пилюли», мягкие карточки. */
:root {
  --bg: #f4f3f8;
  --surface: #ffffff;
  --surface-2: #faf9fd;
  --ink: #1d1a31;
  --ink-2: #4b4766;
  --ink-3: #6f6b88;
  --line: #e5e2ef;
  --line-2: #d8d3ea;
  --lav-0: #f3f0fd;
  --lav-1: #e9e4fb;
  --lav-2: #d6cdf6;
  --lav-3: #b6a8ee;
  --violet: #6c58d6;
  --violet-2: #5543c2;
  --deep: #25213d;
  --deep-2: #312c4f;
  --on-deep: #f4f2fb;
  --on-deep-2: #c9c4e2;

  --take: #1b9168;
  --take-bg: #e3f4ec;
  --caveat: #2f8f6f;
  --caveat-bg: #e7f3ee;
  --overpay: #a86c06;
  --overpay-bg: #fbf0d9;
  --replace: #c0521f;
  --replace-bg: #fbe6db;
  --reject: #c43838;
  --reject-bg: #f9e1e1;
  --nodata: #6f6b88;
  --nodata-bg: #ecebf2;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-1: 0 1px 2px rgba(29, 26, 49, 0.04), 0 6px 20px rgba(29, 26, 49, 0.05);
  --shadow-2: 0 2px 6px rgba(29, 26, 49, 0.06), 0 24px 60px rgba(61, 44, 140, 0.16);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --page: 1200px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 760px) { :root { --gutter: 28px; } }

/* ── Кнопки ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-dark { background: var(--deep); color: var(--on-deep); box-shadow: 0 6px 18px rgba(37, 33, 61, 0.22); }
.btn-dark:hover { background: var(--deep-2); transform: translateY(-1px); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--line-2); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.6); }
.btn-on-deep { background: var(--on-deep); color: var(--deep); }
.btn-on-deep:hover { background: #fff; transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 12px; z-index: 30; margin-top: 12px;
  display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 10px 10px 10px 20px;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid rgba(229, 226, 239, 0.9); border-radius: 20px; box-shadow: var(--shadow-1);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo svg { width: 26px; height: 26px; }
.nav-links { display: none; gap: 4px; margin: 0 auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; transition: background 0.2s, color 0.2s; }
.nav-links a:hover { background: var(--lav-0); color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.nav-cta .btn-ghost { display: none; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-cta { margin-left: 0; } .nav-cta .btn-ghost { display: inline-flex; } }

/* ── Герой: лавандовое небо и холмы ─────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 16px;
  border-radius: var(--r-xl); min-height: 640px; padding: 72px 20px 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #fbfaff 0%, #ece7fd 34%, #d9d0f8 58%, #b9abec 80%, #8f7fd6 100%);
  text-align: center;
}
.hero::before { /* свет сверху */
  content: ""; position: absolute; inset: -20% 20% auto; height: 70%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: -1; pointer-events: none; }
.hills svg { width: 100%; height: 100%; }
.mark { width: 34px; height: 34px; margin: 0 auto 22px; color: var(--ink); }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 500; max-width: 15ch; margin: 0 auto; }
.hero .lead { max-width: 560px; margin: 18px auto 0; font-size: clamp(16px, 2vw, 18px); color: var(--ink-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }

.stage { position: relative; height: 330px; max-width: 980px; margin: 40px auto 0; }
.float-card {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  width: min(440px, 92%); text-align: left;
}
.float-chip {
  position: absolute; display: none; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-2); font-size: 14px; font-weight: 600; color: var(--ink); text-align: left;
}
.float-chip small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.float-chip .dot { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-chip .dot svg { width: 18px; height: 18px; }
.chip-a { left: 2%; bottom: 150px; transform: rotate(-4deg); }
.chip-b { right: 2%; bottom: 190px; transform: rotate(3deg); }
@media (min-width: 900px) { .float-chip { display: flex; } }
@media (prefers-reduced-motion: no-preference) {
  .float-card { animation: rise 0.9s var(--ease) both 0.15s; }
  .chip-a { animation: drift 7s ease-in-out infinite; }
  .chip-b { animation: drift 8s ease-in-out infinite 1.2s; }
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ── Мини-отчет (лендинг и кабинет) ────────────────────────────────────── */
.report {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  padding: 20px; color: var(--ink);
}
.report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.report-head .who { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.report-head .what { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.verdict {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
}
.verdict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.v-take { color: var(--take); background: var(--take-bg); }
.v-take_caveat { color: var(--caveat); background: var(--caveat-bg); }
.v-overpay { color: var(--overpay); background: var(--overpay-bg); }
.v-replace { color: var(--replace); background: var(--replace-bg); }
.v-reject { color: var(--reject); background: var(--reject-bg); }
.v-nodata { color: var(--nodata); background: var(--nodata-bg); }
.price-row { display: flex; gap: 14px; margin-top: 16px; }
.price-row > div { flex: 1; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.price-row small { display: block; font-size: 12px; color: var(--ink-3); }
.price-row b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gauge { margin-top: 14px; }
.gauge-bar { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #cfeadf 0%, #e9f3d6 45%, #f7e4c3 70%, #f5cfc4 100%); }
.gauge-bar i { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--deep); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(29, 26, 49, 0.25); }
.gauge-legend { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.tile { padding: 10px 12px; border-radius: var(--r-sm); background: var(--lav-0); }
.tile small { display: block; font-size: 12px; color: var(--ink-3); }
.tile b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Секции ─────────────────────────────────────────────────────────────── */
section { scroll-margin-top: 96px; }
.section { padding: 88px 0 0; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; }
.h2 { font-size: clamp(34px, 5vw, 56px); }
.intro { display: grid; gap: 24px; align-items: start; }
.intro .text { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; color: var(--ink); letter-spacing: -0.01em; max-width: 30ch; }
.intro .btn { margin-top: 22px; }
@media (min-width: 900px) { .intro { grid-template-columns: 1.2fr 1fr; } }

.cards3 { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 900px) { .cards3 { grid-template-columns: 1.6fr 1fr 1fr; } }
.card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 26px; min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.card h3 { font-size: 24px; font-weight: 500; max-width: 14ch; }
.card p { font-size: 15px; color: inherit; opacity: 0.86; max-width: 34ch; }
.card-light { background: linear-gradient(160deg, #f6f3ff 0%, #e6defb 60%, #d7cdf7 100%); color: var(--ink); }
.card-light p { color: var(--ink-2); opacity: 1; }
.card-deep { background: var(--deep); color: var(--on-deep); }
.card-deep p { color: var(--on-deep-2); opacity: 1; }
.card .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); }
.card-light .ic { background: rgba(255, 255, 255, 0.7); }
.card .ic svg { width: 22px; height: 22px; }
.card-visual { position: absolute; right: -10px; bottom: -14px; width: 54%; max-width: 300px; }
@media (max-width: 899px) { .card-visual { position: static; width: 100%; max-width: none; margin-top: 4px; } }

.sources { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sources p { font-size: 13px; color: var(--ink-3); max-width: 22ch; line-height: 1.35; }
.sources ul { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 0; padding: 0; list-style: none; }
.sources li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.sources li svg { width: 18px; height: 18px; color: var(--ink-3); }

.split { display: grid; gap: 28px; margin-top: 8px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.25fr; gap: 48px; } }
.split .h2 { margin-top: 10px; }
.split .sub { margin-top: 16px; color: var(--ink-2); max-width: 40ch; }

.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--lav-1); font-size: 18px; font-weight: 700; color: var(--violet-2); }
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.step p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.step code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 13px; background: var(--lav-0); padding: 2px 6px; border-radius: 6px; }

.cases { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 760px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.case .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--violet-2); background: var(--lav-1); padding: 4px 10px; border-radius: 999px; }
.case h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.case p { color: var(--ink-2); font-size: 15px; }
.case .q { margin-top: auto; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }

.verdicts { display: grid; gap: 10px; margin-top: 22px; }
@media (min-width: 560px) { .verdicts { grid-template-columns: 1fr 1fr; } }
.verdicts div { padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.verdicts p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ── Тарифы ─────────────────────────────────────────────────────────────── */
.plans { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.plan.hot { background: var(--deep); color: var(--on-deep); border-color: var(--deep); box-shadow: var(--shadow-2); }
.plan .badge { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--lav-2); color: var(--deep); }
.plan h3 { font-size: 20px; font-weight: 600; }
.plan .price { font-size: 38px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan.hot .price small, .plan.hot .meta { color: var(--on-deep-2); }
.plan .meta { font-size: 14px; color: var(--ink-3); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.plan li svg { width: 18px; height: 18px; margin-top: 2px; color: var(--violet); }
.plan.hot li svg { color: var(--lav-3); }
.plan .btn { margin-top: auto; }
.pack { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--lav-0); border: 1px solid var(--line); }
.pack p { color: var(--ink-2); font-size: 15px; }
.pack b { color: var(--ink); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; margin-top: 32px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); transition: transform 0.25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }

/* ── Финальный призыв и подвал ──────────────────────────────────────────── */
.final {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 88px; padding: 64px 24px; border-radius: var(--r-xl);
  background: var(--deep); color: var(--on-deep); text-align: center;
}
.final::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(150, 128, 238, 0.55), rgba(37, 33, 61, 0)); }
.final h2 { font-size: clamp(32px, 5vw, 52px); max-width: 18ch; margin: 0 auto; }
.final p { margin: 16px auto 0; max-width: 46ch; color: var(--on-deep-2); }
.final .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.final .btn-ghost { color: var(--on-deep); border-color: rgba(255, 255, 255, 0.25); }
.final .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 32px 0 40px; color: var(--ink-3); font-size: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Правки после просмотра в браузере ─────────────────────────────────── */
.float-chip { z-index: 2; }
.chip-a { left: -1%; bottom: 210px; }
.report-head { flex-wrap: wrap; }
.price-row b { white-space: nowrap; font-size: clamp(17px, 4.6vw, 20px); }
.step code { white-space: nowrap; }
.card-visual { position: static; width: 100%; max-width: 340px; margin-top: 4px; }
@media (max-width: 899px) {
  .hero { min-height: 0; padding-bottom: 28px; }
  .stage { height: auto; margin-top: 28px; }
  .float-card { position: relative; left: auto; bottom: auto; transform: none; margin: 0 auto; animation: none; }
  .hills { height: 32%; }
}
.card h3 + p { margin-top: 10px; }

/* ── Тема: светлая по умолчанию, темная — по системе или переключателю ☀/☾ (data-theme на <html>) ───────── */
:root {
  --sky: radial-gradient(120% 80% at 50% -10%, #fbfaff 0%, #ece7fd 34%, #d9d0f8 58%, #b9abec 80%, #8f7fd6 100%);
  --sky-soft: radial-gradient(120% 90% at 50% -20%, #fbfaff 0%, #ece7fd 40%, #d9d0f8 75%, #c3b6f1 100%);
  --hero-glow: rgba(255, 255, 255, 0.95);
  --glass: rgba(255, 255, 255, 0.82);
  --glass-2: rgba(255, 255, 255, 0.88);
  --glass-3: rgba(255, 255, 255, 0.78);
  --chip-glass: rgba(255, 255, 255, 0.72);
  --soft-card: linear-gradient(160deg, #f6f3ff 0%, #e6defb 60%, #d7cdf7 100%);
  --gauge: linear-gradient(90deg, #cfeadf 0%, #e9f3d6 45%, #f7e4c3 70%, #f5cfc4 100%);
  --btn-bg: var(--deep);
  --btn-bg-hover: var(--deep-2);
  --btn-fg: var(--on-deep);
  --notice-ink: #6b4705;
  --hill1a: #a596e6; --hill1b: #6b59c4; --hill2a: #8676d6; --hill2b: #4e3ea8; --hill3a: #6a5ac0; --hill3b: #2f2670;
  --bloom-1: #efeaff; --bloom-2: #ffffff; --bloom-3: #d9cffb; --bloom-4: #c9bcf6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0f0d17; --surface: #181524; --surface-2: #1f1b2e; --ink: #ece9f7; --ink-2: #b9b3d2; --ink-3: #9089ae;
    --line: #2c2740; --line-2: #3b3453; --lav-0: #211c33; --lav-1: #2a2342; --lav-2: #3d3263; --lav-3: #8f80e8;
    --violet: #a596f2; --violet-2: #c0b5f8; --deep: #2a2446; --deep-2: #352e58; --on-deep: #f1eefb; --on-deep-2: #c6bfe2;
    --take: #4fd1a1; --take-bg: #12332a; --caveat: #62c9a2; --caveat-bg: #15302a; --overpay: #f0b75c; --overpay-bg: #382b13;
    --replace: #f39066; --replace-bg: #3b2218; --reject: #f37c7c; --reject-bg: #3b1d21; --nodata: #a7a2c2; --nodata-bg: #26223a;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.45);
    --sky: radial-gradient(120% 80% at 50% -10%, #3a3170 0%, #2a2352 32%, #1e1940 62%, #151130 100%);
    --sky-soft: radial-gradient(120% 90% at 50% -20%, #352c66 0%, #261f4a 45%, #1c1738 100%);
    --hero-glow: rgba(190, 170, 255, 0.22);
    --glass: rgba(24, 21, 36, 0.82); --glass-2: rgba(31, 27, 46, 0.9); --glass-3: rgba(24, 21, 36, 0.72); --chip-glass: rgba(255, 255, 255, 0.08);
    --soft-card: linear-gradient(160deg, #2c2549 0%, #241e40 60%, #1e1936 100%);
    --gauge: linear-gradient(90deg, #1f4a3b 0%, #3d4a26 45%, #5a4526 70%, #5c2f2c 100%);
    --btn-bg: #e9e4fb; --btn-bg-hover: #ffffff; --btn-fg: #1d1a31; --notice-ink: #f3d08f;
    --hill1a: #4a3d8f; --hill1b: #2f2668; --hill2a: #3b2f7d; --hill2b: #231c55; --hill3a: #2c2366; --hill3b: #140f33;
    --bloom-1: #cfc3ff; --bloom-2: #ffffff; --bloom-3: #a898f0; --bloom-4: #8c7ce0;
    color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0f0d17; --surface: #181524; --surface-2: #1f1b2e; --ink: #ece9f7; --ink-2: #b9b3d2; --ink-3: #9089ae;
    --line: #2c2740; --line-2: #3b3453; --lav-0: #211c33; --lav-1: #2a2342; --lav-2: #3d3263; --lav-3: #8f80e8;
    --violet: #a596f2; --violet-2: #c0b5f8; --deep: #2a2446; --deep-2: #352e58; --on-deep: #f1eefb; --on-deep-2: #c6bfe2;
    --take: #4fd1a1; --take-bg: #12332a; --caveat: #62c9a2; --caveat-bg: #15302a; --overpay: #f0b75c; --overpay-bg: #382b13;
    --replace: #f39066; --replace-bg: #3b2218; --reject: #f37c7c; --reject-bg: #3b1d21; --nodata: #a7a2c2; --nodata-bg: #26223a;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.45);
    --sky: radial-gradient(120% 80% at 50% -10%, #3a3170 0%, #2a2352 32%, #1e1940 62%, #151130 100%);
    --sky-soft: radial-gradient(120% 90% at 50% -20%, #352c66 0%, #261f4a 45%, #1c1738 100%);
    --hero-glow: rgba(190, 170, 255, 0.22);
    --glass: rgba(24, 21, 36, 0.82); --glass-2: rgba(31, 27, 46, 0.9); --glass-3: rgba(24, 21, 36, 0.72); --chip-glass: rgba(255, 255, 255, 0.08);
    --soft-card: linear-gradient(160deg, #2c2549 0%, #241e40 60%, #1e1936 100%);
    --gauge: linear-gradient(90deg, #1f4a3b 0%, #3d4a26 45%, #5a4526 70%, #5c2f2c 100%);
    --btn-bg: #e9e4fb; --btn-bg-hover: #ffffff; --btn-fg: #1d1a31; --notice-ink: #f3d08f;
    --hill1a: #4a3d8f; --hill1b: #2f2668; --hill2a: #3b2f7d; --hill2b: #231c55; --hill3a: #2c2366; --hill3b: #140f33;
    --bloom-1: #cfc3ff; --bloom-2: #ffffff; --bloom-3: #a898f0; --bloom-4: #8c7ce0;
    color-scheme: dark; }

.hero { background: var(--sky); }
.hero::before { background: radial-gradient(closest-side, var(--hero-glow), transparent); }
.nav { background: var(--glass); border-color: var(--line); }
.float-chip { background: var(--glass-2); }
.card-light, .cta-card { background: var(--soft-card); }
.card-light .ic, .login-card li::before { background: var(--chip-glass); }
.gauge-bar { background: var(--gauge); }
.gauge-bar i { border-color: var(--surface); }
.btn-dark { background: var(--btn-bg); color: var(--btn-fg); }
.btn-dark:hover { background: var(--btn-bg-hover); }
.btn-ghost:hover { background: var(--lav-0); }
.btn-on-deep:hover { background: var(--surface); color: var(--ink); }
.hills stop.s1a { stop-color: var(--hill1a); } .hills stop.s1b { stop-color: var(--hill1b); }
.hills stop.s2a { stop-color: var(--hill2a); } .hills stop.s2b { stop-color: var(--hill2b); }
.hills stop.s3a { stop-color: var(--hill3a); } .hills stop.s3b { stop-color: var(--hill3b); }
.hills .b1 { fill: var(--bloom-1); } .hills .b2 { fill: var(--bloom-2); } .hills .b3 { fill: var(--bloom-3); } .hills .b4 { fill: var(--bloom-4); }

.theme-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.theme-btn:hover { border-color: var(--line-2); background: var(--lav-0); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.nav-cta { align-items: center; }
.plan .badge { color: var(--ink); }
.plan.hot .badge { background: var(--lav-2); color: var(--ink); }

/* ── Проверка канала с сайта и живые цифры ─────────────────────────────── */
.live-stats { margin: 18px auto 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.live-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.peek { margin-top: 16px; padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; }
@media (min-width: 900px) { .peek { grid-template-columns: 1fr 1.15fr; align-items: center; padding: 32px 36px; } .peek-out { grid-column: 1 / -1; } }
.peek-head h2 { font-size: clamp(24px, 3vw, 32px); }
.peek-head p { margin-top: 8px; color: var(--ink-2); max-width: 46ch; }
.peek-form { display: flex; gap: 8px; flex-wrap: wrap; }
.peek-form input { flex: 1 1 220px; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--ink); font: 500 16px var(--font); }
.peek-form input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.peek-form .btn { min-height: 50px; }
.peek-card { display: grid; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--lav-0); }
@media (min-width: 700px) { .peek-card { grid-template-columns: 1fr auto; align-items: center; } }
.peek-card .who { font-weight: 700; font-size: 18px; }
.peek-card .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.peek-card .facts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.peek-card .note { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.peek-err { color: var(--reject); font-size: 14px; }
.skeleton { border-radius: var(--r-md); background: linear-gradient(90deg, var(--lav-0), var(--surface), var(--lav-0)); background-size: 200% 100%; min-height: 72px; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: shimmer 1.4s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Разборы (блог) ────────────────────────────────────────────────────── */
.article { max-width: 760px; margin: 0 auto; padding: 48px 0 0; }
.article .eyebrow a { text-decoration: none; }
.article h1 { font-size: clamp(32px, 5vw, 48px); margin-top: 10px; }
.article .lead { margin-top: 16px; font-size: 19px; color: var(--ink-2); }
.article .meta { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.prose { margin-top: 32px; font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--violet-2); }
.prose blockquote { margin: 20px 0; padding: 16px 20px; border-radius: var(--r-md); background: var(--lav-0); border-left: 3px solid var(--lav-3); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink-3); font-weight: 600; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: 14px; background: var(--lav-0); padding: 2px 6px; border-radius: 6px; }
.cta-box { margin: 36px 0; padding: 26px; border-radius: var(--r-lg); background: var(--soft-card); display: grid; gap: 14px; }
.cta-box h3 { font-size: 22px; margin: 0; }
.cta-box p { margin: 0; color: var(--ink-2); }
.posts { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; }
.post-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.post-card h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.post-card p { color: var(--ink-2); font-size: 15px; }
.post-card span { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--violet-2); }
