:root {
  --bg: #f6f7fb; --card: #ffffff; --text: #111827; --muted: #6b7280; --line: #e5e7eb;
  --primary: #1e5eff; --primary-dark: #1649c7; --ok: #1e8e5a; --warn: #c2410c;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1219; --card: #171b26; --text: #f3f4f6; --muted: #9ca3af; --line: #2a3040; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--primary); }
h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.15; margin: 8px 0 16px; letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 18px; letter-spacing: -0.01em; }
h3 { margin: 0 0 6px; font-size: 17px; }
p { margin: 0 0 12px; }
code { font-family: ui-monospace, Consolas, monospace; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; padding-top: 32px; padding-bottom: 64px; }
.hidden { display: none !important; }
.fine { color: var(--muted); font-size: 14px; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.eyebrow { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin: 0; }
.link { font-weight: 600; }

.top { border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.logo { width: 26px; height: 26px; color: var(--primary); flex: none; }

.btn { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 12px; border: 0; cursor: pointer; font-size: 16px; transition: background .15s; }
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn.big { width: 100%; padding: 16px; font-size: 18px; text-align: center; }

.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 56px 16px 40px; }
.cta { display: flex; align-items: center; gap: 20px; margin: 20px 0 10px; flex-wrap: wrap; }
.phone { justify-self: center; width: 300px; background: #0b1020; border-radius: 36px; padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.screen { background: var(--bg); border-radius: 26px; padding: 16px 14px; font-size: 13px; min-height: 520px; color: var(--text); }
.screen .status { background: var(--ok); color: #fff; padding: 12px; border-radius: 14px; margin-bottom: 14px; font-size: 13px; }
.screen .row { display: flex; justify-content: space-between; align-items: center; background: var(--card); padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; }
.sw { width: 34px; height: 18px; border-radius: 9px; background: #cbd5e1; position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 7px; background: #fff; }
.sw.on { background: var(--primary); } .sw.on::after { left: 18px; }
.hist { margin-top: 14px; background: var(--card); padding: 12px; border-radius: 12px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.hist b { color: var(--text); }

.features { padding: 24px 16px 48px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.buy { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.buy-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.check { list-style: none; padding: 0; margin: 0 0 16px; }
.check li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.form { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.form label { display: block; font-weight: 600; margin-bottom: 14px; }
.form small { color: var(--muted); font-weight: 400; }
.form input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 16px; }
.msg { min-height: 20px; color: var(--warn); font-size: 14px; margin: 10px 0 4px; }

.faq { padding: 48px 16px 64px; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 16px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.keybox { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px dashed var(--primary); border-radius: 12px; padding: 14px 16px; margin: 16px 0 20px; }
.keybox code { font-size: 22px; font-weight: 700; letter-spacing: .06em; flex: 1; word-break: break-all; }
.steps { padding-left: 22px; } .steps li { margin-bottom: 10px; }
.steps.big li { margin-bottom: 22px; }
.spinner { width: 36px; height: 36px; border: 4px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 20px 0; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .phone { width: 260px; } .screen { min-height: 440px; }
  .grid { grid-template-columns: 1fr; }
  .buy-inner { grid-template-columns: 1fr; gap: 28px; }
}

.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg); }
.foot-links { display: flex; gap: 16px; }
.consent { position: fixed; z-index: 20; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.18); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.consent p { margin: 0; flex: 1 1 260px; color: var(--muted); }
.consent-actions { display: flex; gap: 8px; }
.prose h2 { margin-top: 28px; font-size: 20px; }
.prose p, .prose li { color: var(--muted); }
