/* МУП «Волжское ЖКХ» — дизайн-система: светлый официальный интерфейс, сдержанное матовое стекло */

/* ---------- Токены ---------- */
:root {
  /* цвет */
  --bg: #f5f7fa;
  --surface: #fff;
  --surface-2: #f0f4f9;
  --ink: #0d1b2e;
  --ink-2: #33445a;
  --muted: #5f6e82;
  --line: #e1e7ef;
  --line-2: #cdd6e2;
  --primary: #0b4ea2;
  --primary-h: #083d80;
  --primary-soft: #e9f1fb;
  --water: #2f8be6;
  --sky: #d7ebfb;
  --danger: #c0352b;
  --danger-soft: #fdf0ee;
  --ok: #17734a;
  /* стекло */
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .86);
  --glass-border: rgba(255, 255, 255, .7);
  --blur: 18px;
  /* тени */
  --sh-1: 0 1px 2px rgba(13, 27, 46, .06);
  --sh-2: 0 1px 2px rgba(13, 27, 46, .05), 0 8px 24px -12px rgba(13, 27, 46, .18);
  --sh-3: 0 2px 6px rgba(13, 27, 46, .06), 0 24px 48px -20px rgba(13, 27, 46, .28);
  /* форма */
  --r-xs: 6px; --r-sm: 10px; --r: 14px; --r-lg: 20px;
  /* отступы */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --wrap: 1200px;
  --header-h: 72px;
  /* типографика */
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --fs-xs: .8125rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem; --fs-lg: 1.375rem;
  --fs-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem); --fs-2xl: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  --lh: 1.6; --ls: 0;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-base)/var(--lh) var(--font); letter-spacing: var(--ls); -webkit-font-smoothing: antialiased;
}
main { flex: 1; outline: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-h); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: var(--fs-2xl); font-weight: 700; }
h2 { font-size: var(--fs-xl); font-weight: 680; }
h3 { font-size: var(--fs-md); font-weight: 640; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; border-radius: var(--r-xs); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-sm); background: var(--primary); color: #fff; }
.skip:focus { top: 12px; color: #fff; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
.ic--xs { width: .9em; height: .9em; margin-left: .3em; opacity: .6; }
.flip { transform: scaleX(-1); }

/* ---------- Стекло (ограниченно: шапка, панели поверх фото, меню, оверлеи) ---------- */
.glass {
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--sh-2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%); backdrop-filter: blur(var(--blur)) saturate(150%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: var(--glass-strong); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
a.card { color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-1px); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .65em 1.25em;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--primary);
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--primary); color: var(--primary-h); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(11, 78, 162, .6); }
.btn--primary:hover { background: var(--primary-h); border-color: var(--primary-h); color: #fff; }
.btn--text { border-color: transparent; background: none; padding-inline: .2em; min-height: 40px; }
.btn--text:hover { text-decoration: underline; }
.btn--sm { min-height: 38px; padding: .45em .95em; font-size: var(--fs-sm); }
.btn--lg { min-height: 52px; padding: .8em 1.5em; font-size: var(--fs-md); }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { color: #fff; filter: brightness(.92); }
.btn--glass { background: var(--glass-strong); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r-sm);
  border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.icon-btn--sm { width: 38px; height: 38px; }
.link-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-more .ic { transition: transform .15s; }
.link-more:hover .ic { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid rgba(225, 231, 239, .8); border-radius: 0; border-left: 0; border-right: 0; border-top: 0; box-shadow: 0 1px 0 rgba(13, 27, 46, .02); }
.header__in { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.header .wrap { width: min(1320px, 100% - 40px); }
.logo { display: grid; gap: 2px; color: var(--ink); text-decoration: none; min-width: 0; flex: none; }
.logo:hover { color: var(--ink); }
.logo img { height: 44px; width: auto; }
.logo__name { font-size: 1.15rem; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; line-height: 1.2; }
.logo__place { display: flex; align-items: center; gap: 4px; font-size: .75rem; line-height: 1.3; color: var(--muted); max-width: 250px; }
.logo__place > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo__place .ic { color: var(--water); width: 13px; height: 13px; }
.nav { min-width: 0; }
.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav li { position: relative; display: flex; align-items: center; }
.nav li > a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); color: var(--ink-2); font-size: .95rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.nav li > a:hover { color: var(--primary); background: var(--primary-soft); }
.nav li.is-active > a { color: var(--primary); font-weight: 650; }
.nav li.has-sub > a { padding-right: 2px; }
.nav__toggle { display: grid; place-items: center; width: 26px; height: 44px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: var(--r-xs); }
.nav__toggle .ic { width: 15px; height: 15px; transition: transform .15s; }
.sub {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 5; min-width: 320px; padding: 8px; display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s ease;
}
.sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav li.has-sub:hover .sub, .nav li.has-sub:focus-within .sub, .nav li.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.nav li.is-open .nav__toggle .ic { transform: rotate(180deg); }
.sub__link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 520; }
.sub__link:hover { background: var(--primary-soft); color: var(--primary); }
.sub__ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; color: var(--primary); background: var(--primary-soft); }
.nav__extra { display: none; }
.header__actions { display: flex; align-items: center; gap: 2px; }
.header__cta { margin-left: 8px; white-space: nowrap; }
.burger { display: none; }
.only-open { display: none; }

