:root {
  --bg: #0e0d1a;
  --surface: #181730;
  --surface2: #211f40;
  --text: #e8e6f5;
  --muted: #a5a1c4;
  --accent: #a78bfa;
  --grad: linear-gradient(135deg, #4338ca, #7c3aed 55%, #db2777);
  --radius: 18px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f5fc; --surface: #fff; --surface2: #ece9fb;
    --text: #1b1a2e; --muted: #5d5a7a; --accent: #5b21b6;
  }
}
:root[data-theme="light"] {
  --bg: #f6f5fc; --surface: #fff; --surface2: #ece9fb;
  --text: #1b1a2e; --muted: #5d5a7a; --accent: #5b21b6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
header.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--surface2); }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
header.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
header.top .brand img { width: 30px; height: 30px; border-radius: 8px; }
header.top nav { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a:hover { color: var(--text); }
select.lang { background: none; border: 1px solid var(--surface2); color: var(--muted); border-radius: 8px; height: 34px; padding: 0 6px; font-size: 14px; cursor: pointer; }
select.lang option { color: initial; }
button.theme { background: none; border: 1px solid var(--surface2); color: var(--muted); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 16px; }
.hero { background: var(--grad); color: #fff; padding: 64px 0 56px; text-align: center; }
.hero img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero h1 { font-size: clamp(32px, 6vw, 52px); margin: 18px 0 8px; line-height: 1.1; }
.hero p { max-width: 640px; margin: 0 auto; font-size: 18px; opacity: .95; }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; background: #fff; color: #3b2a9a; }
.btn.ghost { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.4); }
section { padding: 48px 0 8px; }
h2 { font-size: 28px; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--surface2); }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p, .card li { color: var(--muted); font-size: 15px; margin: 4px 0; }
.card ul { padding-left: 20px; margin: 8px 0 0; }
.ico { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 20px; }
.dl { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 16px; }
.dl .card h3 { margin-top: 0; font-size: 22px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 99px; background: var(--surface2); color: var(--muted); margin-bottom: 8px; }
.dl .btn { background: var(--grad); color: #fff; margin-top: 14px; }
.dl .btn.off { background: var(--surface2); color: var(--muted); pointer-events: none; }
.meta { font-size: 13px; color: var(--muted); word-break: break-all; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--surface2); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
details.card { margin-bottom: 16px; }
details summary { cursor: pointer; font-weight: 600; }
details p, details li { color: var(--muted); }
code { background: var(--surface2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
footer { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--surface2); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.doc { padding: 40px 0 0; max-width: 780px; }
.doc h1 { font-size: 34px; margin: 0 0 4px; }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc li { margin: 4px 0; }
