:root {
  --bg: #f6f8fb; --surface: #ffffff; --text: #0f172a; --muted: #5b6478; --line: #e3e8f0;
  --accent: #1d6bf3; --accent-2: #3b82f6; --accent-soft: rgba(29, 107, 243, 0.08);
  --radius: 16px; --max: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020; --surface: #121a2e; --text: #e8edf7; --muted: #9aa5bd; --line: #223050;
    --accent: #3b82f6; --accent-2: #60a5fa; --accent-soft: rgba(59, 130, 246, 0.14);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.logo:hover { text-decoration: none; color: var(--text); }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #6d5df6); color: #fff; font-size: 15px; }
.nav { display: flex; gap: 20px; align-items: center; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.btn, .nav a.btn:hover { color: #fff; }
@media (max-width: 640px) { .nav a.hide-m { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px;
  border-radius: 12px; font-weight: 600; font-size: 16px; background: var(--accent); color: #fff;
  border: 1px solid transparent; transition: background .15s ease, transform .1s ease; }
.btn:hover { background: var(--accent-2); color: #fff; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--text); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* hero */
.hero { padding: 72px 0 48px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.note { color: var(--muted); font-size: 14px; }

section { padding: 40px 0; }
section h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 24px; letter-spacing: -0.01em; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); font-size: 20px; }

/* prices */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 6px; }
.price.best { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.price .term { font-weight: 600; color: var(--muted); }
.price .sum { font-size: 34px; font-weight: 750; letter-spacing: -0.02em; }
.price .sum small { font-size: 16px; font-weight: 600; color: var(--muted); }
.price .save { color: #16a34a; font-weight: 600; font-size: 14px; min-height: 22px; }
.price-foot { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

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

/* documents */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 48px); margin: 32px auto 48px; max-width: 820px; }
.doc h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.doc th { background: var(--accent-soft); }
.doc code { background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.back { display: inline-block; margin-top: 24px; font-size: 15px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
footer .cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer h4 { margin: 0 0 8px; color: var(--text); font-size: 14px; }
footer p { margin: 0 0 4px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
