html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; }
h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; margin: 0 0 24px; }
h2 { font-size: 18px; letter-spacing: 0; font-weight: 500; margin: 0 0 8px; }
a { color: var(--text); }
.bar { display: flex; gap: 16px; align-items: center; min-height: 56px; padding: 0 24px; border-bottom: 1px solid var(--border); }
.brand { font-weight: 500; text-decoration: none; }
nav { display: flex; gap: 16px; margin-left: auto; }
nav a { text-decoration: none; }
#theme { margin-left: 16px; }
main.wrap { padding: 48px 24px 80px; max-width: 1040px; margin: 0 auto; }
.kicker { color: var(--primary); font-family: var(--font-mono); font-size: 13px; margin: 0 0 16px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); max-width: 16ch; margin: 0 0 16px; }
.lede { font-size: 18px; max-width: 62ch; margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.btn { display: inline-block; text-decoration: none; padding: 10px 16px; border-radius: var(--radius-md); border: 1px solid var(--border); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.formula { font-family: var(--font-mono); color: var(--text-muted); font-size: 13px; margin: 0 0 40px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; margin-bottom: 64px; }
.panel header { padding: 12px 16px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.hit { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--border); }
.hit:first-of-type { border-top: 0; }
.hit b { font-weight: 500; }
.hit span, .num { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.verdict { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 8px; }
.ok { color: var(--success); border-color: var(--success); }
.no { color: var(--danger); border-color: var(--danger); }
section { padding: 28px 0 8px; }
section h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.02em; max-width: 20ch; margin: 8px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .step { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; background: var(--surface); }
.card h3, .step h3 { margin: 8px 0; font-size: 16px; }
.card p, .step p, .note { color: var(--text); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step .num { display: block; margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--border); text-align: left; padding: 10px 8px; vertical-align: top; }
th { font-weight: 500; }
.cta { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.cta h2 { margin-bottom: 12px; }
@media (max-width: 800px) {
  .grid, .steps, .hit { grid-template-columns: 1fr; }
}
.theme-switcher { position: relative; }
.theme-switcher__btn, .theme-switcher__item { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.theme-switcher__pop { position: absolute; right: 0; z-index: 5; background: var(--surface); border: 1px solid var(--border); max-height: 320px; overflow: auto; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
