:root {
    --bg: #0b0f17;
    --bg-alt: #0f1420;
    --surface: #131a28;
    --surface-2: #182132;
    --border: #232c3f;
    --text: #e6ebf5;
    --muted: #8a94a8;
    --accent: #5b8cff;
    --accent-2: #8b5cf6;
    --ok: #34d399;
    --warn: #fbbf24;
    --bad: #f87171;
    --radius: 16px;
    --grad: linear-gradient(135deg, #6ea8ff 0%, #8b5cf6 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: #8fb3ff; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
    font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important;
    transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
    white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(91, 140, 255, .6); }
.btn--primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(91, 140, 255, .75); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover:not(:disabled) { border-color: #3a4763; background: var(--surface); }
.btn--link { background: none; color: var(--muted); padding: 8px; font-weight: 500; }
.btn--small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(11, 15, 23, .82); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(35, 44, 63, .6);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; text-decoration: none !important; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(91, 140, 255, .18), transparent 60%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9db8ff; background: rgba(91, 140, 255, .1); border: 1px solid rgba(91, 140, 255, .25); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: #b4bdd0; max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-points li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 8px; }

.hero-visual { position: relative; min-height: 340px; display: grid; place-items: center; }
.orb { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--grad); filter: blur(70px); opacity: .35; }
.card-float {
    position: relative; width: min(100%, 360px); padding: 24px; border-radius: 20px;
    background: rgba(19, 26, 40, .85); border: 1px solid var(--border); backdrop-filter: blur(8px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.cf-row { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 5px rgba(52, 211, 153, .15); }
.cf-meter { height: 8px; border-radius: 99px; background: var(--surface-2); margin: 20px 0; overflow: hidden; }
.cf-meter span { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.cf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cf-stats div { background: var(--surface-2); border-radius: 12px; padding: 12px; text-align: center; }
.cf-stats b { display: block; font-size: 17px; }
.cf-stats small { color: var(--muted); font-size: 12px; }

/* ---------- Секции ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: -8px auto 40px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature h3 { font-size: 19px; margin-top: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
.ficon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(91, 140, 255, .12); border: 1px solid rgba(91, 140, 255, .25); }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); font-weight: 800; margin-bottom: 14px; }
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }

/* ---------- Тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px 24px 24px; }
.plan--accent { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 24px 48px -24px rgba(91, 140, 255, .5); }
.plan-badge { position: absolute; top: -12px; left: 24px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan-title { font-size: 18px; color: #c5cde0; margin-bottom: 12px; }
.plan-price { font-size: 36px; font-weight: 800; line-height: 1.1; }
.plan-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.plan-list { list-style: none; padding: 0; margin: 22px 0 26px; flex: 1; }
.plan-list li { padding: 6px 0; font-size: 15px; color: #c5cde0; }
.plan-list li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 10px; }

.trial { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; padding: 22px 26px; border-radius: var(--radius); border: 1px dashed #334066; background: rgba(91, 140, 255, .05); }
.trial b { display: block; font-size: 18px; }
.trial .muted { font-size: 15px; }

.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 22px; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0 0 18px; color: #b4bdd0; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: 24px; background: radial-gradient(circle at 0 0, rgba(91, 140, 255, .22), transparent 55%), var(--surface); border: 1px solid var(--border); }
.cta h2 { font-size: 30px; margin-bottom: 6px; }
.cta p { margin: 0; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 28px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer li a { color: #c5cde0; }
.footer p.muted { font-size: 14px; max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-verify { margin: 0; }

/* ---------- Документы ---------- */
.doc h1 { font-size: clamp(30px, 4vw, 40px); }
.doc h2 { font-size: 21px; margin-top: 36px; }
.doc p, .doc li { color: #c5cde0; }
.doc ul { padding-left: 22px; }
.doc-date { color: var(--muted); margin-top: -8px; }
.doc-lead { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.doc-note { margin-top: 36px; font-weight: 600; }
.contacts { list-style: none; padding: 0 !important; margin: 28px 0; display: grid; gap: 12px; }
.contacts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; font-size: 18px; font-weight: 700; flex-wrap: wrap; }
.contacts li span { color: var(--muted); font-weight: 500; font-size: 15px; }

/* ---------- Кабинет ---------- */
.cabinet { padding-top: 48px; min-height: 70vh; }
.cab-container { max-width: 820px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; margin-bottom: 18px; }
.card--highlight { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 140, 255, .15); }
.card h2 { font-size: 22px; }
.auth-card { max-width: 460px; margin: 20px auto; }
.auth-card h1 { font-size: 26px; }
.cab-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cab-head h1 { font-size: 30px; margin-bottom: 2px; }
.cab-head p { margin: 0; }

.form { display: grid; gap: 14px; margin: 20px 0 12px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--muted); font-weight: 600; }
input[type=email], input[type=text] {
    width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--bg); color: var(--text); font: inherit;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 140, 255, .2); }
input[name=code] { font-size: 24px; letter-spacing: .4em; text-align: center; }
.form-error { color: var(--bad); margin: 10px 0 0; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 15px; color: #c5cde0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }

.banner { border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600; border: 1px solid; }
.banner--ok { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .35); color: #a7f3d0; }
.banner--info { background: rgba(91, 140, 255, .08); border-color: rgba(91, 140, 255, .35); color: #c7d7ff; }
.banner--bad { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .35); color: #fecaca; }
.note { border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; font-size: 15px; }
.note--bad { background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; }

.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sub-head h2 { margin: 0; }
.pill { font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.pill--ok { background: rgba(52, 211, 153, .12); color: var(--ok); }
.pill--warn { background: rgba(251, 191, 36, .12); color: var(--warn); }
.pill--bad { background: rgba(248, 113, 113, .12); color: var(--bad); }
.sub-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.sub-stats div { background: var(--surface-2); border-radius: 12px; padding: 14px; }
.sub-stats small { display: block; color: var(--muted); font-size: 13px; }
.sub-stats b { font-size: 17px; }
.sub-link { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: start; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-width: 0; }
.howto { padding-left: 20px; margin: 16px 0 0; color: #b4bdd0; font-size: 15px; }
.howto li { padding: 3px 0; }
.apps { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.apps h3 { font-size: 18px; }
.apps-tabs { display: flex; gap: 6px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; }
.apps-tab { flex: 1; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.apps-tab--active { background: var(--surface-2); color: var(--text); }
.app-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.app-row:last-child { border-bottom: 0; }
.app-links { display: flex; gap: 8px; flex-wrap: wrap; }
.qr { width: 168px; height: 168px; border-radius: 12px; background: #fff; padding: 6px; }

.plan-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.pp { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.pp input { position: absolute; opacity: 0; pointer-events: none; }
.pp--active { border-color: var(--accent); background: rgba(91, 140, 255, .08); }
.pp-title { font-weight: 700; }
.pp-title em { font-style: normal; font-size: 11px; font-weight: 800; background: var(--grad); color: #fff; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.pp-price { font-weight: 800; font-size: 18px; text-align: right; }
.pp-sub { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }

.table-wrap { overflow-x: auto; }
.orders { width: 100%; border-collapse: collapse; font-size: 15px; }
.orders th, .orders td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.orders th { color: var(--muted); font-weight: 600; font-size: 13px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
    .plans { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .nav { display: none; }
    .header-inner { justify-content: space-between; }
    .hero { padding: 56px 0 48px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 260px; }
    .steps { grid-template-columns: 1fr; }
    .trial, .cta { flex-direction: column; align-items: flex-start; }
    .sub-link { grid-template-columns: 1fr; }
    .qr { justify-self: center; }
}
@media (max-width: 560px) {
    .section { padding: 56px 0; }
    .plans, .features, .plan-picker { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .sub-stats { grid-template-columns: 1fr; }
    .card { padding: 22px 18px; }
    .cta { padding: 28px 22px; }
    .hero-cta .btn { width: 100%; }
    .logo span { font-size: 17px; }
}
