:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #141823;
  --muted: #5b6070;
  --border: #e3e6ee;
  --accent: #8684d7;
  --accent-2: #84c5e1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141823;
    --surface: #1e2332;
    --text: #f2f3f7;
    --muted: #a3a8b8;
    --border: #2d3344;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
header {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 32px 16px;
}
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
header a.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 22px; }
.wrap { max-width: 760px; margin: 0 auto; }
nav a { color: #fff; margin-left: 14px; text-decoration: none; font-weight: 600; opacity: .9; }
nav a:hover { opacity: 1; text-decoration: underline; }
main { padding: 24px 16px 48px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}
h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.25; }
h2 { margin: 28px 0 8px; font-size: 19px; }
p, li { color: var(--text); }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
a { color: var(--accent); }
.lang-switch { display: flex; gap: 6px; }
.lang-switch button {
  border: 1px solid rgba(255,255,255,.6);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--accent); }
[lang-block] { display: none; }
[lang-block].active { display: block; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 0 16px 32px; }
