/* Лендинг сервиса. Тема: светлая/тёмная по настройке системы, без внешних шрифтов и скриптов. */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #16202a;
  --muted: #55626d;
  --line: #dde2e7;
  --tint: #e8ebef;
  --accent: #b3261e;
  --accent-ink: #ffffff;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151b; --surface: #172029; --ink: #e8edf1; --muted: #9aa7b2;
    --line: #26323d; --tint: #1b252f; --accent: #ff6f61; --accent-ink: #1a0705;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f151b; --surface: #172029; --ink: #e8edf1; --muted: #9aa7b2;
  --line: #26323d; --tint: #1b252f; --accent: #ff6f61; --accent-ink: #1a0705;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 650; }

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a.btn, .nav a.btn:hover { color: var(--accent-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; border: 2px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.btn.small { padding: 9px 16px; font-size: 0.93rem; }

/* Главный экран */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding-block: 48px 72px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin-top: 20px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

.panel { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.panel svg.lattice { display: block; width: 100%; height: 150px; }
.panel dl { margin: 0; padding: 4px 22px 18px; display: grid; gap: 0; }
.panel .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.panel .row:first-child { border-top: 0; }
.panel dt { color: var(--muted); font-size: 0.93rem; }
.panel dd { margin: 0; font-family: var(--mono); font-size: 0.93rem; text-align: right; }

/* Секции */
section { padding-block: 56px; border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 10px; margin-bottom: 30px; max-width: 40em; }
.sec-head p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; margin: 0; padding: 0; list-style: none; }
.facts li { align-content: start; padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.facts b { font-weight: 700; }
.facts span { color: var(--muted); font-size: 0.97rem; }

.price-table { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.price-table table { width: 100%; min-width: 600px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 16px 18px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.price-table thead th { border-top: 0; background: var(--tint); font-size: 0.82rem; font-weight: 650; color: var(--muted); letter-spacing: 0.04em; }
.price-table tbody th { text-align: left; font-weight: 700; display: table-cell; }
.price-table tbody th span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.price-table td { font-weight: 650; }
.price-table thead th:first-child { text-align: left; }
.plans-cta { margin-top: 22px; }
.tiny { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }

details { border-bottom: 1px solid var(--line); padding-block: 4px; }
summary { cursor: pointer; font-weight: 650; padding-block: 14px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.2rem; line-height: 1.4; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); padding-bottom: 16px; max-width: 46em; }

/* Подвал */
footer { border-top: 1px solid var(--line); padding-block: 36px 56px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; color: var(--muted); font-size: 0.93rem; }
footer .legal { display: grid; gap: 6px; align-content: start; }
footer a { color: var(--ink); }
footer .req { display: grid; gap: 4px; }

/* Юридические страницы */
.doc { max-width: 46em; padding-block: 24px 40px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 6px; }
.doc .date { color: var(--muted); margin-bottom: 28px; }
.doc h2 { font-size: 1.25rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink); margin-bottom: 10px; }
.doc ul { padding-left: 1.3em; margin: 0 0 10px; }
.doc .box { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 16px 20px; margin-block: 18px; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 24px 48px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  footer { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter .15s, border-color .15s; }
}
