/* ==========================================================================
   ГКУ КО «Координационный центр системы долговременного ухода»
   Сине-золотая гамма, в шапке — герб Калужской области.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic-var.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --ink: #15233a;
  --ink-2: #47566d;
  --navy: #133766;
  --navy-2: #0d2a50;
  --blue: #1d5ca8;
  --blue-ink: #0f437f;
  --sky: #e8f0f9;
  --sky-2: #d3e2f3;
  --mist: #f4f6f9;
  --silver: #9db8da;
  --line: #d6dee9;
  --gold: #edb23a;
  --gold-2: #f6d58c;
  --gold-ink: #6b4500;
  --green: #1f7049;
  --red: #b3261e;
  --bg: #ffffff;
  --surface: #ffffff;

  --font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 22px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--blue-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.6; color: var(--ink);
  background: var(--bg); font-feature-settings: "kern", "calt"; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe, video { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--navy-2); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.ic--s { width: 1.05em; height: 1.05em; }
.ic--l { width: 2rem; height: 2rem; }
.ic--xl { width: 3rem; height: 3rem; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--gold); color: #000; padding: 12px 18px; border-radius: var(--r-s); font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font: 600 1rem/1.2 var(--font); padding: .8em 1.3em; border-radius: var(--r-s); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; background: var(--blue); color: #fff; transition: background .15s, color .15s, border-color .15s;
  min-height: 48px;
}
.btn:hover { background: var(--blue-ink); color: #fff; text-decoration: none; }
.btn--primary { background: var(--blue); }
.btn--gold { background: var(--gold); color: #1a1405; }
.btn--gold:hover { background: #dca12a; color: #000; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--lg { font-size: 1.0625rem; padding: .95em 1.6em; min-height: 56px; }
.btn--small { min-height: 40px; padding: .5em 1em; font-size: .95rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; display: inline-flex; gap: .4em; align-items: center; }
.linkbtn:hover { text-decoration: underline; }
.more { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.more .ic { transition: transform .15s; }
.more:hover .ic { transform: translateX(3px); }
.more--back:hover .ic { transform: translateX(-3px); }
.tag { display: inline-block; font-size: .8125rem; font-weight: 600; line-height: 1; padding: .45em .7em; border-radius: 99px; background: var(--sky); color: var(--navy); }
.tag--gold { background: var(--gold-2); color: var(--gold-ink); }
.tag--navy { background: var(--navy); color: #fff; }
.empty { color: var(--ink-2); padding: 1.5rem; background: var(--mist); border-radius: var(--r-m); }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--navy-2); color: #dfe8f4; font-size: .9375rem; }
.topbar__in { display: flex; align-items: center; gap: 1.25rem; min-height: 48px; flex-wrap: wrap; }
.topbar__item, .topbar__hot { white-space: nowrap; }
.topbar .topbar__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.topbar a, .topbar__item { color: #dfe8f4; text-decoration: none; display: inline-flex; align-items: center; gap: .5em; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__hot strong { color: #fff; font-weight: 600; letter-spacing: .01em; }
.topbar__hot .ic { color: var(--gold); }
.topbar__spacer { flex: 1; }
.topbar__btn {
  display: inline-flex; align-items: center; gap: .5em; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45);
  border-radius: 99px; padding: .4em 1em; font: 500 .9375rem/1.2 var(--font); cursor: pointer; min-height: 36px;
}
.topbar__btn:hover { background: rgba(255,255,255,.12); }
.topbar__btn .ic { color: var(--gold); }
.a11y-on-label { display: none; }
html.a11y .a11y-on-label { display: inline; }
html.a11y .a11y-off-label { display: none; }

/* ---------- Шапка ---------- */
.header { background: #fff; position: relative; z-index: 20; box-shadow: 0 1px 0 var(--line); }
.header__in { display: flex; align-items: center; gap: 1.5rem; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy-2); margin-right: auto; min-width: 0; }
.brand:hover { color: var(--navy-2); }
.brand__emblem { height: 72px; width: auto; flex: none; }
.brand__logo { width: 60px; height: 60px; flex: none; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__region { font-size: .8125rem; color: var(--ink-2); font-weight: 500; letter-spacing: .02em; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; line-height: 1.15; }
.hsearch { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: var(--mist); padding-left: 16px; width: 260px; }
.hsearch:focus-within { box-shadow: var(--focus); }
.hsearch input { border: 0; background: transparent; font: inherit; font-size: 1rem; padding: 10px 0; width: 100%; min-width: 0; color: var(--ink); }
.hsearch input:focus { outline: none; }
.hsearch button { border: 0; background: transparent; padding: 10px 14px; cursor: pointer; color: var(--navy); display: flex; }
.burger { display: none; align-items: center; gap: .4em; background: var(--navy); color: #fff; border: 0; border-radius: var(--r-s); padding: 10px 14px; font: 600 1rem var(--font); cursor: pointer; min-height: 48px; }

/* ---------- Меню ---------- */
.nav { background: var(--navy); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; }
.nav__item { position: relative; display: flex; align-items: stretch; }
.nav__link { color: #fff; text-decoration: none; font-weight: 500; font-size: 1.0625rem; padding: 15px 6px 15px 18px; display: flex; align-items: center; }
.nav__item:not(.has-sub) .nav__link { padding-right: 18px; }
.nav__link:hover { color: #fff; text-decoration: underline; text-underline-offset: .3em; }
.nav__item.is-active > .nav__link { box-shadow: inset 0 -4px 0 var(--gold); }
.nav__item:first-child .nav__link { padding-left: 0; }
.nav__toggle { background: transparent; border: 0; color: #c9d7ea; padding: 0 12px 0 2px; cursor: pointer; display: flex; align-items: center; }
.nav__toggle .ic { width: 18px; height: 18px; transition: transform .2s; }
.nav__item.is-open .nav__toggle .ic { transform: rotate(180deg); }
.nav__sub {
  position: absolute; left: 0; top: 100%; min-width: 340px; background: #fff; border-radius: 0 0 var(--r-m) var(--r-m);
  box-shadow: 0 18px 40px -12px rgba(13, 42, 80, .35); padding: 10px; display: none; z-index: 30; border-top: 4px solid var(--gold);
}
.nav__item:last-child .nav__sub, .nav__item:nth-last-child(2) .nav__sub { left: auto; right: 0; }
.nav__item.is-open .nav__sub { display: block; }
@media (hover: hover) and (min-width: 1101px) { .nav__item.has-sub:hover .nav__sub { display: block; } }
.nav__sub ul { list-style: none; margin: 0; padding: 0; }
.nav__sub a { display: block; padding: 10px 14px; border-radius: var(--r-s); text-decoration: none; color: var(--ink); }
.nav__sub a span { display: block; font-weight: 600; color: var(--navy-2); }
.nav__sub a small { display: block; font-size: .875rem; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.nav__sub a:hover { background: var(--sky); }
.nav__mobile-extra { display: none; }

/* ---------- Хлебные крошки ---------- */
.crumbs { padding-top: 20px; font-size: .9375rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; color: var(--ink-2); }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 12px 0 8px; opacity: .6; }
.crumbs a { color: var(--ink-2); }

/* ---------- Главный экран ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); position: relative; overflow: hidden; }
.hero::after { /* серебряная волна — Ока на гербе Калуги */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22c100-14 200-14 300 0s200 14 300 0 200-14 300 0 200 14 300 0v18H0z' fill='%23e8f0f9'/%3E%3Cpath d='M0 22c100-14 200-14 300 0s200 14 300 0 200-14 300 0 200 14 300 0' fill='none' stroke='%239db8da' stroke-width='3'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 88px); }
.hero__org { font-weight: 600; color: var(--blue); margin-bottom: .75rem; font-size: 1rem; }
.hero__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.1; letter-spacing: -.015em; margin-bottom: .45em; max-width: 19ch; text-wrap: balance; }
.hero__lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 36em; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2rem; }
.hero__hot { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--navy-2); padding: 14px 22px 14px 14px; background: #fff; border-radius: var(--r-l); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(13,42,80,.45); }
.hero__hot:hover { color: var(--navy-2); }
.hero__hot:hover .hero__hot-num { text-decoration: underline; text-decoration-thickness: 2px; }
.hero__hot-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #1a1405; display: grid; place-items: center; flex: none; }
.hero__hot-ic .ic { width: 26px; height: 26px; }
.hero__hot-label { display: block; font-size: .9rem; color: var(--ink-2); }
.hero__hot-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero__img { border-radius: var(--r-l); width: 100%; object-fit: cover; aspect-ratio: 5/4; }

/* Схема сети центров */
.net { margin: 0; }
.net__svg { width: 100%; height: auto; display: block; overflow: visible; }
.net__rings circle { fill: none; stroke: var(--sky-2); stroke-width: 1.5; }
.net__rings circle:first-child { fill: rgba(255,255,255,.55); }
.net__homes path { fill: var(--silver); opacity: .55; }
.net__links line { stroke: var(--navy); stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; fill: none; }
.net__dot { fill: #fff; stroke: var(--navy); stroke-width: 3; }
.net__node--hub .net__dot { fill: var(--navy); stroke: var(--gold); stroke-width: 4; }
.net__core { fill: var(--gold); }
.net__pulse { fill: none; stroke: var(--gold); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out infinite; }
.net__city { font-family: var(--font-head); font-weight: 700; font-size: 22px; fill: var(--navy-2); paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 5px; stroke-linejoin: round; }
.net__role { font-family: var(--font); font-size: 14px; fill: var(--ink-2); paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 4px; stroke-linejoin: round; }
.net__cap { font-size: .95rem; color: var(--ink-2); max-width: 32em; margin: 8px auto 0; text-align: center; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes dash { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.net__links line { animation: dash 1.6s ease-out both; }

/* ---------- Секции главной ---------- */
.band { padding: clamp(48px, 6vw, 84px) 0; }
.band--sky { background: var(--sky); }
.band--mist { background: var(--mist); }
.band--tight { padding: 40px 0 56px; }
.band__head { margin-bottom: 2rem; max-width: 46rem; }
.band__head h2 { margin-bottom: .25em; }
.band__head p { color: var(--ink-2); margin: 0; }
.band__head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; max-width: none; flex-wrap: wrap; }
.h-small { font-size: 1.35rem; margin-bottom: 1.25rem; }

/* Шаги — настоящая последовательность, поэтому с номерами */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.step { position: relative; padding: 0 28px 0 0; }
.step::before { content: ""; position: absolute; top: 27px; left: 56px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--silver) 0 6px, transparent 6px 12px); }
.step:last-child::before { display: none; }
.step__num { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 1.5rem/1 var(--font-head); position: relative; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--sky); }
.step:first-child .step__num { background: var(--gold); color: #1a1405; }
.step__title { font-size: 1.25rem; margin-bottom: .4em; }
.step p { color: var(--ink-2); font-size: 1rem; margin: 0; }
.prose .steps { margin: 1.5rem 0 2rem; }
.prose .step::before { top: 23px; left: 48px; }
.prose .step__num { width: 48px; height: 48px; font-size: 1.25rem; box-shadow: 0 0 0 6px #fff; }

/* Услуги */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.service { grid-column: span 2; display: flex; gap: 18px; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); position: relative; }
.service:nth-child(n+4) { grid-column: span 3; }
.service--lead { grid-column: span 2; }
.service__ic { color: var(--blue); flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--sky); display: grid; place-items: center; }
.service h3 { font-size: 1.25rem; margin-bottom: .3em; }
.service h3 a { color: var(--navy-2); text-decoration: none; }
.service h3 a::after { content: ""; position: absolute; inset: 0; }
.service:hover h3 a { text-decoration: underline; text-decoration-thickness: 2px; }
.service:hover .service__ic { background: var(--navy); color: #fff; }
.service p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.service a:focus-visible::after { box-shadow: var(--focus); border-radius: var(--r-s); }

/* Новости на главной */
.news-home { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.news-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; background: #fff; border-radius: var(--r-m); overflow: hidden; margin-bottom: 8px; }
.news-lead__img { display: block; background: var(--sky); min-height: 220px; }
.news-lead__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-lead__body { padding: 24px 24px 24px 0; }
.news-lead h3 { font-size: 1.4rem; }
.news-lead h3 a, .news-row h3 a { color: var(--navy-2); text-decoration: none; }
.news-lead h3 a:hover, .news-row h3 a:hover { text-decoration: underline; }
.news-lead p { color: var(--ink-2); font-size: 1rem; margin: 0; }
time, .ncard__meta { font-size: .9375rem; color: var(--ink-2); }
.news-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-row h3 { font-size: 1.125rem; font-family: var(--font); font-weight: 600; margin: .2em 0 0; line-height: 1.35; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: inherit; color: var(--silver);
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12c15-8 30-8 45 0s30 8 45 0 22-6 30-3' fill='none' stroke='%239db8da' stroke-opacity='.45' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 120px 24px; }
.ph .ic { display: none; }
.side-h { display: flex; align-items: center; gap: .5em; font-size: 1.25rem; padding-bottom: .6em; border-bottom: 2px solid var(--navy); }
.side-h .ic { color: var(--blue); }
.ann { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ann__date { flex: none; width: 64px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px 4px; font-size: .8125rem; color: var(--ink-2); line-height: 1.2; }
.ann__date strong { display: block; font: 700 1.5rem/1.1 var(--font-head); color: var(--navy-2); }
.ann__date--soon { display: grid; place-items: center; font-weight: 600; color: var(--gold-ink); background: var(--gold-2); border-color: var(--gold-2); }
.ann h4 { font-family: var(--font); font-size: 1.0625rem; font-weight: 600; margin: 0 0 .2em; line-height: 1.35; }
.ann h4 a { color: var(--navy-2); text-decoration: none; }
.ann h4 a:hover { text-decoration: underline; }
.ann p { font-size: .9375rem; color: var(--ink-2); margin: 0; }

/* Центры */
.centers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.centers__list { list-style: none; margin: 0; padding: 0; }
.center { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.center:first-child { padding-top: 0; }
.center__num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.center h3 { font-size: 1.15rem; margin-bottom: .2em; }
.center__terr { color: var(--blue); font-weight: 500; font-size: .95rem; margin-bottom: .4em; }
.center__line { display: flex; gap: .5em; align-items: flex-start; font-size: 1rem; margin: 0 0 .2em; color: var(--ink-2); }
.center__line .ic { margin-top: .25em; color: var(--blue); }

/* Карта */
.map { border-radius: var(--r-m); overflow: hidden; background: var(--sky); border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; }
.map--compact iframe { height: 460px; }
.map-legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .95rem; color: var(--ink-2); }
.map-legend li { display: flex; align-items: center; gap: 8px; }
.map-legend__n { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .8125rem; font-weight: 700; }

/* FAQ */
.faq-home { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.faq__h { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.faq__h:first-child { margin-top: 0; }
.faq__item { background: #fff; border-radius: var(--r-m); margin-bottom: 10px; border: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 22px; font-weight: 600; font-size: 1.0625rem; color: var(--navy-2); border-radius: var(--r-m); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blue); }
.faq__ic { color: var(--blue); transition: transform .2s; }
.faq__item[open] .faq__ic { transform: rotate(45deg); }
.faq__item[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--r-m) var(--r-m) 0 0; }
.faq__a { padding: 16px 22px 6px; }

/* Горячая линия */
.hotline { display: flex; align-items: center; gap: 20px; background: var(--navy); color: #e6eef8; border-radius: var(--r-l); padding: 24px 28px; margin: 1.75rem 0; position: relative; overflow: hidden; }
.hotline::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 24px solid rgba(157, 184, 218, .12); pointer-events: none; }
.hotline__ic { width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: #1a1405; display: grid; place-items: center; flex: none; }
.hotline__body { flex: 1; min-width: 0; }
.hotline__label { margin: 0; font-size: .95rem; color: #c3d3e8; }
.hotline__num { display: inline-block; font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--font-head); color: #fff; text-decoration: none; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.hotline__num:hover { color: #fff; text-decoration: underline; }
.hotline__note { margin: 0; font-size: .95rem; color: #c3d3e8; }
.hotline__btn { background: #fff; color: var(--navy); flex: none; position: relative; z-index: 1; }
.hotline__btn:hover { background: var(--gold); color: #000; }
.hotline--v { flex-direction: column; align-items: flex-start; margin: 0; }
.hotline--v .hotline__btn { align-self: stretch; }

/* Ресурсы */
.resources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.resource { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--ink); height: 100%; background: #fff; }
.resource:hover { border-color: var(--blue); color: var(--ink); }
.resource img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.resource__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--sky); color: var(--navy); display: grid; place-items: center; flex: none; }
.resource strong { display: block; font-size: .975rem; line-height: 1.3; color: var(--navy-2); }
.resource small { display: block; font-size: .85rem; color: var(--ink-2); margin-top: 2px; }

/* ---------- Внутренние страницы ---------- */
.page { padding-top: 24px; padding-bottom: 72px; }
.page--nav { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start; }
.page__main { min-width: 0; max-width: 860px; }
.page--wide .page__main { max-width: none; }
.page__head { margin-bottom: 1.75rem; }
.page__head h1 { margin-bottom: .3em; }
.page__lead { font-size: 1.2rem; color: var(--ink-2); }
.page__foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.page__foot p { margin: 0; }
.module { margin-top: 2rem; }
.module > h2 { margin-top: 2.5rem; }
.module > h2:first-child { margin-top: 0; }
.prose + .module--contacts, .module--contacts { margin-top: 0; }

.subnav { position: sticky; top: 16px; }
.subnav__box { background: var(--mist); border-radius: var(--r-m); padding: 8px; }
.subnav__title { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px; cursor: default; }
.subnav__title::-webkit-details-marker { display: none; }
.subnav__title a { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--navy-2); text-decoration: none; }
.subnav__title a:hover { text-decoration: underline; }
.subnav__chev { display: none; }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav li a { display: block; padding: 10px 14px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.35; border-left: 3px solid transparent; }
.subnav li a:hover { background: #fff; color: var(--blue-ink); }
.subnav li a.is-on { background: #fff; border-left-color: var(--gold); font-weight: 600; color: var(--navy-2); }

/* Типографика содержимого */
.prose { max-width: 46rem; }
.page--wide .prose { max-width: 52rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--blue); }
.prose ol > li::marker { font-weight: 700; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--gold); background: var(--mist); border-radius: 0 var(--r-m) var(--r-m) 0; }
.prose img { border-radius: var(--r-m); }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .9375rem; color: var(--ink-2); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.75rem; font-size: 1rem; display: block; overflow-x: auto; }
.prose table tbody, .prose table thead { display: table; width: 100%; }
.prose table thead + tbody { display: table-row-group; }
.prose table thead { display: table-header-group; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--navy); color: #fff; font-weight: 600; }
.prose table.facts th { width: 34%; font-weight: 600; color: var(--navy-2); background: var(--mist); }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--r-m); }
.prose .btn { color: #fff; text-decoration: none; }
.file-link { display: inline-flex; gap: .5em; align-items: center; font-weight: 600; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; }
.file-link::before { content: "PDF"; font-size: .75rem; font-weight: 700; background: var(--red); color: #fff; padding: 3px 6px; border-radius: 4px; }
.links-list { list-style: none; padding: 0 !important; }
.links-list li { border-bottom: 1px solid var(--line); margin: 0; }
.links-list a { display: block; padding: 14px 0; font-weight: 500; }

/* Подразделы раздела */
.subpages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.subpage { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ic t arr" "ic d arr"; column-gap: 16px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--ink); height: 100%; }
.subpage:hover { border-color: var(--blue); background: var(--mist); color: var(--ink); }
.subpage__ic { grid-area: ic; color: var(--blue); }
.subpage__t { grid-area: t; font-weight: 600; font-size: 1.125rem; color: var(--navy-2); line-height: 1.3; }
.subpage__d { grid-area: d; font-size: .95rem; color: var(--ink-2); margin-top: 4px; }
.subpage__arr { grid-area: arr; color: var(--blue); }

/* Документы */
.docs__h { font-size: 1.35rem; margin: 2.25rem 0 .75rem; }
.docs__h:first-child { margin-top: 0; }
.doclist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.doc__ext { flex: none; width: 52px; height: 60px; border-radius: 6px 16px 6px 6px; background: var(--sky); color: var(--navy); font-weight: 700; font-size: .75rem; display: grid; place-items: end center; padding-bottom: 10px; letter-spacing: .02em; }
.doc__body { flex: 1; min-width: 0; }
.doc__t { font-weight: 600; color: var(--navy-2); text-decoration: none; line-height: 1.4; }
.doc__t:hover { text-decoration: underline; color: var(--blue-ink); }
.doc__m { margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.doc__d { margin: 6px 0 0; font-size: .95rem; color: var(--ink-2); }
.doc__dl { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue); }
.doc__dl:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Новости — список */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.75rem; align-items: center; }
.filters__sep { width: 1px; height: 28px; background: var(--line); margin: 0 6px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .975rem; font-weight: 500; }
.chip:hover { border-color: var(--blue); color: var(--blue-ink); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.page--nav .ngrid { grid-template-columns: repeat(2, 1fr); }
.ncard { display: flex; flex-direction: column; }
.ncard__img { display: block; aspect-ratio: 16/10; border-radius: var(--r-m); overflow: hidden; background: var(--sky); margin-bottom: 14px; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ncard:hover .ncard__img img { transform: scale(1.03); }
.ncard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; }
.ncard__meta span { display: inline-flex; gap: .35em; align-items: center; }
.ncard h3 { font-size: 1.2rem; margin-bottom: .35em; line-height: 1.3; }
.ncard h3 a { color: var(--navy-2); text-decoration: none; }
.ncard h3 a:hover { text-decoration: underline; }
.ncard p { color: var(--ink-2); font-size: 1rem; margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 2.5rem; flex-wrap: wrap; }
.pager ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.pager a, .pager span { display: inline-flex; align-items: center; gap: .3em; min-width: 44px; min-height: 44px; justify-content: center; padding: 0 12px; border-radius: var(--r-s); text-decoration: none; border: 1px solid var(--line); }
.pager span[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
.pager__gap { align-self: center; padding: 0 4px; }

/* Новость */
.page--article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.article { max-width: 780px; }
.article__meta { display: flex; gap: 12px; align-items: center; margin-bottom: .75rem; }
.article__img { margin: 0 0 2rem; }
.article__img img { width: 100%; border-radius: var(--r-l); display: block; }
.article__img figcaption { font-size: .95rem; color: var(--ink-2); margin-top: 8px; }
.article__more { position: sticky; top: 16px; padding-top: 8px; }
.event { display: flex; flex-wrap: wrap; gap: 8px 32px; background: var(--gold-2); padding: 14px 20px; border-radius: var(--r-m); margin: 1rem 0 0; }
.event div { display: flex; gap: 8px; }
.event dt { font-weight: 600; display: flex; gap: .35em; align-items: center; }
.event dd { margin: 0; }

/* Галерея */
.albums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.album-card a { display: block; text-decoration: none; color: var(--ink); }
.album-card__img { display: block; aspect-ratio: 4/3; border-radius: var(--r-m); overflow: hidden; background: var(--sky); margin-bottom: 12px; }
.album-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-card__t { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--navy-2); }
.album-card a:hover .album-card__t { text-decoration: underline; }
.album-card__m { display: block; font-size: .9375rem; color: var(--ink-2); }
.photos { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.photos a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-s); background: var(--sky); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.photos a:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 14, 28, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(1200px, 90vw); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; border-radius: var(--r-s); }
.lightbox figcaption { color: #fff; margin-top: 10px; }
.lightbox__close, .lightbox__nav { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Подразделения, контакты */
.divisions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.page--nav .divisions { grid-template-columns: 1fr; }
.division { border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; background: #fff; }
.division__head { margin-bottom: 1rem; }
.division__head h3 { margin: .6em 0 .25em; font-size: 1.25rem; }
.division__terr { color: var(--ink-2); font-size: .975rem; margin: 0; }
.division__dl { margin: 0; display: grid; gap: 10px; }
.division__dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.division__dl dt { color: var(--ink-2); display: flex; gap: .45em; align-items: flex-start; font-size: .975rem; }
.division__dl dt .ic { margin-top: .2em; color: var(--blue); }
.division__dl dd { margin: 0; }
.division__map { font-size: .9375rem; white-space: nowrap; }
.division__desc { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 1rem; }
.contacts-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; margin-bottom: 3rem; align-items: start; }
.contacts-main { border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; }

/* Руководство */
.leaders { display: grid; gap: 20px; }
.leader { display: grid; grid-template-columns: 200px 1fr; gap: 28px; border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; }
.leader__photo { aspect-ratio: 4/5; border-radius: var(--r-m); overflow: hidden; background: var(--sky); }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leader__pos { color: var(--blue); font-weight: 600; margin: 0 0 .25em; }
.leader__name { font-size: 1.6rem; }
.leader__contacts { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 8px; }
.leader__contacts li { display: flex; gap: .5em; align-items: flex-start; }
.leader__contacts .ic { margin-top: .3em; color: var(--blue); }

/* Форма обращения */
.form { background: var(--mist); border-radius: var(--r-l); padding: clamp(20px, 3vw, 36px); }
.form__note { font-size: .95rem; color: var(--ink-2); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--navy-2); font-size: 1rem; }
.field__opt { font-weight: 400; color: var(--ink-2); }
.req { color: var(--red); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea, .search-big input {
  font: inherit; font-size: 1.0625rem; padding: 12px 14px; border: 1.5px solid #b9c6d8; border-radius: var(--r-s); background: #fff; color: var(--ink); width: 100%; min-height: 50px;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus, .search-big input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 92, 168, .25); }
.field [aria-invalid=true] { border-color: var(--red); }
.field__err { color: var(--red); font-size: .95rem; margin: 0; display: flex; gap: .4em; align-items: center; }
.field__hint { font-size: .9rem; color: var(--ink-2); margin: 0; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.field--check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.field--check label { font-weight: 400; flex: 1; min-width: 0; color: var(--ink); }
.field--check .field__err { flex-basis: 100%; }
.field input[type=file] { font-size: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 16px; padding: 20px 24px; border-radius: var(--r-m); margin-bottom: 1.5rem; }
.notice--ok { background: #e6f4ec; color: #0f4a2c; }
.notice--err { background: #fbeceb; color: #6d1510; }
.notice__t { font-weight: 700; margin-bottom: .3em; }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice p:last-child { margin: 0; }

/* Поиск */
.search-big { display: flex; gap: 10px; margin-bottom: 1.5rem; }
.search-big input { flex: 1; }
.search-count { color: var(--ink-2); }
.results { list-style: none; padding: 0; margin: 0; }
.results li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.results h2 { font-size: 1.25rem; margin: .5em 0 .3em; }
.results p { margin: 0; color: var(--ink-2); font-size: 1rem; }

.sitemap ul { list-style: none; padding-left: 0; margin: 0; }
.sitemap ul ul { padding-left: 1.5rem; border-left: 2px solid var(--line); margin: 6px 0 12px 6px; }
.sitemap li { margin: 6px 0; }
.sitemap > ul > li > a { font-weight: 600; font-size: 1.125rem; }

.error-page { text-align: center; max-width: 36rem; margin: 40px auto; }
.error-page__code { font: 700 6rem/1 var(--font-head); color: var(--sky-2); margin: 0; }
.error-page__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Подвал ---------- */
.footer { background: var(--navy-2); color: #c8d6e8; position: relative; margin-top: 0; font-size: 1rem; }
.footer__wave { height: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14c100-10 200-10 300 0s200 10 300 0 200-10 300 0 200 10 300 0' fill='none' stroke='%239db8da' stroke-opacity='.5' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-top: 40px; padding-bottom: 40px; }
.footer__name { font-family: var(--font-head); font-size: 1.2rem; color: #fff; line-height: 1.35; font-weight: 600; }
.footer__h { color: #fff; font-weight: 700; margin-bottom: .8em; }
.footer__nav ul, .footer__list, .footer__social { list-style: none; margin: 0; padding: 0; }
.footer__nav li { margin-bottom: .5em; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__list li { display: flex; gap: 10px; margin-bottom: .7em; }
.footer__list .ic { color: var(--gold); margin-top: .2em; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.footer__social a { display: inline-block; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 6px 14px; text-decoration: none; font-size: .95rem; }
.footer__social a:hover { background: rgba(255,255,255,.12); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; padding-bottom: 28px; font-size: .9375rem; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: #fff; color: var(--ink); border-radius: var(--r-m); box-shadow: 0 16px 48px -12px rgba(13,42,80,.45); padding: 16px 20px; display: flex; gap: 16px; align-items: center; font-size: .95rem; border: 1px solid var(--line); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1300px) {
  .topbar .topbar__hide-xl { display: none; }
}
@media (max-width: 1240px) {
  .hsearch { width: 200px; }
}
@media (max-width: 1140px) {
  .topbar .topbar__hide-l { display: none; }
}
@media (max-width: 1100px) {
  .hsearch { display: none; }
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 20px 40px -16px rgba(13,42,80,.4); max-height: calc(100vh - 120px); overflow-y: auto; border-top: 1px solid var(--line); }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding: 8px 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__link, .nav__item:first-child .nav__link, .nav__item:not(.has-sub) .nav__link { color: var(--navy-2); padding: 14px 0; flex: 1; font-size: 1.125rem; font-weight: 600; }
  .nav__link:hover { color: var(--blue); }
  .nav__item.is-active > .nav__link { box-shadow: none; color: var(--blue); }
  .nav__toggle { color: var(--navy); padding: 0 6px 0 16px; min-width: 48px; justify-content: center; }
  .nav__sub, .nav__item:last-child .nav__sub, .nav__item:nth-last-child(2) .nav__sub { position: static; box-shadow: none; border: 0; min-width: 0; width: 100%; padding: 0 0 12px; border-radius: 0; }
  .nav__sub a { padding: 10px 12px; }
  .nav__sub a small { display: none; }
  .nav__mobile-extra { display: flex; flex-direction: column; gap: 14px; padding: 16px 0 24px; }
  .nav__phone { display: inline-flex; gap: .5em; align-items: center; font-weight: 600; font-size: 1.125rem; text-decoration: none; color: var(--navy-2); }
  .header { position: sticky; top: 0; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .step:nth-child(2)::before { display: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .service, .service:nth-child(n+4), .service--lead { grid-column: span 1; }
  .news-home, .centers, .faq-home { grid-template-columns: 1fr; }
  .resources { grid-template-columns: repeat(2, 1fr); }
  .page--nav { grid-template-columns: 1fr; gap: 20px; }
  .subnav { position: static; }
  .subnav__title { cursor: pointer; }
  .subnav__chev { display: block; color: var(--navy); transition: transform .2s; }
  .subnav__box:not([open]) .subnav__chev { transform: rotate(-90deg); }
  .page--article { grid-template-columns: 1fr; }
  .article__more { position: static; }
  .contacts-top { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__org { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .topbar .topbar__hide-m { display: none; }
  .topbar__in { gap: 1rem; }
  .brand__logo { width: 48px; height: 48px; }
  .brand__emblem { height: 54px; }
  .brand__name { font-size: 1.05rem; }
  .brand__region { font-size: .75rem; }
  .burger span { display: none; }
  .ngrid, .page--nav .ngrid, .albums, .divisions, .subpages { grid-template-columns: 1fr; }
  .news-lead { grid-template-columns: 1fr; gap: 0; }
  .news-lead__body { padding: 20px; }
  .services { grid-template-columns: 1fr; }
  .service { padding-right: 0; }
  .form__grid { grid-template-columns: 1fr; }
  .hotline { flex-direction: column; align-items: flex-start; }
  .hotline__btn { align-self: stretch; }
  .leader { grid-template-columns: 1fr; }
  .leader__photo { max-width: 200px; }
  .division__dl > div { grid-template-columns: 1fr; gap: 2px; }
  .map iframe, .map--compact iframe { height: 340px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .search-big { flex-direction: column; }
  .cookie { flex-direction: column; align-items: stretch; }
  .net__city { font-size: 28px; }
  .net__role { display: none; }
}
@media (max-width: 520px) {
  .topbar .topbar__hide-s { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 28px 76px; min-height: 84px; }
  .step__num { position: absolute; left: 0; top: 0; margin: 0; }
  .step::before, .step:nth-child(2)::before { display: block; top: 56px; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--silver) 0 6px, transparent 6px 12px); }
  .step:last-child::before { display: none; }
  .prose .step { padding-left: 64px; }
  .prose .step::before { left: 23px; top: 48px; }
  .resources { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__hot { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Версия для слабовидящих (ГОСТ Р 52872-2019)
   ========================================================================== */
.a11y-panel { display: none; background: #fff; border-bottom: 3px solid #000; color: #000; font-family: Arial, sans-serif; }
html.a11y .a11y-panel { display: block; }
.a11y-panel__in { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-top: 14px; padding-bottom: 14px; align-items: flex-end; }
.a11y-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.a11y-group__label { width: 100%; font-size: 15px; font-weight: 700; }
.a11y-panel button { font: 600 16px/1 Arial, sans-serif; min-height: 40px; min-width: 40px; padding: 0 12px; border: 2px solid #000; background: #fff; color: #000; border-radius: 4px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.a11y-panel button[aria-pressed=true] { background: #000; color: #fff; }
.a11y-panel button:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #000; }
.a11y-fs0 { font-size: 15px !important; }
.a11y-fs1 { font-size: 20px !important; }
.a11y-fs2 { font-size: 26px !important; }
.a11y-panel .a11y-sw1 { background: #fff; color: #000; }
.a11y-panel .a11y-sw2 { background: #000; color: #fff; }
.a11y-panel .a11y-sw3 { background: #9dd1ff; color: #063462; }
.a11y-panel .a11y-sw4 { background: #f7f3d6; color: #4d4b43; }
.a11y-panel .a11y-sw5 { background: #3b2716; color: #a9e44d; }
.a11y-panel .a11y-sw[aria-pressed=true] { outline: 3px solid #e00; outline-offset: 2px; }

/* базовые изменения в режиме */
html.a11y { --r-s: 4px; --r-m: 4px; --r-l: 6px; }
html.a11y body { font-size: 1.25rem; }
html.a11y-fs-1 { font-size: 125%; }
html.a11y-fs-2 { font-size: 160%; }
html.a11y a { text-decoration: underline; }
html.a11y *, html.a11y *::before, html.a11y *::after { animation: none !important; transition: none !important; }
html.a11y .hero::after, html.a11y .footer__wave, html.a11y .hotline::after, html.a11y .net__rings, html.a11y .net__homes, html.a11y .net__pulse { display: none; }
html.a11y .hero { background: var(--bg); }
html.a11y :focus-visible { box-shadow: 0 0 0 4px var(--a11y-fg, #000); }
html.a11y .ncard__img, html.a11y .news-lead__img, html.a11y .ph { display: none; }
html.a11y .ncard:has(img) .ncard__img, html.a11y .news-lead__img:has(img) { display: block; }
html.a11y-ff-serif body, html.a11y-ff-serif h1, html.a11y-ff-serif h2, html.a11y-ff-serif h3, html.a11y-ff-serif h4, html.a11y-ff-serif .btn, html.a11y-ff-serif input, html.a11y-ff-serif select, html.a11y-ff-serif textarea { font-family: "Lora", Georgia, "Times New Roman", serif !important; }
html.a11y-ff-sans h1, html.a11y-ff-sans h2, html.a11y-ff-sans h3, html.a11y-ff-sans h4, html.a11y-ff-sans .hero__hot-num, html.a11y-ff-sans .hotline__num, html.a11y-ff-sans .brand__name { font-family: Arial, "Inter", sans-serif !important; }
html.a11y-ls-1 body { letter-spacing: .06em; }
html.a11y-ls-2 body { letter-spacing: .12em; word-spacing: .16em; }
html.a11y-lh-1 body, html.a11y-lh-1 p, html.a11y-lh-1 li { line-height: 1.9; }
html.a11y-lh-2 body, html.a11y-lh-2 p, html.a11y-lh-2 li { line-height: 2.3; }
html.a11y-img-g img, html.a11y-img-g iframe, html.a11y-img-g .net__svg { filter: grayscale(1); }
html.a11y-img-0 img, html.a11y-img-0 .hero__art, html.a11y-img-0 .ncard__img, html.a11y-img-0 .news-lead__img, html.a11y-img-0 .album-card__img, html.a11y-img-0 .leader__photo, html.a11y-img-0 .photos img, html.a11y-img-0 .resource img, html.a11y-img-0 .article__img img { display: none !important; }
html.a11y-img-0 .hero__in { grid-template-columns: 1fr; }
html.a11y-img-0 .photos a::after { content: attr(data-caption); display: block; padding: 8px; }

/* Цветовые схемы: переопределяем все цвета через переменные */
html.a11y-cs-1 { --a11y-bg: #ffffff; --a11y-fg: #000000; --a11y-link: #000000; }
html.a11y-cs-2 { --a11y-bg: #000000; --a11y-fg: #ffffff; --a11y-link: #ffffff; }
html.a11y-cs-3 { --a11y-bg: #9dd1ff; --a11y-fg: #063462; --a11y-link: #063462; }
html.a11y-cs-4 { --a11y-bg: #f7f3d6; --a11y-fg: #4d4b43; --a11y-link: #4d4b43; }
html.a11y-cs-5 { --a11y-bg: #3b2716; --a11y-fg: #a9e44d; --a11y-link: #a9e44d; }
html[class*="a11y-cs-"] body,
html[class*="a11y-cs-"] body *:not(.a11y-panel):not(.a11y-panel *):not(svg *) {
  background-color: var(--a11y-bg) !important; background-image: none !important; color: var(--a11y-fg) !important;
  border-color: var(--a11y-fg) !important; box-shadow: none !important; text-shadow: none !important;
}
html[class*="a11y-cs-"] body a:not(.a11y-panel *) { color: var(--a11y-link) !important; }
html[class*="a11y-cs-"] .btn, html[class*="a11y-cs-"] .chip, html[class*="a11y-cs-"] .faq__item, html[class*="a11y-cs-"] .division, html[class*="a11y-cs-"] .hotline, html[class*="a11y-cs-"] .resource, html[class*="a11y-cs-"] .subpage, html[class*="a11y-cs-"] .doc__dl, html[class*="a11y-cs-"] .news-lead, html[class*="a11y-cs-"] .form, html[class*="a11y-cs-"] .contacts-main, html[class*="a11y-cs-"] .leader, html[class*="a11y-cs-"] .hero__hot, html[class*="a11y-cs-"] .subnav__box, html[class*="a11y-cs-"] .step__num, html[class*="a11y-cs-"] .center__num, html[class*="a11y-cs-"] .tag, html[class*="a11y-cs-"] .doc__ext, html[class*="a11y-cs-"] .ann__date, html[class*="a11y-cs-"] .notice { border: 2px solid var(--a11y-fg) !important; }
html[class*="a11y-cs-"] .nav, html[class*="a11y-cs-"] .topbar, html[class*="a11y-cs-"] .footer { border-top: 2px solid var(--a11y-fg) !important; border-bottom: 2px solid var(--a11y-fg) !important; }
html[class*="a11y-cs-"] svg:not(.a11y-panel svg) { color: var(--a11y-fg) !important; }
html[class*="a11y-cs-"] .net__svg * { stroke: var(--a11y-fg) !important; }
html[class*="a11y-cs-"] .net__svg text, html[class*="a11y-cs-"] .net__svg tspan { fill: var(--a11y-fg) !important; stroke: none !important; }
html[class*="a11y-cs-"] .net__dot, html[class*="a11y-cs-"] .net__core { fill: var(--a11y-bg) !important; }
html[class*="a11y-cs-"] .nav__item.is-active > .nav__link { text-decoration: underline; text-decoration-thickness: 3px; }
html[class*="a11y-cs-"] .prose thead th { font-weight: 700; }
html[class*="a11y-cs-"] .file-link::before { border: 1px solid var(--a11y-fg); }
html[class*="a11y-cs-"] .map { display: block; }

/* ---------- Печать ---------- */
@media print {
  .topbar, .header, .nav, .crumbs, .footer, .subnav, .cookie, .a11y-panel, .page__foot, .hero__actions, .article__more, .lightbox, .burger, .hsearch { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; }
  .page--nav, .page--article { display: block; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}
