/* Hide obsolete static chrome before the late unified header script executes. */
header.site-header,.top-strip,header.header,.header-bottom-menu,#masthead,.site-header-wrap,#header,.main-header,.wp-header,.td-header-wrap {display:none!important;}
:root {
  --ink: #12301e;
  --muted: #5f7567;
  --line: #d5e3d9;
  --paper: #ffffff;
  --soft: #f3f8f4;
  --navy: #0f5d2b;
  --blue: #17713a;
  --red: #0f6b32;
  --gold: #7c9d3b;
  --shadow: 0 18px 45px rgba(18, 48, 30, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
html.accessible-mode body,
body.accessible-mode {
  color: #000;
  background: #fff;
  font-size: 20px;
}
html.accessible-mode body a,
body.accessible-mode a {
  color: #000;
  text-decoration: underline;
}
html.accessible-mode body .top-strip,
html.accessible-mode body .site-header,
html.accessible-mode body .site-footer,
html.accessible-mode body .page-hero,
html.accessible-mode body .hero,
body.accessible-mode .top-strip,
body.accessible-mode .site-header,
body.accessible-mode .site-footer,
body.accessible-mode .page-hero,
body.accessible-mode .hero {
  color: #000;
  background: #fff;
}
html.accessible-mode body .hero img,
html.accessible-mode body .hero video,
html.accessible-mode body .hero__slide::after,
html.accessible-mode body .brand__logo,
body.accessible-mode .hero img,
body.accessible-mode .hero video,
body.accessible-mode .hero__slide::after,
body.accessible-mode .brand__logo {
  display: none;
}
html.accessible-mode body .button,
html.accessible-mode body input,
html.accessible-mode body select,
html.accessible-mode body textarea,
html.accessible-mode body .panel,
html.accessible-mode body .news-card,
html.accessible-mode body .service-card,
html.accessible-mode body .division-card,
body.accessible-mode .button,
body.accessible-mode input,
body.accessible-mode select,
body.accessible-mode textarea,
body.accessible-mode .panel,
body.accessible-mode .news-card,
body.accessible-mode .service-card,
body.accessible-mode .division-card {
  color: #000;
  background: #fff;
  border: 2px solid #000;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1416px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: 20px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: #000;
  border-radius: 6px;
}
.skip-link:focus {
  top: 20px;
}

.top-strip {
  background: #0d4f27;
  color: #eaf1f8;
  font-size: 14px;
}
.top-strip__inner {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 6px 0;
}
.top-strip__inner span { margin-right: auto; color: #c8d5e2; }
.text-button {
  border: 0;
  color: #fff;
  background: transparent;
  padding: 0;
}
.text-button--dark { color: var(--navy); font-weight: 700; }
body:not(.is-authenticated) .auth-only { display: none !important; }
body.is-authenticated [data-open-login] { display: none !important; }
.accessibility-switch {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  font-weight: 700;
}
.accessibility-switch__icon {
  min-width: 28px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  color: #0d4f27;
  background: #fff;
  border-radius: 4px;
  font-weight: 700;
}
.top-search {
  display: flex;
  align-items: center;
  min-width: 180px;
}
.top-search input {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px 0 0 6px;
}
.top-search button {
  min-height: 30px;
  padding: 0 10px;
  color: #0d4f27;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0 6px 6px 0;
  font-weight: 700;
}
.top-social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-social-links a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #0d4f27;
  background: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
body.accessible-mode .accessibility-switch {
  color: #000;
  background: #fff;
  border: 2px solid #000;
}
body.accessible-mode .accessibility-switch__icon {
  color: #fff;
  background: #000;
}
body.accessible-mode .top-search input,
body.accessible-mode .top-search button,
body.accessible-mode .top-social-links a {
  color: #000;
  background: #fff;
  border: 2px solid #000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-grid {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 330px;
}
.brand__logo {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}
.brand strong { display: block; font-size: 18px; }
.brand small { display: block; color: var(--muted); line-height: 1.25; }
.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  width: 100%;
  color: #234331;
  font-weight: 600;
}
.main-nav a { text-decoration: none; color: inherit; }
.main-nav a.is-active {
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  /* Фон баннера — цвет сайта, а не тёмный прямоугольник: то, что не закрыто
     кадром, должно выглядеть продолжением страницы, а не дырой. */
  background: var(--paper);
  width: min(1416px, calc(100% - 40px));
  margin: 0 auto;
  border-radius: 14px;
  /* Формат кадра по умолчанию 1600×600. Режим «авто» подставляет сюда
     пропорции самого ролика или снимка, чтобы кадр был виден целиком. */
  aspect-ratio: var(--hero-aspect, 1600 / 600);
  /* Страховка от высокого кадра: баннер не должен вытеснять всю страницу
     за пределы экрана. Что не вместилось, добирается полями фона. */
  max-height: 82vh;
}
/* В авто-режиме ограничиваем ширину вместе с высотой: края баннера
   совпадают с кадром даже на широком невысоком экране. */
.hero--auto-fit {
  max-width: calc(82vh * var(--hero-aspect, 1600 / 600));
}
/* Палец на курсоре — только у нажимаемого слайда: у видеобаннера ссылку обычно
   вешают на накладку, и палец над всем кадром обманывал бы посетителя. */
/* Матовое стекло позади кадра: мягкие переливы фирменного зелёного под
   полупрозрачной молочной плёнкой и размытие того, что за баннером. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 105% at 10% 0%, rgba(15, 93, 43, 0.14), transparent 62%),
    radial-gradient(120% 105% at 90% 100%, rgba(23, 113, 58, 0.16), transparent 64%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.74), rgba(243, 248, 244, 0.52));
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  pointer-events: none;
}
.hero__slide { position: absolute; inset: 0; z-index: 1; }
.hero__slide.is-clickable { cursor: pointer; }
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* cover — заполнить с обрезкой, contain — показать кадр целиком. */
  object-fit: var(--hero-fit, cover);
  object-position: center center;
  opacity: 1;
}
.hero__slide::after { display: none; }

/* Видеофон баннера. Постер под ним держит кадр, пока ролик грузится, поэтому
   видео проявляем только после события playing — иначе мелькает чёрный кадр. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--hero-fit, cover);
  object-position: center center;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}
.hero__video.is-ready { opacity: 1; }

/* Пустой баннер: за текстом только матовое стекло — затемнение убираем,
   надписи делаем тёмными, иначе белое по светлому не прочесть. */
.hero.is-empty .hero__scrim { display: none; }
.hero.is-empty .hero__content.is-visible .eyebrow,
.hero.is-empty .hero__content.is-visible p:not(.eyebrow) { color: var(--muted); opacity: 1; }
.hero.is-empty .hero__content.is-visible h1 { color: var(--ink); }

/* Атрибут hidden проигрывает явному display у этих элементов, поэтому
   скрытие органов слайдера при единственном баннере задаём отдельно. */
.hero .slider-arrow[hidden],
.hero .slider-dots[hidden],
.hero .slider-counter[hidden] { display: none; }

/* Затемнение под текстом: без него светлый кадр ролика съедает белые буквы. */
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(to right, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 58%);
}

