:root {
  --sea: #0a6ebd;
  --sea-dark: #084e8a;
  --deep: #08263f;
  --ink: #1a2a38;
  --muted: #526273;
  --line: #d7e4f0;
  --foam: #f3f7fb;
  --paper: #ffffff;
  --sand: #fbf6ee;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--foam);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

img { max-width: 100%; height: auto; }

a { color: var(--sea-dark); }

a:hover { color: var(--sea); }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 80;
}

.skip:focus { left: 8px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 72px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.bar {
  max-width: var(--max);
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--deep);
  font-weight: 800;
  text-decoration: none;
  flex: none;
  letter-spacing: 0.02em;
  font-size: 18px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-btn {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #e7f2fc;
  cursor: pointer;
}

.nav-txt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-ico,
.nav-ico::before,
.nav-ico::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--deep);
  position: relative;
  transition: transform 160ms ease, top 160ms ease, background 160ms ease;
}

.nav-ico::before,
.nav-ico::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-ico::before { top: -6px; }
.nav-ico::after { top: 6px; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--deep);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
}

.nav a:hover {
  background: #e7f2fc;
  color: var(--sea-dark);
}

.nav a[aria-current="page"] {
  background: var(--sea);
  color: #fff;
}

.nav a[aria-current="page"]:hover {
  background: var(--sea-dark);
  color: #fff;
}

.hero {
  background:
    radial-gradient(900px 220px at 12% -20%, rgba(120, 196, 255, 0.55), transparent 55%),
    linear-gradient(165deg, #062844 0%, #0a6ebd 72%, #2f8fe0 100%);
  color: #fff;
  padding: 42px 18px 34px;
}

.hero .wrap { max-width: var(--max); margin: 0 auto; }

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.28;
  letter-spacing: 0.01em;
  max-width: 18em;
}

.lead { margin: 0; max-width: 46em; font-size: 18px; line-height: 1.75; color: rgba(255, 255, 255, 0.94); }

.age {
  display: inline-block;
  margin: 16px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
}

#ads {
  position: sticky;
  top: 72px;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 6px;
  margin: 0;
  padding: 12px 10px 8px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

#ads:empty,
#ads[hidden] { display: none; }

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 74px;
}

#ads figure { margin: 0; }

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 18px;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  display: block;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads .caption {
  height: 16px;
  margin-top: 4px;
  font-size: 11px;
  line-height: 16px;
  color: #666;
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 48px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px 18px;
  margin: 0 0 18px;
  box-shadow: 0 10px 30px rgba(8, 38, 63, 0.04);
  scroll-margin-top: 210px;
}

h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.35;
  color: var(--deep);
}

h3 {
  margin: 20px 0 8px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--deep);
}

p { margin: 0 0 14px; }

ol, ul { margin: 0 0 14px; padding-left: 1.3em; }

li { margin: 0 0 8px; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th { background: #e7f2fc; color: var(--deep); font-weight: 700; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 8px 0 12px;
}

figure { margin: 0; }

.screen {
  width: min(270px, 100%);
  border-radius: 28px;
  border: 8px solid #10283f;
  background: #10283f;
  box-shadow: 0 16px 36px rgba(8, 38, 63, 0.16);
  display: block;
  margin: 0 auto;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

figcaption strong { color: var(--deep); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px 32px;
  align-items: start;
}

.note {
  background: var(--sand);
  border-radius: 14px;
  padding: 12px 14px;
  color: #6a4a28;
  font-size: 15px;
}

details.faq {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

details.faq:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 8px; }

details.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--deep);
}

details.faq p { margin-top: 8px; }

.site-foot {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 18px 32px;
  color: var(--muted);
  font-size: 14px;
}

.site-foot .wrap { max-width: var(--max); margin: 0 auto; }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }

.foot-links a { text-decoration: none; }

.fine { margin-bottom: 0; }

@media (max-width: 800px) {
  .nav-btn { display: inline-flex; }
  .nav-toggle:focus-visible + .nav-btn {
    outline: 2px solid var(--sea);
    outline-offset: 2px;
  }
  .nav-toggle:checked + .nav-btn .nav-ico { background: transparent; }
  .nav-toggle:checked + .nav-btn .nav-ico::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-btn .nav-ico::after { top: 0; transform: rotate(-45deg); }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 14px 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(8, 38, 63, 0.12);
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 12px;
  }
  .cards,
  .split { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  h2 { font-size: 22px; }
  body { font-size: 16px; }
  .table-wrap { margin-left: -6px; margin-right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #ads img { transition: none; }
}
