:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #0b5ed7;
  --brand-dark: #084298;
  --good: #0f766e;
  --good-bg: #ecfdf5;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --bad: #b91c1c;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
header.site-header {
  background: #0f172a;
  color: #fff;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-badge {
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
nav.top-nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
nav.top-nav a { color: #cbd5e1; font-weight: 500; }
nav.top-nav a:hover, nav.top-nav a.active { color: #fff; text-decoration: none; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin: 16px 0 10px; }
.breadcrumbs a { color: var(--muted); }
h1 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: 28px 0 12px; letter-spacing: -0.015em; }
h3 { font-size: 17px; margin: 18px 0 8px; }
.lead { font-size: 16px; color: var(--muted); margin: 0 0 20px; max-width: 820px; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: #e0ecff; color: #084298;
}
.pill.green { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.grid-2 { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.field { margin-bottom: 14px; }
.field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
.field label span.val { color: var(--brand); font-variant-numeric: tabular-nums; }
.field input[type="number"], .field select {
  width: 100%; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 15px; background: #fff; color: var(--ink);
}
.field input[type="range"] { width: 100%; accent-color: var(--brand); margin-top: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg button {
  padding: 8px; border: 1px solid #cbd5e1; background: #f8fafc; border-radius: 8px;
  font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink);
}
.seg button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 640px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 14px;
}
.kpi.best { background: var(--good-bg); border-color: #99f6e4; }
.kpi .lbl { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.kpi .num { font-size: 21px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; white-space: normal; }
table.data th { background: #f8fafc; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; }
table.data tr.best-row { background: var(--good-bg); font-weight: 600; }
table.data tr.na-row { opacity: 0.55; }
.badge-best { display: inline-block; background: var(--good); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.badge-na { display: inline-block; background: #e2e8f0; color: #475569; font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; }
.bar-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.bar-item { display: grid; grid-template-columns: 200px 1fr 110px; gap: 10px; align-items: center; font-size: 13px; }
@media (max-width: 640px) { .bar-item { grid-template-columns: 1fr; gap: 3px; } }
.bar-track { background: #e2e8f0; height: 12px; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width 0.2s ease; }
.bar-fill.best { background: var(--good); }
.callout {
  background: #eff6ff; border-left: 4px solid var(--brand); padding: 14px 16px; border-radius: 8px; margin: 16px 0; font-size: 14px;
}
.callout.warn { background: var(--warn-bg); border-left-color: var(--warn); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 12px 0; }
.link-chip {
  display: block; padding: 9px 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; color: var(--ink); font-weight: 500;
}
.link-chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.faq-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.faq-a { font-size: 14px; color: var(--muted); margin: 0; }
.ad-slot {
  border: 1px dashed #cbd5e1; border-radius: 10px; padding: 14px; text-align: center;
  background: #f8fafc; color: #64748b; font-size: 12px; margin: 18px 0;
}
.ad-slot.hidden { display: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn {
  display: inline-block; padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 13px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn:hover { opacity: 0.92; text-decoration: none; }
footer.site-footer {
  margin-top: 40px; padding: 28px 0; border-top: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--muted);
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