/* Накладное изображение: герб, знак качества, плашка. */
.hero .hero__overlay {
  position: absolute;
  inset: auto;
  z-index: 2;
  /* Размер задаёт редактор долей ширины баннера; без выбора — прежние пределы.
     Заданный размер идёт и в width: одни max-* только уменьшают картинку,
     а мелкий логотип нужно уметь и увеличить. */
  width: var(--overlay-width, auto);
  max-width: var(--overlay-size, min(30%, 320px));
  max-height: var(--overlay-height, 42%);
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* Накладка-ссылка: только она и принимает нажатие, когда так выбрано в CMS. */
.hero .hero__overlay--link {
  pointer-events: auto;
  cursor: pointer;
}
.hero .hero__overlay--left-top { top: 32px; left: 32px; }
.hero .hero__overlay--right-top { top: 32px; right: 32px; }
.hero .hero__overlay--left-bottom { bottom: 32px; left: 32px; }
.hero .hero__overlay--right-bottom { bottom: 32px; right: 32px; }
.hero .hero__overlay--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(52%, 520px);
}

/* Мягкие края накладки: прямоугольная растушёвка, а не эллипс — иначе у логотипа
   срезало бы углы. Два линейных градиента пересекаются, поэтому середина остаётся
   полностью непрозрачной, а таять начинает только полоса по периметру.
   Там, где mask-composite не поддерживается, края просто останутся чёткими. */
