:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #162033;
  --muted: #637089;
  --line: #dbe2ee;
  --blue: #315df5;
  --blue-soft: #eaf0ff;
  --green: #12805c;
  --shadow: 0 18px 48px rgba(22, 32, 51, .10);
  --page: 1280px;
}

* { 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:
    linear-gradient(180deg, #f7f9fe 0, #f5f7fb 420px),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(var(--page), calc(100vw - 48px));
  min-height: 58px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 178px;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a, .footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.nav a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}
.footer-links a:hover { color: #fff; }
.language-select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}

.hero {
  width: min(var(--page), calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(44px, 7vw, 86px) 0 22px;
  align-items: end;
}
.subhero {
  width: min(980px, calc(100vw - 48px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 64px) 0 20px;
  overflow-x: hidden;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}
h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 66px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.subhero h1 { font-size: clamp(34px, 5vw, 56px); }
h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  margin: 0 0 14px;
}
p { color: var(--muted); }
.hero-copy p:not(.eyebrow), .subhero p {
  max-width: 760px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  overflow-wrap: anywhere;
}
.button.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.button.secondary {
  background: #fff;
  color: var(--ink);
}
.button.secondary:hover {
  border-color: #c8d3e4;
  background: #f9fbff;
}

.quick-panel, .tool-shell, .content-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.quick-panel {
  padding: 24px;
  display: grid;
  gap: 8px;
}
.quick-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.quick-panel strong {
  font-size: 19px;
  line-height: 1.25;
}
.quick-panel strong, .brand span { overflow-wrap: anywhere; }

.tool-shell {
  width: min(var(--page), calc(100vw - 48px));
  margin: 20px auto 28px;
  padding: clamp(18px, 3vw, 26px);
}
.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.tool-header h2 { margin-bottom: 0; }
.filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(150px, .7fr) minmax(180px, .9fr) minmax(120px, .55fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.compare-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(280px, .95fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
input:focus, select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(49, 93, 245, .14);
}
output {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--ink);
  font-weight: 800;
}
.table-wrap {
  max-height: 640px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}
th, td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #f9fbff;
  font-size: 13px;
}
tbody tr:hover { background: #fbfdff; }
td strong { color: var(--green); }
.source-note {
  margin: 14px 0 0;
  font-size: 14px;
}

.content-band {
  width: min(var(--page), calc(100vw - 48px));
  margin: 24px auto 42px;
  padding: clamp(20px, 4vw, 38px);
}
.content-band > * + h2 { margin-top: 34px; }
ol { color: var(--muted); }
.faq {
  display: grid;
  gap: 10px;
}
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}
summary { cursor: pointer; font-weight: 800; }
.legal-copy { max-width: 980px; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(24px, calc((100vw - var(--page)) / 2));
  background: #101827;
  color: #fff;
}
.footer p { color: #bcc6d7; max-width: 620px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
  justify-content: flex-end;
}
.footer-links a { color: #dbe5f7; }

@media (max-width: 1024px) {
  .header-inner {
    width: min(var(--page), calc(100vw - 32px));
    grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
    column-gap: 18px;
    row-gap: 10px;
    padding: 10px 0 12px;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .language-select {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    max-width: 190px;
  }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 18px;
    overflow-x: visible;
    padding: 0;
  }
  .nav a {
    padding: 3px 0;
  }
  .hero, .tool-shell, .content-band {
    width: calc(100vw - 32px);
  }
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .quick-panel { max-width: 520px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-box output { grid-column: 1 / -1; }
  .content-band table { table-layout: fixed; }
  .content-band th, .content-band td {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) minmax(118px, 150px);
    column-gap: 12px;
    row-gap: 12px;
  }
  .brand { white-space: normal; }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 6px 16px;
  }
  .nav a {
    padding: 2px 0;
    font-size: 13px;
  }
  .language-select {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    max-width: 150px;
    min-height: 38px;
  }
  .hero-actions .button { width: 100%; }
  .filters, .compare-box { grid-template-columns: 1fr; }
  .tool-header, .footer { flex-direction: column; align-items: stretch; }
  .tool-shell { padding: 16px; }
  .table-wrap { max-height: 520px; }
  h1 {
    font-size: 31px;
    line-height: 1.08;
    word-break: normal;
    overflow-wrap: normal;
  }
  .hero-copy p:not(.eyebrow), .subhero p {
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .quick-panel strong {
    word-break: normal;
    overflow-wrap: anywhere;
  }
}
