:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #5b6070;
  --line: #e6e3dc;
  --accent: #2f5bff;
  --accent-ink: #ffffff;
  --accent-soft: #eef2ff;
  --radius: 14px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --ink: #eef0f4;
    --muted: #a3a9b8;
    --line: #262a33;
    --accent: #6f8cff;
    --accent-ink: #0f1115;
    --accent-soft: #1b2140;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav.main a:hover { color: var(--ink); }
nav.main a.btn { color: var(--accent-ink); }
@media (max-width: 760px) { nav.main a:not(.btn) { display: none; } }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  text-decoration: none; border: 0; cursor: pointer; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { box-shadow: none; border-color: var(--muted); }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.035em;
  margin: 20px 0; max-width: 16ch;
}
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 56ch; margin: 0 0 32px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .facts { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 56px; color: var(--muted); font-size: 15px; }
.hero .facts strong { display: block; color: var(--ink); font-size: 22px; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--muted); max-width: 60ch; margin: 0 0 44px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
section.alt .card { background: var(--bg); }
.card h3 { margin: 12px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 22px;
}
.card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tag { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { padding-top: 18px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-weight: 800; color: var(--accent); font-size: 14px; letter-spacing: .05em;
}
.step h3 { margin: 6px 0; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Contact */
.contact { display: grid; gap: 48px; grid-template-columns: 1fr 1.3fr; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
form { display: grid; gap: 16px; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 14px; }
.consent input { width: auto; margin-top: 4px; }
#form-status { font-size: 15px; min-height: 1.4em; margin: 0; }
#form-status.ok { color: #1a9a5a; }
#form-status.err { color: #d23b3b; }
.contact-info p { color: var(--muted); }
.contact-info .line { display: flex; gap: 12px; align-items: center; margin: 14px 0; color: var(--ink); }

/* Footer */
footer { padding: 40px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Legal page */
.legal { padding: 64px 0; max-width: 760px; }
.legal h1 { font-size: 40px; letter-spacing: -0.03em; }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal p, .legal li { color: var(--muted); }
.todo { background: #fff3c4; color: #6b5300; padding: 0 4px; border-radius: 4px; }
