:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --ink: #19212f;
  --muted: #59657a;
  --panel: #ffffff;
  --line: #d9e0ea;
  --accent: #2563eb;
  --accent-strong: #1543a9;
  --green: #0f766e;
  --gold: #b7791f;
  --rose: #be123c;
  --shadow: 0 18px 55px rgba(25, 33, 47, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(255, 255, 255, .92);
  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; }
.main-nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.main-nav a { color: var(--muted); font-weight: 700; font-size: 14px; }
.language-menu { position: relative; }
.language-menu summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--panel);
  font-weight: 700;
}
.language-menu div {
  position: absolute;
  right: 0;
  top: 44px;
  min-width: 150px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.language-menu a { display: block; padding: 7px 9px; color: var(--ink); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 32px;
  align-items: stretch;
  padding: clamp(36px, 7vw, 92px) clamp(16px, 5vw, 64px) 36px;
  max-width: 1260px;
  margin: 0 auto;
}
.hero-copy, .page-hero, .tool-panel, .band, .content-block, .faq, .timeline, .grid-section, .card-grid {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1, .page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}
.page-hero {
  padding: clamp(34px, 6vw, 76px) clamp(16px, 5vw, 64px) 24px;
}
.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}
.eyebrow {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
}
.primary { color: #fff; background: var(--accent); }
.secondary { color: var(--ink); background: #e9edf5; }
.tool-panel {
  width: 100%;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.tool-panel h2 { margin-top: 0; }
input[type="search"] {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 8px 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font: inherit;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button {
  min-width: 44px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}
.chips button.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.result-note { margin-top: 14px; color: var(--muted); font-weight: 700; }
.band {
  padding: 34px clamp(16px, 5vw, 64px);
}
.section-heading { max-width: 760px; margin-bottom: 20px; }
.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
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: #eef2f8; color: #344054; font-size: 13px; text-transform: uppercase; }
meter { width: 86px; height: 12px; }
.tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 900;
  color: #fff;
}
.tier-Splus { background: var(--rose); }
.tier-S { background: var(--accent); }
.tier-Aplus, .tier-A { background: var(--green); }
.tier-Bplus, .tier-B { background: var(--gold); }
.grid-section, .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px clamp(16px, 5vw, 64px);
}
.grid-section article, .unit-card, .content-block, .faq, .timeline article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.content-block, .faq, .timeline {
  margin-top: 20px;
  margin-bottom: 40px;
  padding: 24px;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary { cursor: pointer; font-weight: 900; }
.timeline { display: grid; gap: 16px; }
.timeline time { color: var(--green); font-weight: 900; }
.site-footer {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 32px clamp(16px, 5vw, 64px);
  background: #111827;
  color: #e5e7eb;
}
.site-footer div { max-width: 720px; display: flex; gap: 14px; }
.site-footer a { color: #bfdbfe; margin-left: 14px; }
.legal-copy p { max-width: 860px; }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .main-nav { gap: 10px; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero h1, .page-hero h1 { font-size: 42px; }
  .grid-section, .card-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .language-menu div { left: 0; right: auto; }
}
