:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #5b6675;
  --line: #e3e7ee;
  --brand: #0f172a;
  --accent: #1d4ed8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }
header { background: var(--brand); color: #e2e8f0; }
header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 60px; flex-wrap: wrap;
}
.brand { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: #cbd5e1; text-decoration: none; font-size: 14px; }
nav a:hover { color: #fff; }
main { padding: 48px 0 56px; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 34px 0 10px; }
h3 { font-size: 17px; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 26px 0 8px; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; text-decoration: none; color: inherit; }
.card:hover { border-color: #c7d2fe; }
.card h2 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.note { background: var(--panel); border-left: 3px solid var(--accent); padding: 14px 18px; margin: 26px 0; color: var(--muted); font-size: 14px; }
article { max-width: 760px; }
.timeline { list-style: none; padding: 0; margin: 20px 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline strong { display: block; }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
blockquote { margin: 18px 0; padding: 10px 16px; border-left: 3px solid var(--line); color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--muted); font-size: 13px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1220; --panel: #111a2e; --text: #e2e8f0; --muted: #94a3b8; --line: #1e293b; --accent: #93c5fd; }
  .card:hover { border-color: #334155; }
}
