:root {
  --bg: #f3f5f7;
  --paper: #ffffff;
  --ink: #1c2836;
  --muted: #5d6d7e;
  --line: #d9e1e8;
  --brand: #123f4d;
  --brand-deep: #0c303c;
  --gold: #b8893d;
  --gold-soft: #f8f1e3;
  --warn-bg: #fbf6ee;
  --warn-line: #e6d3ae;
  --max: 1120px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(18, 63, 77, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
p, li, td, h1, h2, h3, .brand-name { overflow-wrap: break-word; }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: var(--brand);
  color: #e7f1f3;
  font-size: 13px;
}
.topbar .wrap { padding: 8px 0; }
.site-header {
  background: #07140d;
  border-bottom: 1px solid #1c3a28;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  min-height: 78px;
  padding: 10px 0;
}
.header-bar nav { flex: 1 1 280px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 168px; height: auto; background: #07140d; }
.brand-name { color: #f6efe0; font-weight: 800; letter-spacing: 0.04em; font-size: 12px; line-height: 1.25; max-width: 15rem; text-transform: uppercase; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e4c27a;
  background: transparent;
  color: #f6efe0;
  font-weight: 700;
}
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.header-actions .btn { padding: 8px 14px; font-size: 13px; background: #e4c27a; color: #07140d; border: 1px solid #e4c27a; }
.header-actions .btn:hover { background: #f0d7a4; color: #07140d; }
.header-actions .btn-line { background: transparent; color: #f6efe0; border-color: #e4c27a; }
.header-actions .btn-line:hover { background: #e4c27a; color: #07140d; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats div, .mini-card, .path-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stats strong { display: block; font-size: 20px; }
.stats span, .mini-card span { color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { background: #f8f1e3; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: #f6efe0;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.nav-list a[aria-current="page"] {
  color: #e4c27a;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.hero { padding: 36px 0 12px; }
.hero-grid, .split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}
h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin: 0 0 12px; }
h3 { margin: 0 0 8px; font-size: 18px; }
.lead { font-size: 18px; color: var(--muted); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn-line { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-line:hover { background: var(--brand); color: #fff; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.frame { border-radius: 20px; display: block; width: min(100%, 320px); height: auto; margin-inline: auto; background: #07140d; }
.note {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 22px 0;
}
.note strong { color: #6d5420; }
.section { padding: 28px 0; }
.grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.card { padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.kicker { color: var(--gold); font-weight: 700; font-size: 13px; margin: 0 0 6px; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 14px 64px;
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 18px;
  margin: 0 0 10px;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 8px 14px 0; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 16px; color: #3e4c5c; }
.crumbs { font-size: 14px; color: var(--muted); margin: 18px 0; }
.crumbs a { color: var(--brand); text-decoration: none; }
.prose { max-width: 74ch; }
.prose p, .prose li { color: #314050; }
.toc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; padding: 18px 22px; margin: 8px 0 22px; }
.toc a { text-decoration: none; }
.site-footer { margin-top: 28px; background: var(--brand); color: #d5e3e7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding: 36px 0 18px; }
.site-footer a { color: #f6efe0; text-decoration: none; }
.site-footer h2 { color: #fff; font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal { border-top: 1px solid rgba(255,255,255,0.16); padding: 14px 0 22px; font-size: 13px; }
@media (max-width: 860px) {
  .hero-grid, .split, .grid-3, .grid-2, .footer-grid, .toc { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .header-bar { align-items: center; gap: 10px; padding: 12px 0; }
  .brand { flex: 1 1 180px; min-width: 0; }
  .brand img { width: 128px; }
  .brand-name { font-size: 11px; max-width: 11rem; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-bar nav { display: none; flex: 1 1 100%; order: 3; }
  .header-bar nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 12px 0; font-size: 16px; }
  .header-actions { width: 100%; order: 4; }
  .header-actions .btn, .actions .btn { flex: 1 1 30%; text-align: center; min-height: 44px; }
  .hero { padding: 22px 0 8px; }
  h1 { font-size: 28px; }
  .lead { font-size: 16px; }
  .wrap { width: min(var(--max), calc(100% - 24px)); }
}
@media (max-width: 640px) {
  .table-wrap table thead { display: none; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap tr { border-bottom: 10px solid var(--bg); }
  .table-wrap td { display: flex; justify-content: space-between; gap: 12px; }
  .table-wrap td::before { content: attr(data-label); font-weight: 700; color: var(--muted); }
}
@media (max-width: 420px) {
  .stats, .header-actions { grid-template-columns: 1fr; }
  .header-actions { display: grid; }
  .actions { display: grid; }
  .brand img { width: 108px; }
}