.hero .hero__overlay--edge-soft {
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero .hero__overlay--edge-fade {
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 20%, #000 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0, #000 20%, #000 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Текст поверх фона включается только у баннеров с show_text: у остальных
   надписи вшиты в само изображение и дублировались бы. */
.hero__content { display: none; }
.hero__content.is-visible {
  position: absolute;
  z-index: 3;
  /* The full-width text layer must not intercept clicks on the image below. */
  pointer-events: none;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 56px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.hero__content.is-visible .eyebrow { color: #fff; opacity: 0.92; }
.hero__content.is-visible h1 { color: #fff; }
.hero__content.is-visible p:not(.eyebrow) { color: rgba(255, 255, 255, 0.92); }
.hero__content.is-visible .hero__actions a[hidden] { display: none; }
.hero__content.is-visible a,
.hero__content.is-visible button { pointer-events: auto; }

/* Оформление надписей баннера (RFG-20260909-004): шрифт, размер, выравнивание,
   цвет и рамка задаются в CMS для каждого баннера отдельно. Значения по
   умолчанию повторяют прежний вид, поэтому старые баннеры не меняются. */
.hero__content.is-visible {
  --hero-text-scale: var(--hero-selected-scale, 1);
  font-family: var(--hero-text-font, inherit);
  text-align: var(--hero-text-align, left);
}
.hero__content.is-visible .eyebrow { font-size: calc(13px * var(--hero-text-scale)); }
.hero__content.is-visible h1 { font-size: calc(clamp(2rem, 4vw, 3.1rem) * var(--hero-text-scale)); }
.hero__content.is-visible p:not(.eyebrow) { font-size: calc(20px * var(--hero-text-scale)); }
.hero__content--font-serif { --hero-text-font: Georgia, "Times New Roman", serif; }
.hero__content--font-wide { --hero-text-font: "Arial Black", "Segoe UI", Impact, sans-serif; }
.hero__content--font-mono { --hero-text-font: "Cascadia Mono", Consolas, "Courier New", monospace; }
.hero__content--size-s { --hero-selected-scale: 0.8; }
.hero__content--size-l { --hero-selected-scale: 1.3; }
.hero__content--size-xl { --hero-selected-scale: 1.65; }
.hero__content--align-center { --hero-text-align: center; align-items: center; }
.hero__content--align-right { --hero-text-align: right; align-items: flex-end; }
.hero__content--vertical-top { justify-content: flex-start; padding-top: 56px; }
.hero__content--vertical-center { justify-content: center; padding-top: 56px; }
/* Рамка и плашка живут на внутренней коробке: сам .hero__content растянут на всю
   ширину баннера, и рамка на нём обвела бы кадр, а не надпись. */
.hero__content--framed .hero-text-box {
  padding: 22px 26px;
  border-radius: 14px;
  width: fit-content;
  max-width: min(1416px, calc(100% - 40px));
}
.hero__content--frame-line .hero-text-box { border: 2px solid currentColor; }
.hero__content--frame-plate .hero-text-box { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(2px); }
.hero__content--frame-plate-light .hero-text-box { background: rgba(255, 255, 255, 0.85); }
.hero__content--frame-plate-line .hero-text-box { background: rgba(0, 0, 0, 0.45); border: 2px solid currentColor; }
.hero__content--frame-plate-light.is-visible,
.hero__content--frame-plate-light.is-visible .eyebrow,
.hero__content--frame-plate-light.is-visible h1,
.hero__content--frame-plate-light.is-visible p:not(.eyebrow) { color: #12301e; text-shadow: none; }
.hero__content--own-color.is-visible,
.hero__content--own-color.is-visible .eyebrow,
.hero__content--own-color.is-visible h1,
.hero__content--own-color.is-visible p:not(.eyebrow) { color: var(--hero-text-color); }

/* Оформление отдельных строк баннера (RFG-20260909-005): рамка и размер задаются
   каждой строке отдельно, поэтому «Основано в 1962 году» может стоять в рамке,
   а заголовок рядом — просто крупнее. Рамка живёт на самой строке: на блоке она
   обвела бы весь баннер. */
.hero__content #heroSubtitle { margin: 0 0 10px; font-weight: 700; }
.hero__content .hero-line--boxed,
.hero__content .hero-line--plate,
.hero__content .hero-line--plate-light {
  display: inline-block;
  padding: 0.3em 0.62em;
  border-radius: 12px;
}
.hero__content .hero-line--boxed { border: 2px solid currentColor; }
.hero__content .hero-line--plate { background: rgba(0, 0, 0, 0.45); }
.hero__content .hero-line--plate-light { background: rgba(255, 255, 255, 0.88); color: #12301e; }
.hero__content .hero-line--size-xs { font-size: 0.62em; }
.hero__content .hero-line--size-s { font-size: 0.8em; }
.hero__content .hero-line--size-l { font-size: 1.3em; }
.hero__content .hero-line--size-xl { font-size: 1.65em; }

/* Свободная вёрстка надписей баннера (RFG-20260909-006): текст набирается в
   редакторе CMS и приходит готовой разметкой. Типографика повторяет редактор,
   чтобы набранное выглядело на сайте так же. */
.hero__rich { max-width: 46rem; }
.hero__content--align-center .hero__rich { margin-left: auto; margin-right: auto; }
.hero__content--align-right .hero__rich { margin-left: auto; }
.hero__rich h1 { font-size: calc(clamp(2rem, 4vw, 3.1rem) * var(--hero-text-scale)); line-height: 1.12; margin: 0 0 12px; }
.hero__rich h2 { font-size: calc(clamp(1.3rem, 2.4vw, 1.9rem) * var(--hero-text-scale)); margin: 0 0 10px; }
.hero__rich p { font-size: calc(20px * var(--hero-text-scale)); margin: 0 0 10px; }
.hero__rich p:last-child { margin-bottom: 0; }
.hero__rich .hero-line--boxed,
.hero__rich .hero-line--plate,
.hero__rich .hero-line--plate-light {
  display: inline-block;
  padding: 0.3em 0.62em;
  border-radius: 12px;
}
.hero__rich .hero-line--boxed { border: 2px solid currentColor; }
.hero__rich .hero-line--plate { background: rgba(0, 0, 0, 0.45); }
.hero__rich .hero-line--plate-light { background: rgba(255, 255, 255, 0.88); color: #12301e; }
.hero__content.is-visible .hero__rich,
.hero__content.is-visible .hero__rich h1,
.hero__content.is-visible .hero__rich h2,
.hero__content.is-visible .hero__rich p { color: #fff; }
.hero__content.is-visible .hero__rich .hero-line--plate-light { color: #12301e; }
.hero__content.is-visible #heroSubtitle { color: #fff; }
.hero__content .hero-line--plate-light,
.hero__content.is-visible .hero-line--plate-light { color: #12301e; }
.slider-label {
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
}
.hero p:not(.eyebrow) { max-width: 650px; margin: 0 0 28px; font-size: 20px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
}
.button--primary { background: var(--red); color: #fff; }
.button--secondary { background: var(--navy); color: #fff; }
.button--light { background: #fff; color: var(--navy); }
.slider-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.slider-dots button {
  width: 42px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,0.45);
}
.slider-dots .is-active { background: #fff; }
.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(13, 79, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}
.slider-arrow--prev { left: 24px; }
.slider-arrow--next { right: 24px; }
.slider-counter {
  position: absolute;
  right: 28px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
  font-weight: 700;
}

.quick-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: -52px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}
.quick-services a, .quick-services button {
  min-height: 132px;
  display: block;
  border: 0;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}
.quick-services strong { display: block; margin-bottom: 8px; font-size: 19px; }
.quick-services span { color: var(--muted); }

.section-band { margin: 72px auto 0; padding: 58px 0; background: var(--soft); width: min(1416px, calc(100% - 40px)); border-radius: 14px; }
.services-section { margin-top: 72px; }
.page-hero {
  padding: 70px 0 64px;
  color: #fff;
  background: linear-gradient(135deg, #0d4f27, #17713a);
  width: min(1416px, calc(100% - 40px));
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
}
.page-hero h1 {
  max-width: 780px;
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
}
.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  font-size: 19px;
  color: #e7eef7;
}
.page-section {
  margin-top: 56px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
h2 { margin: 0; font-size: 32px; line-height: 1.15; }
h3 { margin: 0 0 10px; line-height: 1.25; }
.news-grid, .survey-grid, .internal-grid, .analytics-grid, .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.news-card, .survey-card, .panel, .chart-card, .internal-grid article, .service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.news-card time, .survey-card span { color: var(--red); font-weight: 700; font-size: 14px; }
.news-card p, .survey-card p, .panel p { color: var(--muted); }
.news-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 14px;
  border-radius: 6px;
}
/* Карусель новостей со стрелками */
.news-carousel { position: relative; padding: 0 44px; max-width: 100%; box-sizing: border-box; }
.news-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.news-track::-webkit-scrollbar { display: none; }
.news-track .news-card {
  flex: 0 0 auto;
  width: clamp(260px, 31%, 360px);
  scroll-snap-align: start;
  min-height: 210px;
}
.news-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 24px; line-height: 1; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(18,48,30,.14);
}
.news-arrow:hover { background: var(--navy); color: #fff; }
.news-arrow:disabled { opacity: .35; cursor: default; }
.news-arrow--prev { left: 0; }
.news-arrow--next { right: 0; }
/* Превью новости с фото-фоном и матовым серым стеклом */
.news-card--photo {
  position: relative; overflow: hidden; border: none; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.news-card--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--bg) center / cover no-repeat;
}
.news-card--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(52, 62, 55, .58);
  -webkit-backdrop-filter: blur(2px) saturate(.85);
  backdrop-filter: blur(2px) saturate(.85);
}
.news-card--photo > * { position: relative; z-index: 2; }
.news-card--photo time { color: #cfeecf; }
.news-card--photo h3 a { color: #fff; }
.news-card--photo p { color: rgba(255,255,255,.9); }
@media (max-width: 720px) {
  .news-carousel { padding: 0 34px; }
  .news-track .news-card { flex: 0 0 auto; width: 78%; }
}
/* Галерея фотографий на странице материала */
.press-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 24px 0; }
.press-gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.press-gallery img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .3s ease; }
.press-gallery a:hover img { transform: scale(1.05); }
.service-card {
  /* Карточка целиком — ссылка с одним названием, поэтому она ниже прежней и
     выравнивает текст по нижнему краю, как превью новостей. */
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease, transform 120ms ease;
}
.service-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.service-card h3 { margin: 0; }
.service-card span {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}
.service-card p {
  color: var(--muted);
  flex: 1;
}
.service-card a {
  color: var(--blue);
  font-weight: 700;
}
/* Превью услуги с фото-фоном и матовым стеклом (как у новостей) */
.service-card--photo {
  position: relative; overflow: hidden; border: none; color: #fff;
  justify-content: flex-end;
}
.service-card--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--bg) center / cover no-repeat;
}
.service-card--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(52, 62, 55, .60);
  -webkit-backdrop-filter: blur(2px) saturate(.85);
  backdrop-filter: blur(2px) saturate(.85);
}
.service-card--photo > * { position: relative; z-index: 2; }
.service-card--photo span { color: #dfeee4; }
.service-card--photo h3 { color: #fff; }
.service-card--photo p { color: rgba(255,255,255,.92); }
.service-card--photo a { color: #fff; text-decoration: underline; }
.service-card--photo:hover { border-color: transparent; }
/* Блок «Органы государственной власти» */
.gov-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 10px; }
.gov-links a {
  display: flex; align-items: center; min-height: 66px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.gov-links a:hover { border-color: var(--navy); color: var(--navy); box-shadow: 0 8px 22px rgba(18,48,30,.1); }
.service-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--line);
}
.service-process div {
  min-height: 112px;
  padding: 18px;
  background: var(--soft);
}
.service-process strong {
  display: block;
  color: var(--red);
  font-size: 26px;
}
.service-process span {
  color: var(--ink);
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 72px;
}
.page-section .content-grid { margin-top: 0; }
.document-wide { margin-top: 18px; }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}
.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.panel__head h2 { font-size: 26px; }
.document-list { list-style: none; padding: 0; margin: 0; }
.document-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.document-list a { color: var(--blue); font-weight: 700; }

.form-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}
.status-stack { display: grid; gap: 10px; margin-top: 26px; }
.status-stack span {
  padding: 12px 14px;
  background: #fff;
  border-left: 4px solid var(--gold);
}
.service-form, .builder {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
label { display: grid; gap: 7px; font-weight: 700; }
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}
.check-line input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #c6d8cb;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 104px; resize: vertical; }
output { color: var(--blue); font-weight: 700; }

.surveys { margin-top: 72px; }
.survey-grid { grid-template-columns: repeat(2, 1fr); }
.search { max-width: 360px; }
.unit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.unit-card {
  min-height: 160px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.unit-card span { color: var(--muted); display: block; }
.division-list {
  display: grid;
  gap: 18px;
}
.division-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(18, 48, 30, 0.08);
}
.division-card h3 {
  font-size: 24px;
}
.division-card p {
  margin: 7px 0;
}
.division-card a {
  color: var(--blue);
  font-weight: 700;
}
.division-map {
  min-height: 110px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 45%, var(--red) 0 8px, transparent 9px),
    linear-gradient(135deg, #dfe9e1, #8aa897);
  border-radius: 8px;
}
.division-map span {
  padding: 6px 10px;
  background: rgba(13, 79, 39, 0.86);
  border-radius: 6px;
  font-weight: 700;
}

.workspace,
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  padding: 24px;
  background: rgba(8, 37, 20, 0.66);
}
.workspace.is-open,
.login-modal.is-open { display: block; }
.workspace__shell {
  width: min(1416px, 100%);
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.workspace__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 24px;
}
.login-card {
  width: min(560px, 100%);
  margin: 6vh auto 0;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.login-form {
  display: grid;
  gap: 14px;
  padding: 26px;
}
.captcha-line,
.captcha-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.captcha-line strong { font-size: 18px; }
.captcha-widget {
  position: relative;
  overflow: hidden;
  min-height: 64px;
  background:
    repeating-linear-gradient(35deg, rgba(15, 93, 43, 0.1) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, #eef7f0, #ffffff);
}
.captcha-widget::before,
.captcha-widget::after {
  content: "";
  position: absolute;
  inset: auto -20px 18px;
  height: 2px;
  background: rgba(15, 93, 43, 0.45);
  transform: rotate(-8deg);
}
.captcha-widget::after {
  inset: 18px -20px auto;
  transform: rotate(7deg);
}
.captcha-code {
  position: relative;
  z-index: 1;
  display: inline-block;
  min-width: 170px;
  padding-left: var(--captcha-shift, 0);
  color: #0d4f27;
  font-family: "Courier New", monospace;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 6px;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  transform: rotate(var(--captcha-tilt, -2deg));
  user-select: none;
}
.captcha-widget .text-button {
  position: relative;
  z-index: 1;
}
.two-factor {
  padding: 14px;
  background: #f4faf5;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tabs {
  display: flex;
  gap: 6px;
  padding: 12px 26px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  white-space: nowrap;
}
.tabs .is-active { color: #fff; background: var(--navy); border-color: var(--navy); }
.workspace__body { padding: 26px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.metric-grid div {
  padding: 20px;
  background: var(--soft);
  border-radius: 8px;
}
.metric-grid strong { display: block; font-size: 34px; }
.metric-grid span { color: var(--muted); }
.wiki-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
}
.wiki-layout nav { display: grid; align-content: start; gap: 8px; }
.wiki-layout nav button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
  text-align: left;
}
.wiki-layout nav .is-active { border-color: var(--navy); color: var(--navy); font-weight: 700; }
.ticket-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ticket-column {
  min-height: 280px;
  background: var(--soft);
  border-radius: 8px;
  padding: 14px;
}
.ticket-column h3 { font-size: 17px; }
.ticket {
  margin-top: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.ticket small { color: var(--muted); }
.analytics-grid { grid-template-columns: 1.2fr 0.8fr; }
.bars { display: grid; gap: 12px; }
.bars span {
  position: relative;
  display: block;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf6ef;
  font-weight: 700;
}
.bars span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: rgba(23, 113, 58, 0.22);
}

.admin-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: start;
}
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.admin-card--wide { grid-column: 1 / -1; }
.admin-card__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.structure-editor {
  display: grid;
  gap: 10px;
}
.structure-row {
  display: grid;
  grid-template-columns: 132px minmax(160px, 1fr) minmax(110px, 0.55fr) 96px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.structure-row input {
  min-width: 0;
  background: #fff;
}
.structure-row__toggle,
.structure-row__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.structure-row__toggle input,
.structure-row__menu input {
  width: 18px;
  height: 18px;
}
.admin-preview {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}
.preview-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.preview-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--navy);
  background: #edf6ef;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}
.site-tree {
  margin: 12px 0 0;
  padding-left: 18px;
}
.site-tree li {
  margin: 7px 0;
}
.site-tree span {
  font-weight: 700;
}
.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.social-admin-form {
  grid-template-columns: repeat(3, 1fr);
}
.social-admin-form .button,
.social-admin-form output {
  grid-column: 1 / -1;
}
.slide-editor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.slide-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.slide-row__number {
  color: var(--red);
  font-weight: 700;
}
.slide-row textarea {
  min-height: 112px;
}
.admin-image-preview {
  min-height: 140px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #edf6ef;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-weight: 700;
}
.admin-image-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.news-admin-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.news-admin-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.news-admin-card textarea {
  min-height: 120px;
}
.survey-admin-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.question-builder {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}
.question-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.question-row__head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.option-preview {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option-preview span {
  padding: 6px 10px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}
.survey-admin-form .button,
.survey-admin-form output {
  grid-column: 1 / -1;
}
.survey-admin-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.survey-admin-card {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.survey-admin-card span {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}
.survey-admin-card h4 {
  margin: 8px 0;
  font-size: 18px;
}
.article-grid,
.article-admin-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.article-card,
.article-admin-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.article-admin-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 12px;
  border-radius: 6px;
}
.article-admin-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.article-body-field,
.article-admin-form .button,
.article-admin-form output {
  grid-column: 1 / -1;
}
.article-body-field textarea {
  min-height: 180px;
}
.muted-note {
  color: var(--muted);
}

.site-footer {
  margin-top: 72px;
  padding: 34px 0;
  color: #dce6f0;
  background: #0d4f27;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.footer-grid a { display: inline-block; margin-left: 18px; }
.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-left: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}
.cookie-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: min(520px, calc(100% - 40px));
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.cookie-consent p {
  margin: 4px 0 0;
  color: var(--muted);
}

/* ─── Документные страницы ───────────────────────────────── */
.doc-category { margin-bottom: 2rem; }
.doc-category__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.doc-category__head h2 { margin: 0; font-size: 1.15rem; }
.doc-category__tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  background: var(--soft);
  border-radius: 20px;
  color: var(--muted);
  white-space: nowrap;
}
.doc-category__text { margin: 0 0 1rem; color: var(--muted); }
.doc-inline-list { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.doc-inline-list li { margin-bottom: 0.4rem; line-height: 1.5; }
.doc-request-panel { margin-top: 2rem; padding: 2rem; }
.doc-request-panel h2 { margin-top: 0; }
.doc-request-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.25rem; }

/* ─── Мобильное меню — бургер ────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Версия для слабовидящих ────────────────────────────── */
html.accessible-mode,
body.accessible-mode {
  font-size: 20px !important;
  line-height: 1.7 !important;
  letter-spacing: 0.02em;
}
html.accessible-mode *,
body.accessible-mode * {
  font-size: inherit;
  color: #000 !important;
  background-color: #fff !important;
  border-color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
}
html.accessible-mode a,
body.accessible-mode a {
  color: #00008b !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
html.accessible-mode a:visited,
body.accessible-mode a:visited { color: #551a8b !important; }
html.accessible-mode a:hover,
body.accessible-mode a:hover { color: #000 !important; background: #ff0 !important; }
html.accessible-mode :focus-visible,
body.accessible-mode :focus-visible {
  outline: 3px solid #000 !important;
  outline-offset: 3px !important;
}
html.accessible-mode .brand__logo,
body.accessible-mode .brand__logo {
  filter: grayscale(1) contrast(2);
  border: 2px solid #000;
}
html.accessible-mode .hero img,
html.accessible-mode .hero video,
html.accessible-mode .hero .hero__scrim,
html.accessible-mode .hero__slide::after,
body.accessible-mode .hero img,
body.accessible-mode .hero video,
body.accessible-mode .hero .hero__scrim,
body.accessible-mode .hero__slide::after { display: none; }
/* В версии для слабовидящих фон скрыт, поэтому подобранный под ролик формат
   оставил бы пустую коробку: возвращаем баннеру исходные пропорции. */
html.accessible-mode .hero,
body.accessible-mode .hero { aspect-ratio: 1600 / 600; }
/* В версии для слабовидящих фон скрыт целиком — матовая подложка там лишняя. */
html.accessible-mode .hero::before,
body.accessible-mode .hero::before { display: none; }
html.accessible-mode .button,
body.accessible-mode .button {
  border: 2px solid #000 !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
}
html.accessible-mode .top-strip,
body.accessible-mode .top-strip {
  background: #000 !important;
}
html.accessible-mode .top-strip *,
body.accessible-mode .top-strip * {
  color: #fff !important;
  background: #000 !important;
  border-color: #fff !important;
}
html.accessible-mode .top-strip a,
body.accessible-mode .top-strip a {
  color: #fff !important;
  text-decoration: underline !important;
}
html.accessible-mode .accessibility-switch,
body.accessible-mode .accessibility-switch {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}
html.accessible-mode .accessibility-switch *,
body.accessible-mode .accessibility-switch * {
  color: #000 !important;
  background: #fff !important;
}
html.accessible-mode .accessibility-switch__icon,
body.accessible-mode .accessibility-switch__icon {
  background: #000 !important;
  color: #fff !important;
}
html.accessible-mode img:not(.brand__logo),
body.accessible-mode img:not(.brand__logo) {
  filter: grayscale(1);
  opacity: 0.85;
}
html.accessible-mode .page-hero,
html.accessible-mode .section-band,
body.accessible-mode .page-hero,
body.accessible-mode .section-band {
  background: #f0f0f0 !important;
  border: 2px solid #000;
}
html.accessible-mode .news-card,
html.accessible-mode .service-card,
html.accessible-mode .panel,
html.accessible-mode .division-card,
html.accessible-mode .doc-category,
body.accessible-mode .news-card,
body.accessible-mode .service-card,
body.accessible-mode .panel,
body.accessible-mode .division-card,
body.accessible-mode .doc-category {
  border: 2px solid #000 !important;
  padding: 1rem;
}
html.accessible-mode .site-footer,
body.accessible-mode .site-footer {
  border-top: 3px solid #000 !important;
}

/* ─── Адаптив: планшет (≤ 1024px) ───────────────────────── */
@media (max-width: 1024px) {
  .header-grid { gap: 16px; }
  .brand { min-width: 0; }
  .main-nav { gap: 14px; font-size: 14px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-services { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Адаптив: мобильный (≤ 768px) ──────────────────────── */
@media (max-width: 768px) {
  /* Шапка: бургер меню */
  .nav-toggle { display: flex; }
  .header-grid {
    flex-wrap: wrap;
    min-height: auto;
    padding: 12px 0;
    gap: 0;
  }
  .brand { flex: 1; gap: 10px; }
  .brand__logo { width: 44px; height: 44px; flex: 0 0 44px; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
    margin-top: 10px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.is-active { border-left: 3px solid var(--gold); padding-left: 8px; }

  /* Верхняя полоса */
  .top-strip__inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
  }
  .top-strip__inner > span { display: none; }
  .top-search { display: none; }
  .top-social-links a { width: 26px; height: 26px; font-size: 10px; }

  /* Секции страниц */
  .page-hero { padding: 2rem 0; }
  .page-hero h1 { font-size: 1.6rem; }
  .hero__content.is-visible { padding-bottom: 34px; }
  .hero .hero__overlay { max-width: var(--overlay-size, 38%); max-height: var(--overlay-height, 34%); }
  .hero .hero__overlay--left-top, .hero .hero__overlay--right-top { top: 16px; }
  .hero .hero__overlay--left-bottom, .hero .hero__overlay--right-bottom { bottom: 16px; }
  .hero .hero__overlay--left-top, .hero .hero__overlay--left-bottom { left: 16px; }
  .hero .hero__overlay--right-top, .hero .hero__overlay--right-bottom { right: 16px; }
  .hero__content { padding: 0 16px; }
  .hero__content { padding: 1.5rem; }
  .hero__content.is-visible h1 { font-size: calc(1.5rem * var(--hero-text-scale)); }
  .hero__actions { flex-wrap: wrap; gap: 10px; }

  .services-grid { grid-template-columns: 1fr; }
  .quick-services { grid-template-columns: 1fr; gap: 12px; }
  .news-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .service-process { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .division-card { grid-template-columns: 1fr; }
  .division-map { display: none; }
  .doc-request-actions { flex-direction: column; }

  /* Кнопки */
  .button { width: 100%; text-align: center; justify-content: center; }
  .section-head .button { width: auto; }

  .cookie-consent { align-items: stretch; flex-direction: column; }
  .admin-card__head { align-items: flex-start; flex-direction: column; }
  .structure-row, .survey-grid, .internal-grid, .wiki-layout { grid-template-columns: 1fr; }
  .workspace { padding: 10px; }
  .workspace__shell { max-height: calc(100vh - 20px); }
  .slider-arrow { top: auto; bottom: 60px; transform: none; }
  .slider-arrow--prev { left: 12px; }
  .slider-arrow--next { right: 12px; }
  .slider-counter { right: 12px; bottom: 106px; }
}

/* ─── Адаптив: маленький мобильный (≤ 480px) ────────────── */
@media (max-width: 480px) {
  .container { width: calc(100% - 24px); }
  .page-hero h1 { font-size: 1.35rem; }
  .panel { padding: 1rem; }
  .news-card { padding: 1rem; }
  .service-card { padding: 1.25rem; }
  .site-footer { padding: 2rem 0 1rem; }
  .footer-grid { gap: 1.5rem; }
  .doc-category__head { flex-wrap: wrap; }
  .doc-category__tag { font-size: 11px; }
}

/* Мега-меню (реструктуризация 2026) */
.main-nav{display:flex;align-items:center;gap:2px;flex-wrap:wrap}
.main-nav .nav-item{position:relative}
.main-nav .nav-top{display:inline-flex;align-items:center;gap:5px;padding:10px 13px;color:#12301e;text-decoration:none;font-weight:600;font-size:.95rem;border-radius:8px;white-space:nowrap}
.main-nav .nav-top:hover{background:#f3f8f4;color:#0f5d2b}
.main-nav .caret{font-size:.7em;opacity:.65}
.main-nav .nav-dropdown{position:absolute;top:100%;left:0;min-width:270px;background:#fff;border:1px solid #d5e3d9;border-radius:12px;box-shadow:0 18px 45px rgba(18,48,30,.14);padding:7px;display:none;flex-direction:column;z-index:60}
.main-nav .has-dropdown:hover .nav-dropdown{display:flex}
.main-nav .nav-dropdown a{display:block;padding:9px 12px;color:#12301e;text-decoration:none;border-radius:8px;font-size:.9rem;white-space:nowrap}
.main-nav .nav-dropdown a:hover{background:#f3f8f4;color:#0f5d2b}
.main-nav .nav-cta{background:#0f5d2b;color:#fff!important;padding:10px 20px;border-radius:9px;font-weight:700;text-decoration:none;margin-left:10px;white-space:nowrap}
.main-nav .nav-cta:hover{filter:brightness(1.12)}
@media(max-width:900px){.main-nav{flex-direction:column;align-items:stretch}.main-nav .nav-dropdown{position:static;display:flex;box-shadow:none;border:none;padding:0 0 4px 14px;min-width:0}.main-nav .caret{display:none}.main-nav .nav-cta{margin:8px 0 0}}

/* Органы государственной власти: карточки с гербами */
.gov-links a{display:flex;align-items:center;gap:12px}
.gov-links a img{flex:0 0 44px;width:44px;height:44px;object-fit:contain;border-radius:6px;background:#fff}
.gov-links-more{margin:14px 0 0;font-size:14px;color:var(--muted)}
.gov-links-more a{color:var(--muted);text-decoration:underline}
.gov-links-more a:hover{color:var(--navy)}
.gov-links a img.on-dark{background:#0f5d2b;padding:5px}

/* Анкеты клиентоцентричности: вопрос — карточка, матрица — таблица, которая на
   узком экране превращается в список строк со своими подписями (RFG-20260907-001). */
.survey { max-width: 860px; }
.survey__intro { max-width: 860px; color: var(--muted, #5f7567); }
.survey__q {
  border: 1px solid #d5e3d9;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 18px;
  background: #fff;
}
.survey__q legend { font-weight: 700; padding: 0 6px; }
.survey__num { color: #0f5d2b; }
.survey__req { color: #b3261e; }
.survey__hint { margin: 6px 0 12px; font-size: 15px; color: #5f7567; }
.survey__options { display: grid; gap: 8px; margin-top: 10px; }
/* Общее правило портала делает label двухстрочной сеткой (подпись над полем);
   в анкете флажок и текст должны стоять в строку, поэтому раскладка задаётся явно. */
.survey__option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}
.survey__option input { margin-top: 4px; }
.survey__matrix td label { font-weight: 400; }
.survey__q input[type="text"], .survey__q textarea {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #ccd8cf;
  border-radius: 8px;
  font: inherit;
}
.survey__matrix { overflow-x: auto; margin-top: 12px; }
.survey__matrix table { border-collapse: collapse; width: 100%; }
.survey__matrix th, .survey__matrix td { border: 1px solid #e0eae3; padding: 8px 10px; text-align: center; }
.survey__matrix th[scope="row"] { text-align: left; font-weight: 500; }
.survey__cell-label { display: none; }
.survey__note { margin: 26px 0 16px; }
.survey__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.survey__result { color: #0f5d2b; font-weight: 600; }
.link-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 20px 0; }
.link-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid #d5e3d9;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.link-card:hover { border-color: #0f5d2b; }
.link-card strong { display: block; margin-bottom: 6px; }

@media (max-width: 720px) {
  /* Матрица шириной в экран не помещается: разворачиваем её в список, где у каждой
     ячейки видна подпись столбца — иначе выбор делается вслепую. */
  .survey__matrix table, .survey__matrix thead, .survey__matrix tbody,
  .survey__matrix tr, .survey__matrix th, .survey__matrix td { display: block; }
  .survey__matrix thead { display: none; }
  .survey__matrix tr { border: 1px solid #e0eae3; border-radius: 10px; margin-bottom: 12px; padding: 10px; }
  .survey__matrix th, .survey__matrix td { border: none; text-align: left; padding: 4px 0; }
  .survey__matrix td label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
  .survey__cell-label { display: inline; }
}

/* Навигация внутри раздела клиентоцентричности и сводки ответов. */
.section-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 22px; font-size: 15px; }
.section-nav__current { font-weight: 700; color: #0f5d2b; }
.survey__list { margin: 0 0 22px; padding-left: 20px; }
.survey__list li { margin-bottom: 6px; }
.survey-result { margin: 0 0 26px; }
.survey-result h3 { margin: 0 0 4px; font-size: 18px; }
.survey-result table { border-collapse: collapse; width: 100%; max-width: 860px; }
.survey-result th[scope="row"] { text-align: left; font-weight: 400; padding: 6px 12px 6px 0; width: 46%; }
.survey-result__bar { padding: 6px 0; }
.survey-result__bar span { display: block; height: 12px; border-radius: 6px; background: #0f5d2b; min-width: 2px; }
.survey-result__num { padding: 6px 0 6px 12px; white-space: nowrap; font-weight: 700; }

/* Страница услуги: вводный абзац крупнее текста, шаги заказа — нумерованным списком. */
.service-page { max-width: 860px; }
.service-page__lead { font-size: 19px; line-height: 1.6; }
.service-page__steps { padding-left: 22px; margin: 0 0 22px; }
.service-page__steps li { margin-bottom: 8px; }
.service-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }

/* RFG text layout: container fills the frame; the inner box carries its frame. */
.hero__content.is-visible {top:0;box-sizing:border-box;padding-top:24px;}
.hero__content.is-visible.hero__content--align-center {align-items:center;}
.hero__content.is-visible.hero__content--align-right {align-items:flex-end;}
.hero__content.is-visible.hero__content--vertical-top {justify-content:flex-start;padding-top:32px;padding-bottom:32px;}
.hero__content.is-visible.hero__content--vertical-center {justify-content:center;padding-top:32px;padding-bottom:32px;}
.hero-text-box {display:flex;flex-direction:column;align-items:inherit;max-width:100%;min-width:0;}
.hero-text-box > [hidden] {display:none!important;}
.hero-text-box > #heroEyebrow,.hero-text-box > #heroTitle,.hero-text-box > #heroSubtitle,.hero-text-box > #heroText {
 font-family:inherit;white-space:pre-line;overflow-wrap:anywhere;max-width:100%;line-height:1.3;flex-shrink:0;
}
.hero__content.is-visible.hero__content--own-color #heroSubtitle,
.hero__content.is-visible.hero__content--own-color .hero__rich,
.hero__content.is-visible.hero__content--own-color .hero__rich h1,
.hero__content.is-visible.hero__content--own-color .hero__rich h2,
.hero__content.is-visible.hero__content--own-color .hero__rich p {color:var(--hero-text-color);}
.hero__content.is-visible .hero-text-box > .hero-line--plate-light {color:#12301e;}
@media(max-width:600px){.hero__content.is-visible {min-height:340px;}.hero__content.is-visible.hero__content--vertical-center {padding-top:40px;padding-bottom:40px;}}

@media(max-width:600px){.hero .hero__slide .hero__content.is-visible {min-height:420px;padding-top:40px;padding-bottom:40px;}}
