:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --text: #17201d;
  --muted: #5d6b66;
  --line: #dfe5e2;
  --accent: #0f766e;
  --accent-soft: #e3f3f0;
  --warn-bg: #fff4dc;
  --warn: #8a5a00;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1413;
    --surface: #171e1c;
    --text: #e6ece9;
    --muted: #9aa8a3;
    --line: #2a3431;
    --accent: #2dd4bf;
    --accent-soft: #123430;
    --warn-bg: #3a2c0c;
    --warn: #f5c56b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-header nav a { padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { background: var(--accent-soft); color: var(--accent); }
main { padding-top: 24px; padding-bottom: 40px; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.25; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 20px 0 8px; }
.lede { color: var(--muted); max-width: 70ch; margin: 0 0 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 16px; min-width: 0; }
.calc { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) {
  .calc { grid-template-columns: 360px minmax(0, 1fr); }
  .calc .form { position: sticky; top: 16px; }
}
.form { display: grid; gap: 14px; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.card { border: 1px solid var(--line); padding: 18px; }
legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.offer legend { font-size: 1.05rem; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .95rem; }
.field small { color: var(--muted); }
input, select {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#amount { font-size: 1.3rem; font-weight: 700; }
.inline { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; }
.inline input, .seg input { width: auto; }
#ins-amount { margin-top: 8px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg label { text-align: center; padding: 8px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); }
.row2 { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .btn {
  font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); padding: 4px 12px; font-size: .9rem;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.btn { display: inline-block; background: var(--accent); border-color: var(--accent); color: var(--surface); padding: 9px 16px; font-weight: 600; text-decoration: none; margin-top: 12px; }
.headline { background: var(--accent-soft); border-color: transparent; }
.kpi { display: grid; gap: 2px; }
.kpi-label { color: var(--muted); font-weight: 600; }
.kpi-value { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-sub { color: var(--muted); margin-top: 4px; }
.warn { background: var(--warn-bg); color: var(--warn); padding: 8px 12px; border-radius: 8px; margin: 10px 0 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.breakdown th { text-align: left; font-weight: 400; color: var(--muted); padding: 7px 0; }
.breakdown td { text-align: right; padding: 7px 0; white-space: nowrap; }
.breakdown tr + tr th, .breakdown tr + tr td { border-top: 1px solid var(--line); }
.breakdown tr.strong th, .breakdown tr.strong td { color: var(--text); font-weight: 700; }
.breakdown tr.total th, .breakdown tr.total td { color: var(--accent); font-weight: 800; font-size: 1.1rem; border-top: 2px solid var(--accent); }
.breakdown tr.note td { text-align: left; white-space: normal; font-size: .85rem; color: var(--muted); padding-top: 0; border-top: 0; }
.grid th, .grid td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.grid th:first-child, .grid td:first-child { text-align: left; }
.grid thead th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.grid tr.muted td { color: var(--muted); }
.grid tr.total td, .grid tr.total th { font-weight: 800; color: var(--accent); }
.scroll { overflow-x: auto; }
@media (max-width: 480px) { .grid th, .grid td { padding: 7px 5px; font-size: .9rem; } .card { padding: 14px; } }
.sticky thead th { position: sticky; top: 0; background: var(--surface); }
.prose { max-width: 75ch; margin: 32px 0 0; }
.prose li { margin-bottom: 6px; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); font-size: .9rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.note { color: var(--muted); }
.offers { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .offers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.offers .card { margin: 0; }
#compare .row2 { margin-top: 16px; }
.verdict { font-size: 1.1rem; margin: 0 0 12px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; padding: 20px 0 32px; }
@media (max-width: 480px) { .site-header nav a { padding: 4px 8px; font-size: .9rem; } }
