:root {
  --primary: #1a4dff;
  --primary-deep: #1538d9;
  --bg: #f8fafc;
  --ink: #0b0b0f;
  --muted: #5c6478;
  --line: rgba(11,11,15,.08);
  --surface: #fff;
  --ok: #15803d;
  --radius: 12px;
  --max: 1120px;
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height:1.55; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.header { position: sticky; top:0; z-index:50; background: rgba(248,250,252,.92); backdrop-filter: blur(10px); border-bottom:1px solid var(--line); }
.header__inner { display:flex; align-items:center; justify-content:space-between; padding: 10px 20px; }
.brand img { display:block; height:40px; width:auto; }
.btn { display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 16px; border-radius:8px; font-weight:600; font-size:14px; text-decoration:none; border:1px solid transparent; cursor:pointer; }
.btn-primary { background: var(--primary); color:#fff; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-outline { background:#fff; border-color: var(--line); color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-block { width:100%; }
.btn:disabled { opacity:.55; cursor:not-allowed; }

.hero { padding: 56px 0 40px; }
.hero-grid { display:grid; gap:32px; grid-template-columns: 1.1fr .9fr; align-items:center; }
@media (max-width: 900px){ .hero-grid { grid-template-columns:1fr; } }
.eyebrow { display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:999px; background:#fff; border:1px solid var(--line); color: var(--muted); font-size:13px; font-weight:600; margin-bottom:16px; }
.eyebrow:before { content:""; width:8px; height:8px; border-radius:50%; background: var(--primary); }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height:1.15; margin:0 0 14px; letter-spacing:-.02em; }
.hero-sub { color: var(--muted); font-size:18px; margin:0 0 24px; max-width:36em; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:28px; }
.mock { background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow: 0 16px 40px rgba(10,42,153,.08); overflow:hidden; }
.mock-bar { height:36px; background:#f1f5f9; display:flex; align-items:center; gap:6px; padding:0 12px; }
.mock-bar span { width:8px; height:8px; border-radius:50%; background:#cbd5e1; }
.mock-body { padding:16px; }
.mock-title { font-weight:700; margin-bottom:12px; }
.mock-row { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--line); font-size:14px; }
.status { font-size:12px; font-weight:700; padding:2px 8px; border-radius:999px; }
.status-ok { background: rgba(21,128,61,.1); color: var(--ok); }
.status-wait { background: rgba(180,83,9,.1); color:#b45309; }

.section { padding: 56px 0; }
.section-h { margin-bottom: 24px; }
.section-h h2 { font-size:28px; margin:0 0 8px; letter-spacing:-.02em; }
.section-h p { color: var(--muted); margin:0; max-width:40em; }
.cards { display:grid; gap:16px; grid-template-columns: repeat(3,1fr); }
@media (max-width:900px){ .cards { grid-template-columns:1fr; } }
.card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:20px; }
.card h3 { margin:0 0 8px; font-size:18px; }
.card p { margin:0; color: var(--muted); font-size:15px; }

.steps { display:grid; gap:12px; }
.step { display:grid; grid-template-columns: 64px 1fr; gap:16px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 18px; }
.step b { color: var(--primary); }

.demo { padding: 56px 0 80px; }
.demo-grid { display:grid; gap:28px; grid-template-columns: .9fr 1.1fr; }
@media (max-width:900px){ .demo-grid { grid-template-columns:1fr; } }
.form { background:#fff; border:1px solid var(--line); border-radius:16px; padding:22px; display:grid; gap:14px; }
.form label { display:grid; gap:6px; font-size:14px; font-weight:600; }
.form input, .form textarea { font:inherit; font-weight:400; border:1px solid var(--line); border-radius:10px; padding:10px 12px; background:#fff; }
.form textarea { resize: vertical; min-height:84px; }
.hp { position:absolute; left:-9999px; height:0; overflow:hidden; }
.check { display:flex !important; align-items:flex-start; gap:10px; font-weight:500 !important; }
.check input { margin-top:3px; width:18px; height:18px; flex:0 0 auto; accent-color: var(--primary); }
.check a { color: var(--primary); text-decoration: underline; }
.form-note { font-size:13px; color: var(--muted); font-weight:400; }

.footer { border-top:1px solid var(--line); padding:28px 0; background:#fff; }
.footer__inner { display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; align-items:flex-start; }
.footer nav { display:flex; flex-wrap:wrap; gap:12px 18px; font-size:14px; }
.footer a { color: var(--primary); text-decoration: underline; }
.footer p { margin:0; color: var(--muted); font-size:13px; max-width:36em; }

.cookie { position: fixed; left:16px; right:16px; bottom:16px; z-index:100; max-width:720px; margin:0 auto; background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px; box-shadow: 0 20px 50px rgba(0,0,0,.12); display:none; }
.cookie.show { display:block; }
.cookie p { margin:0 0 12px; font-size:14px; color: var(--muted); }
.cookie-actions { display:flex; flex-wrap:wrap; gap:8px; }
.cookie-panel { display:none; margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.cookie-panel.open { display:block; }
.cookie-panel label { display:flex; gap:8px; align-items:center; font-size:14px; margin:8px 0; }

.doc-page .doc { padding: 32px 0 64px; }
.doc-meta { color: var(--muted); font-size:13px; margin:0 0 16px; }
.doc-body { background:#fff; border:1px solid var(--line); border-radius:16px; padding:28px; }
.doc-body p, .doc-body li { font-size:15px; }
.doc-body h1, .doc-body h2, .doc-body h3 { letter-spacing:-.02em; }
.doc-body table { width:100%; border-collapse: collapse; font-size:14px; }
.doc-body td, .doc-body th { border:1px solid var(--line); padding:8px; vertical-align:top; }

/* auth */
.auth-page { min-height: 100vh; display:flex; flex-direction:column; background: #eef2f7; }
.auth-page .header { background:#fff; }
.auth-main { flex:1; display:flex; align-items:center; justify-content:center; padding: 32px 16px 48px; }
.auth-card {
  width: min(920px, 100%);
  display:grid;
  grid-template-columns: 1fr 1fr;
  background:#fff;
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 24px 60px rgba(15,23,42,.12);
  border:1px solid var(--line);
}
@media (max-width: 820px){
  .auth-card { grid-template-columns: 1fr; }
  .auth-art { display:none !important; }
}
.auth-form { padding: 36px 32px; min-width:0; }
.auth-form h1 { font-size: 26px; margin:0 0 6px; letter-spacing:-.02em; }
.auth-form .sub { color: var(--muted); margin:0 0 18px; font-size:14px; }
.tabs { display:flex; gap:4px; background:#f1f5f9; padding:4px; border-radius:12px; margin-bottom:18px; }
.tab { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; height:40px; border-radius:10px; border:0; background:transparent; color:#475569; font-weight:600; font-size:14px; cursor:pointer; }
.tab.active { background:#fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.auth-form label { display:grid; gap:6px; font-size:14px; font-weight:600; margin-bottom:14px; }
.auth-form input[type="tel"],
.auth-form input[type="text"],
.auth-form input[type="email"] {
  font:inherit; font-weight:400; border:1px solid #d8dee8; border-radius:10px; padding:12px 14px; width:100%;
}
.auth-form input:focus { outline:2px solid rgba(26,77,255,.25); border-color: var(--primary); }
.auth-primary { width:100%; height:44px; border:0; border-radius:10px; background:#5b4bdb; color:#fff; font-weight:700; font-size:15px; cursor:pointer; display:block; }
.auth-primary:hover { filter: brightness(.96); }
.auth-links { margin-top:14px; font-size:14px; }
.auth-links a { color:#2563eb; text-decoration:none; }
.auth-or { margin:18px 0 10px; color: var(--muted); font-size:13px; }
.auth-alt { display:grid; gap:8px; }
.auth-alt button { height:42px; border-radius:10px; border:1px solid #d8dee8; background:#fff; font-weight:600; cursor:pointer; width:100%; }
.auth-foot { margin-top:18px; font-size:14px; color: var(--muted); }
.auth-foot .noop { color:#2563eb; text-decoration: underline; cursor: default; }
.auth-art {
  background: linear-gradient(160deg, #1e3a8a, #2563eb 55%, #3b82f6);
  display:flex; align-items:center; justify-content:center; padding:24px; min-height:420px;
}
.auth-art img { width: min(100%, 340px); height:auto; display:block; }
.auth-checks { display:grid; gap:10px; margin: 4px 0 14px; }
.auth-checks .check { font-size:13px; font-weight:500; }
.auth-page .footer { margin-top:auto; }
