:root {
  --bg: #f7f7f5; --surface: #ffffff; --text: #1c1d1f; --muted: #62656b; --border: #e2e2de;
  --accent: #1f6feb; --accent-text: #ffffff; --soft: #eef3fd; --ok: #1a7f4b;
  --radius: 10px; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141517; --surface: #1c1e21; --text: #e8e8e6; --muted: #9a9da3; --border: #2e3136;
    --accent: #5b9bff; --accent-text: #0b1220; --soft: #1a2436; --ok: #4cc38a;
  }
}
:root[data-theme="dark"] {
  --bg: #141517; --surface: #1c1e21; --text: #e8e8e6; --muted: #9a9da3; --border: #2e3136;
  --accent: #5b9bff; --accent-text: #0b1220; --soft: #1a2436; --ok: #4cc38a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 32px 16px 64px; }
header h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
header p { color: var(--muted); margin: 0 0 28px; max-width: 640px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.grid > *, .row > *, .rates > * { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h2 { font-size: 1rem; margin: 0 0 14px; }
label { display: block; font-size: 0.875rem; font-weight: 600; margin: 14px 0 6px; }
label:first-of-type { margin-top: 0; }
.hint { font-weight: 400; color: var(--muted); }
input[type=number], input[type=email], input[type=text], select {
  width: 100%; padding: 9px 10px; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; }
input:focus, select:focus, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: 9px; text-align: center; font-weight: 500; cursor: pointer; background: var(--bg); }
.seg input:checked + label { background: var(--accent); color: var(--accent-text); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -2px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 12px 0 0; }
.check input { width: 18px; height: 18px; margin: 0; }
details { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.link { background: none; border: 0; color: var(--accent); font: inherit; font-size: 0.85rem; padding: 0; cursor: pointer; margin-top: 12px; }

.result { position: sticky; top: 16px; }
.price { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.sub { color: var(--muted); font-size: 0.9rem; }
table { width: 100%; border-collapse: collapse; margin: 16px 0 4px; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
td { padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
tr.total td { font-weight: 700; border-bottom: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.stat { background: var(--soft); border-radius: 8px; padding: 10px 12px; }
.stat b { display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.8rem; color: var(--muted); }
.note { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }
.btn { display: inline-block; width: 100%; padding: 11px 14px; font: inherit; font-weight: 600; border-radius: 8px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn + .btn { margin-top: 8px; }

.cta { margin-top: 20px; }
.cta h2 { font-size: 1.15rem; }
.cta ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); }
.wtp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wtp input { position: absolute; opacity: 0; pointer-events: none; }
.wtp label { margin: 0; padding: 8px 4px; text-align: center; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 0.9rem; }
.wtp input:checked + label { border-color: var(--accent); background: var(--soft); color: var(--accent); }
.wtp input:focus-visible + label { outline: 2px solid var(--accent); }
.thanks { color: var(--ok); font-weight: 600; }

article { max-width: 720px; margin: 48px auto 0; }
article h2 { font-size: 1.3rem; margin: 32px 0 8px; }
article p, article li { color: var(--muted); }
article table td:last-child { text-align: left; }
footer { margin-top: 48px; color: var(--muted); font-size: 0.85rem; text-align: center; }
a { color: var(--accent); }
.topnav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.9rem; margin-bottom: 20px; }
.topnav a { text-decoration: none; color: var(--muted); }
.topnav a[aria-current] { color: var(--text); font-weight: 600; }
.topnav .brand { color: var(--text); font-weight: 700; margin-right: auto; }
footer a { color: var(--muted); }
