:root {
  --ink: #1b2433;
  --muted: #5d6b80;
  --line: #e4e9f2;
  --bg: #f3f6fb;
  --card: #ffffff;
  --brand: #1d4e9e;
  --brand-dark: #10284f;
  --accent: #2f6bff;
  --warn: #8a3d12;
  --warn-bg: #fff4e8;
  --max: 1120px;
  --shadow: 0 10px 30px rgba(16, 40, 80, 0.06);
  --header-h: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: var(--header-h);
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: #0b3f8a; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: var(--brand-dark);
  color: #fff;
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-h);
  padding: 10px 0;
}
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.nav-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-btn span,
.nav-btn span::before,
.nav-btn span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform 160ms ease, top 160ms ease, background 160ms ease;
}
.nav-btn span::before,
.nav-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-btn span::before { top: -7px; }
.nav-btn span::after { top: 7px; }
.nav-toggle:checked + .nav-btn span { background: transparent; }
.nav-toggle:checked + .nav-btn span::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked + .nav-btn span::after { top: 0; transform: rotate(-45deg); }
.nav-toggle:focus-visible + .nav-btn { outline: 2px solid #fff; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #fff;
}
.brand strong { display: block; font-size: 20px; letter-spacing: 0.02em; }
.brand small { display: block; color: #c9d7ee; font-size: 13px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.subnav a {
  color: #d7e4ff;
  text-decoration: none;
  font-size: 15px;
}
.subnav a[aria-current="page"] { color: #fff; font-weight: 700; }

.age {
  background: var(--warn-bg);
  color: var(--warn);
  border-bottom: 1px solid #f3d7bc;
}
.age p { margin: 0; padding: 10px 0; font-size: 14px; }

main { padding: 28px 0 64px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 26px;
  margin: 18px 0;
}
h1 { font-size: 34px; line-height: 1.35; margin: 0 0 12px; }
h2 { font-size: 26px; line-height: 1.4; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 18px 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; color: #24344c; }
.muted { color: var(--muted); }
ul, ol { margin: 0 0 14px; padding-left: 1.25em; }
li { margin: 4px 0; }

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 28px 36px;
  align-items: center;
}
.pair figure { margin: 0; }
.pair img {
  width: min(100%, 380px);
  display: block;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(16, 32, 64, 0.12);
}
figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.step {
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 6px;
}
.step b { display: block; color: var(--brand); margin-bottom: 4px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.crumb { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.crumb a { text-decoration: none; }
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { padding: 18px 0 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.foot-links a { text-decoration: none; }
.home-end { color: var(--muted); font-size: 14px; text-align: center; margin-top: 10px; }

.error-panel { text-align: center; padding: 48px 20px; }
.error-panel strong { display: block; font-size: 56px; color: var(--brand); line-height: 1; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
  margin-top: 8px;
}
.btn:hover { color: #fff; background: #1d5af0; }

@media (min-width: 861px) {
  .pair.flip { grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr); }
  .pair.flip .copy { order: 2; }
  .pair.flip figure { order: 1; }
}
@media (max-width: 860px) {
  :root { --header-h: 76px; }
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .header-inner { align-items: center; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 17px; }
  .brand small { display: none; }
  .nav-btn { display: flex; }
  .subnav {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(50% - 50vw);
    width: 100vw;
    flex-direction: column;
    gap: 0;
    padding: 6px 0 10px;
    background: var(--brand-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  }
  .nav-toggle:checked ~ .subnav { display: flex; }
  .subnav a { padding: 12px 22px; font-size: 16px; }
  .pair, .pair.flip { grid-template-columns: 1fr; }
  .pair.flip .copy, .pair.flip figure { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 18px 14px; border-radius: 16px; }
  main { padding-top: 18px; }
}
