:root {
  --bg: #fffaf5;
  --surface: #ffffff;
  --text: #1f1a17;
  --muted: #6b625c;
  --accent: #e8590c;
  --accent-soft: #fff0e6;
  --border: #eee3d9;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412;
    --surface: #211d1a;
    --text: #f3ece6;
    --muted: #a99d94;
    --accent: #ff8a3d;
    --accent-soft: #33241a;
    --border: #3a322c;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header.top {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.logo { font-weight: 800; font-size: 22px; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
nav.links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--accent); }
.hero { padding: 72px 0 48px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; font-weight: 600;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-bottom: 56px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
section h2 { font-size: 28px; margin: 0 0 20px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 56px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center;
}
.contact { background: var(--accent-soft); border-radius: var(--radius); padding: 28px; margin-bottom: 56px; }
.contact p { margin: 4px 0; }
article.doc { padding: 40px 0 64px; max-width: 760px; }
article.doc h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.2; margin: 0 0 6px; }
article.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
article.doc h2 { font-size: 22px; margin: 32px 0 10px; }
article.doc li { margin-bottom: 6px; }
footer {
  border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--muted); font-size: 14px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
.lang { display: inline-flex; gap: 10px; padding-left: 12px; border-left: 1px solid var(--border); }
.lang a[aria-current] { color: var(--text); font-weight: 700; }
