:root {
  --bg: #0f0a1f;
  --bg2: #160f2c;
  --card: #1d1538;
  --line: #2c2252;
  --text: #f4f1ff;
  --muted: #b9b2d6;
  --accent: #c026d3;
  --grad: linear-gradient(135deg, #4f46e5, #c026d3 55%, #f43f5e);
  --ok: #34d399;
  --err: #fb7185;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(15, 10, 31, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--text); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 14px; }
.lang summary::-webkit-details-marker { display: none; }
.lang div { position: absolute; right: 0; top: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 160px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.lang div a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.lang div a:hover, .lang div a.on { background: var(--line); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(192, 38, 211, .35), transparent 65%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 900; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: inherit; font-weight: 800; font-size: 18px; text-decoration: none; cursor: pointer; box-shadow: 0 10px 30px rgba(192, 38, 211, .35); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.meta { color: var(--muted); font-size: 14px; margin-top: 14px; }
.phone { justify-self: center; width: min(320px, 80vw); padding: 10px; border-radius: 42px; background: #05030c; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(79, 70, 229, .35); }
.phone img { border-radius: 32px; width: 100%; }

/* sections */
.block { padding: 72px 0; }
.block.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block h2 { font-size: clamp(28px, 4vw, 38px); text-align: center; margin-bottom: 36px; }
.sub { text-align: center; color: var(--muted); margin: -20px 0 28px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card svg { color: #e879f9; margin-bottom: 10px; }
.card h3 { font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.steps h3 { font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); font-weight: 800; }
.auto { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; margin-bottom: 32px; }
.auto p, .auto li { color: var(--muted); }
.auto ol { margin: 0; padding-left: 22px; }

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

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.note { padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.note.ok { background: rgba(52, 211, 153, .12); color: var(--ok); }
.note.err { background: rgba(251, 113, 133, .12); color: var(--err); }

.doc h1 { font-size: 34px; margin-bottom: 24px; }
.doc h2 { font-size: 20px; text-align: left; margin: 28px 0 8px; }
.doc p { color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot span { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .links { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 40px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .block { padding: 52px 0; }
  .auto { padding: 20px; }
}
