:root {
  --primary: #0b5ed7;
  --primary-dark: #073b86;
  --accent: #35b7e9;
  --ink: #14213d;
  --muted: #607089;
  --line: #dce5f0;
  --surface: #ffffff;
  --soft: #f4f8fc;
  --success: #16794d;
  --warning: #9a6700;
  --danger: #b42318;
  --shadow: 0 14px 35px rgba(20, 33, 61, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.55;
}

button, input, select { font: inherit; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  box-shadow: 0 6px 20px rgba(7, 59, 134, .24);
}
.nav-wrap {
  max-width: 1180px;
  margin: auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-size: 1.25rem; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: rgba(255,255,255,.88); text-decoration: none; font-weight: 650; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

.hero {
  background: linear-gradient(135deg, #0b5ed7, #073b86 68%, #062d64);
  color: white;
  padding: 58px 22px 80px;
}
.hero-inner { max-width: 1180px; margin: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; opacity: .84; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 4.15rem); line-height: 1.05; margin: 10px 0 16px; max-width: 850px; }
.hero p { max-width: 720px; font-size: 1.08rem; color: rgba(255,255,255,.86); }

main { max-width: 1180px; margin: -38px auto 0; padding: 0 22px 70px; }
.card {
  background: var(--surface);
  border: 1px solid rgba(220,229,240,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.calculator-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); overflow: hidden; }
.form-panel { padding: 30px; }
.results-panel { padding: 30px; background: linear-gradient(180deg, #f8fbff, #eef5fb); border-left: 1px solid var(--line); }
.section-title { margin: 0 0 6px; font-size: 1.55rem; }
.section-copy { margin: 0 0 24px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field.full { grid-column: 1 / -1; }
label { display: block; font-weight: 750; margin-bottom: 7px; }
.hint { display: block; color: var(--muted); font-size: .82rem; margin-top: 6px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.input-prefix input { padding-left: 31px; }
input, select {
  width: 100%;
  border: 1px solid #cbd8e8;
  border-radius: 11px;
  padding: 12px 13px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: .18s ease;
}
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,94,215,.13); }
input[type="range"] { padding: 0; accent-color: var(--primary); border: 0; box-shadow: none; margin-top: 10px; }
.inline-fields { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }

.result-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; padding: 22px; border-radius: 16px; }
.result-label { color: rgba(255,255,255,.78); font-weight: 700; }
.result-value { display: block; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 850; letter-spacing: -.04em; margin-top: 3px; }
.result-sub { color: rgba(255,255,255,.78); font-size: .9rem; }
.metric-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 15px; }
.metric strong { display: block; font-size: 1.18rem; margin-top: 2px; }
.metric span { color: var(--muted); font-size: .84rem; }
.breakdown { margin-top: 22px; }
.breakdown-row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.breakdown-row:last-child { border-bottom: 0; }
.breakdown-row strong { white-space: nowrap; }
.notice { margin-top: 18px; border-radius: 12px; padding: 13px 15px; font-size: .92rem; background: #e9f4ff; border: 1px solid #bddcff; color: #174b77; }
.notice.warning { background: #fff7df; border-color: #f0d27a; color: #6d4c00; }
.notice.danger { background: #fff0ef; border-color: #ffc7c2; color: #8d1d16; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { border: 0; border-radius: 11px; padding: 11px 16px; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: white; color: var(--primary-dark); border: 1px solid #bfd0e5; }

.schedule-card { margin-top: 24px; padding: 26px; display: none; }
.schedule-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 13px; margin-top: 16px; max-height: 560px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; background: white; }
th, td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
th { position: sticky; top: 0; background: #edf4fb; color: var(--primary-dark); z-index: 1; }

.content-section { margin-top: 28px; }
.tools-grid, .resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.tool-card, .resource-card { padding: 23px; }
.tool-card h3, .resource-card h3 { margin: 0 0 8px; }
.tool-card p, .resource-card p { color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: #e8f3ff; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.3rem; }
.simple-calc { display: grid; gap: 12px; margin-top: 15px; }
.simple-output { padding: 14px; background: var(--soft); border-radius: 12px; font-weight: 750; min-height: 52px; }

.article { padding: 28px; margin-top: 22px; }
.article h2 { margin-top: 0; }
.checklist { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; padding: 0; list-style: none; }
.checklist li { background: var(--soft); padding: 12px 14px; border-radius: 10px; }
.checklist li::before { content: "✓"; color: var(--success); font-weight: 900; margin-right: 9px; }
.disclaimer { margin-top: 28px; color: var(--muted); font-size: .85rem; }
footer { background: #071f42; color: rgba(255,255,255,.76); text-align: center; padding: 28px 20px; }

@media (max-width: 900px) {
  .calculator-shell { grid-template-columns: 1fr; }
  .results-panel { border-left: 0; border-top: 1px solid var(--line); }
  .tools-grid, .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .nav-wrap { align-items: flex-start; }
  .nav-links { gap: 10px; font-size: .9rem; flex-wrap: wrap; justify-content: flex-end; }
  .form-grid, .tools-grid, .resource-grid, .checklist, .metric-grid { grid-template-columns: 1fr; }
  .form-panel, .results-panel, .article { padding: 21px; }
  .hero { padding-top: 42px; }
  main { padding-inline: 14px; }
}

.cookie-banner{position:fixed;z-index:9999;left:1rem;right:1rem;bottom:1rem;display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem 1.25rem;background:#fff;color:#13243a;border:1px solid #cbd8e6;border-radius:14px;box-shadow:0 12px 40px rgba(15,42,70,.22)}
.cookie-banner p{margin:.3rem 0 0;max-width:760px;font-size:.92rem}.cookie-actions{display:flex;gap:.6rem;flex-shrink:0}.cookie-actions button{border:1px solid #1e5e9f;border-radius:8px;padding:.7rem 1rem;font-weight:700;cursor:pointer;background:#fff;color:#1e5e9f}.cookie-actions button[data-choice="analytics"]{background:#1e5e9f;color:#fff}@media(max-width:700px){.cookie-banner{align-items:stretch;flex-direction:column}.cookie-actions button{flex:1}}
