[hidden] { display: none !important; }
:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #eef2ec;
  --text: #17201b;
  --muted: #5b6760;
  --line: #dde3dc;
  --accent: #116149;
  --accent-2: #0b4a37;
  --accent-soft: #e2f1ea;
  --warn-soft: #fff6e0;
  --warn: #8a5a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 24, .06), 0 6px 20px rgba(16, 32, 24, .05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412; --surface: #161d1a; --surface-2: #1c2521; --text: #e8eee9; --muted: #9aa8a0;
    --line: #2a3530; --accent: #45c093; --accent-2: #6fd6ae; --accent-soft: #173229;
    --warn-soft: #2e2614; --warn: #e4b860; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); }
a { color: var(--accent); }
img, svg { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
@media (min-width: 821px) { .site-header { position: sticky; top: 0; z-index: 10; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 750; letter-spacing: -.01em; font-size: 1.08rem; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 550; font-size: .94rem; padding: 6px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* Hero */
.hero { padding: 44px 0 20px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -.01em; margin: 44px 0 12px; }
h3 { font-size: 1.08rem; margin: 22px 0 6px; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0; max-width: 680px; }
.updated { font-size: .86rem; color: var(--muted); margin-top: 10px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 28px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 6px; }
.card strong { font-size: 1.12rem; }
.card span { color: var(--muted); font-size: .95rem; }
.card em { margin-top: auto; padding-top: 8px; font-style: normal; color: var(--accent); font-weight: 650; font-size: .93rem; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin: 24px 0 8px; align-items: start; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 620; font-size: .95rem; }
.field small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.input-wrap { position: relative; }
.input-wrap .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .92rem; pointer-events: none; }
input[type=number], input[type=text], select {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 40px 11px 12px; min-height: 46px;
}
select { padding-right: 12px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg label { padding: 7px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .93rem; color: var(--muted); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--text); }
.seg label:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin-bottom: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
details.more { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
details.more summary { cursor: pointer; font-weight: 620; color: var(--accent); margin-bottom: 12px; }

.result { position: sticky; top: 78px; }
.big { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 780; letter-spacing: -.03em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.big-label { color: var(--muted); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.kpi { background: var(--surface-2); border-radius: 10px; padding: 12px; }
.kpi b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .84rem; }
.breakdown { width: 100%; border-collapse: collapse; font-size: .95rem; }
.breakdown td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.breakdown tr.total td { border-bottom: 0; font-weight: 750; padding-top: 12px; }
.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin: 14px 0 6px; }
.bar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; background: var(--c); }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: .87rem; margin-top: 14px; }
.ok { background: var(--accent-soft); color: var(--accent-2); }

/* Content */
.content p, .content li { max-width: 760px; }
.content ul, .content ol { padding-left: 20px; }
.content li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 14px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
table.data th, table.data td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
table.data tr:last-child td { border-bottom: 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.sources { font-size: .88rem; color: var(--muted); }

/* Legal + footer */
.legal { padding: 36px 16px 20px; max-width: 760px; }
.legal h1 { font-size: 1.9rem; }
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 28px 0 40px; color: var(--muted); font-size: .88rem; background: var(--surface); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.disclaimer { max-width: 760px; }
@media (max-width: 520px) {
  .row2, .kpis { grid-template-columns: 1fr 1fr; }
  .panel { padding: 18px; }
  .hero { padding-top: 30px; }
}
