/* Брендбук · концепция 10 — «Указатель»
   Главная как титульный лист и оглавление официального документа:
   угловой штамп, содержание с отточием, разделы-строки.
   Только Inter + Raleway и фирменная синяя палитра. */
:root {
  --navy: #19286d;
  --navy-deep: #10194d;
  --gov-blue: #0068b4;
  --cyan: #00a6ca;
  --steel: #296695;
  --ink: #141b34;
  --muted: #66718c;
  --line: #cfd9ea;
  --rule: #19286d;
  --paper: #f4f7fb;
  --sheet: #ffffff;
  --shell: 1160px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Raleway", var(--sans);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; background: none; border: 0; font: inherit; cursor: pointer; }
ol, ul { list-style: none; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; top: 0; left: -9999px; z-index: 200; padding: 11px 18px; color: #fff; background: var(--navy); }
.skip:focus { left: 0; }

/* ---------- Служебная линия ---------- */
.topline { color: rgba(255,255,255,.72); background: var(--navy-deep); font-size: 11px; letter-spacing: .02em; }
.topline__inner,
.topline__inner div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topline__inner { min-height: 32px; }
.topline a:hover { color: #fff; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.header.is-stuck { box-shadow: 0 8px 24px rgba(16,25,77,.07); }
.header__inner { display: flex; align-items: center; min-height: 72px; gap: 28px; }
.logo img { width: 182px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 11px; font-size: 13.5px; font-weight: 600; }
.nav a:hover { color: var(--gov-blue); }
.header__tools { display: flex; align-items: center; gap: 10px; }
.account { padding: 10px 16px; color: #fff; background: var(--navy); font-size: 12.5px; font-weight: 700; transition: background .18s; }
.account:hover { background: var(--gov-blue); }
.menu { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; padding: 9px; }
.menu span { width: 100%; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.menu.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu.is-open span:nth-child(2) { opacity: 0; }
.menu.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { position: sticky; top: 72px; z-index: 49; border-bottom: 1px solid var(--line); background: #fff; }
.drawer__inner { display: flex; flex-direction: column; padding-block: 12px 20px; }
.drawer__inner > a { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.drawer__meta { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 16px; color: var(--steel); font-size: 13px; }

/* ---------- Титульный лист ---------- */
.title-page { padding-block: 74px 66px; background: var(--sheet); border-bottom: 2px solid var(--rule); }
.title-page__grid { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.doc-kind { margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--gov-blue); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.title-page h1 { font-family: var(--head); font-size: clamp(38px, 4.8vw, 66px); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
.title-page h1 em { color: var(--gov-blue); font-style: normal; }
.title-page__lead { max-width: 52ch; margin-top: 26px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.title-page__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; padding: 12px 24px; font-size: 13px; font-weight: 700; }
.button--solid { color: #fff; background: var(--navy); }
.button--solid:hover { background: var(--gov-blue); }
.button--ghost { border: 1.5px solid var(--navy); color: var(--navy); }
.button--ghost:hover { background: var(--navy); color: #fff; }

/* Угловой штамп в духе ЕСКД */
.stamp { border: 1.5px solid var(--rule); font-size: 12px; }
.stamp__row { display: grid; grid-template-columns: 92px 1fr; border-bottom: 1px solid var(--line); }
.stamp__row span { padding: 9px 10px; border-right: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.stamp__row b { padding: 9px 12px; font-family: var(--head); font-weight: 700; }
.stamp__grid { display: grid; grid-template-columns: 1fr 1fr; }
.stamp__grid div { padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stamp__grid div:nth-child(2n) { border-right: 0; }
.stamp__grid div:nth-child(n+3) { border-bottom: 0; }
.stamp__grid span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.stamp__grid b { display: block; margin-top: 4px; font-family: var(--head); font-size: 15px; font-weight: 700; }

/* ---------- Оглавление ---------- */
.contents { padding-block: 78px 20px; }
.block-head { margin-bottom: 34px; }
.block-no,
.section__mark { color: var(--gov-blue); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.block-head h2 { margin-top: 12px; font-family: var(--head); font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; letter-spacing: -.03em; }
.toc { border-top: 2px solid var(--rule); }
.toc a { display: grid; grid-template-columns: 56px auto 1fr auto; gap: 18px; align-items: baseline; padding: 22px 0 20px; border-bottom: 1px solid var(--line); transition: color .18s; }
.toc a:hover { color: var(--gov-blue); }
.toc__no { font-family: var(--head); font-size: 20px; font-weight: 700; color: var(--navy); }
.toc a:hover .toc__no { color: var(--gov-blue); }
.toc__name { font-family: var(--head); font-size: clamp(18px, 2vw, 24px); font-weight: 600; }
.toc__dots { align-self: end; height: 0; margin-bottom: 6px; border-bottom: 2px dotted var(--line); }
.toc__go { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.toc a:hover .toc__go { color: var(--gov-blue); }

/* ---------- Разделы ---------- */
.section { padding-block: 86px; }
.section--alt { background: var(--sheet); border-block: 1px solid var(--line); }
.section__grid { display: grid; grid-template-columns: 320px 1fr; gap: 80px; align-items: start; }
.section__aside { position: sticky; top: 118px; }
.section__mark { display: block; }
.section__aside h2 { margin: 12px 0 16px; font-family: var(--head); font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; }
.section__aside p { max-width: 34ch; color: var(--muted); line-height: 1.7; }
.section__all { display: inline-flex; margin-top: 24px; padding-bottom: 5px; border-bottom: 1px solid var(--navy); color: var(--navy); font-size: 12px; font-weight: 700; }
.section__all:hover { color: var(--gov-blue); border-color: var(--gov-blue); }

/* Раздел 01 — строки входа с отточием */
.entries { border-top: 2px solid var(--rule); }
.entries a { display: grid; grid-template-columns: 52px minmax(210px, auto) 1fr auto; gap: 8px 20px; align-items: baseline; padding: 26px 0 24px; border-bottom: 1px solid var(--line); transition: color .18s; }
.entries a:hover { color: var(--gov-blue); }
.entries__idx { font-family: var(--head); font-size: 14px; font-weight: 700; color: var(--gov-blue); }
.entries__name { font-family: var(--head); font-size: clamp(19px, 2vw, 26px); font-weight: 700; }
.entries__note { grid-column: 2; color: var(--muted); font-size: 13px; }
.entries__dots { align-self: end; height: 0; margin-bottom: 8px; border-bottom: 2px dotted var(--line); }
.entries__go { font-size: 18px; color: var(--gov-blue); }

/* Раздел 02 — реестр программ */
.registry { border-top: 2px solid var(--rule); }
.registry a { display: grid; grid-template-columns: 62px minmax(210px, .95fr) 1.15fr 26px; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); transition: transform .18s, color .18s; }
.registry a:hover { transform: translateX(9px); color: var(--gov-blue); }
.registry__code { color: var(--gov-blue); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.registry__name { font-family: var(--head); font-size: 18px; font-weight: 700; }
.registry__desc { color: var(--muted); font-size: 13px; }
.registry__go { font-size: 18px; color: var(--gov-blue); }

/* Раздел 03 — сводка показателей (тёмный) */
.section--dark { color: #fff; background: var(--navy); border-block: 0; }
.block-head--light h2 { color: #fff; }
.section__mark--light { color: #58c9e0; }
.block-head--light p { max-width: 60ch; margin-top: 14px; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.7; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; border-top: 1px solid rgba(255,255,255,.3); }
.figures > div { min-height: 210px; padding: 24px 22px 12px 0; border-right: 1px solid rgba(255,255,255,.18); }
.figures > div:not(:first-child) { padding-left: 24px; }
.figures > div:last-child { border-right: 0; }
.figures dt { color: rgba(255,255,255,.5); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.figures dd { margin-top: 26px; font-family: var(--head); font-size: clamp(34px, 3.8vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.figures dd em { color: var(--cyan); font-size: .34em; font-style: normal; }
.figures span { display: block; margin-top: 14px; color: rgba(255,255,255,.64); font-size: 12px; }

/* Раздел 04 — сообщения */
.dispatch { border-top: 2px solid var(--rule); }
.dispatch a { display: grid; grid-template-columns: 190px 1fr 26px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: color .18s; }
.dispatch a:hover { color: var(--gov-blue); }
.dispatch__meta { display: flex; flex-direction: column; gap: 7px; }
.dispatch__kind { color: var(--gov-blue); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.dispatch__meta time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.dispatch__title { font-family: var(--head); font-size: clamp(17px, 1.9vw, 22px); font-weight: 600; line-height: 1.25; }
.dispatch__go { font-size: 18px; color: var(--gov-blue); }

/* Раздел 05 — приёмная */
.section__grid--contact { align-items: stretch; }
.reception { border-top: 2px solid var(--rule); padding-top: 30px; }
.reception__phone { display: inline-block; font-family: var(--head); font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -.02em; }
.reception__phone:hover { color: var(--gov-blue); }
.reception__rows { margin-top: 26px; border-top: 1px solid var(--line); }
.reception__rows a { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; transition: color .18s; }
.reception__rows a:hover { color: var(--gov-blue); }
.reception__rows b { color: var(--gov-blue); }
.reception__addr { margin-top: 22px; color: var(--muted); font-size: 13px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Футер ---------- */
.footer { padding-block: 66px 24px; color: rgba(255,255,255,.68); background: var(--navy-deep); }
.footer__top { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 60px; padding-bottom: 56px; }
.footer__brand img { width: 188px; filter: brightness(0) invert(1); }
.footer__brand p { max-width: 300px; margin-top: 24px; font-size: 12px; line-height: 1.7; }
.footer__top h3 { margin-bottom: 16px; color: #fff; font-family: var(--head); font-size: 13px; }
.footer__top > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; }
.footer__top > div:not(.footer__brand) a { font-size: 11.5px; }
.footer__top a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); font-size: 10px; }
.footer__bottom a { margin-left: auto; color: #fff; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header__tools { margin-left: auto; }
  .menu { display: flex; }
  .title-page__grid { grid-template-columns: 1fr; gap: 42px; }
  .stamp { max-width: 420px; }
  .section__grid { grid-template-columns: 260px 1fr; gap: 48px; }
}

@media (max-width: 760px) {
  .topline__inner > span { display: none; }
  .topline__inner { justify-content: flex-end; }
  .section__grid { grid-template-columns: 1fr; gap: 28px; }
  .section__aside { position: static; }
  .section__aside p { max-width: 560px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures > div:nth-child(2) { border-right: 0; }
  .figures > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 38px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 30px, var(--shell)); }
  .topline__inner div a:first-child { display: none; }
  .header__inner { min-height: 62px; }
  .logo img { width: 154px; }
  .account { display: none; }
  .drawer { top: 62px; }
  .title-page { padding-block: 48px 44px; }
  .title-page h1 { font-size: clamp(31px, 10vw, 46px); }
  .button { width: 100%; justify-content: center; }
  .contents { padding-block: 60px 8px; }
  .toc a { grid-template-columns: 40px 1fr auto; gap: 12px; }
  .toc__dots { display: none; }
  .toc__go { grid-column: 2 / -1; }
  .section { padding-block: 62px; }
  .entries a { grid-template-columns: 40px 1fr 24px; gap: 6px 12px; }
  .entries__note { grid-column: 2; }
  .entries__dots { display: none; }
  .entries__go { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .registry a { grid-template-columns: 52px 1fr 20px; gap: 6px 14px; }
  .registry__desc { grid-column: 2; }
  .registry__go { grid-column: 3; grid-row: 1 / span 2; }
  .figures { grid-template-columns: 1fr; }
  .figures > div,
  .figures > div:not(:first-child) { min-height: 150px; padding: 22px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .figures > div:first-child { border-top: 0; }
  .dispatch a { grid-template-columns: 1fr 22px; gap: 10px 16px; }
  .dispatch__meta { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .footer__bottom a { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; }
}
