:root {
  --navy: #101b35;
  --navy2: #172543;
  --lime: #d9ff43;
  --cream: #f4f2eb;
  --paper: #fff;
  --ink: #17213a;
  --muted: #667087;
  --line: #dfe2e7;
  --soft: #f7f8fa;
  --green: #16835d;
  --amber: #9a501e;
  --shadow: 0 18px 48px rgba(13, 25, 51, .09);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 98px; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 400 16px/1.68 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 1000; padding: 10px 14px; color: var(--navy); background: var(--lime); font-weight: 800; }
.skip:focus { top: 12px; }
.responsible { padding: 7px 18px; color: #c7cede; background: #0a1225; text-align: center; font-size: .76rem; }
.responsible strong { color: var(--lime); }

.site-header { position: sticky; top: 0; z-index: 100; color: #fff; background: rgba(16, 27, 53, .97); border-bottom: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: #fff; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px 3px; color: var(--navy); background: var(--lime); font-weight: 950; }
.brand-copy { line-height: 1; font-weight: 900; }
.brand-copy small { display: block; margin-top: 5px; color: #9ca8bf; font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.main-nav > a, .nav-group > summary { color: #dce2ef; text-decoration: none; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.main-nav > a:hover, .main-nav > a[aria-current="page"], .nav-group > summary:hover, .nav-group[open] > summary, .nav-group.active > summary { color: var(--lime); }
.nav-group { position: relative; padding: 0; background: transparent; border: 0; border-radius: 0; }
.nav-group > summary { display: flex; align-items: center; gap: 6px; padding: 0; cursor: pointer; list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: "⌄" !important; position: static; width: auto; height: auto; display: inline; color: var(--lime); background: none; border-radius: 0; translate: none; font-size: .9rem; }
.nav-menu { position: absolute; right: 0; top: calc(100% + 16px); min-width: 210px; padding: 8px; background: var(--navy2); border: 1px solid rgba(255, 255, 255, .14); border-radius: 9px; box-shadow: 0 18px 40px rgba(0, 0, 0, .22); }
.nav-menu::before { content: ""; position: absolute; inset: -18px 0 auto; height: 18px; }
.nav-menu a { display: block; padding: 9px 10px; color: #dce2ef; border-radius: 6px; text-decoration: none; font-size: .73rem; font-weight: 700; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--navy) !important; background: var(--lime); }
.header-cta { padding: 10px 16px; border-radius: 7px; background: var(--lime); color: var(--navy); text-decoration: none; font-weight: 900; font-size: .76rem; white-space: nowrap; }
.menu { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; color: #fff; background: transparent; }

.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 76px 76px; mask-image: linear-gradient(#000, transparent 90%); }
.hero::after { content: ""; position: absolute; right: -180px; bottom: -300px; width: 650px; height: 650px; border: 1px solid rgba(217, 255, 67, .18); border-radius: 50%; box-shadow: 0 0 0 90px rgba(217,255,67,.025), 0 0 0 180px rgba(217,255,67,.02); }
.hero-inner { position: relative; z-index: 1; padding: 32px 0 64px; }
.breadcrumbs { margin: 0 0 38px; color: #9facbf; font-size: .73rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--lime); }
.hero-copy { max-width: 870px; }
.kicker, .label { color: var(--green); font-size: .7rem; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
.kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--lime); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(217,255,67,.1); }
h1 { max-width: 900px; margin: 18px 0 24px; font-size: clamp(2.8rem, 6vw, 5.1rem); line-height: .99; letter-spacing: -.058em; }
h1 em { color: var(--lime); font-style: normal; }
.lead { max-width: 760px; margin: 0; color: #bec7d8; font-size: 1.07rem; }
.subnav { color: #d5dbe7; background: var(--navy2); }
.subnav .wrap { min-height: 49px; display: flex; align-items: center; gap: 23px; overflow-x: auto; }
.subnav a { flex: 0 0 auto; text-decoration: none; font-size: .71rem; font-weight: 750; }
.subnav a:hover { color: var(--lime); }

.page-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 54px; align-items: start; padding: 58px 0 90px; }
.toc { position: sticky; top: 110px; }
.toc-title { display: block; margin-bottom: 14px; color: var(--muted); font-size: .63rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.toc a { display: block; padding: 9px 0 9px 14px; color: var(--muted); border-left: 1px solid var(--line); text-decoration: none; font-size: .74rem; line-height: 1.35; }
.toc a:hover { color: var(--navy); border-color: var(--green); }
.age { display: flex; gap: 10px; margin-top: 24px; padding: 14px; color: #c3cada; background: var(--navy); border-radius: 9px; font-size: .65rem; }
.age b { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; color: var(--lime); border: 1px solid var(--lime); border-radius: 50%; }
.article { min-width: 0; }
.content-section { margin: 0 0 54px; scroll-margin-top: 108px; }
.content-section:last-child { margin-bottom: 0; }
.label { margin: 0 0 8px; }
h2 { margin: 0 0 18px; font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { margin: 0 0 10px; font-size: 1.14rem; line-height: 1.3; }
p { margin: 0 0 17px; }
.section-copy, .article li { color: #4e586e; }
.article ul, .article ol { margin: 14px 0 20px; padding-left: 1.25rem; }
.article li { margin: 8px 0; }
.article a:not(.button) { color: #176848; text-underline-offset: 3px; }
.intro-card { margin-bottom: 42px; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.intro-card p:last-child { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.card { min-height: 150px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.card-number { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 18px; color: var(--navy); background: var(--lime); border-radius: 8px; font-size: .72rem; font-weight: 950; }
.card p { margin: 0; color: var(--muted); font-size: .82rem; }
.note, .warning, .placeholder { margin: 24px 0; padding: 21px 23px; border-radius: 0 9px 9px 0; }
.note { color: #344c43; background: #ecf5f0; border-left: 4px solid var(--green); }
.warning { color: #61452d; background: #fff4e9; border-left: 4px solid #d98538; }
.placeholder { color: #573d20; background: #fff7dc; border-left: 4px solid #e0aa18; }
.note strong, .warning strong, .placeholder strong { display: block; margin-bottom: 5px; }
.note strong { color: #176848; }
.warning strong { color: var(--amber); }
.placeholder strong { color: #78540d; }
.checklist { margin: 22px 0; padding: 0 !important; list-style: none; }
.checklist li { position: relative; margin: 8px 0; padding: 13px 16px 13px 46px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.checklist li::before { content: "✓"; position: absolute; left: 16px; top: 12px; color: var(--green); font-weight: 950; }
.data-table { margin: 22px 0; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: .8rem; }
th { padding: 12px 14px; color: #fff; background: var(--navy); text-align: left; font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border: 0; }
.profile { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; margin: 24px 0; padding: 24px; color: #dce2ef; background: var(--navy); border-radius: 12px; }
.profile-mark { width: 58px; height: 58px; display: grid; place-items: center; color: var(--navy); background: var(--lime); border-radius: 50%; font-weight: 950; }
.profile strong { color: #fff; }
.profile p { margin: 5px 0 0; color: #b9c2d3; font-size: .82rem; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; color: var(--navy); background: var(--lime); border-radius: 7px; text-decoration: none; font-size: .78rem; font-weight: 900; }
.meta-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.meta-line span { padding: 7px 10px; color: #cbd3e0; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; font-size: .67rem; }

.site-footer { color: #c2cada; background: #0b1429; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .75fr .75fr .75fr; gap: 42px; padding: 54px 0 40px; }
.footer-copy { max-width: 390px; margin: 17px 0 0; color: #8490a5; font-size: .74rem; }
.footer-col h4 { margin: 0 0 14px; color: #fff; font-size: .7rem; text-transform: uppercase; }
.footer-col a { display: block; margin: 7px 0; color: #98a3b7; text-decoration: none; font-size: .73rem; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; padding: 17px 0 24px; border-top: 1px solid rgba(255,255,255,.1); color: #707d93; font-size: .66rem; }

@media (max-width: 1080px) {
  .main-nav { gap: 14px; }
  .main-nav > a, .nav-group > summary { font-size: .7rem; }
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
  .footer-grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu { display: block; }
  .main-nav.open { position: absolute; left: 0; right: 0; top: 72px; display: grid; gap: 0; padding: 8px 20px 18px; background: var(--navy); }
  .main-nav.open > a, .main-nav.open .nav-group > summary { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-group { width: 100%; }
  .nav-group > summary { justify-content: space-between; }
  .nav-menu { position: static; min-width: 0; margin: 3px 0 7px; box-shadow: none; }
  .page-grid { display: block; }
  .toc { display: none; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 26px); }
  .responsible { font-size: .64rem; }
  .hero-inner { padding: 24px 0 44px; }
  .breadcrumbs { margin-bottom: 26px; }
  h1 { font-size: clamp(2.4rem, 13vw, 4rem); }
  .subnav { display: none; }
  .page-grid { padding: 38px 0 64px; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
