:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --text: #1f1b17;
  --muted: #6b6259;
  --line: #e8e0d6;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --soft: #fdf0e7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412;
    --surface: #211d1a;
    --text: #f1ebe4;
    --muted: #a99d91;
    --line: #3a332d;
    --accent: #fb923c;
    --accent-ink: #1a1007;
    --soft: #2b211a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--text); }

.hero { padding: 56px 0 24px; }
.hero h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 14px 24px; border-radius: 12px; font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.05); }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

section { padding: 28px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 24px; margin: 0 0 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.pack { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; }
.pack .coins { font-size: 15px; color: var(--muted); }
.pack .price { font-size: 28px; font-weight: 700; margin-top: 4px; }
@media (max-width: 520px) { .packs { grid-template-columns: 1fr; } }

ul.plain { padding-left: 20px; margin: 0; }
ul.plain li { margin: 6px 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 15px; }
footer p { margin: 4px 0; }

/* Юрдокументы */
.doc { padding-top: 32px; padding-bottom: 48px; }
.doc h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.2; margin: 0 0 12px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { margin: 8px 0; }
.doc code { font-size: 14px; background: var(--soft); padding: 1px 6px; border-radius: 6px; }
.table { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
th { background: var(--soft); }
