:root {
  --ink: #1a1a1a;
  --muted: #555;
  --line: #e3e3e3;
  --brand: #1450c8;
  --brand-deep: #0f3ea0;
  --brand-soft: #eef3fe;
  --good: #137333;
  --warn-bg: #fff8e6;
  --warn-line: #e6c87a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: clip;
}
a { color: var(--brand); }
header.site { position: sticky; top: 0; z-index: 10; border-bottom: 0; background: var(--brand); box-shadow: 0 2px 10px rgba(15,62,160,.35); }
header.site .wrap {
  max-width: 960px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap;
}
header.site .brand { font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; }
header.site .brand span { color: #bcd3ff; }
header.site nav { display: flex; gap: 6px; font-size: 15px; flex-wrap: wrap; align-items: baseline; }
header.site nav a { color: #dbe7ff; text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
header.site nav a:hover { color: #fff; background: rgba(255,255,255,.14); text-decoration: none; }
header.site nav a:first-child { background: rgba(255,255,255,.18); color: #fff; }
main { max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; }
main.wide { max-width: 960px; }
h1 { font-size: 40px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 23px; margin: 36px 0 10px; }
main.wide h2 { font-size: 26px; padding-bottom: 8px; border-bottom: 3px solid var(--brand); }
h3 { font-size: 18px; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
.lede { font-size: 19px; color: #333; }
.hero {
  background: linear-gradient(180deg, var(--brand-deep) 0%, var(--brand) 100%);
  border: 0;
  border-radius: 0;
  padding: 52px 20px 48px;
  margin: -28px calc(50% - 50vw) 36px;
}
.hero-inner { max-width: 920px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: 44px; }
.hero .lede { color: #dbe7ff; }
.hero .calc { margin-bottom: 0; }
.hero-calc { background: #fff; border: 0; box-shadow: 0 14px 36px rgba(0,0,0,.30); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 8px; }
.stat { text-align: center; padding: 18px 8px; border: 1px solid #dbe6fb; border-top: 4px solid var(--brand); border-radius: 10px; background: var(--brand-soft); box-shadow: 0 1px 4px rgba(20,80,200,.08); }
.stat b { display: block; font-size: 32px; line-height: 1.2; color: var(--brand); }
.stat span { font-size: 14px; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.answer {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  padding: 14px 16px; margin: 18px 0 24px; border-radius: 0 6px 6px 0;
}
.answer p:last-child { margin-bottom: 0; }
.calc {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 20px; margin: 20px 0; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.calc label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 4px; }
.calc label:first-child { margin-top: 0; }
.calc input[type="number"], .calc select {
  width: 100%; padding: 12px; font-size: 16px;
  border: 1.5px solid #8a97a8; border-radius: 8px; background: #fff;
}
.calc .hint { font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) {
  h1 { font-size: 30px; }
  .lede { font-size: 18px; }
  .hero { padding: 36px 20px 32px; }
  .hero h1 { font-size: 32px; }
  header.site .wrap { gap: 12px; padding: 12px 20px; }
}
@media (max-width: 560px) { .calc .row { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } }
.calc button {
  margin-top: 18px; background: var(--brand); color: #fff; border: 0;
  padding: 15px 30px; font-size: 17px; font-weight: 700; border-radius: 8px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(20,80,200,.28);
}
.calc button:hover { background: #0f3ea0; }
.calc button:focus-visible, .calc input:focus-visible, .calc select:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.results { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; display: none; }
.results.show { display: block; }
.results dl { margin: 0; }
.results .line { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.results .line:last-child { border-bottom: 0; }
.results .line dt { color: var(--muted); }
.results .line dd { margin: 0; font-weight: 600; text-align: right; }
.results .big { font-size: 28px; font-weight: 700; color: var(--brand); }
.results .big.zero { color: var(--good); }
.note {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: 6px; padding: 12px 14px; font-size: 15px; margin: 16px 0;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f7f7f7; }
td.num, th.num { text-align: right; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
.card { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 18px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card:hover { border-color: #b9c8ef; box-shadow: 0 4px 14px rgba(20,80,200,.10); transform: translateY(-2px); }
.card h3 { margin-top: 0; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--brand); }
.card p { font-size: 15px; color: var(--muted); margin-bottom: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
footer.site { border-top: 1px solid var(--line); background: #f4f7fe; }
footer.site .wrap { max-width: 960px; margin: 0 auto; padding: 32px 20px; font-size: 14px; color: var(--muted); }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
footer.site a { color: var(--muted); }
ul.tight li, ol.tight li { margin-bottom: 6px; }
.faq dt { font-weight: 700; margin: 16px 0 4px; }
.faq dd { margin: 0 0 10px; }