@media (max-width: 1240px) { .header__cta span { display: none; } .header__cta { width: 46px; padding: 0; } }
@media (max-width: 1100px) { .logo__place { display: none; } }
@media (max-width: 1000px) {
  :root { --header-h: 64px; }
  /* Размытие фона делает шапку контейнером для position: fixed — меню обрезалось бы по её высоте */
  .header { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .burger { display: inline-grid; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; margin: 0; padding: 12px 16px calc(96px + env(safe-area-inset-bottom));
    overflow: auto; background: var(--surface); border-top: 1px solid var(--line); opacity: 0; visibility: hidden; transition: .15s ease;
  }
  :root.nav-open { overflow: hidden; }
  :root.nav-open .nav { opacity: 1; visibility: visible; }
  :root.nav-open .only-closed { display: none; }
  :root.nav-open .only-open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav li > a { flex: 1; min-height: 54px; font-size: 1.05rem; padding: 0 4px; }
  .nav li.has-sub > a { padding-right: 4px; }
  .nav__toggle { width: 54px; height: 54px; }
  .sub { position: static; display: none; min-width: 0; width: 100%; padding: 0 0 10px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: none; }
  .nav li.has-sub:hover .sub { display: none; }
  .nav li.is-open .sub, .nav li.is-open:hover .sub { display: grid; }
  .nav__extra { display: grid; gap: 20px; margin-top: 24px; }
  .nav__extra .btn { width: 100%; }
  .nav__extra .hotline { padding: 18px; border-radius: var(--r); background: var(--surface-2); }
  .nav .nav__extra .hotline__item { display: grid; flex-wrap: nowrap; border-bottom: 0; background: var(--surface); }
  .nav .nav__extra .hotline__item--alert { background: var(--danger-soft); }
}
@media (max-width: 600px) {
  .header__cta, .header__actions .hide-sm { display: none; }
  .logo__name { font-size: 1.02rem; }
}

/* ---------- Ленты ---------- */
.alert-ribbon { background: var(--danger); color: #fff; }
.alert-ribbon__in { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.alert-ribbon a { color: #fff; text-decoration: none; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.alert-ribbon a:hover { color: #fff; }
.alert-ribbon a:hover strong { text-decoration: underline; }

/* ---------- Секции ---------- */
.section { padding-top: clamp(40px, 6vw, 72px); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: var(--s-5); }
.section__head h2 { margin: 0; }
.section__head p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { display: inline-block; margin-bottom: 10px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.grid { display: grid; gap: var(--s-4); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid--5, .grid--2 { grid-template-columns: 1fr; } }
.ic-tile { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; color: var(--primary); background: var(--primary-soft); }
.ic-tile .ic { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(440px, 58vh, 560px); display: flex; align-items: center; isolation: isolate; overflow: hidden; background: #0d2a4a; }
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 30, 58, .38) 0%, rgba(8, 30, 58, .08) 55%, rgba(8, 30, 58, 0) 100%); }
.hero__panel { width: min(600px, 100%); padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-lg); margin: clamp(24px, 4vw, 48px) 0; }
.hero__panel .eyebrow { color: var(--primary); }
.hero__panel h1 { margin-bottom: 8px; }
.hero__place { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--ink-2); font-weight: 550; }
.hero__place .ic { color: var(--water); }
.hero__lead { color: var(--ink-2); font-size: var(--fs-md); margin-bottom: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__credit { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: rgba(255, 255, 255, .75); }
.hero__credit a { color: inherit; }
.emergency { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.emergency:hover { color: var(--ink); }
.emergency__ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; color: var(--danger); background: var(--danger-soft); }
.emergency b { display: block; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.emergency small { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.35; }
.emergency small strong { color: var(--danger); }
@media (max-width: 600px) {
  .hero { min-height: 0; align-items: flex-end; padding-top: 180px; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 30, 58, 0) 0%, rgba(8, 30, 58, .25) 100%); }
  .hero__panel { margin: 0 0 16px; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Карточки быстрого доступа ---------- */
.quick { margin-top: -40px; position: relative; z-index: 2; }
.service-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; min-height: 150px; }
.service-card__t { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; font-weight: 640; line-height: 1.3; }
.service-card__t .ic { color: var(--muted); flex: none; transition: transform .15s, color .15s; }
a.service-card:hover .service-card__t .ic { transform: translateX(3px); color: var(--primary); }
@media (max-width: 760px) {
  .quick { margin-top: 16px; }
  .service-card { flex-direction: row; align-items: center; min-height: 0; padding: 14px 16px; }
  .service-card__t { margin: 0; flex: 1; align-items: center; }
}

/* ---------- О предприятии на главной ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(16px, 2vw, 20px); }
.about__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.about__body { padding: 8px clamp(4px, 2vw, 24px) 8px 0; }
.about__body .prose-in p { color: var(--ink-2); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__body { padding: 0 4px 8px; } }
.duties { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.duties li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.duties li::before { content: ""; width: 8px; height: 8px; margin-top: .55em; flex: none; border-radius: 50%; background: var(--water); }
@media (max-width: 760px) { .duties { grid-template-columns: 1fr; } }

/* ---------- Плитки разделов ---------- */
.cat-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; min-height: 132px; }
.cat-card b { font-weight: 620; line-height: 1.3; }
.cat-card small { color: var(--muted); margin-top: auto; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: clamp(20px, 3vw, 28px); }
.feature__ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; color: var(--primary); background: linear-gradient(160deg, var(--sky), var(--primary-soft)); }
.feature__ic .ic { width: 40px; height: 40px; stroke-width: 1.4; }
.feature h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.feature p { color: var(--muted); margin-bottom: 12px; }
.feature ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
@media (max-width: 520px) { .feature { grid-template-columns: 1fr; } .feature__ic { width: 64px; height: 64px; } }

