:root {
  --bg: #f6f8fb;
  --ink: #17202e;
  --muted: #667085;
  --panel: #ffffff;
  --line: #d7dee8;
  --green: #22a06b;
  --blue: #2563eb;
  --amber: #d97706;
  --dark: #111827;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand img { border-radius: 10px; }
.nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.nav a { color: var(--ink); font-weight: 650; }
.language-menu { position: relative; }
.language-menu summary { cursor: pointer; font-weight: 700; list-style: none; }
.language-menu div {
  position: absolute;
  right: 0;
  top: 34px;
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 45px rgba(15, 23, 42, .12);
}
.language-menu a { padding: 6px 8px; color: var(--ink); }

.hero, .planner, .data-section, .split-section, .codes-section, .guide-section, .source-section, .faq-section, .plain-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) clamp(18px, 4vw, 32px);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 10px;
}
h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; letter-spacing: 0; }
h1 { font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 20px; }
.intro { font-size: clamp(18px, 2vw, 23px); color: #344054; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid var(--line);
}
.button.primary { background: var(--dark); color: white; border-color: var(--dark); }
.button.secondary { background: white; color: var(--dark); }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.facts div, .planner, .data-section, .codes-section, .guide-grid article, .faq-section details, .plain-page {
  background: var(--panel);
  border: 1px solid var(--line);
}
.facts div { padding: 14px; border-radius: 8px; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 0; font-size: clamp(14px, 1.1vw, 16px); font-weight: 800; overflow-wrap: anywhere; }
.hero-media img { border-radius: 8px; box-shadow: 0 26px 80px rgba(15, 23, 42, .18); }
figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }

.planner { border-radius: 8px; }
.decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.decision-card {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.decision-card span { display: block; font-weight: 900; margin-bottom: 8px; }
.decision-card small { color: var(--muted); font-size: 13px; }
.decision-card.is-active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 160, 107, .18); background: #f0fdf7; }
.planner-output {
  display: block;
  padding: 16px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  font-weight: 750;
}

.section-heading { max-width: 860px; margin-bottom: 24px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #eef4ff; color: #1d4ed8; font-size: 13px; text-transform: uppercase; }
.split-section { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: center; }
.split-section figure { margin: 0; }
.split-section figure img { border-radius: 8px; background: white; border: 1px solid var(--line); padding: 12px; }
.steps { padding-left: 22px; }
.steps li { margin: 10px 0; }
.codes-section { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; border-radius: 8px; }
.status-list { display: grid; gap: 10px; }
.status-list div { padding: 14px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--line); }
.status-list span { display: block; color: var(--amber); font-weight: 900; font-size: 12px; text-transform: uppercase; }
.status-list strong { display: block; margin-top: 4px; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-grid article { padding: 18px; border-radius: 8px; }
.source-section ul { columns: 2; padding-left: 20px; }
.faq-section details { border-radius: 8px; margin: 10px 0; padding: 16px; }
.faq-section summary { font-weight: 850; cursor: pointer; }
.plain-page { border-radius: 8px; margin-top: 36px; margin-bottom: 36px; max-width: 900px; }
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 34px clamp(18px, 4vw, 56px);
  background: #101828;
  color: white;
}
.site-footer a { color: #d1e9ff; margin-right: 14px; }
.site-footer p, .site-footer small { color: #cbd5e1; }

@media (max-width: 860px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .hero, .split-section, .codes-section { grid-template-columns: 1fr; }
  .facts, .decision-grid, .guide-grid { grid-template-columns: 1fr; }
  .source-section ul { columns: 1; }
  .site-footer { grid-template-columns: 1fr; }
}
