:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #eef1ec;
  --text: #121614;
  --muted: #5b6560;
  --line: #dde3dc;
  --accent: #0f9f6e;
  --accent-ink: #ffffff;
  --accent-soft: #dff5ea;
  --shadow: 0 1px 2px rgba(18, 22, 20, .04), 0 8px 24px rgba(18, 22, 20, .06);
  --radius: 18px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c100e;
    --surface: #141a17;
    --surface-2: #1a221e;
    --text: #eef3ef;
    --muted: #9aa8a0;
    --line: #253029;
    --accent: #3ddc97;
    --accent-ink: #06130d;
    --accent-soft: #143024;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Шапка ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* ---------- Первый экран ---------- */
.hero { padding: 88px 0 72px; text-align: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 600; margin-bottom: 22px;
}
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -.02em; margin: 0 auto 20px; max-width: 820px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- Секции ---------- */
section { padding: 72px 0; scroll-margin-top: 64px; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.015em; line-height: 1.15; margin: 0 0 12px; text-align: center; }
.sub { color: var(--muted); text-align: center; max-width: 600px; margin: 0 auto 44px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; 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);
}
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 30px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
}

/* ---------- Тарифы ---------- */
.prices { grid-template-columns: repeat(4, 1fr); }
.price { display: flex; flex-direction: column; }
.price.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price .tag { font-size: 13px; font-weight: 600; color: var(--accent); min-height: 20px; }
.price .term { font-size: 18px; font-weight: 600; margin: 6px 0 10px; }
.price .amount { font-size: 38px; font-weight: 750; letter-spacing: -.02em; line-height: 1; }
.price .amount span { font-size: 18px; font-weight: 600; }
.price .per { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.price ul { list-style: none; padding: 0; margin: 0 0 22px; color: var(--muted); font-size: 14px; flex: 1; }
.price li { padding: 4px 0 4px 22px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price .btn { width: 100%; }
.pay-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 18px; color: var(--muted); }

/* ---------- Финальный призыв ---------- */
.cta-box {
  text-align: center; padding: 56px 24px; border-radius: 28px;
  background: var(--accent); color: var(--accent-ink);
}
.cta-box h2 { color: inherit; }
.cta-box p { margin: 0 auto 28px; max-width: 520px; opacity: .85; }
.cta-box .btn { background: var(--accent-ink); color: var(--accent); }

/* ---------- Подвал ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- Документы ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); text-align: left; margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin-bottom: 36px; }
.doc h2 { text-align: left; font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc .req { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }

@media (max-width: 900px) {
  .grid, .prices { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid, .prices { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
}
