:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --ink: #18202b;
  --text: #3a4150;
  --muted: #5b6474;
  --line: #dde2e8;
  --accent: #0f766e;
  --accent-hover: #0c5c56;
  --accent-soft: #d9f3ef;
  --accent-ink: #0b4f4a;
  --warm: #f5b544;
  --bad: #b42318;
  --good: #067647;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161c; --surface: #1a2029; --surface-2: #212833; --ink: #eef1f5; --text: #c6ccd6; --muted: #9aa3b2;
    --line: #2c3440; --accent: #1a7f76; --accent-hover: #1f8f85; --accent-soft: rgba(126, 200, 188, .14); --accent-ink: #8fd3c7;
    --bad: #f97066; --good: #47cd89; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }

.nav { background: #0b3d3a; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.brand svg { width: 32px; height: 32px; }
.brand b { color: #9fe3d6; font-weight: 700; }
.nav a.cta { background: var(--warm); color: #1d1606; text-decoration: none; font-weight: 650; padding: 9px 16px; border-radius: 12px; font-size: .92rem; }

.intro { padding: 40px 0 8px; }
.intro p { color: var(--muted); max-width: 720px; font-size: 1.08rem; }
.crumb { font-size: .92rem; margin-bottom: 10px; }

.calc { display: grid; gap: 24px; margin: 24px 0 40px; }
@media (min-width: 880px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.fields { display: grid; gap: 14px; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 520px) { .row2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 5px; font-size: .95rem; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid #b9c2cd; border-radius: 10px; padding: 10px 12px;
}
.field input:focus, .field select:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 1.02rem; }

.results { display: grid; gap: 12px; }
.result { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.result span { display: block; color: var(--muted); font-size: .9rem; }
.result strong { font-size: 1.7rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.result.big { background: var(--accent-soft); }
.result.big strong { font-size: 2.2rem; color: var(--accent-ink); }
.verdict { border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.verdict.good { background: rgba(6, 118, 71, .1); color: var(--good); }
.verdict.bad { background: rgba(180, 35, 24, .1); color: var(--bad); }
.verdict.meh { background: rgba(245, 181, 68, .18); color: var(--ink); }
.note { color: var(--muted); font-size: .92rem; margin: 10px 0 0; }

.explain { margin-bottom: 40px; }
.explain .panel p { margin: 0 0 1em; }

.promo { background: linear-gradient(150deg, #0b3d3a, #0d625c); color: #e6f4f1; border-radius: 16px; padding: 28px; margin-bottom: 48px; display: grid; gap: 16px; align-items: center; }
@media (min-width: 760px) { .promo { grid-template-columns: 1fr auto; } }
.promo h2 { color: #fff; margin: 0 0 6px; }
.promo p { margin: 0; color: #d3ebe6; }
@media (max-width: 420px) { .promo a { white-space: normal; } }
.promo a { background: var(--warm); color: #1d1606; text-decoration: none; font-weight: 650; padding: 13px 22px; border-radius: 12px; white-space: nowrap; text-align: center; }

.tool-list { display: grid; gap: 18px; margin: 24px 0 48px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tool-card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); color: var(--text); }
.tool-card:hover { border-color: var(--accent); }
.tool-card strong { display: block; color: var(--ink); font-size: 1.12rem; margin-bottom: 6px; }
