:root {
  --bg: #ffffff;
  --text: #1f2330;
  --text-2: #4a5160;
  --muted: #6b7280;
  --line: #e3e6ee;
  --accent: #5b3df5;
  --accent-soft: #efeaff;
  --card: #f7f8fb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0b1f;
    --text: #f3f3fb;
    --text-2: #c9cbe0;
    --muted: #9a9cb8;
    --line: #2a2546;
    --accent: #ffd040;
    --accent-soft: #2a2140;
    --card: #17132c;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.links { display: flex; gap: 16px; }
.links a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.links a[aria-current="page"] { color: var(--accent); }
main { padding-top: 20px; padding-bottom: 40px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.langs button {
  font: inherit; font-size: .9rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer;
}
.langs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
article[hidden] { display: none; }
h1 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 8px; }
h2 { font-size: 1.2rem; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
h3 { font-size: 1rem; margin: 18px 0 6px; }
p, li { color: var(--text-2); margin-bottom: 10px; }
ul { padding-left: 1.3rem; margin-bottom: 10px; }
a { color: var(--accent); }
strong { color: var(--text); }
.meta { color: var(--muted); font-size: .9rem; }
.lead { font-size: 1.1rem; color: var(--text); }
.contact { margin: 18px 0; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; text-decoration: none;
  word-break: break-all;
}
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; color: var(--text); }
details p { margin: 10px 0 0; }
.foot { color: var(--muted); font-size: .85rem; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); }
@media (max-width: 480px) { h1 { font-size: 1.5rem; } }
