:root {
  --ka-navy: #17324D;
  --ka-blue: #2F6BFF;
  --ka-red: #D94A3A;
  --ka-surface: #FFFFFF;
  --ka-shadow-sm: 0 8px 22px rgba(23, 50, 77, .10);
  --blue: var(--ka-blue);
  --blue-dark: var(--ka-navy);
  --blue-light: #eaf2ff;
  --ink: #142033;
  --muted: #5d6b7c;
  --line: #d8e1ec;
  --panel: #ffffff;
  --bg: #f6f8fb;
  --ok: #1f7a4d;
  --warn: #946200;
  --bad: #b42318;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.bar {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--blue-dark); }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ka-surface);
  border: 1px solid rgba(23, 50, 77, 0.14);
  display: grid;
  place-items: center;
  box-shadow: var(--ka-shadow-sm);
  position: relative;
  flex: 0 0 auto;
}
.brand-mark svg,
.ka-logo-symbol {
  width: 42px;
  height: 42px;
  display: block;
}
.brand-copy, .footer-brand-copy { display: grid; gap: 2px; line-height: 1.05; }
.brand-copy strong, .footer-brand-copy strong { font-size: 1.02rem; }
.brand-copy small, .footer-brand-copy small { color: var(--muted); font-size: .78rem; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.btn.primary, .nav a.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 46px; }
.hero {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: center;
}
.hero-copy h1 { margin: 0 0 14px; font-size: clamp(2.25rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: 0; color: var(--blue-dark); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.5; color: #314258; max-width: 720px; margin: 0 0 22px; }
.hero-actions, .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.trust-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.metric, .card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(18, 55, 101, .07);
}
.metric { padding: 14px; }
.metric b { display: block; color: var(--blue-dark); font-size: 1.05rem; margin-bottom: 4px; }
.metric span, .muted { color: var(--muted); }
.hero-panel { padding: 18px; }
.check-card { display: grid; gap: 14px; }
.selector-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented button { border: 1px solid var(--line); background: #fff; min-height: 48px; border-radius: 8px; font-weight: 850; }
.segmented button.active { background: var(--blue-light); border-color: var(--blue); color: var(--blue-dark); }
.section { padding: 24px 0; }
.section h2, .page-title { margin: 0 0 10px; color: var(--blue-dark); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .panel { padding: 16px; }
.card h3, .panel h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--blue-dark); }
.list { display: grid; gap: 10px; }
.topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; border-radius: 999px; background: var(--blue-light); color: var(--blue-dark); font-weight: 850; font-size: .82rem; }
.note { padding: 12px 14px; border: 1px solid #c9d8ec; background: #f4f8ff; color: #263e62; border-radius: 8px; }
.warning { padding: 12px 14px; border: 1px solid #ead19a; background: #fff8e8; color: #674500; border-radius: 8px; }
.error { padding: 12px 14px; border: 1px solid #f1b8b2; background: #fff1f0; color: #8a1f15; border-radius: 8px; }
.success { padding: 12px 14px; border: 1px solid #b7dfca; background: #effaf4; color: #17613b; border-radius: 8px; }
.question { display: grid; gap: 10px; margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.options { display: grid; gap: 8px; }
.option { min-height: 44px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 10px 12px; }
.option.active { border-color: var(--blue); background: var(--blue-light); }
.result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.score { font-size: 2rem; color: var(--blue-dark); font-weight: 950; }
.progress-bar { width: 100%; height: 10px; border-radius: 999px; background: #e8eef6; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--blue); }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
.checkline { display: flex; gap: 9px; align-items: flex-start; font-weight: 600; color: #25364a; }
.checkline input { width: 18px; min-height: 18px; margin-top: 3px; }
.footer { border-top: 1px solid rgba(255,255,255,.12); background: var(--ka-navy); color: #fff; }
.footer-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0; display: grid; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark {
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.footer-brand-copy small { color: rgba(255,255,255,.72); }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-links a { color: #fff; font-weight: 800; text-decoration: none; }
.footer .muted { color: rgba(255,255,255,.76); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f1f5f9; color: #334155; }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 18px; }
  .grid, .grid.two, .topic-list, .result-grid, .trust-strip { grid-template-columns: 1fr; }
  .bar { align-items: flex-start; padding: 12px 0; }
  .nav { display: none; width: 100%; justify-content: stretch; }
  .nav.open { display: grid; grid-template-columns: 1fr; }
  .nav a { width: 100%; }
  .mobile-menu { display: inline-flex; margin-left: auto; }
}
