:root {
  --bg: #f6f4ef; --card: #ffffff; --ink: #1d2430; --muted: #5d6675; --line: #e3e0d8;
  --accent: #1f6f5c; --accent-ink: #ffffff; --warm: #d98e2b; --bad: #b8433a; --good: #2f7d4f;
  --c1: #1f6f5c; --c2: #d98e2b; --c3: #4a6fa5; --c4: #9aa3ae;
  --radius: 14px; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: var(--accent); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; max-width: 1100px; margin: 0 auto; }
.brand { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--ink); letter-spacing: .02em; }
.logo { color: var(--accent); }
.langs a { margin-left: 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; }
.langs a.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.hero { max-width: 1100px; margin: 0 auto; padding: 48px 28px 24px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; margin: 0 0 16px; max-width: 820px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 28px; }
.ticks li { padding-left: 28px; position: relative; margin: 6px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.big { padding: 15px 30px; font-size: 1.05rem; }
.btn:disabled { opacity: .6; cursor: wait; }
.steps { max-width: 1100px; margin: 0 auto; padding: 12px 28px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps div { background: var(--card); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); }
.steps b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; }
.steps h3 { margin: 10px 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; max-width: 1100px; margin: 0 auto 22px; }
.card.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
#results { margin-top: 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tabs label { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; background: #faf9f6; }
.tabs label:has(input:checked) { border-color: var(--accent); background: #e8f2ef; color: var(--accent); font-weight: 600; }
.tabs input { accent-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 18px; }
.grid .wide { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); gap: 4px; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid #9cc8bc; border-color: var(--accent); }
.file-row { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 12px; margin: 10px 0; align-items: end; }
.file-label { font-weight: 600; color: var(--ink); }
.hint { color: var(--muted); font-size: .92rem; margin: 6px 0; }
.template { font-size: .92rem; color: var(--muted); }
.help summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .92rem; }
.help p { background: #faf9f6; border-radius: 8px; padding: 10px 14px; font-size: .92rem; white-space: pre-line; }
.error { color: var(--bad); background: #fbeeec; border-radius: 8px; padding: 10px 14px; }
.ok { color: var(--good); background: #eaf5ee; border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.privacy { font-size: .85rem; color: var(--muted); }
.verdict { font-size: 1.1rem; }
.verdict.good { color: var(--good); } .verdict.bad { color: var(--bad); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 14px; }
.kpi { background: #faf9f6; border-radius: 10px; padding: 14px 16px; }
.kpi .v { font-size: 1.45rem; font-weight: 700; }
.kpi .l { color: var(--muted); font-size: .85rem; }
.kpi .v small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.compare th { font-weight: 600; }
.compare td:nth-child(4) { color: var(--accent); font-weight: 600; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-size: 11px; fill: var(--muted); font-family: inherit; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
tr.best td { background: #e8f2ef; font-weight: 700; }
.notes { padding-left: 18px; color: var(--muted); font-size: .92rem; }
.cta { border: 2px solid var(--accent); }
footer { max-width: 1100px; margin: 0 auto; padding: 18px 28px 40px; color: var(--muted); font-size: .85rem; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .steps, .card.two { grid-template-columns: 1fr; }
  .file-row { grid-template-columns: 1fr; }
  .card { padding: 18px; border-radius: 0; }
}
.address { position: relative; }
.suggestions { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.suggestions li { padding: 7px 12px; cursor: pointer; font-size: .92em; }
.suggestions li:hover, .suggestions li[aria-selected=true] { background: #e8f3ef; }
.address .picked { color: var(--muted); font-size: .82em; }
