/* ==========================================================================
   Самарагорсвет — стили сайта. Референс оформления: upmgs.by
   Палитра: тёмно-синий (шапка/подвал) + оранжевый акцент.
   ========================================================================== */

/* --- Шрифты (self-hosted; внешние CDN на госсайтах нежелательны) --------- */
@font-face { font-family: "PT Sans Narrow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/PTSansNarrow-400-cyrillic.92a86bcfd973.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans Narrow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/PTSansNarrow-400-latin.0aed499d45af.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans Narrow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/PTSansNarrow-700-cyrillic.4542069a69e4.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans Narrow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/PTSansNarrow-700-latin.50b6d8c96677.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/OpenSans-400-cyrillic.8027aefd3d59.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/OpenSans-400-latin.23145c714161.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/OpenSans-600-cyrillic.8027aefd3d59.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/OpenSans-600-latin.23145c714161.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/OpenSans-700-cyrillic.8027aefd3d59.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/OpenSans-700-latin.23145c714161.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* --- Токены ---------------------------------------------------------------- */
:root {
  --navy: #143f67;
  --navy-dark: #0f2f4e;
  --navy-light: #1f5a8f;
  --accent: #f2994a;
  --accent-dark: #d9782a;
  --accent-text: #8a4a0d;
  --link: #2a69b8;
  --link-hover: #173a65;
  --text: #22262a;
  --muted: #6d757e;
  --bg: #f2f4f6;
  --card: #ffffff;
  --border: #dfe3e7;
  --line: #ced4da;
  --success: #2e7d32;
  --error: #b3261e;
  --warning: #b26a00;
  --font-body: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "PT Sans Narrow", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --radius: 6px;
  --brand-gradient: linear-gradient(105deg, #0f3157 0%, #1d4a80 26%, #40407c 58%, #7a3048 100%);
  --shadow: 0 2px 8px rgba(20, 63, 103, .08);
  --shadow-lg: 0 10px 30px rgba(20, 63, 103, .16);
  --container: 1320px;
  --fs: 16px;
}

/* --- База ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; overflow-wrap: break-word; }
.site-main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
svg { flex-shrink: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.mt-lg { margin-top: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--accent); color: #000; padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }

/* --- Кнопки ---------------------------------------------------------------- */
.btn { max-width: 100%; display: inline-flex; align-items: center; gap: .5em; padding: .65em 1.4em; border-radius: var(--radius); border: 2px solid transparent; font: 600 1rem var(--font-body); cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #1c1c1c; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline.btn--light { color: #fff; border-color: #fff; }
.btn--outline.btn--light:hover { background: #fff; color: var(--navy); }
.btn--pill { background: var(--accent); color: #1c1c1c; border-radius: 999px; padding: .45em 1.2em; font-size: .9rem; }
.btn--pill:hover { background: var(--accent-dark); color: #fff; }
.btn--lg { font-size: 1.1rem; padding: .85em 1.8em; }
.pill { display: block; text-align: center; background: var(--navy); color: #fff; border-radius: 999px; padding: .55em 1.2em; font: 700 1rem var(--font-head); text-transform: none; box-shadow: var(--shadow); }
.pill:hover { background: var(--navy-light); color: #fff; text-decoration: none; }

/* --- Шапка ----------------------------------------------------------------- */
.site-header { position: relative; z-index: 100; background: var(--navy-dark); }
.header-details { background: var(--navy-dark); color: #fff; }
.header-details__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; padding-top: 12px; padding-bottom: 12px; }
.header-details__description { flex: 1 1 280px; min-width: 0; margin: 0; font-size: .95rem; }
.header-details__hours { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 420px; min-width: 0; font-size: .8rem; }
.header-details__hours svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.header-details__hours ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 4px 0 0; padding: 0; }
html.a11y .header-details { background: inherit; color: inherit; border-bottom: 2px solid currentColor; }
.topbar { position: relative; overflow: hidden; background: var(--brand-gradient); color: #fff; border-bottom: 3px solid var(--accent); }
.topbar__inner { display: flex; align-items: center; gap: 8px 32px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex: none; min-width: 0; }
.brand:hover { text-decoration: none; color: #fff; }
.brand__logo { width: 64px; height: 64px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand__type { font-size: .72rem; opacity: .85; }
.brand__type--short { display: none; } /* короткое наименование включается вместо полного на узких экранах */
/* uppercase через CSS, а не фильтром |upper: в разметке остаётся написание из устава —
   так название корректно читают скринридеры и копируют в буфер */
.brand__name { font: 700 1.5rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.topbar__contacts { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; min-width: 0; }
.topbar__contacts li { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.topbar__contacts svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.topbar__contacts span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.topbar__contacts a { color: #fff; font-weight: 600; font-size: .95rem; }
.topbar__contacts small { font-size: .72rem; opacity: .8; }
.topbar__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.topbar__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; padding: 0; font: inherit; }
.topbar__icon:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.topbar__icon svg { width: 20px; height: 20px; }
.topbar__icon--a11y { border-color: var(--accent); }

.navbar { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); box-shadow: var(--shadow); position: relative; z-index: 50; }
.navbar__inner { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: 600 .95rem var(--font-body); cursor: pointer; color: var(--navy); }
.main-nav { flex: 1; }
.main-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.menu-item { position: relative; display: flex; align-items: center; }
.menu-link { display: block; padding: 16px 9px; color: var(--text); font-weight: 600; font-size: .9rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.menu-link:hover, .menu-item.is-active > .menu-link { color: var(--navy); border-bottom-color: var(--accent); text-decoration: none; }
.submenu-toggle { background: none; border: 0; padding: 4px; margin-left: -8px; cursor: pointer; color: var(--muted); display: inline-flex; }
.submenu-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.submenu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius); border-top: 3px solid var(--accent); display: none; z-index: 60; }
.submenu li a { display: block; padding: 9px 18px; color: var(--text); font-size: .92rem; }
.submenu li a:hover, .submenu li.is-active a { background: var(--bg); color: var(--navy); text-decoration: none; }
.menu-item.has-children:hover .submenu, .menu-item.has-children:focus-within .submenu, .menu-item.is-open .submenu { display: block; }
.menu-item.is-open .submenu-toggle svg { transform: rotate(180deg); }
.search-form { display: flex; align-items: center; min-width: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.search-form__input { border: 0; padding: 8px 14px; width: 150px; min-width: 0; font: .9rem var(--font-body); background: transparent; }
.search-form__input:focus { outline: none; }
.search-form__btn { border: 0; background: var(--navy); color: #fff; padding: 8px 12px; cursor: pointer; display: inline-flex; }
.search-form__btn svg { width: 18px; height: 18px; }
.search-form--page { border: 0; border-radius: 0; gap: 12px; margin-bottom: 1.5rem; overflow: visible; }
.search-form--page .form-control { flex: 1; min-width: 0; }
.search-results { list-style: none; padding: 0; }
.search-results li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.search-results li a { font: 700 1.2rem var(--font-head); }
.search-results p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }

/* --- Главная: слайдер ------------------------------------------------------ */
.hero { position: relative; z-index: 0; background: var(--navy-dark); overflow: hidden; }
.hero__slides { position: relative; height: clamp(360px, 44vw, 640px);
  /* Высота считается от ширины окна, а зум сжимает окно по высоте — на ноутбуке
     и при масштабе 115%+ слайдер вместе с шапкой занимал весь экран. Оставляем
     снизу полосу, по которой видно, что страница продолжается. */
  max-height: max(240px, calc(100vh - 240px)); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide--empty { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); }
/* Наименование учреждения прижато к верхнему краю фото и отцентровано по горизонтали.
   Фото бывают и светлые (серое небо), поэтому под надписью лежит мягкое пятно
   затемнения — одного вертикального градиента для читаемости белого текста не хватало. */
.hero__overlay { position: absolute; inset: 0; padding: clamp(26px, 3.5vw, 56px) 0 40px; display: flex; align-items: flex-start; justify-content: center; color: #fff;
  transition: background .8s ease;
  background: radial-gradient(ellipse 78% 42% at 50% 12%, rgba(6,18,34,.58) 0%, rgba(6,18,34,0) 100%),
              linear-gradient(180deg, rgba(8,22,40,.58) 0%, rgba(8,22,40,.26) 45%, rgba(8,22,40,.52) 100%); }
/* Светлый кадр (закат, серое небо) определяется в site.js по яркости верхней полосы фото. */
.hero--light .hero__overlay {
  background: radial-gradient(ellipse 82% 46% at 50% 12%, rgba(6,18,34,.76) 0%, rgba(6,18,34,0) 100%),
              linear-gradient(180deg, rgba(8,22,40,.74) 0%, rgba(8,22,40,.44) 45%, rgba(8,22,40,.62) 100%); }
.hero__content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.hero__status { max-width: 760px; margin: 20px 0 0; padding: 12px 18px; border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius); background: rgba(15,47,78,.9); color: #fff; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
html.a11y .hero__status { background: inherit; color: inherit; border: 2px solid currentColor; }
.hero__eyebrow { margin: 0 0 10px; font: 600 clamp(.92rem, 1.35vw, 1.22rem) var(--font-body); line-height: 1.35; text-shadow: 0 2px 10px rgba(0,0,0,.65); }
.hero__title { color: #fff; /* h1 наследует тёмный цвет из базовых стилей заголовков */
  font: 700 clamp(2.1rem, 5vw, 4.2rem) var(--font-head); letter-spacing: .03em; text-transform: uppercase;
  margin: 0; line-height: 1.05; text-shadow: 0 3px 18px rgba(0,0,0,.65); }
/* Слайдер — чистое оформление: управления поверх фото нет.
   Кнопка паузы остаётся для клавиатуры (ГОСТ Р 52872-2019, WCAG 2.2.2) и всплывает только при фокусе. */
.hero__pause { position: absolute; right: 16px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 4px 12px; font: 600 .8rem var(--font-body); cursor: pointer; opacity: 0; pointer-events: none; }
.hero__pause:focus-visible { opacity: 1; pointer-events: auto; }
.hero__pause svg { width: 14px; height: 14px; }
.cookie-notice__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- Цифра дня ------------------------------------------------------------- */
.counters { background: #eef1f4; border-bottom: 1px solid var(--border); }
.counters__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px 48px; padding: 36px 16px; }
.counter__title { font: 700 1.05rem var(--font-body); color: var(--text); margin-bottom: 6px; }
.counter__row { display: flex; align-items: center; gap: 18px; }
.counter__value { font: 700 clamp(2.4rem, 4.2vw, 3.8rem) var(--font-head); color: var(--accent-dark); line-height: 1; letter-spacing: .02em; padding-right: 18px; border-right: 2px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.counter__label { color: var(--muted); font-size: .95rem; max-width: 220px; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.counter { min-width: 0; }
.counter__row { min-width: 0; }
html.a11y .counter__value { color: #000; border-color: #000; }

/* --- Секции ---------------------------------------------------------------- */
.section { padding: 56px 0; }
.section--alt { background: #e9edf1; }
.section__head { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 36px; position: relative; flex-wrap: wrap; }
.section__title { font: 700 2.2rem var(--font-head); margin: 0; padding-bottom: 10px; position: relative; text-align: center; }
.section__title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 120px; transform: translateX(-50%); height: 3px; background: var(--accent); }
.section__title--left { text-align: left; }
.section__title--left::after { left: 0; transform: none; }
.section__head .btn--pill { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }

.intro { display: grid; gap: 32px; align-items: center; }
.intro--with-image { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.intro__img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Сквозной сброс: у flex-элементов min-width по умолчанию auto, из-за чего длинное
   слово распирает карточку/строку и она вылезает за край. Держим текст сжимаемым. */
.card > *, .func-list li, .func-list li > *, .contact-card__list li, .contact-card__list li > *,
.contact-box p > *, .doc-item__link > *, .footer__list li, .footer__list li > *,
.person__row, .person__row > *, .section__head > *, .vacancy-card > *,
.breadcrumbs li, .pagination > * { min-width: 0; }
.card__title, .card__text, .doc-item__title, .func-list li, .contact-card__list li,
.footer__list li, .vacancy-card__title, .news-card__title, .news-item__title,
.album-card__title, .section__title, .page-title { overflow-wrap: break-word; hyphens: auto; }
.section__title { max-width: 100%; }
.rich-text a, .contact-box a, .contact-card a, .footer a, .person__row a,
.doc-item a, .card a, .topbar__contacts a { overflow-wrap: anywhere; }

.cards-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; position: relative; }
a.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.card__icon { width: 56px; height: 56px; flex: none; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.card__icon svg { width: 48px; height: 48px; stroke-width: 1.6; }
.card__title { font: 700 1.25rem var(--font-head); color: var(--navy); }
.card__text { font-size: .92rem; color: var(--muted); }
.card__arrow { position: absolute; right: 16px; top: 18px; color: var(--accent); }
.card__arrow svg { width: 20px; height: 20px; }
.card--page .card__title, .card--dept .card__title { padding-right: 28px; } /* заголовок наезжал на стрелку */
.card--service { flex-direction: row; align-items: center; gap: 18px; min-height: 120px; }
.card--service .card__text { display: none; }
.card--dept .card__title { font-size: 1.15rem; }

.functions { display: grid; gap: 32px; }
.functions--with-collage { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.collage { display: grid; grid-template-columns: 4fr 3fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; height: 520px; }
.collage__img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius); }
.collage__img--1 { grid-row: 1 / span 2; }
/* Оперативная информация на главной */
.section--notices { padding: 40px 0; }
.notices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.notice { gap: 6px; border-left: 4px solid var(--navy-light); }
.notice--planned { border-left-color: var(--accent); }
.notice--outage { border-left-color: var(--warning); }
.notice--emergency { border-left-color: var(--error); }
.notice__tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--navy); }
.notice--planned .notice__tag { color: var(--accent-text); }
.notice--outage .notice__tag { color: var(--warning); }
.notice--emergency .notice__tag { color: var(--error); }
.notice__tag svg { width: 16px; height: 16px; flex-shrink: 0; }
.notice__title { font-size: 1.3rem; margin: 2px 0 4px; }
.notice__meta { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--muted); font-size: .92rem; }
.notice__meta svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.notice__text { margin: 4px 0 0; }
.notices__empty { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; text-align: left; color: var(--success); font-weight: 600; }
.notices__empty svg { width: 22px; height: 22px; flex-shrink: 0; }
.func-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.func-list li { display: flex; align-items: flex-start; gap: 10px; }
.func-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

.news-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card { display: flex; flex-direction: column; gap: 8px; }
.news-card__img { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 10 / 7; background: var(--navy-dark); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-card__img img { transform: scale(1.03); }
.news-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.news-card__date, .news-item__date { color: var(--muted); font-size: .85rem; }
.news-card__title { font: 700 1.35rem var(--font-head); margin: 0; }
.news-card__title a { color: var(--text); }
.news-card__intro { margin: 0; font-size: .92rem; color: #444; }
.more-link { font-size: .9rem; text-decoration: underline; }

/* --- ПОС ------------------------------------------------------------------- */
.section--pos { padding: 40px 0; }
.pos-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: linear-gradient(120deg, #0d4cd3 0%, #2d73bc 60%, #38bafe 100%); color: #fff; border-radius: 12px; padding: 32px 40px; flex-wrap: wrap; }
.pos-banner__title { font: 700 1.7rem var(--font-head); margin: 0 0 6px; }
.pos-banner__sub { margin: 0; opacity: .9; max-width: 640px; }
.pos-banner__action { min-width: 0; max-width: 100%; }
.pos-banner__btn { background: #fff; border-color: #fff; color: #0d4cd3; }
.pos-banner__btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
#js-show-iframe-wrapper { display: block; }

/* --- Подвал ---------------------------------------------------------------- */
.footer { background: var(--brand-gradient); color: #fff; margin-top: 40px; padding: 48px 0 calc(24px + var(--cookie-offset, 0px)); border-top: 4px solid var(--accent); }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; }
.footer__title { font: 700 1.3rem var(--font-head); margin: 0 0 14px; color: #fff; }
.footer__title--mt { margin-top: 24px; }
.footer__list, .footer__links, .footer__legal, .social { list-style: none; margin: 0; padding: 0; }
.footer__list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .93rem; }
.footer__list svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.footer__list .muted { color: rgba(255,255,255,.65); }
.footer__links li { margin-bottom: 10px; font-size: .93rem; }
.footer__links a { text-decoration: underline; text-underline-offset: 3px; } /* на тёмном фоне цвет ссылку не выдаёт: рядом такой же белый текст */
.footer__links small { display: block; color: rgba(255,255,255,.65); font-size: .8rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; background: #dfe3e7; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-embed--footer { height: 260px; }
.map-embed--page { min-height: 360px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12); align-items: center; justify-content: center; }
.social a:hover { background: var(--accent); color: #000; }
.social svg { width: 22px; height: 22px; }
.footer__partners { margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15); }
/* Плашки организаций: логотипы разных пропорций (гербы, вытянутые лого), поэтому
   фиксируется рамка 76×52 и object-fit, а название всегда рядом — гербы города
   и области сами по себе неразличимы. */
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* Треть ряда: пять организаций встают «шахматно» — три сверху, две по центру снизу.
   min-width заставляет ряд переломиться раньше, чем плашка станет нечитаемой. */
.partners__item { flex: 0 1 calc((100% - 24px) / 3); min-width: 230px; max-width: 340px; }
.partners__card { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 14px; border-radius: var(--radius); background: #fff; }
.footer .partners__card { color: var(--text); }
.footer a.partners__card:hover { background: #fff7ef; outline: 2px solid var(--accent); outline-offset: -2px; }
.partners__logo { flex: 0 0 auto; width: 76px; height: 52px; object-fit: contain; }
.partners__name { font-size: .86rem; line-height: 1.35; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: rgba(255,255,255,.8); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* --- Внутренние страницы --------------------------------------------------- */
.page { padding: 20px 16px 40px; }
.breadcrumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.page-layout--wide { grid-template-columns: minmax(0, 1fr); }
.page-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 36px 36px; min-width: 0; }
.page-title { font: 700 2.3rem var(--font-head); margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.page-cover { border-radius: var(--radius); margin-bottom: 20px; }
.page-intro { font-size: 1.1rem; color: #444; margin-bottom: 1.4em; }
.page-children { margin-top: 24px; }
.page-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.page-aside:empty { display: none; }
.aside-block { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.aside-block__title { font: 700 1.25rem var(--font-head); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .93rem; }
.aside-list li:last-child { border-bottom: 0; }
.aside-list time { display: block; color: var(--muted); font-size: .8rem; }
.section-menu { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.section-menu__title { display: block; font: 700 1.25rem var(--font-head); color: var(--navy); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.section-menu ul { list-style: none; margin: 0; padding: 0; }
.section-menu ul ul { padding-left: 14px; margin-top: 4px; }
.section-menu li a { display: block; padding: 7px 0; color: var(--text); font-size: .93rem; border-left: 3px solid transparent; padding-left: 10px; margin-left: -10px; }
.section-menu li.is-active > a { color: var(--navy); font-weight: 700; border-left-color: var(--accent); }
.section-menu li a:hover { color: var(--navy); text-decoration: none; }

/* --- Контент (rich text / stream) ----------------------------------------- */
.rich-text > :first-child, .stream > :first-child { margin-top: 0; }
.rich-text h2, .stream-h2 { font-size: 1.7rem; margin-top: 1.4em; }
.rich-text h3, .stream-h3 { font-size: 1.35rem; margin-top: 1.2em; }
.rich-text h4 { font-size: 1.15rem; }
.rich-text img { border-radius: var(--radius); margin: 1em 0; }
.rich-text .left { float: left; margin: 0 20px 12px 0; max-width: 45%; }
.rich-text .right { float: right; margin: 0 0 12px 20px; max-width: 45%; }
.rich-text .full-width { width: 100%; }
.rich-text blockquote, .quote { border-left: 4px solid var(--accent); margin: 1.2em 0; padding: 10px 20px; background: var(--bg); font-style: italic; }
.quote cite { display: block; font-style: normal; color: var(--muted); font-size: .9rem; margin-top: 6px; }
.rich-text ul li, .rich-text ol li { margin-bottom: .35em; }
.rich-text hr { border: 0; border-top: 1px solid var(--border); margin: 1.5em 0; }
.stream-figure { margin: 1.4em 0; }
.stream-figure img { border-radius: var(--radius); }
.stream-figure figcaption, .gallery-item figcaption, .video-block figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.stream-figure--left { float: left; margin: 0 24px 12px 0; max-width: 45%; }
.stream-figure--right { float: right; margin: 0 0 12px 24px; max-width: 45%; }
.stream::after, .rich-text::after { content: ""; display: table; clear: both; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin: 1em 0; }
.gallery-item { margin: 0; max-width: 480px; } /* не растягиваем сверх рендишна 480x320 */
.gallery-item a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--navy-dark); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item a:hover img { transform: scale(1.04); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.album-card { display: flex; flex-direction: column; max-width: 600px; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow); }
.album-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); color: var(--text); }
.album-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.album-card__placeholder { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; background: var(--navy-dark); color: #fff; }
.album-card__placeholder svg { width: 48px; height: 48px; }
.album-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.album-card__title { font: 700 1.2rem var(--font-head); }
.album-card__meta { color: var(--muted); font-size: .85rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 24px; }
.video-card { margin: 0; max-width: 720px; }
.video-card figcaption p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.video-block { margin: 1.4em 0; }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc-section { margin: 1.5em 0; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.doc-item__link { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.doc-item__link--missing { color: var(--muted); font-weight: 400; }
.doc-item__icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.doc-item__meta { color: var(--muted); font-size: .82rem; padding-left: 32px; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.table th { background: var(--bg); font-weight: 700; }
.table caption { caption-side: top; text-align: left; font-weight: 700; padding: 6px 0; }
.accordion { margin: 1em 0; }
.accordion__item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; background: var(--card); }
.accordion__item summary { cursor: pointer; padding: 12px 16px; font: 700 1.1rem var(--font-head); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.accordion__item[open] summary::after { content: "–"; }
.accordion__item .rich-text { padding: 0 16px 12px; }
.stats { list-style: none; margin: 1.5em 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 16px; }
.stats__item { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stats__value { font: 700 2rem var(--font-head); color: var(--accent); }
.stats__label { font-size: .88rem; opacity: .9; }
.persons__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.person { display: flex; gap: 16px; align-items: flex-start; background: var(--bg); border-radius: var(--radius); padding: 14px 16px; }
.person__photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.person__name { font: 700 1.15rem var(--font-head); }
.person__position { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.person__row { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.person__row svg { width: 16px; height: 16px; color: var(--accent); }
.stream-button { margin: 1.2em 0; }
.contact-box { margin: 1.5em 0; padding: 16px 20px; background: var(--bg); border-radius: var(--radius); border-left: 4px solid var(--accent); }
.contact-box p { margin: 4px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.contact-box a[href^="tel:"] { white-space: nowrap; }
html.a11y .contact-box a[href^="tel:"] { white-space: normal; } /* при кегле 26px номер в одну строку не помещается */
.contact-box svg { width: 18px; height: 18px; color: var(--navy); }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 1.2em; border: 1px solid; }
.alert--success { background: #edf7ee; border-color: #b7dfb9; color: #1e5a22; }
.alert--error { background: #fdecea; border-color: #f5c2bd; color: #7d1a13; }
.alert--warning { background: #fff5e5; border-color: #ffd699; color: #6b4300; }
.alert p:last-child, .alert .rich-text p:last-child { margin-bottom: 0; }

/* --- Новости (список) ------------------------------------------------------ */
.news-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.news-item:first-child { padding-top: 0; }
.news-item__title { font-size: 1.6rem; margin-bottom: 12px; }
.news-item__title a { color: var(--text); }
.news-item__body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.news-item__img { border-radius: var(--radius); overflow: hidden; display: block; }
.news-item__text .btn { margin-top: 4px; }
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 8px; color: var(--link); }
.pagination a:hover { background: var(--bg); text-decoration: none; }
.pagination .is-current { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }
.pagination__gap { border: 0; }

/* --- Вакансии -------------------------------------------------------------- */
.vacancy-list { display: flex; flex-direction: column; gap: 14px; }
.vacancy-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: var(--card); }
.vacancy-card:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.vacancy-card__title { font: 700 1.35rem var(--font-head); color: var(--navy); }
.vacancy-card__salary { font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.vacancy-card__meta { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
.vacancy-card__text { grid-column: 1 / -1; font-size: .92rem; }
.vacancy-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; margin: 0 0 1.5em; padding: 16px; background: var(--bg); border-radius: var(--radius); }
.vacancy-meta div { display: flex; flex-direction: column; }
.vacancy-meta dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.vacancy-meta dd { margin: 0; font-weight: 600; }
.vacancy-meta__salary { color: var(--accent-text); font-size: 1.15rem; }

/* --- Контакты -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-bottom: 32px; }
.contact-card__title { font-size: 1.5rem; }
.contact-card__sub { font-size: 1.2rem; margin-top: 1.2em; }
.contact-card__list { list-style: none; margin: 0 0 1em; padding: 0; }
.contact-card__list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.contact-card__list svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.contact-card__list--compact li { margin-bottom: 6px; font-size: .92rem; }
.requisites { display: grid; gap: 8px; margin: 0 0 1.5em; }
.requisites div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; }

/* --- Формы ----------------------------------------------------------------- */
.form-fieldset { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px 8px; margin: 0 0 20px; }
.form-fieldset legend { max-width: 100%; font: 700 1.2rem var(--font-head); padding: 0 8px; color: var(--navy); }
.form-group { margin-bottom: 16px; }
.form-group label, .form-group--radio > label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-control, .form-select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: 1rem var(--font-body); background: #fff; color: var(--text); }
.form-control:focus, .form-select:focus { border-color: var(--navy); outline: 3px solid rgba(242,153,74,.45); outline-offset: 0; }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-help { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--error); font-size: .88rem; }
.has-error .form-control, .has-error .form-select { border-color: var(--error); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.radio-row div, .radio-row label { display: inline-flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; min-width: 0; font-weight: 400; margin: 0; }
.radio-row input { width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.form-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 16px; }
.form-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.form-check .errorlist { grid-column: 1 / -1; }
.form-group--captcha .captcha { vertical-align: middle; border-radius: var(--radius); margin-right: 10px; }
.form-group--captcha input[type="text"] { display: inline-block; width: 140px; }
.form-group--captcha input[type="hidden"] { display: none; }
input[type="file"].form-control { padding: 8px; }

/* --- Лайтбокс -------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox__img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox__caption { color: #fff; font-size: .95rem; text-align: center; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { background: var(--accent); color: #000; }
.lightbox svg { width: 26px; height: 26px; }

/* --- Cookie ---------------------------------------------------------------- */
.cookie-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: var(--navy-dark); color: #fff; border-top: 3px solid var(--accent); box-shadow: 0 -4px 20px rgba(0,0,0,.25); max-height: 70vh; }
.cookie-notice[hidden] { display: none; }
.cookie-notice__inner { display: flex; align-items: center; gap: 20px; padding: 14px 16px; font-size: .9rem; flex-wrap: wrap; }
.cookie-notice p { margin: 0; flex: 1 1 240px; min-width: 0; max-height: 34vh; overflow-y: auto; }
@media (max-height: 620px) { .cookie-notice p { max-height: 24vh; } } /* невысокие экраны и альбомная ориентация телефона */
.cookie-notice a { color: var(--accent); text-decoration: underline; }

/* --- Версия для слабовидящих (ГОСТ Р 52872-2019) --------------------------- */
.a11y-panel { background: #fff; border-bottom: 2px solid #000; color: #000; font-size: 16px; }
.a11y-panel[hidden] { display: none; }
.a11y-panel__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 10px 16px; }
.a11y-panel__label { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.a11y-panel__group { display: inline-flex; align-items: center; gap: 6px; }
.a11y-panel button { font: 700 16px var(--font-body); border: 2px solid #000; background: #fff; color: #000; padding: 4px 12px; cursor: pointer; border-radius: 4px; min-width: 44px; }
.a11y-panel button.is-active, .a11y-panel button[aria-pressed="true"] { background: #000; color: #fff; }
.a11y-swatch--bw { background: #fff !important; color: #000 !important; }
.a11y-swatch--wb { background: #000 !important; color: #fff !important; }
.a11y-swatch--bb { background: #9dd1ff !important; color: #063462 !important; }
.a11y-panel button.is-active.a11y-swatch { outline: 3px solid var(--accent); }
html.a11y { --fs: 18px; }
html.a11y.a11y-font-2 { --fs: 22px; }
html.a11y.a11y-font-3 { --fs: 26px; }
html.a11y.a11y-spacing body { letter-spacing: .08em; word-spacing: .16em; line-height: 1.8; }
html.a11y body { font-family: Arial, Helvetica, sans-serif; }
html.a11y h1, html.a11y h2, html.a11y h3, html.a11y h4, html.a11y .page-title, html.a11y .section__title, html.a11y .card__title, html.a11y .brand__name, html.a11y .footer__title, html.a11y .hero__name { font-family: Arial, Helvetica, sans-serif; }
html.a11y .hero__slides, html.a11y .collage { display: none; }
html.a11y .partners__logo { display: none; }
html.a11y .partners__item { flex-basis: 100%; max-width: none; }
html.a11y .hero { min-height: 0; }
html.a11y .hero__overlay { position: static; padding: 24px 0; background: none; color: #000; }
html.a11y .hero__content { align-items: flex-start; text-align: left; }
html.a11y .hero__title { text-shadow: none; }
html.a11y .navbar { backdrop-filter: none; }
html.a11y .functions--with-collage { grid-template-columns: 1fr; }
html.a11y .card--service { flex-direction: column; align-items: flex-start; }
html.a11y .card--service .card__text { display: block; }
html.a11y * { transition: none !important; animation: none !important; text-shadow: none !important; box-shadow: none !important; }
html.a11y .btn, html.a11y .pill { border-width: 2px; }
/* тема: чёрным по белому */
html.a11y, html.a11y body, html.a11y .topbar, html.a11y .navbar, html.a11y .footer, html.a11y .page-card, html.a11y .card, html.a11y .aside-block, html.a11y .section-menu, html.a11y .section--alt, html.a11y .hero, html.a11y .hero__card, html.a11y .pos-banner, html.a11y .stats__item, html.a11y .form-control, html.a11y .form-select, html.a11y .submenu, html.a11y .vacancy-card, html.a11y .album-card, html.a11y .contact-box, html.a11y .person, html.a11y .vacancy-meta, html.a11y .quote, html.a11y .accordion__item, html.a11y .search-form, html.a11y .topbar__icon, html.a11y .table th { background: #fff !important; color: #000 !important; border-color: #000 !important; }
html.a11y a, html.a11y .btn, html.a11y .pill, html.a11y .menu-link, html.a11y .brand, html.a11y .footer a, html.a11y .topbar__contacts a, html.a11y .card__title, html.a11y .stats__value, html.a11y .hero__name, html.a11y .vacancy-card__salary, html.a11y .vacancy-card__title, html.a11y .topbar__icon, html.a11y .search-form__btn, html.a11y .pagination .is-current, html.a11y .muted, html.a11y .news-card__date, html.a11y .doc-item__meta, html.a11y .form-help, html.a11y .person__position, html.a11y .breadcrumbs ol, html.a11y svg { color: #000 !important; background: #fff !important; }
html.a11y a { text-decoration: underline; }
html.a11y .btn, html.a11y .pill, html.a11y .search-form__btn, html.a11y .pagination a, html.a11y .pagination span, html.a11y .menu-link { border: 2px solid #000 !important; }
html.a11y .menu-item.is-active > .menu-link, html.a11y .section-menu li.is-active > a { text-decoration: underline; font-weight: 700; }
html.a11y .cookie-notice { background: #fff !important; color: #000 !important; border-color: #000 !important; box-shadow: none; }
html.a11y .footer__title, html.a11y .footer__bottom, html.a11y .footer__legal a, html.a11y .footer__links small { color: #000 !important; }
html.a11y.a11y-theme-wb .footer__title, html.a11y.a11y-theme-wb .footer__bottom, html.a11y.a11y-theme-wb .footer__legal a, html.a11y.a11y-theme-wb .footer__links small { color: #fff !important; }
html.a11y.a11y-theme-bb .footer__title, html.a11y.a11y-theme-bb .footer__bottom, html.a11y.a11y-theme-bb .footer__legal a, html.a11y.a11y-theme-bb .footer__links small { color: #063462 !important; }
/* слайдер в этом режиме скрыт — его точки и «Пауза» висели поверх текста */
html.a11y .hero__pause { display: none; }
html.a11y .notice { border-left: 6px solid currentColor !important; }
html.a11y .notice__tag, html.a11y .notice__meta, html.a11y .notices__empty { color: inherit !important; background: transparent !important; }
html.a11y .table td, html.a11y .table th, html.a11y .doc-item, html.a11y .news-item, html.a11y .requisites div { border-color: #000 !important; }
html.a11y .stats__item { border: 2px solid currentColor; }
html.a11y .topbar, html.a11y .footer, html.a11y .page-title, html.a11y .section__title::after, html.a11y .aside-block__title, html.a11y .section-menu__title, html.a11y .contact-box { border-color: #000 !important; }
html.a11y .section__title::after { background: #000; }
/* тема: белым по чёрному */
html.a11y.a11y-theme-wb, html.a11y.a11y-theme-wb body, html.a11y.a11y-theme-wb .topbar, html.a11y.a11y-theme-wb .navbar, html.a11y.a11y-theme-wb .footer, html.a11y.a11y-theme-wb .page-card, html.a11y.a11y-theme-wb .card, html.a11y.a11y-theme-wb .aside-block, html.a11y.a11y-theme-wb .section-menu, html.a11y.a11y-theme-wb .section--alt, html.a11y.a11y-theme-wb .hero, html.a11y.a11y-theme-wb .hero__card, html.a11y.a11y-theme-wb .pos-banner, html.a11y.a11y-theme-wb .stats__item, html.a11y.a11y-theme-wb .form-control, html.a11y.a11y-theme-wb .form-select, html.a11y.a11y-theme-wb .submenu, html.a11y.a11y-theme-wb .vacancy-card, html.a11y.a11y-theme-wb .album-card, html.a11y.a11y-theme-wb .contact-box, html.a11y.a11y-theme-wb .person, html.a11y.a11y-theme-wb .vacancy-meta, html.a11y.a11y-theme-wb .quote, html.a11y.a11y-theme-wb .accordion__item, html.a11y.a11y-theme-wb .search-form, html.a11y.a11y-theme-wb .a11y-panel, html.a11y.a11y-theme-wb .a11y-panel button:not(.a11y-swatch), html.a11y.a11y-theme-wb .table th, html.a11y.a11y-theme-wb .table td, html.a11y.a11y-theme-wb a, html.a11y.a11y-theme-wb .btn, html.a11y.a11y-theme-wb .pill, html.a11y.a11y-theme-wb .menu-link, html.a11y.a11y-theme-wb .brand, html.a11y.a11y-theme-wb .card__title, html.a11y.a11y-theme-wb .stats__value, html.a11y.a11y-theme-wb .hero__name, html.a11y.a11y-theme-wb .vacancy-card__salary, html.a11y.a11y-theme-wb .vacancy-card__title, html.a11y.a11y-theme-wb .search-form__btn, html.a11y.a11y-theme-wb .pagination a, html.a11y.a11y-theme-wb .pagination span, html.a11y.a11y-theme-wb .muted, html.a11y.a11y-theme-wb .news-card__date, html.a11y.a11y-theme-wb .doc-item__meta, html.a11y.a11y-theme-wb .form-help, html.a11y.a11y-theme-wb .person__position, html.a11y.a11y-theme-wb .breadcrumbs ol, html.a11y.a11y-theme-wb svg, html.a11y.a11y-theme-wb h1, html.a11y.a11y-theme-wb h2, html.a11y.a11y-theme-wb h3, html.a11y.a11y-theme-wb .page-title, html.a11y.a11y-theme-wb .alert, html.a11y.a11y-theme-wb .cookie-notice { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.a11y.a11y-theme-wb .a11y-panel button.is-active:not(.a11y-swatch), html.a11y.a11y-theme-wb .a11y-panel button[aria-pressed="true"] { background: #fff !important; color: #000 !important; }
html.a11y.a11y-theme-wb .section__title::after { background: #fff; }
/* тема: тёмно-синим по голубому */
html.a11y.a11y-theme-bb, html.a11y.a11y-theme-bb body, html.a11y.a11y-theme-bb .topbar, html.a11y.a11y-theme-bb .navbar, html.a11y.a11y-theme-bb .footer, html.a11y.a11y-theme-bb .page-card, html.a11y.a11y-theme-bb .card, html.a11y.a11y-theme-bb .aside-block, html.a11y.a11y-theme-bb .section-menu, html.a11y.a11y-theme-bb .section--alt, html.a11y.a11y-theme-bb .hero, html.a11y.a11y-theme-bb .hero__card, html.a11y.a11y-theme-bb .pos-banner, html.a11y.a11y-theme-bb .stats__item, html.a11y.a11y-theme-bb .form-control, html.a11y.a11y-theme-bb .form-select, html.a11y.a11y-theme-bb .submenu, html.a11y.a11y-theme-bb .vacancy-card, html.a11y.a11y-theme-bb .album-card, html.a11y.a11y-theme-bb .contact-box, html.a11y.a11y-theme-bb .person, html.a11y.a11y-theme-bb .vacancy-meta, html.a11y.a11y-theme-bb .quote, html.a11y.a11y-theme-bb .accordion__item, html.a11y.a11y-theme-bb .search-form, html.a11y.a11y-theme-bb .a11y-panel, html.a11y.a11y-theme-bb .a11y-panel button:not(.a11y-swatch), html.a11y.a11y-theme-bb .table th, html.a11y.a11y-theme-bb .table td, html.a11y.a11y-theme-bb a, html.a11y.a11y-theme-bb .btn, html.a11y.a11y-theme-bb .pill, html.a11y.a11y-theme-bb .menu-link, html.a11y.a11y-theme-bb .brand, html.a11y.a11y-theme-bb .card__title, html.a11y.a11y-theme-bb .stats__value, html.a11y.a11y-theme-bb .hero__name, html.a11y.a11y-theme-bb .vacancy-card__salary, html.a11y.a11y-theme-bb .vacancy-card__title, html.a11y.a11y-theme-bb .search-form__btn, html.a11y.a11y-theme-bb .pagination a, html.a11y.a11y-theme-bb .pagination span, html.a11y.a11y-theme-bb .muted, html.a11y.a11y-theme-bb .news-card__date, html.a11y.a11y-theme-bb .doc-item__meta, html.a11y.a11y-theme-bb .form-help, html.a11y.a11y-theme-bb .person__position, html.a11y.a11y-theme-bb .breadcrumbs ol, html.a11y.a11y-theme-bb svg, html.a11y.a11y-theme-bb h1, html.a11y.a11y-theme-bb h2, html.a11y.a11y-theme-bb h3, html.a11y.a11y-theme-bb .page-title, html.a11y.a11y-theme-bb .alert, html.a11y.a11y-theme-bb .cookie-notice { background: #9dd1ff !important; color: #063462 !important; border-color: #063462 !important; }
html.a11y.a11y-theme-bb .a11y-panel button.is-active:not(.a11y-swatch), html.a11y.a11y-theme-bb .a11y-panel button[aria-pressed="true"] { background: #063462 !important; color: #9dd1ff !important; }
html.a11y.a11y-theme-bb .section__title::after { background: #063462; }
/* без изображений */
html.a11y.a11y-noimg img:not(.brand__logo), html.a11y.a11y-noimg .map-embed, html.a11y.a11y-noimg .video-embed, html.a11y.a11y-noimg .gallery-item a, html.a11y.a11y-noimg .news-card__img, html.a11y.a11y-noimg .news-item__img { display: none !important; }
html.a11y.a11y-noimg .news-item__body, html.a11y.a11y-noimg .contact-grid, html.a11y.a11y-noimg .intro--with-image { grid-template-columns: 1fr; }
html.a11y.a11y-noimg .gallery-item::before { content: attr(data-caption); display: block; padding: 8px; border: 1px solid currentColor; }

/* --- Адаптив ---------------------------------------------------------------- */
@media (min-width: 1161px) and (max-width: 1340px) {
  .menu-item--home { display: none; } /* на ноутбуках пункт «Главная» дублирует логотип */
}
@media (max-width: 1290px) { /* 1290, а не 1240: иначе в полосе 1241–1287 контакты скачком
                                 возвращались к крупному кеглю и ломались на две строки */
  .menu-link { padding: 14px 7px; font-size: .86rem; }
  .submenu-toggle { margin-left: -6px; }
  .topbar__inner { gap: 20px; }
  .topbar__contacts { gap: 16px; }
  .topbar__contacts a { font-size: .88rem; }
  .topbar__contacts small { font-size: .68rem; }
  /* наименование учреждения в шапке обязательно (8-ФЗ ст. 13 ч. 1.1 п. 1 «а»),
     поэтому полное не прячем, а заменяем сокращённым */
  .brand__type { display: none; }
  .brand__type--short { display: block; }
}
@media (max-width: 1100px) {
  .functions--with-collage { grid-template-columns: minmax(0, 1fr); }
  .functions--with-collage .collage { order: 2; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: minmax(0, 1fr); height: 260px; }
  .functions--with-collage .collage__img--1 { grid-row: auto; }
  .func-list { columns: 2; column-gap: 32px; display: block; }
  .func-list li { break-inside: avoid; margin-bottom: 12px; }
  .cards-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--map { grid-column: 1 / -1; }
  .collage { height: 440px; }
}
@media (max-width: 1160px) {
  .topbar__inner { flex-wrap: wrap; padding: 10px 16px; }
  .topbar__contacts { order: 3; flex: 1 0 100%; margin: 0; gap: 8px 24px; }
  .topbar__contacts li { white-space: normal; }
  .topbar__tools { margin-left: auto; }
  .navbar__inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; flex-basis: 100%; }
  .main-nav.is-open { display: block; }
  .main-menu { flex-direction: column; gap: 0; }
  .menu-item { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
  .menu-link { flex: 1; padding: 12px 8px; border-bottom: 0; font-size: .95rem; }
  .submenu-toggle { margin: 0; padding: 10px; min-width: 44px; min-height: 44px; justify-content: center; }
  .submenu-toggle svg { width: 20px; height: 20px; }
  .menu-item.is-open .submenu-toggle svg { transform: rotate(180deg); }
  .submenu { position: static; box-shadow: none; border-top: 0; min-width: 0; flex-basis: 100%; padding: 0 0 8px 16px; }
  .menu-item.has-children:hover .submenu, .menu-item.has-children:focus-within .submenu { display: none; }
  .menu-item.has-children.is-open .submenu { display: block; } /* специфичнее правила :focus-within выше */
  .search-form { margin-left: auto; }
  /* поиск раскрыт всегда: в бургер-режиме кружок-лупа только путает */
}
@media (max-width: 960px) {
  .cards-grid, .cards-grid--3, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .page-aside { order: 2; }
  .functions--with-collage, .intro--with-image, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .section__head { flex-direction: column; gap: 12px; }
  .section__head .btn--pill { position: static; transform: none; }
  .hero__slides { height: clamp(300px, 60vw, 460px); }
  .hero__overlay { padding: 24px 0 24px; }
  .page-card { padding: 22px 20px 26px; }
  .page-title { font-size: 1.9rem; }
  .news-item__body { grid-template-columns: minmax(0, 1fr); }
  .requisites div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 640px) {
  .cards-grid, .cards-grid--2, .cards-grid--3, .cards-grid--4, .news-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar__inner { gap: 12px; padding: 10px 16px; }
  .brand { flex: 1; min-width: 0; }
  .brand__logo { width: 48px; height: 48px; }
  .brand__name { font-size: 1.15rem; }
  .topbar__tools { gap: 6px; }
  .topbar__icon { width: 36px; height: 36px; }
  .topbar__contacts { flex: 1 0 100%; gap: 8px 20px; margin: 0; }
  .topbar__contacts li { align-items: flex-start; }
  .topbar__contacts li:nth-child(3) { display: none; }
  .topbar__contacts svg { width: 18px; height: 18px; margin-top: 2px; }
  .topbar__contacts a { font-size: .9rem; }
  .topbar__contacts small { display: block; font-size: .7rem; white-space: normal; }
  .topbar__dispatcher small { max-width: 150px; }
  .navbar__inner { min-height: 0; padding: 8px 16px; gap: 10px; }
  .nav-toggle { order: 1; }
  .search-form { order: 2; flex: 1; min-width: 0; margin: 0; }
  .search-form__input { flex: 1; width: auto; min-width: 0; }
  .main-nav { order: 3; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .pos-banner { padding: 24px 20px; }
  .cookie-notice__inner { padding: 10px 16px; gap: 10px 14px; font-size: .82rem; }
  .cookie-notice__actions { width: 100%; }
  .cookie-notice__actions .btn { flex: 1; justify-content: center; padding: .55em 1em; }
  .section { padding: 36px 0; }
  .section__title { font-size: 1.8rem; }
  .hero__eyebrow { font-size: .88rem; }
  .hero__title { font-size: 2rem; }
  .collage, .functions--with-collage .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; height: auto; }
  .collage__img { height: auto; aspect-ratio: 4 / 3; }
  .func-list { columns: 1; }
  .collage__img--1 { grid-column: 1 / -1; grid-row: auto; max-height: 260px; }
  .vacancy-card { grid-template-columns: minmax(0, 1fr); }
  .stream-figure--left, .stream-figure--right { float: none; max-width: 100%; margin: 1em 0; }
}
@media (max-width: 400px) {
  /* «САМАРАГОРСВЕТ» не помещался в остаток строки рядом с иконками */
  .brand__logo { width: 44px; height: 44px; }
  .brand__name { font-size: 1rem; letter-spacing: 0; }
  .topbar__icon { width: 34px; height: 34px; }
  .topbar__tools { gap: 4px; }
}
@media (max-width: 360px) {
  /* на самых узких экранах кавычки в названии переносились на отдельную строку */
  .brand__name { font-size: .88rem; }
}
@media (max-width: 640px) {
  .vacancy-card__salary, .counter__value { white-space: normal; }
}
/* Версия для слабовидящих поднимает базовый кегль до 22–26px: всё, что не переносится,
   в этом режиме обязано переноситься, иначе страница уезжает по горизонтали. */
html.a11y .vacancy-card__salary, html.a11y .counter__value, html.a11y .topbar__contacts li,
html.a11y .menu-link { white-space: normal; }

@media print {
  html { --cookie-offset: 0px !important; }
  .topbar__tools, .navbar, .hero__pause, .footer__partners, .cookie-notice, .a11y-panel, .pos-banner, .page-aside, .btn { display: none !important; }
  body { background: #fff; }
  .page-card { box-shadow: none; padding: 0; }
}
