:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-2: #131d33;
  --card: #162136;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-ink: #ffffff;
  --good-bg: rgba(34, 197, 94, 0.14);
  --good-ink: #4ade80;
  --bad-bg: rgba(239, 68, 68, 0.14);
  --bad-ink: #f87171;
  --glow: rgba(59, 130, 246, 0.18);
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f4f7fb;
  --card: #ffffff;
  --line: #d9e2ee;
  --text: #0f172a;
  --muted: #5b6b82;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --good-bg: #e5f6ee;
  --good-ink: #0f6b45;
  --bad-bg: #fdecea;
  --bad-ink: #9d2c2c;
  --glow: rgba(37, 99, 235, 0.1);
  --shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.landing {
  margin: 0;
  min-height: 100dvh;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 85% -8%, var(--glow), transparent 62%),
    var(--bg);
}

a { color: inherit; }
button, a, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.ico { width: 22px; height: 22px; flex: none; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { max-width: 760px; }

/* верх */
.lp-top { padding: 14px 0; }
.lp-top-in { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; }
.mark-logo { width: 28px; height: 28px; fill: var(--accent); }

.theme {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}
.theme:hover { color: var(--text); border-color: var(--muted); }
.theme .ico:last-child { display: none; }
:root[data-theme="light"] .theme .ico:first-child { display: none; }
:root[data-theme="light"] .theme .ico:last-child { display: block; }

/* кнопка */
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px 14px 14px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600; font-size: 18px; text-decoration: none;
  box-shadow: 0 10px 30px var(--glow);
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 160ms;
}
.cta:hover { filter: brightness(1.08); }
.cta:active { transform: scale(0.98); }
.cta .ico { width: 20px; height: 20px; }
.ya {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fc3f1d; color: #fff;
  font-weight: 700; font-size: 18px; line-height: 1;
}

/* герой */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  padding: 36px 0 72px;
}
.hero > .notice { grid-column: 1 / -1; margin: 0; }

.notice {
  padding: 12px 16px; border-radius: 14px;
  background: var(--bad-bg); color: var(--bad-ink); border: 1px solid var(--line);
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--muted);
}
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--good-ink); box-shadow: 0 0 0 4px var(--good-bg); }

h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.04; letter-spacing: -0.045em; font-weight: 600;
  text-wrap: balance;
}
h1 span { display: block; color: var(--accent); }

.lead { margin: 0 0 30px; max-width: 36rem; font-size: 19px; color: var(--muted); }
.fine { margin: 16px 0 0; max-width: 34rem; font-size: 13px; color: var(--muted); }

/* телефон */
.hero-art { display: grid; justify-items: center; }
.phone {
  width: min(100%, 330px);
  padding: 14px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; }
.phone-bar .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); }
.phone-bar strong { font-size: 15px; }
.phone-bar small { margin-left: auto; color: var(--muted); }
.bubble {
  display: grid; gap: 1px;
  padding: 12px 14px; border-radius: 16px 16px 16px 4px;
  background: var(--bg-2);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; line-height: 1.5;
}
.bubble + .bubble { margin-top: 10px; }
.bubble .dim { color: var(--muted); }
.bubble b { font-weight: 600; }
.up { color: var(--good-ink); }
.down { color: var(--bad-ink); }
.bubble.ai { font-family: Outfit, sans-serif; font-size: 14px; line-height: 1.4; gap: 6px; }
.tag {
  display: inline-block; width: max-content;
  padding: 2px 8px; border-radius: 999px;
  background: var(--glow); color: var(--accent);
  font-size: 12px; font-weight: 600;
}

