:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1d1d1b;
  --muted: #5f5e58;
  --accent: #1f6f5c;
  --accent-soft: #e3efe9;
  --border: #e2e0d8;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161715;
    --surface: #1f201d;
    --text: #ecebe6;
    --muted: #a5a39b;
    --accent: #5cc0a2;
    --accent-soft: #233a33;
    --border: #34352f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--border); background: var(--surface); }
header.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 700; text-decoration: none; color: var(--text); font-size: 1.1rem; }
nav a { margin-right: 14px; text-decoration: none; font-size: .95rem; }
nav a:last-child { margin-right: 0; }
main { padding: 32px 0 48px; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.lead { color: var(--muted); font-size: 1.05rem; margin-top: 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.grid .card { margin: 0; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0 0 10px; color: var(--muted); }
label { display: block; font-weight: 600; margin: 14px 0 4px; font-size: .95rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=number], select {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.radio { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.radio label, .check label { font-weight: 400; margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.check { margin-top: 14px; }
.result { background: var(--accent-soft); border-color: transparent; }
.result table { width: 100%; border-collapse: collapse; }
.result td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.result td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.result tr.total td { font-size: 1.15rem; border-bottom: none; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) { .btn { color: #0f1a16; } }
.price { font-weight: 700; font-size: 1.2rem; color: var(--text); }
.note { font-size: .88rem; color: var(--muted); }
footer { border-top: 1px solid var(--border); padding: 24px 0 40px; font-size: .88rem; color: var(--muted); }