/* ---------- Личный кабинет ---------- */
.lk { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-4); }
@media (max-width: 900px) { .lk { grid-template-columns: 1fr; } }
.lk__main, .lk__side { padding: clamp(20px, 3vw, 32px); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; font-weight: 650; font-size: var(--fs-sm); color: var(--primary); background: var(--primary-soft); }
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.notes li { display: flex; gap: 10px; color: var(--ink-2); }
.notes .ic { color: var(--primary); margin-top: 3px; }
.partners { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Единый номер / голосовое меню ---------- */
.hotline { display: grid; gap: 12px; }
.hotline__label { margin: 0; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hotline__num { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); font-weight: 720; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.hotline__num:hover { color: var(--primary); }
.hotline__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hotline__item { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.hotline__item b { font-weight: 620; line-height: 1.3; }
.hotline__item span:last-child { grid-column: 2; color: var(--muted); font-size: var(--fs-sm); }
.hotline__item--alert { background: var(--danger-soft); }
.hotline__item--alert .key { color: #fff; background: var(--danger); border-color: var(--danger); box-shadow: 0 2px 0 #8f241c; }
.hotline__note { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.key { grid-row: span 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-weight: 700; font-size: 1.15rem; color: var(--primary); background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 2px 0 var(--line-2); font-variant-numeric: tabular-nums; }
.key--inline { grid-row: auto; width: 22px; height: 22px; font-size: .8rem; border-radius: 6px; box-shadow: none; vertical-align: 1px; }

/* ---------- Контактный баннер ---------- */
.contact-band { position: relative; overflow: hidden; border-radius: var(--r-lg); isolation: isolate; background: var(--sky); }
.contact-band__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.contact-band__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(16px, 3vw, 28px); border-radius: var(--r); }
.contact-band__in > div { display: flex; gap: 14px; padding: 22px; }
.contact-band__in > div + div { border-left: 1px solid var(--line); }
.contact-band small { display: block; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-bottom: 4px; }
.contact-band b, .contact-band a.v { display: block; font-weight: 620; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-band a.v:hover { color: var(--primary); }
.contact-band .ic-tile { width: 44px; height: 44px; }
@media (max-width: 900px) { .contact-band__in { grid-template-columns: 1fr; } .contact-band__in > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Внутренние страницы ---------- */
.page-band { position: relative; height: 120px; overflow: hidden; background: #0d2a4a; }
.page-band img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.page-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245, 247, 250, 0) 40%, var(--bg) 100%); }
@media (max-width: 600px) { .page-band { height: 72px; } }
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: -48px; position: relative; z-index: 1; }
.layout--wide { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } .layout > .side { order: 2; } }
.side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: var(--s-4); }
@media (max-width: 1000px) { .side { position: static; } }
.side-nav { padding: 10px; }
.side-nav__title { display: block; padding: 8px 10px 10px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; line-height: 1.3; font-weight: 520; }
.side-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.side-nav a[aria-current="page"] { background: var(--primary); color: #fff; }
.side-nav a .ic { color: currentColor; opacity: .8; }
.side .hotline { padding: 18px; }
.side .hotline__num, .lk__side .hotline__num { font-size: 1.3rem; white-space: nowrap; }
.content { display: grid; gap: var(--s-4); min-width: 0; }
.page-head { padding: clamp(22px, 3vw, 34px); }
.page-head h1 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.3rem); margin: 10px 0 0; }
.page-head__lead { margin: 10px 0 0; color: var(--ink-2); font-size: var(--fs-md); max-width: 70ch; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 6px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.page-updated { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

.prose { padding: clamp(22px, 3vw, 36px); font-size: 1.04rem; overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: var(--fs-lg); margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--water); }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.table-wrap { overflow-x: auto; margin: 1em 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
.table-wrap::after { content: ""; }
.prose table { width: 100%; border-collapse: collapse; min-width: 480px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); background: var(--surface-2); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }

.subpages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.subpage { display: flex; align-items: center; gap: 14px; padding: 16px; }
.subpage b { flex: 1; font-weight: 600; line-height: 1.3; }
.subpage small { display: block; color: var(--muted); font-weight: 400; font-size: var(--fs-sm); }
.subpage > .ic { color: var(--muted); }

/* Руководство */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.person { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.person__avatar { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; font-weight: 700; color: var(--primary); background: var(--primary-soft); letter-spacing: .02em; }
.person__role { margin: 0 0 4px; color: var(--muted); font-size: var(--fs-sm); }
.person__name { margin: 0 0 8px; font-size: var(--fs-md); }
.person a { font-weight: 600; text-decoration: none; }

/* Реквизиты */
.req { margin: 0; padding: 0 clamp(6px, 2vw, 16px); }
.req > div { display: grid; grid-template-columns: 180px 1fr auto; gap: 6px 16px; align-items: center; padding: 14px 8px; border-bottom: 1px solid var(--line); }
.req > div:last-child { border-bottom: 0; }
.req dt { color: var(--muted); font-size: var(--fs-sm); }
.req dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--surface); color: var(--muted); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.copy:hover { color: var(--primary); border-color: var(--primary); }
.copy.is-done { color: var(--ok); border-color: var(--ok); }
@media (max-width: 600px) { .req > div { grid-template-columns: 1fr auto; } .req dt { grid-column: 1 / -1; } }

/* ---------- Документы ---------- */
.docs { padding: clamp(18px, 3vw, 30px); }
.docs__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.docs__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-lg); }
.count { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; color: var(--primary); background: var(--primary-soft); }
.docs__grp { margin: 24px 0 4px; padding-bottom: 8px; font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.docs__empty { padding: 24px 4px 4px; color: var(--muted); }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: 0; }
.doc:hover { background: var(--surface-2); }
.doc__badge { display: grid; place-items: center; width: 44px; height: 52px; flex: none; position: relative; border-radius: 6px 14px 6px 6px; font-size: .66rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; border: 1px solid currentColor; background: var(--surface); }
.doc__badge--pdf { color: #c0352b; }
.doc__badge--doc { color: #0b4ea2; }
.doc__badge--xls { color: #17734a; }
.doc__badge--zip { color: #9a6200; }
.doc__badge--img { color: #6b3fa0; }
.doc__badge--link, .doc__badge--file { color: #5f6e82; font-size: .58rem; }
.doc__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.doc__title { color: var(--ink); font-weight: 560; text-decoration: none; overflow-wrap: anywhere; line-height: 1.4; }
.doc__title:hover { color: var(--primary); text-decoration: underline; }
.doc__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); font-size: var(--fs-sm); }
.doc__meta .ext { font-weight: 600; text-transform: uppercase; }
.doc__sec { color: var(--primary); text-decoration: none; }
.doc__actions { display: flex; gap: 4px; flex: none; }
.doc__actions .btn { min-height: 38px; padding: 0 12px; font-size: var(--fs-sm); }
@media (max-width: 600px) {
  .doc { flex-wrap: wrap; align-items: flex-start; }
  .doc__badge { width: 38px; height: 44px; }
  .doc__actions { width: 100%; padding-left: 52px; }
  .doc__actions .btn { flex: 1; }
}
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 2px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: inherit; font-size: var(--fs-sm); font-weight: 550; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.cats .cat-card { min-height: 0; flex-direction: row; align-items: center; }
.cats .cat-card b { flex: 1; }
.cats .cat-card small { margin: 0; }

.field { display: grid; gap: 6px; }
.field--search { position: relative; display: flex; align-items: center; min-width: min(100%, 320px); }
.field--search .ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.field--search input { padding-left: 42px; }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 78, 162, .15); }
input[type="checkbox"], input[type="radio"] { width: 20px; min-height: 20px; height: 20px; padding: 0; accent-color: var(--primary); }

.search-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; }
.search-box input { border: 0; background: none; font-size: 1.08rem; box-shadow: none !important; }
.search-box > .ic { color: var(--muted); width: 22px; height: 22px; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.results li { display: grid; }
.results span { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.contact-card { display: flex; gap: 14px; padding: 18px; }
.contact-card small { display: block; color: var(--muted); font-size: var(--fs-sm); }
.contact-card b { display: block; font-weight: 620; overflow-wrap: anywhere; }
.contact-card--wide { grid-column: 1 / -1; }
.map { overflow: hidden; padding: 0; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }
.map__fallback { padding: 14px 18px; border-top: 1px solid var(--line); }

/* ---------- Состояния ---------- */
.empty { padding: clamp(28px, 6vw, 64px); text-align: center; display: grid; justify-items: center; gap: 10px; color: var(--ink-2); }
.empty > .ic { width: 44px; height: 44px; color: var(--primary); }
.big404 { font-size: clamp(3.5rem, 9vw, 6rem); font-weight: 750; line-height: 1; color: var(--primary); }
.badge { display: inline-flex; align-items: center; gap: .35em; padding: 2px 9px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; }
.badge--alert { color: var(--danger); background: var(--danger-soft); }
.news-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.news-card h3 { margin: 0; }
.news-card p { color: var(--ink-2); margin: 0; flex: 1; }
.news-card__meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: var(--fs-sm); }
.news-card--alert { border-left: 4px solid var(--danger); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* ---------- Подвал ---------- */
.footer { margin-top: clamp(48px, 7vw, 88px); background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 24px; } }
.footer__about .logo { margin-bottom: 16px; }
.footer__h { margin: 0 0 12px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.footer__h a { color: inherit; text-decoration: none; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--primary); text-decoration: underline; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.contact-list .ic { color: var(--primary); margin-top: 3px; }
.contact-list small { color: var(--muted); }
.contact-sub { display: grid; gap: 8px; margin: 8px 0 2px; padding: 0; }
.hours { display: grid; line-height: 1.35; }
.hours b { font-weight: 600; color: var(--ink); }
.hours small { color: var(--muted); font-size: var(--fs-sm); }
.contact-sub li { display: flex; gap: 10px; align-items: flex-start; }
.contact-sub li > span:last-child { display: grid; line-height: 1.35; }
.contact-sub small { color: var(--muted); }
.contact-list .key { grid-row: auto; width: 24px; height: 24px; font-size: .8rem; border-radius: 6px; box-shadow: none; flex: none; }
.contact-list .is-emergency .key { background: var(--danger); border-color: var(--danger); color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Мобильная нижняя панель ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0;
  }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 6px 2px; border: 0; background: none; border-radius: var(--r-sm); color: var(--ink-2); font: inherit; font-size: 11px; font-weight: 550; text-decoration: none; cursor: pointer; }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar .is-call { color: var(--danger); }
  .tabbar .is-on { color: var(--primary); }
}

/* ---------- Объявление при входе ---------- */
.notice { width: min(600px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-top: 4px solid var(--danger); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--sh-3); }
.notice-bar { background: var(--danger-soft); border-bottom: 1px solid rgba(180, 40, 30, .12); }
.notice-bar__in { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 40px; padding-block: 8px; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.notice-bar__in > .ic { flex: none; width: 18px; height: 18px; color: var(--danger); }
.notice-bar__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.notice-bar__more { flex: none; color: var(--danger); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.notice-bar__in:hover .notice-bar__more { text-decoration-thickness: 2px; }
.notice::backdrop { background: rgba(8, 18, 32, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.notice__in { padding: 28px; display: grid; gap: 14px; text-align: center; justify-items: center; }
.notice__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); }
.notice__ic .ic { width: 28px; height: 28px; }
.notice h2 { margin: 0; font-size: var(--fs-lg); line-height: 1.3; }
.notice p { margin: 0; text-wrap: pretty; }
.notice .btn { margin-top: 8px; min-width: 180px; }
@media (max-width: 600px) { .notice__in { padding: 22px 18px; } }

/* ---------- Панель доступности ---------- */
.a11y-dialog { width: min(560px, calc(100% - 24px)); padding: 0; border: 0; border-radius: var(--r-lg); background: #10213a; color: #fff; box-shadow: var(--sh-3); }
.a11y-dialog::backdrop { background: rgba(8, 18, 32, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.a11y-dialog__in { padding: 24px; display: grid; gap: 18px; }
.a11y-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-dialog__head h2 { margin: 0; color: #fff; font-size: var(--fs-lg); }
.a11y-dialog .icon-btn { color: #fff; }
.a11y-dialog .icon-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.a11y-row { display: grid; gap: 8px; }
.a11y-row > span { font-size: var(--fs-sm); color: rgba(255, 255, 255, .75); }
.a11y-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.a11y-opts button { min-height: 44px; min-width: 52px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.a11y-opts button:hover { border-color: #fff; }
.a11y-opts button[aria-pressed="true"] { background: #fff; color: #10213a; border-color: #fff; }
.a11y-dialog__foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.a11y-dialog__foot .btn { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.a11y-dialog__foot .btn:hover { border-color: #fff; color: #fff; }

/* Настройки доступности применяются ко всему сайту */
:root[data-fs="2"] { font-size: 118.75%; }
:root[data-fs="3"] { font-size: 137.5%; }
:root[data-sp="2"] { --lh: 1.85; --ls: .02em; }
:root[data-sp="3"] { --lh: 2.1; --ls: .05em; }
:root[data-sp] p, :root[data-sp] li { word-spacing: .08em; }
:root[data-motion="off"] *, :root[data-motion="off"] *::before { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
:root[data-contrast="high"] {
  --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --ink-2: #000; --muted: #1f2937; --line: #000; --line-2: #000;
  --primary: #00307a; --primary-h: #001f52; --primary-soft: #e6eefb; --danger: #a01b12; --glass: #fff; --glass-strong: #fff; --glass-border: #000;
}
:root[data-contrast="high"] .glass { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
:root[data-contrast="high"] a { text-decoration: underline; }
:root[data-contrast="high"] .hero::before { background: rgba(0, 0, 0, .55); }
:root[data-contrast="mono"] body { filter: grayscale(1); }
:root[data-contrast="mono"] { --primary: #111; --primary-h: #000; --primary-soft: #eee; --water: #444; --danger: #111; --danger-soft: #eee; }
:root[data-images="off"] img:not(.logo img) { visibility: hidden; }
:root[data-images="off"] .hero, :root[data-images="off"] .page-band { background: var(--primary-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .header, .footer, .tabbar, .hero__img, .page-band, .side, .doc__actions, .filters, .field--search { display: none !important; }
  .glass, .card { background: none !important; box-shadow: none !important; backdrop-filter: none !important; }
  .layout { grid-template-columns: 1fr; margin: 0; }
}
