:root {
  --navy: #1f3a5f;
  --navy-2: #2b4e7e;
  --accent: #f2a541;
  --accent-ink: #5a3a00;
  --ink: #1d2733;
  --muted: #5a6573;
  --line: #dde2e8;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --ok: #2f7a4b;
  --bad: #b3261e;
  --radius: 12px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px;
}
a { color: var(--navy-2); }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { font-weight: 800; color: var(--navy); text-decoration: none; font-size: 20px; letter-spacing: -.3px; }
.logo span { color: var(--accent); }
nav.top a { margin-left: 18px; text-decoration: none; color: var(--ink); font-size: 15px; }
nav.top a.btn { color: var(--accent-ink); }
@media (max-width: 640px) { nav.top a.hide-sm { display: none; } nav.top a { margin-left: 10px; } }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700;
  padding: 12px 20px; border-radius: 10px; text-decoration: none; border: 0; cursor: pointer; font-size: 16px;
}
.btn:hover { filter: brightness(1.05); }
.btn.secondary { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn.small { padding: 8px 14px; font-size: 14px; }

.hero { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); padding: 56px 0 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 14px; color: var(--navy); letter-spacing: -.5px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 720px; margin: 0 0 24px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 14px; margin-top: 10px; }

section { padding: 44px 0; }
section.alt { background: var(--bg-soft); }
h2 { color: var(--navy); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin: 0 0 16px; }
h3 { margin: 0 0 6px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: var(--muted); }
.price-card { max-width: 520px; border: 2px solid var(--accent); }
.price { font-size: 44px; font-weight: 800; color: var(--navy); }
.price s { font-size: 22px; color: var(--muted); font-weight: 500; margin-left: 8px; }
ul.check { list-style: none; padding: 0; margin: 14px 0; }
ul.check li { padding-left: 28px; position: relative; margin: 6px 0; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 8px 0 0; }

/* calculator */
.calc { display: grid; gap: 20px; grid-template-columns: 1.3fr 1fr; align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h3 { color: var(--navy); }
.row { display: grid; grid-template-columns: 1fr 120px 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
.row select, .row input, .field input {
  width: 100%; padding: 10px; border: 1px solid #c4cbd4; border-radius: 8px; font-size: 16px; background: #fffdf6; color: var(--ink);
}
.row button.x { border: 0; background: transparent; font-size: 20px; color: var(--muted); cursor: pointer; }
.fields { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .fields { grid-template-columns: 1fr; } .row { grid-template-columns: 1fr 96px 30px; } }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 3px; }
.result { position: sticky; top: 76px; }
.big { font-size: 46px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.kv { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 6px 0; font-size: 15.5px; }
.kv b { font-variant-numeric: tabular-nums; }
.verdict { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #e3f1e6; color: var(--ok); font-weight: 700; }
.verdict.bad { background: #f8d7da; color: var(--bad); }
.upsell { margin-top: 16px; background: #fff4d6; border-radius: 10px; padding: 14px; }
details.adv summary { cursor: pointer; font-weight: 700; color: var(--navy); margin: 8px 0; }

/* article */
article { max-width: 760px; }
article h1 { color: var(--navy); font-size: clamp(28px, 4.4vw, 40px); line-height: 1.2; }
article table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 15.5px; display: block; overflow-x: auto; }
article th, article td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
article th { background: var(--bg-soft); }
.callout { background: #fff4d6; border-left: 5px solid var(--accent); padding: 12px 16px; border-radius: 6px; margin: 18px 0; }
.meta { color: var(--muted); font-size: 14px; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); margin-right: 14px; }

@media (prefers-color-scheme: dark) {
  :root { --ink: #e6ebf1; --muted: #a5b0bd; --line: #2c3743; --bg: #11161c; --bg-soft: #18202a; --navy: #9cc3ff; --navy-2: #9cc3ff; }
  .row select, .row input, .field input { background: #1b232d; border-color: #33404d; }
  .upsell, .callout { background: #3a2f17; }
  .verdict { background: #16301f; }
  .verdict.bad { background: #3a1719; color: #ffb4ab; }
}
