:root {
  --bg: #080f1a;
  --surface: #101b2d;
  --surface-2: #17253d;
  --border: #253859;
  --text: #f0f6ff;
  --muted: #98abc9;
  --accent: #22c55e;
  --accent-hover: #4ade80;
  --gold: #f59e0b;
  --warn: #ef4444;
  --radius: 12px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

header.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 15, 26, 0.95);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.92rem; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.hero { padding: 22px 0 10px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.2; }
.hero p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 18px 0;
}
.card h2, .card h3 { margin-top: 0; line-height: 1.3; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.field input, .field select {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-weight: 600;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); border-color: transparent; }

.result-box {
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.metric-val { font-size: 1.7rem; font-weight: 900; color: var(--accent); line-height: 1.15; }
.metric-val.warn { color: var(--gold); }
.metric-lbl { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

button.btn, a.btn {
  display: inline-block;
  background: var(--accent);
  color: #06210f;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}
button.btn:hover, a.btn:hover { background: var(--accent-hover); text-decoration: none; }

.ref-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ref-table th, .ref-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.ref-table th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 36px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 12px;
}
