:root {
  --blue: #1769e0;
  --blue-dark: #0b3f8a;
  --ink: #1f2937;
  --muted: #5f6b7a;
  --line: #d9e2ef;
  --soft: #f3f7fc;
  --warn: #fff5d6;
  --warn-border: #f4b942;
  --white: #fff;
  --shadow: 0 12px 35px rgba(24, 45, 76, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--white);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; background: var(--blue); }
.main-nav { display: flex; gap: 18px; align-items: center; font-weight: 650; }
.main-nav a { color: var(--ink); }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 10px; }
.hero {
  padding: clamp(48px, 8vw, 92px) clamp(16px, 4vw, 56px);
  background: linear-gradient(135deg, #eef6ff 0%, #fff 54%, #edf3f9 100%);
}
.hero-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 32px; align-items: center; }
.eyebrow { color: var(--blue-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
h1, h2, h3 { line-height: 1.18; color: #111827; }
h1 { font-size: clamp(2rem, 5vw, 4.5rem); margin: 10px 0 18px; letter-spacing: 0; }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #3d4b5c; max-width: 780px; }
.search-box {
  display: flex;
  gap: 10px;
  max-width: 720px;
  margin-top: 28px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.search-box input { border: 0; }
.button, button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
}
.button.secondary { color: var(--blue-dark); background: #e7f0ff; }
.section { padding: clamp(38px, 6vw, 72px) clamp(16px, 4vw, 56px); }
.container { max-width: 1120px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.two-col { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: start; }
.card, .info-box, .warning {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}
.card { box-shadow: 0 8px 26px rgba(22, 37, 62, .07); }
.info-box { background: var(--soft); }
.warning { border-color: var(--warn-border); background: var(--warn); }
.warning-label {
  display: inline-block;
  max-width: 360px;
  border: 1px solid var(--warn-border);
  border-radius: 6px;
  padding: 5px 8px;
  color: #5d4300;
  background: var(--warn);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.35;
}
.metric-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.metric-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.filters { position: sticky; top: 82px; display: grid; gap: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); color: #243246; font-size: .92rem; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 9px; background: #e8f1ff; color: var(--blue-dark); font-weight: 750; font-size: .84rem; }
.breadcrumbs { max-width: 1120px; margin: 18px auto 0; padding: 0 16px; display: flex; gap: 8px; color: var(--muted); font-size: .92rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; padding: 18px 0; border: 0; background: transparent; text-align: left; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; }
.faq-panel { padding: 0 0 18px; color: #3d4b5c; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 34px clamp(16px, 4vw, 56px); color: #d7e5f7; background: #172033; }
.site-footer a { color: #fff; margin-left: 16px; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.admin-nav { display: grid; gap: 8px; align-content: start; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; inset: 64px 16px auto 16px; flex-direction: column; align-items: stretch; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .hero-inner, .two-col, .admin-layout { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; }
  .filters { position: static; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 10px; }
  td { border: 0; padding: 7px 0; }
  td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .8rem; font-weight: 800; }
  .site-footer { flex-direction: column; }
  .site-footer a { margin: 0 16px 0 0; }
}
