:root {
  --bg: #0c1222;
  --surface: #141d33;
  --line: #2a3a5c;
  --text: #e8edf5;
  --muted: #9aa8c4;
  --accent: #f0b429;
  --accent-dim: #c48f1a;
  --good: #3dd68c;
  --bad: #f07178;
  --radius: 12px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, #1e3055 0%, transparent 55%);
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffd86b; }
.wrap { width: min(1040px, calc(100% - 28px)); margin: 0 auto; }
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-head .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand em { font-style: normal; color: var(--accent); }
nav.links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.92rem; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a.on, nav.links a:hover { color: var(--text); }
.hero { padding: 36px 0 20px; }
.hero h1 { font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.2; margin: 0 0 10px; font-weight: 700; }
.hero .lede { color: var(--muted); max-width: 52ch; margin: 0; }
.disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  border-left: 3px solid var(--accent-dim);
  padding-left: 12px;
  margin: 16px 0 0;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0 0;
}
.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.tab.on,
.tab[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--text);
  background: linear-gradient(180deg, #1c2845, var(--surface));
}
.panel { display: none; margin-top: 20px; }
.panel.on { display: block; }
.grid-2 { display: grid; gap: 18px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1.1fr 0.9fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card h2 { margin: 0 0 12px; font-size: 1.05rem; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.field input, .field select {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0f1628;
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.preset {
  border: 1px solid var(--line);
  background: #0f1628;
  color: var(--muted);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--mono);
}
.preset:hover { border-color: var(--accent); color: var(--text); }
.result-big {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--accent);
  margin: 8px 0;
}
.result-meta { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.result-meta li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bar-stack { height: 10px; border-radius: 6px; overflow: hidden; display: flex; margin-top: 12px; }
.bar-stack .prin { background: var(--accent); }
.bar-stack .int { background: #4a6fa5; }
.hint { font-size: 0.85rem; color: var(--bad); margin-top: 10px; }
.hint.ok { color: var(--good); }
.verdict {
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, #1a2540, #121a2e);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}
.verdict strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.verdict.good { border-color: var(--good); }
.verdict.bad { border-color: var(--accent); }
footer.site {
  margin-top: 48px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: #1a1200;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}
.btn.secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
.compare-bar {
  position: sticky;
  bottom: 0;
  background: #0f172aee;
  border-top: 1px solid var(--line);
  padding: 12px;
  backdrop-filter: blur(8px);
}
table.compare { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 8px; text-align: left; }
table.compare .hi { background: #1a3a2a; color: var(--good); }
.login-box { max-width: 420px; margin: 0 auto; }
.garage-list { list-style: none; margin: 0; padding: 0; }
.garage-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  background: var(--surface);
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stats .stat { text-align: center; padding: 14px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.stats b { display: block; font-family: var(--mono); font-size: 1.4rem; color: var(--accent); }