.line { opacity: 0; animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--i) * 150ms + 300ms); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* секции */
.sec { padding: 56px 0; }
h2 { margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
h3 { margin: 12px 0 6px; font-size: 19px; letter-spacing: -0.02em; }
.sec-lead { margin: 0 0 28px; max-width: 40rem; color: var(--muted); }
.more { margin: 22px 0 0; color: var(--muted); }

.card, .grid-card, .price, details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.grid-card { padding: 18px; box-shadow: var(--shadow); }
.grid-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 4px 4px 14px; }
.grid-head span, .grid-note { color: var(--muted); font-size: 14px; }
.grid-note { margin: 12px 4px 2px; }
.grid-ai { margin: 14px 4px 0; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); }
.grid-ai .tag { margin-right: 10px; }

.lp-grid { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.lp-grid table.ssp {
  width: 100%; border-collapse: collapse;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums; font-size: 13px;
}
.lp-grid table.ssp th, .lp-grid table.ssp td {
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  text-align: right; white-space: nowrap;
}
.lp-grid table.ssp tr:last-child td { border-bottom: 0; }
.lp-grid table.ssp th:first-child, .lp-grid table.ssp td:first-child {
  text-align: left; position: sticky; left: 0;
  background: var(--card); font-family: Outfit, sans-serif; font-size: 14px;
}
.lp-grid table.ssp th { color: var(--muted); font-weight: 600; background: var(--bg-2); }
.lp-grid table.ssp th:first-child { background: var(--bg-2); }
.lp-grid table.ssp td.good { background: var(--good-bg); color: var(--good-ink); }
.lp-grid table.ssp td.bad { background: var(--bad-bg); color: var(--bad-ink); }
.lp-grid sup { font-size: 10px; }
.lp-grid table.ssp tr.grp td { background: var(--bg-2); color: var(--accent); font-weight: 700; }
.lp-grid table.ssp tr.grp td:first-child { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-2); }
.lp-grid table.ssp td.none { color: var(--muted); }
.lp-grid .empty { margin: 0; padding: 18px; }

/* видео */
.video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.video-ph { display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 24px; color: var(--muted); }
.video-ph strong { color: var(--text); font-size: 20px; }
.play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--glow); color: var(--accent); }
.play .ico { width: 26px; height: 26px; margin-left: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 15px; }
.chips .ico { width: 18px; height: 18px; color: var(--accent); }

/* карточки */
.cards { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { padding: 22px; }
.card .ico { width: 26px; height: 26px; color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card p + p { margin-top: 10px; }
.card .quote { color: var(--text); font-style: italic; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { padding: 4px 0; }
.steps .num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--glow); color: var(--accent); font-family: "JetBrains Mono", monospace; font-weight: 600;
}
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* цена */
.price { max-width: 480px; margin: 28px 0 0; padding: 28px; box-shadow: var(--shadow); }
.price-top { margin: 0; color: var(--good-ink); font-weight: 600; }
.price-main { margin: 6px 0 20px; color: var(--muted); }
.price-main strong { color: var(--text); font-size: 36px; letter-spacing: -0.03em; font-family: "JetBrains Mono", monospace; }
.plan { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.plan li { display: flex; gap: 10px; align-items: center; }
.plan .ico { width: 18px; height: 18px; color: var(--good-ink); }

/* faq */
.faq { display: grid; gap: 10px; margin-top: 24px; }
details { padding: 0 20px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 500; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .ico { color: var(--muted); transition: transform 180ms; }
details[open] summary .ico { transform: rotate(180deg); }
details p { margin: 0 0 18px; color: var(--muted); }

/* финал */
.final { padding: 64px 0 80px; text-align: center; }
.final .sec-lead { margin-left: auto; margin-right: auto; }
.lp-foot { display: flex; justify-content: space-between; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.sticky-cta { display: none; }

@media (max-width: 860px) {
  body.landing { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-bottom: 48px; }
  .cards.three, .steps { grid-template-columns: 1fr; }
  .sec { padding: 40px 0; }
}

@media (max-width: 720px) {
  body.landing { padding-bottom: 92px; }
  .sticky-cta {
    display: flex; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .sticky-cta.is-hidden { transform: translateY(110%); }
  .sticky-cta .cta { width: 100%; justify-content: center; }
  .hero .cta, .final .cta { width: 100%; justify-content: center; }
}

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