/* =============================================
   СБРОС И ПЕРЕМЕННЫЕ
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.station-section__body ol{list-style:decimal;}
.doc-grid-list {display: flex;    flex-direction: column;
    justify-content: space-between;
    padding: 0 20px 0 50px;}
.doc-grid-list a {padding-bottom:10px;color: var(--blue);    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;}
.doc-grid-list a:hover {text-decoration:underline;}

.btn-more {
    width: auto!important;}
.content-text ul  {list-style:disc ;}
.hid {display:none;}
.s-strok a {font-weight:500; text-decoration:underline;}
.search-results-list .mse2-row {padding-bottom:10px;}
.thanks {display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0 0;
    text-decoration: underline;}
:root {
  --blue:        #095BD6;
  --blue-dark:   #0748b0;
  --text:        #334059;
  --white:       #ffffff;
  --gray-bg:     #EFF0F2;
  --gray-line:   #e0e5ef;
  --gray-muted:  #8a93ab;
  --font:        'Roboto', sans-serif;
  --radius:      0px;
  --container:   1360px;
  --shadow:      0 4px 20px rgba(9, 91, 214, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
[hidden] { display: none !important; }

/* Скип-ссылка для доступности */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: var(--blue);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }


/* =============================================
   КОНТЕЙНЕР
   ============================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}


/* =============================================
   ШАПКА — ВЕРХНЯЯ ПОЛОСА
   ============================================= */
.site-header {
  position: relative;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-top {
  background: var(--white);
  border-bottom: 1px solid var(--gray-line);
  padding: 14px 0;
}

.header-top__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;   /* якорь для мобильного дропдауна */
}

/* Логотип + название */
.header-top__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}

.header-top__logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

.header-top__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.45;
  max-width: 320px;    text-align: center;
}

/* Служебные ссылки */
.header-top__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  flex-wrap: wrap;
}

.header-top__link {
  font-size: 0.8125rem;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s;
}
.header-top__link:hover { color: var(--blue); }

/* Кнопка «Обратная связь» */
.header-top__btn-outline {
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--gray-bg);
  border: 1px solid var(--gray-line);
  padding: 6px 18px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.header-top__btn-outline:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Иконки (поиск, слабовидящие) */
.header-top__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-top__icon-btn {
  background: none;
  border: none;
  padding: 4px;
  color: var(--text);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.header-top__icon-btn:hover { color: var(--blue); }

.header-top__vision-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  color: var(--text);
  padding: 4px 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.header-top__vision-btn:hover { color: var(--blue); }

/* Строка поиска */
.header-search {
  padding: 10px 0 6px;
}

.header-search__form {
  display: flex;
  gap: 8px;
  max-width: 560px;
}

.header-search__input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.header-search__input:focus { border-color: var(--blue); }

.header-search__submit {
  padding: 8px 20px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: background 0.2s;
}
.header-search__submit:hover { background: var(--blue-dark); }


/* =============================================
   ОСНОВНАЯ НАВИГАЦИЯ
   ============================================= */
.main-nav {
  background: var(--blue);
}

.main-nav > .container {
  position: relative;
  display: flex;
  align-items: stretch;
}

/* Drawer — на десктопе прозрачная обёртка, на мобиле — выпадающая панель */
.main-nav__drawer {
  display: flex;
  flex: 1;
  align-items: stretch;
  min-width: 0;
}

/* Белая зона мобильного меню — скрыта на десктопе */
.main-nav__drawer-top { display: none; }

/* Пункты только для мобиля — скрыты на десктопе */
.main-nav__item--mobile-only { display: none; }

.main-nav__list {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;   /* не переносим на новую строку */
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

.main-nav__item {
  position: relative;
}

.main-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 11px;
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s;
  height: 100%;
}

.main-nav__link:hover,
.main-nav__item--has-drop:hover > .main-nav__link {
  background: rgba(255,255,255,0.15);
}

.main-nav__link--active {
  background: rgba(255,255,255,0.18);
}
.main-nav__dropdown .main-nav__link--active {
    background: var(--gray-bg);
    color: var(--blue);padding: 14px 20px;
}
.main-nav__arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.main-nav__item--has-drop:hover .main-nav__arrow { transform: rotate(180deg); }

/* Выпадающее меню */
.main-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border-top: 3px solid var(--blue);
  box-shadow: var(--shadow);
  z-index: 300;
}

.main-nav__item--has-drop:hover .main-nav__dropdown { display: block; }

.main-nav__dropdown li { border-bottom: 1px solid var(--gray-line); }
.main-nav__dropdown li:last-child { border-bottom: none; }

.main-nav__drop-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text);
  transition: background 0.18s, color 0.18s;
}
.main-nav__drop-link:hover { background: var(--gray-bg); color: var(--blue); }

/* Бургер (мобильное меню) — живёт в белой шапке, скрыт на десктопе */
/* Полоска «Обратная связь» — только мобиль */
.mobile-feedback-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-feedback-bar {
    display: block;
    padding: 14px 20px;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--gray-bg);
    border-bottom: 1px solid var(--gray-line);
    text-align: center;
    transition: background 0.2s;
  }
  .mobile-feedback-bar:hover { background: #e8e8e8; }
}

.main-nav__burger {
  display: none;
  background: var(--blue);
  border: none;
  border-radius: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  flex-shrink: 0;
}
.main-nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}


/* =============================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================= */
.breadcrumb {
  padding: 14px 0 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.breadcrumb__item { color: var(--gray-muted); }
.breadcrumb__item a { color: var(--gray-muted); transition: color 0.2s; }
.breadcrumb__item a:hover { color: var(--blue); }

.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  margin-right: 6px;
  color: var(--gray-muted);
}

.breadcrumb__item--current { color: var(--blue); }


/* =============================================
   ОСНОВНОЙ КОНТЕНТ
   ============================================= */
#main-content { padding-bottom: 60px; }

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.21;
  margin: 20px 0 28px;
}


/* =============================================
   СЕТКА НОВОСТЕЙ
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 33px;
      margin-bottom: 50px;
}

.news-card {
  display: flex;
  flex-direction: column;
}

/* Картинка */
.news-card__img-wrap {
  display: block;
  border-radius: 0;   /* без скругления — по макету */
  overflow: hidden;
  background: var(--gray-bg);
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.news-card__img-wrap:hover .news-card__img { transform: scale(1.04); }

/* Тело карточки */
.news-card__body {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Дата */
.news-card__date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--blue);
  line-height: 1.57;
  margin-bottom: 8px;
  flex-shrink: 0;
}

/* Заголовок карточки */
.news-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.33;
  margin-bottom: 10px;
}
.news-card__title a {
  color: var(--blue);
  transition: text-decoration 0.15s;
}
.news-card__title a:hover { text-decoration: underline; }

/* Анонс */
.news-card__excerpt {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.375;
  flex: 1;
}


/* =============================================
   ПАГИНАЦИЯ
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 400;
  color: #1D1D1D;
  border: 1px solid var(--gray-line);
  background: var(--white);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pagination__btn:hover { border-color: var(--blue); color: var(--blue); }
.pagination__btn--active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  pointer-events: none;
}


/* =============================================
   ФУТЕР
   ============================================= */
.site-footer {
  background: var(--blue);
  padding: 40px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr auto;
  gap: 40px 32px;
  padding-bottom: 36px;
  align-items: start;
}

.footer__col--top {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__link {
  font-size: 1rem;
  color: #FFFFFF;
  transition: color 0.2s;
  line-height: 1.5;
}
.footer__link:hover { color: var(--white); text-decoration: underline; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 18px 0;
}

.footer__copy {
  font-size: 0.875rem;
  font-weight: 500;
  color: #FFFFFF;
  text-align: center;
}


/* =============================================
   ПАНЕЛЬ «ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ»
   ============================================= */
.vision-panel {
  background: #2c3e50;
  color: var(--white);
  padding: 10px 0;
  /* Панель — первый элемент, над шапкой */
  position: relative;
  z-index: 300;
}

.vision-panel__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.vision-panel__label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

.vision-panel__size-btn,
.vision-panel__theme-btn {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font-size: 0.8125rem;
  transition: background 0.2s;
}
.vision-panel__size-btn:hover,
.vision-panel__theme-btn:hover { background: rgba(255,255,255,0.15); }
.vision-panel__size-btn--active,
.vision-panel__theme-btn--active { background: rgba(255,255,255,0.25); }

.vision-panel__theme-btn--bw  { background: #fff; color: #000; border-color: #000; }
.vision-panel__theme-btn--wb  { background: #000; color: #fff; }
.vision-panel__theme-btn--by  { background: #ffe600; color: #000; border-color: #000; }
.vision-panel__theme-btn--normal { background: var(--blue); }

.vision-panel__close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
  line-height: 1;
  padding: 2px 6px;
  transition: color 0.2s;
}
.vision-panel__close:hover { color: var(--white); }


/* =============================================
   ТЕМЫ СЛАБОВИДЯЩИХ (применяются к <html>)
   ============================================= */

/* Чёрное на белом */
html.vision-bw {
  --blue: #000000;
  --blue-dark: #000000;
  --text: #000000;
  --white: #ffffff;
  --gray-bg: #efefef;
  --gray-line: #cccccc;
}
html.vision-bw .site-header,
html.vision-bw .main-nav,
html.vision-bw .site-footer { background: #000 !important; }
html.vision-bw .header-top { background: #fff; }
html.vision-bw .news-card__img { filter: grayscale(1); }

/* Белое на чёрном */
html.vision-wb {
  --blue: #ffffff;
  --blue-dark: #cccccc;
  --text: #ffffff;
  --white: #000000;
  --gray-bg: #1a1a1a;
  --gray-line: #444;
}
html.vision-wb body { background: #000; color: #fff; }
html.vision-wb .main-nav { background: #111 !important; }
html.vision-wb .site-footer { background: #111 !important; }
html.vision-wb .header-top { background: #000; border-color: #444; }
html.vision-wb .news-card__img { filter: grayscale(1) brightness(0.8); }

/* Чёрное на жёлтом */
html.vision-by {
  --blue: #000000;
  --blue-dark: #000000;
  --text: #000000;
  --white: #ffe600;
  --gray-bg: #ffd700;
  --gray-line: #cca800;
}
html.vision-by body { background: #ffe600; color: #000; }
html.vision-by .main-nav { background: #000 !important; }
html.vision-by .site-footer { background: #000 !important; }
html.vision-by .header-top { background: #ffe600; border-color: #cca800; }
html.vision-by .news-card__img { filter: grayscale(1); }

/* Размеры шрифтов */
html.vision-large  { font-size: 20px; }
html.vision-xlarge { font-size: 24px; }


/* =============================================
   АДАПТИВ
   ============================================= */

/* ≤ 1200px */
@media (max-width: 1200px) {
  :root { --container: 100%; }
  .container { padding: 0 24px; }
  .main-nav__link { padding: 14px 12px; font-size: 0.8125rem; }
  .header-top__links { gap: 16px; }
}

/* ≤ 960px */
@media (max-width: 960px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__col--top { grid-column: 2; justify-content: flex-end; }
  .header-top__links { display: none; }
}

/* ≤ 768px */
@media (max-width: 768px) {
  /* Скрываем десктопные инструменты — они переходят в мобильное меню */
  .header-top__tools { display: none; }

  /* Бренд сжимается, чтобы бургер не вылетал за экран */
  .header-top__brand { flex-shrink: 1; min-width: 0; gap: 10px; }
  .header-top__logo  { width: 40px; height: 40px; }
  .header-top__title { font-size: 0.75rem; max-width: none; }
  .header-top__inner { gap: 12px; }

  /* Бургер появляется в белой шапке, прижат вправо */
  .main-nav__burger { display: flex; margin-left: auto; flex-shrink: 0; }

  /* Синяя полоса nav на мобиле не видна */
  .main-nav { background: transparent; position: relative; }
  .main-nav > .container { padding: 0; min-height: 0; position: static; }

  /* Drawer — на всю ширину вьюпорта, без скругления */
  .main-nav__drawer {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 200;
    border-radius: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }
  .main-nav__drawer.is-open { display: flex; }

  /* Белая зона: Обратная связь / поиск / слабовидящие */
  .main-nav__drawer-top {
    display: flex;
    flex-direction: column;
    background: #fff;
  }

  /* drawer-feedback не используется — заменён на mobile-feedback-bar */

  .main-nav__drawer-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--gray-line);
  }
  .main-nav__drawer-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
    font-family: var(--font);
    color: var(--text);
    background: transparent;
  }
  .main-nav__drawer-search-input::placeholder { color: var(--gray-muted); }
  .main-nav__drawer-search-clear {
    background: none;
    border: none;
    color: var(--gray-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
  }
  .main-nav__drawer-search-btn {
    background: none;
    border: none;
    color: var(--gray-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .main-nav__drawer-vision {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-family: var(--font);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
  }
  .main-nav__drawer-vision:hover { background: var(--gray-bg); }

  /* Синий список */
  .main-nav__list {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--blue);
    position: static;
    box-shadow: none;
  }

  .main-nav__item { width: 100%; }
  .main-nav__item--mobile-only { display: block; }

  .main-nav__link {
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    width: 100%;
    font-size: 0.875rem;
    white-space: normal;
    justify-content: space-between;
  }

  .main-nav__dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    display: none;
    background: rgba(0,0,0,0.15);
  }
  .main-nav__item--has-drop.is-open .main-nav__dropdown { display: block; }

  .main-nav__drop-link {
    color: rgba(255,255,255,0.85);
    background: transparent;
    padding-left: 36px;
  }
  .main-nav__drop-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
}

/* ≤ 600px */
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__col--top { justify-content: flex-start; }
  .container { padding: 0 16px; }
  .header-top__title { font-size: 0.75rem; }
  .header-top__logo { width: 44px; height: 44px; }
  .section-title { font-size: 1.25rem; }
  .vision-panel__inner { gap: 6px; }
}


/* =============================================
   СТРАНИЦА НОВОСТИ / СТАТЬИ
   ============================================= */

/* Заголовок статьи: название слева, дата справа */
.article-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  margin-top: 20px;
}

.article-header h1 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
}

.article-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--blue);
  white-space: nowrap;
  margin-top: 6px;
  flex-shrink: 0;
}

/* Тело статьи: float-обтекание */
.article-body {
  margin-bottom: 40px;
}

.article-body::after {
  content: '';
  display: table;
  clear: both;
}

/* Изображение — плавает вправо */
.article-image {
  float: right;
  width: 480px;
  margin: 0 0 24px 40px;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Навигация по изображениям */
.article-image__nav {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Текстовое содержимое */
.article-content h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--blue);
  margin: 24px 0 8px;
  text-decoration: underline;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.375;
  margin-bottom: 16px;
  color: var(--text);
}

/* Навигация по изображениям */
.article-image__nav {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 8px;
}

.article-image__nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-line);
  background: var(--white);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border-radius: var(--radius);
}

.article-image__nav-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.article-image__nav-btn--next {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.article-image__nav-btn--next:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

/* Навигация между статьями */
.article-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-line);
}

.article-nav__prev {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--gray-line);
  color: var(--text);
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.article-nav__prev:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.article-nav__next {
  display: inline-block;
  padding: 12px 24px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: background 0.2s;
  cursor: pointer;
}
.article-nav__next:hover {
  background: var(--blue-dark);
}

/* Кнопка «Наверх» в подвале */
.footer-top-btn {
  background: var(--white);
  color: var(--blue);
  border: none;
  padding: 16px 34px;
  font-size: 0.875rem;
  border-radius: var(--radius);
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.footer-top-btn:hover {
  background: var(--blue-dark, #1249a0);
  color: var(--white);
}


/* =============================================
   АДАПТИВ — СТРАНИЦА СТАТЬИ
   ============================================= */

/* ≤ 960px: изображение на всю ширину, под текстом */
@media (max-width: 960px) {
  .article-image {
    float: none;
    width: 100%;
    margin: 0 0 24px 0;
    max-height: 360px;
    overflow: hidden;
  }

  .article-image img {
    height: 360px;
    width: 100%;
    object-fit: cover;
  }
}

/* ≤ 768px: заголовок и навигация складываются вертикально */
@media (max-width: 768px) {
  .article-header {
    flex-direction: column;
    gap: 8px;
  }

  .article-date {
    margin-top: 0;
  }

  .article-nav {
    flex-direction: column;
  }

  .article-nav__prev,
  .article-nav__next {
    text-align: center;
  }
}

/* ≤ 600px: уменьшаем заголовок статьи */
@media (max-width: 600px) {
  .article-header h1 {
    font-size: 1.25rem;
  }

  .footer-top-btn {
    position: static;
    margin-left: auto;
  }
}


/* =============================================
   СПИСОК ДОКУМЕНТОВ
   ============================================= */
.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
}

.doc-list__item {
  border-bottom: 1px solid var(--gray-line);
}
.doc-list__item:first-child {
  border-top: 1px solid var(--gray-line);
}

.doc-list__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  color: var(--text);
  transition: background 0.18s;
  text-decoration: none;
}
.doc-list__link:hover {
  background: var(--gray-bg);
}

.doc-list__icon {
  width: 20px;
  height: 24px;
  flex-shrink: 0;
  color: var(--blue);
}

.doc-list__name {
  flex: 1;
  font-size: 1rem;
  color: var(--blue);
  line-height: 1.375;
}
.doc-list__link:hover .doc-list__name {
  text-decoration: underline;
}

.doc-list__size {
  font-size: 0.8125rem;
  color: var(--gray-muted);
  white-space: nowrap;
  flex-shrink: 0;
}


/* =============================================
   КОНТАКТЫ — карточка с контактной информацией
   ============================================= */
.contacts-card {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contacts-card__row {
  font-size: 1rem;
  line-height: 1.375;
  color: var(--text);
}

.contacts-card__row--heading {
  margin-top: 6px;
}

.contacts-card__row--sub {
  padding-left: 0;
  color: var(--text);
}

.contacts-card__link {
  color: var(--blue);
  text-decoration: underline;
}
.contacts-card__link:hover {
  text-decoration: none;
}

@media (max-width: 600px) {
  .contacts-card {
    padding: 20px 16px;
  }
}


/* =============================================
   ОБРАТНАЯ СВЯЗЬ — правила и форма
   ============================================= */
.feedback-rules {
  margin-bottom: 32px;
}

.feedback-rules__heading {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.feedback-rules__notice {
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 12px;
  line-height: 1.5;
}

.feedback-rules__list {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback-rules__list li {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

.feedback-rules__sublist {
  list-style: none;
  padding-left: 0;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* --- Форма --- */
.feedback-form {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-form__row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feedback-form__row--main {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 12px;
  align-items: start;
}

.feedback-form__input,
.feedback-form__textarea {
  width: 100%;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.18s;
  line-height: 1.5;
}

.feedback-form__input::placeholder,
.feedback-form__textarea::placeholder {
  color: var(--gray-muted);
}

.feedback-form__input:focus,
.feedback-form__textarea:focus {
  border-color: var(--blue);
}

.feedback-form__textarea {
  resize: vertical;
  min-height: 140px;
}

.feedback-form__field--message {
  height: 100%;
}

.feedback-form__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 2px;
}

/* Кнопка "Прикрепить файл" */
.feedback-form__file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.18s;
  align-self: flex-start;
  font-weight:300;
}
.feedback-form__file-btn .cnt {border: 1px solid var(--gray-line);
    border-radius: var(--radius);
    padding: 10px 20px;
    display: flex;
    
    align-items: center;
    gap: 10px;}

.feedback-form__file-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Чекбокс согласия */
.feedback-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.feedback-form__checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}

.feedback-form__consent-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text);
}

.feedback-form__consent-link {
  color: var(--blue);
  text-decoration: underline;
}
.feedback-form__consent-link:hover {
  text-decoration: none;
}

/* Кнопка "Отправить" */
.feedback-form__submit {
  display: inline-block;
  padding: 12px 32px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s;
  align-self: flex-start;
}

.feedback-form__submit:hover {
  background: var(--blue-dark);
}

/* Активная кнопка "Обратная связь" в шапке — без выделения */
.header-top__btn-outline--active {
  background: var(--gray-bg);
  color: var(--text);
  border-color: var(--gray-line);
}

/* Скрытый лейбл (доступность) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .feedback-form__row--2col {
    grid-template-columns: 1fr;
  }

  .feedback-form__row--main {
    grid-template-columns: 1fr;
  }

  .feedback-form__aside {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .feedback-form__submit {
    width: 100%;
    text-align: center;
  }
}


/* =============================================
   ДОКУМЕНТЫ — 2-колоночная сетка (НПА)
   ============================================= */
.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 48px;
  border-top: 1px solid var(--gray-line);
}

.doc-grid__item {
  border-bottom: 1px solid var(--gray-line);
}

.doc-grid__item:nth-child(odd) {
  border-right: 1px solid var(--gray-line);
}

.doc-grid__link {
  display: flex;
  align-items:  flex-start;
  gap: 12px;
    padding: 14px 16px 5px;
  color: var(--text);
  
}
.doc-grid__link1 {
width: 100%;
    display: flex;
    justify-content: space-between;
    text-decoration: none;
  transition: background 0.18s;
}
.doc-grid__item:hover {
  background: var(--gray-bg);
}

.doc-grid__icon {
  width: 20px;
  height: 24px;
  flex-shrink: 0;
  color: var(--blue);
}

.doc-grid__name {
  flex: 1;
  font-size: 1rem;
  color: var(--black);
  line-height: 1.4;
}
.doc-grid__link1:hover  {
  text-decoration: underline;
}

.doc-grid__size {
  font-size: 0.8125rem;
  color: var(--gray-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }
  .doc-grid__item:nth-child(odd) {
    border-right: none;
  }
}


/* =============================================
   АККОРДЕОН КЛИНИК
   ============================================= */
.clinics-accordion {
  margin-bottom: 60px;
}

.clinic {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

/* Кнопка-заголовок аккордеона */
.clinic__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  background: var(--gray-bg);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s;
}

.clinic__toggle:hover {
  background: #eaeff8;
}

.clinic__toggle[aria-expanded="true"] {
  background: var(--blue);
  color: var(--white);
}

.clinic__toggle-icon {
  flex-shrink: 0;
  transition: transform 0.2s;
}

/* Тело аккордеона */
.clinic__body {
  padding: 28px 24px 32px;
}

.clinic__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}
.clinic__info ul{ list-style: disc inside;}
.clinic__address-link {
  color: var(--blue);
  text-decoration: underline;
}
.clinic__address-link:hover {
  text-decoration: none;
}

.clinic__hours,
.clinic__phone {
  color: var(--text);
}

/* Заголовки внутри клиники */
.clinic__specialists-title,
.clinic__services-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* Специалисты */
.clinic__specialists {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.specialist {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  background: var(--gray-bg);
}

.specialist__photo-wrap {
  width: 120px;
  height: 140px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-line);
}

.specialist__photo-wrap--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.specialist__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specialist__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.specialist__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.specialist__title {
  color: var(--gray-muted);
  font-size: 0.875rem;
}

.specialist__list {
  list-style: none;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.specialist__link {
  color: var(--blue);
  text-decoration: underline;
}
.specialist__link:hover {
  text-decoration: none;
}

/* Сетка услуг */
.clinic__services {
  margin-bottom: 28px;
}

.clinic__services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
}

.clinic__services-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
  color: var(--text);
}

/* Фотогалерея клиники */
.clinic__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.clinic__gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-bg);
}

.clinic__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .clinic__toggle {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .clinic__body {
    padding: 20px 16px 24px;
  }

  .specialist {
    flex-direction: column;
    align-items: center;
  }

  .specialist__photo-wrap {
    width: 100px;
    height: 120px;
  }

  .clinic__services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .clinic__gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .clinic__services-grid {
    grid-template-columns: 1fr;
  }

  .clinic__gallery {
    grid-template-columns: 1fr;
  }
}


/* =============================================
   ЭПИЗООТИЧЕСКОЕ БЛАГОПОЛУЧИЕ — ГАЛЕРЕЯ
   ============================================= */
.epizoo-gallery {
  margin-bottom: 48px;
}

.epizoo-gallery__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.epizoo-gallery__slide {
  position: relative;
  cursor: pointer;
  background: var(--gray-bg);
  padding: 16px;
}

.epizoo-gallery__slide img:first-child {
  width: 100%;
  height: 280px;
  object-fit: contain;
  display: block;
}
.epizoo-gallery__zoom img:first-child{height:auto;}

.epizoo-gallery__zoom {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.epizoo-gallery__slide:hover .epizoo-gallery__zoom {
  opacity: 1;
}

.epizoo-gallery__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.epizoo-gallery__btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-line);
  background: var(--white);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.18s;
}

.epizoo-gallery__btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Заголовок над документами */
.epizoo-docs-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Кнопка "Загрузить ещё" */
.epizoo-load-more {
  display: flex;
  justify-content: flex-end;
  margin: 32px 0 60px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.btn-load-more:hover {
  background: var(--blue);
  color: var(--white);
}

@media (max-width: 640px) {
  .epizoo-gallery__slide img {
    max-height: 320px;
  }

  .epizoo-gallery__btn {
    width: 32px;
    height: 32px;
  }
}


/* =============================================
   ОТЧЁТЫ — ТАБЫ ПО ГОДАМ
   ============================================= */
.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--gray-line);
}

.year-tab {
  padding: 10px 28px;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  position: relative;
  transition: color 0.18s;
  white-space: nowrap;
}

.year-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.18s;
}

.year-tab:hover {
  color: var(--blue);
}

.year-tab--active {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
}

.year-tab--active::after {
  background: var(--blue);
}

.year-tab--active:hover {
  color: var(--white);
}

/* =============================================
   ОТЧЁТЫ — АККОРДЕОН
   ============================================= */
.reports-panel {
  margin-bottom: 60px;
}

.report-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.report-item {
  border: 1px solid var(--gray-line);
  border-top: none;
}

.report-item:first-child {
  border-top: 1px solid var(--gray-line);
}

.report-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--gray-bg);
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.report-toggle:hover {
  background: #eaeff8;
}

.report-toggle--open {
  background: var(--blue);
  color: var(--white);
}

.report-toggle--open:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.report-toggle__icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* Тело аккордеона (раскрытое) */
.report-body {
  padding: 24px 20px 28px;
  background: var(--white);
}

.report-body__title {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}

/* Таблица отчёта */
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: var(--text);
}

.report-table th,
.report-table td {
  border: 1px solid #aab5cc;
  padding: 8px 12px;
  vertical-align: top;
  line-height: 1.5;
}

.report-table th {
  background: var(--gray-bg);
  font-weight: 700;
  text-align: center;
  font-size: 0.8125rem;
}

.report-table td:first-child {
  width: 60%;
}

.report-table__total td {
  font-weight: 700;
}

@media (max-width: 640px) {
  .year-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .year-tab {
    padding: 10px 14px;
    font-size: 0.8125rem;
  }

  .report-toggle {
    padding: 14px 16px;
    font-size: 0.875rem;
  }

  .report-body {
    padding: 16px 12px 20px;
    overflow-x: auto;
  }
}


/* =============================================
   ПОЛЕЗНО ЗНАТЬ — АККОРДЕОН
   ============================================= */

/* Активная ссылка в шапке (header-top__links) */
.header-top__link--active {
  color: var(--blue);
  font-weight: 500;
}

.useful-accordion {
  margin-bottom: 60px;
}

.useful-item {
  border-bottom: 1px solid var(--gray-line);
}

.useful-item:first-child {
  border-top: 1px solid var(--gray-line);
}

.useful-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--gray-bg);
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.useful-toggle:hover {
  background: #eaeff8;    color: #000;
}

.useful-toggle--open {
  background: var(--blue);
  color: var(--white);
}

.useful-toggle__icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* Тело аккордеона */
.useful-body {
  padding: 20px;
  background: var(--white);
}

.useful-body__hero {
  margin-bottom: 16px;
  border-radius: 0;
  overflow: hidden;
}

.useful-body__hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

/* Текстовый контент */
.useful-body--text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px 28px;
  font-size: 1rem;
  line-height: 1.65;
}

.useful-body__highlight {
  color: var(--blue);
  font-weight: 500;
}

.useful-body__list {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Мини-галерея внутри аккордеона */
.useful-gallery {
  position: relative;
}

.useful-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

.useful-gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-bg);
  aspect-ratio: 3/4;
}

.useful-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.useful-gallery__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.useful-gallery__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gray-line);
  background: var(--white);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}

.useful-gallery__btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

@media (max-width: 640px) {
  .useful-gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .useful-toggle {
    padding: 14px 16px;
    font-size: 0.875rem;
  }

  .useful-body--text {
    padding: 16px;
  }
}


/* =============================================
   СТИЛИ ДЛЯ КОНТЕНТНЫХ СТРАНИЦ
   Подключается на новых страницах: gbu, about-lab,
   ais, structure, lab, permits, qualifications,
   otdel-*, about, services, vacancies, search,
   contacts-full, lab-structure, epizootika (доп.)
   ============================================= */

/* --- Текстовый контент внутри .container --- */
.content-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.content-text p {
  margin-bottom: 16px;
}

.content-text a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.content-text a:hover {
  color: var(--blue-dark);
}

.content-text h2,
.section-subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 14px;
}

.content-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
}

.content-text ul,
.content-text ol,
.content-list {
  margin: 0 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-list__item,
.content-text li {
  line-height: 1.6;
  color: var(--text);
}

.content-text strong {
  font-weight: 700;
}

.content-text img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}


/* --- Навигационные карточки (lab.html) --- */
.nav-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.nav-cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
  .nav-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-cards-grid {
    grid-template-columns: 1fr;
  }
}

.nav-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background-color: var(--gray-bg);
  background-image: url('img/card-bg.png');
  background-size: cover;
  border-radius: 0;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  min-height: 160px;
  transition: background-color 0.2s;
}

.nav-card:hover {
  background: var(--blue);
}

.nav-card:hover .nav-card__name {
  color: var(--white);
}

.nav-card__name {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Иконки карточки: по умолчанию ↗ на синем, при наведении → на белом */
.nav-card__icons {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
}

.nav-card__icon-default,
.nav-card__icon-hover {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.2s;
}

.nav-card__icon-hover {
  opacity: 0;
}

.nav-card:hover .nav-card__icon-default {
  opacity: 0;
}

.nav-card:hover .nav-card__icon-hover {
  opacity: 1;
}

.nav-card--download:hover .nav-card__icon-default {
  opacity: 1;
  filter: brightness(0) invert(1);
}

/* Старый класс — для совместимости */
.nav-card__arrow {
  align-self: flex-end;
}

/* Синий вариант карточек (services.html) */
.nav-card--blue {
  background: var(--blue);
  color: var(--white);
}

.nav-card--blue:hover {
  background: var(--blue-dark);
}

.nav-card--blue .nav-card__name {
  color: var(--white);
}


/* --- Секция станции (gbu.html) --- */
.station-section {
  margin-bottom: 36px;
}

.station-section__header {
  background: var(--gray-bg);
  padding: 14px 24px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  border-radius: 0;
  margin-bottom: 24px;
}

.station-leader,
.content-text h3.station-leader {
  color: var(--blue);
}

/* Годы в 2 колонки (about-lab) */
.gray-block {
  background: var(--gray-bg);
  padding: 24px;
  margin-bottom: 24px;
}

.year-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-line);
}

.year-row:last-child {
  border-bottom: none;
}

.year-row__year {
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue);
}

.year-row__text {
  line-height: 1.7;
}

.station-hotline {
  font-size: 1.125rem;
  margin-top: 8px;
}


/* --- Hero-изображение --- */
.hero-image {
  width: 100%;
  margin-bottom: 28px;
  border-radius: 0;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}


/* --- Двухколоночный макет (текст + фото) --- */
.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}

.content-two-col img {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
}


/* --- Карточка контакта (contacts-full) --- */
.contact-card {
  position: relative;
  margin-bottom: 12px;
  min-height: 1px;
}

.contact-card__photo {
  position: absolute;
  right: -40px;
  top: -20px;
  width: 420px;
}

.contact-card__photo img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
}

.contact-card__info {
  flex: 1;
}

.contact-card__info h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.contact-card__info p {
  margin-bottom: 4px;
  line-height: 1.5;
}


/* --- Адресные карточки --- */
.addresses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 4px 0 20px;
  max-width: 75%;
}

.address-card {
  background: transparent;
  padding: 0;
}

.address-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-card__icon {
  flex-shrink: 0;
}

.address-card p {
  margin-bottom: 2px;
  line-height: 1.5;
}


/* --- Карта --- */
.contacts-map {
  margin: 28px 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--gray-bg);
  min-height: 400px;
}

.contacts-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

.map-wrapper {
  position: relative;
}

.map-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}

.map-wrapper.active::after {
  display: none;
}


/* --- Карточки разрешительных документов --- */
.permit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.permit-card {
  text-align: center;
  background: var(--gray-bg);
  padding: 24px;
  position: relative;
}

.permit-card::before,
.permit-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.permit-card::before {
  background: rgba(255, 255, 255, 0.86);
  z-index: 1;
}

.permit-card::after {
  background: url('img/plus.svg') center calc(50% - 20px) no-repeat;
  background-size: 56px 56px;
  z-index: 2;
}

.permit-card:hover::before,
.permit-card:hover::after {
  opacity: 1;
}

.permit-card__img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.permit-card__name {
  font-size: 0.875rem;
  color: var(--gray-muted);
}


/* --- Оргсхема лаборатории (lab-structure.html) --- */
.lab-tree {
  margin: 40px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 1100px;
}

.lab-tree-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lab-tree__row {
  display: flex;
  justify-content: center;
}

.lab-tree__node {
  background: var(--gray-bg);
  border: 1px solid var(--gray-line);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  min-width: 160px;
}

.lab-tree__node strong {
  font-size: 0.95rem;
}

.lab-tree__node--head {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  font-weight: 700;
  font-size: 1rem;
  padding: 24px 80px;
}

.lab-tree__node--deputy {
  padding: 20px 60px;
  font-weight: 500;
}

.lab-tree__node--dept {
  padding: 20px 16px;
}

.lab-tree__node--dept p {
  margin: 12px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.lab-tree__badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--gray-line);
  padding: 8px 24px;
  font-weight: 700;
  font-size: 0.95rem;
}

.lab-tree__node--sub {
  background: var(--gray-bg);
}

/* Простая вертикальная линия (без стрелки) */
.lab-tree__line {
  width: 1px;
  height: 40px;
  background: var(--gray-line);
  margin: 0 auto;
}

/* SVG-стрелка вниз */
.lab-tree__arrow {
  display: block;
  margin: 0 auto;
  width: 15px;
  height: 62px;
}

.lab-tree__arrow-small {
  display: block;
  margin: 0 auto;
  width: 15px;
  height: 40px;
}

/* Ряд из 5 колонок */
.lab-tree__row--5 {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  position: relative;
}

/* Горизонтальная перемычка — от центра 1-й колонки до центра 5-й */
.lab-tree__row--5::before {
  content: '';
  position: absolute;
  top: 0;
  height: 1px;
  background: var(--gray-line);
  /* 5 колонок по 200px + 4 gap по 16px = 1064px; от центра 1-й до центра 5-й = 4*(200+16) = 864px */
  width: 864px;
  left: 50%;
  transform: translateX(-50%);
}

.lab-tree__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 200px;
}

.lab-tree__col .lab-tree__node {
  width: 100%;
}

.lab-tree__col .lab-tree__vline {
  height: 24px;
}

/* Мобиль: деревья скроллятся горизонтально, не ломаются */


/* --- Секция оргсхемы лаборатории --- */
.lab-chart-section {
  margin-top: 48px;
}

.lab-chart-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

/* 2x2 сетка с центральным позвоночником */
.lab-tree__grid-2x2 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding-top: 60px;
  width: 100%;
}

/* Непрерывная вертикальная линия — от верха до центра последнего ряда */
.lab-tree__vspine {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  background: var(--gray-line);
  bottom: 52px;
}

.lab-tree__grid-row {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

.lab-tree__side {
  flex: 1;
  display: flex;
  align-items: center;
}

.lab-tree__side--left {
  justify-content: flex-start;
}

.lab-tree__side--right {
  justify-content: flex-end;
}

.lab-tree__side .lab-tree__node {
  max-width: 420px;
  width: 100%;
}

/* Горизонтальные линии со стрелками */
.lab-tree__hline {
  flex: 1;
  min-width: 50px;
  height: 1px;
  background: var(--gray-line);
}

/* Горизонтальные стрелки (SVG, как в верхней схеме) */
.lab-tree__harrow {
  height: 10px;
  flex: 0 0 40px;
  width: 40px;
}

/* Линия-заполнитель между стрелкой и центральным позвоночником */
.lab-tree__hfill {
  flex: 1;
  min-width: 10px;
  height: 1px;
  background: var(--gray-line);
}

@media (max-width: 768px) {
  .lab-tree__grid-2x2 {
    gap: 16px;
    padding-top: 20px;
  }
  .lab-tree__grid-row {
    flex-direction: column;
    gap: 16px;
  }
  .lab-tree__hline {
    display: none;
  }
  .lab-tree__vspine {
    display: none;
  }
  .lab-chart-section__header {
    flex-direction: column;
    gap: 8px;
  }
}

/* --- Блок приказа --- */
.decree-block {
  background: var(--gray-bg);
  padding: 48px 60px;
  margin-top: 48px;
  line-height: 1.7;
}

.decree-block p {
  margin: 12px 0;
}

.decree-block__header {
  text-align: center;
  margin: 0 0 16px;
}

.decree-block__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 20px 0;
}

.decree-block__city {
  text-align: center;
  margin: 20px 0;
}

.decree-block__footer {
  margin-top: 32px;
}

@media (max-width: 600px) {
  .decree-block {
    padding: 24px 20px;
  }
}

/* --- Организационная структура --- */
.org-structure__leader {
  margin-bottom: 32px;
}

.org-structure__person {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 16px 0;
}

.person-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.org-structure__person-info {
  flex: 1;
}

.org-structure__position {
  font-size: 0.875rem;
  color: var(--gray-muted);
  margin-bottom: 4px;
}

.org-structure__name {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.org-structure ul {
  margin: 0 0 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.org-structure li {
  line-height: 1.6;
}


/* --- Форма подписки (contacts-full) --- */
.subscribe-form {
  display: flex;
  gap: 16px;
  margin: 32px 0;
}

.subscribe-form__input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--gray-line);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
}

.subscribe-form__input:focus {
  border-color: var(--blue);
}

.subscribe-form__btn {
  padding: 14px 32px;
  background: var(--blue);
  color: var(--white);
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.subscribe-form__btn:hover {
  background: var(--blue-dark);
}

@media (max-width: 600px) {
  .subscribe-form {
    flex-direction: column;
  }
  .subscribe-form__btn {
    width: 100%;
  }
}


/* --- Полезные ссылки (contacts-full) --- */
.useful-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 32px;
}

.useful-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 0;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 140px;
}

.useful-link-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(9,91,214,0.1);
}

.useful-link-card__name {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.useful-link-card img {
  align-self: flex-end;
}


/* --- Таблицы данных --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.data-table th {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table tr:hover td {
  background: var(--gray-bg);
}


/* --- Кнопка синяя --- */
.content-text .btn-blue,
.btn-blue {
  display: inline-block;
  padding: 14px 32px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0;
  margin: 12px 0 8px;
  transition: background 0.2s;
}

.btn-blue:hover {
  background: var(--blue-dark);
}

.content-text .btn-blue,
.content-text .btn-blue:hover {
  color: var(--white);
  text-decoration: none;
}


/* --- Поиск --- */
.search-page__form {
  display: flex;
  gap: 12px;
  margin: 20px 0 28px;
}

.search-page__input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--gray-line);
  border-radius: 0;
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.search-page__input:focus {
  border-color: var(--blue);
}

.search-page__btn {
  padding: 12px 28px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.search-page__btn:hover {
  background: var(--blue-dark);
}

.search-page__empty {
  color: var(--gray-muted);
  font-size: 0.875rem;
}


/* --- Эпизоотика: галерея 2x2 со стрелками --- */
/* Переопределяем стили из основного блока */


/* --- АДАПТИВ --- */
@media (max-width: 768px) {
  .content-two-col {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .contact-card__photo {
    display: none;
  }

  .addresses-grid {
    grid-template-columns: 1fr;
  }

  .permit-grid {
    grid-template-columns: 1fr;
  }

  .org-structure__person {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .epizoo-gallery__track {
    grid-template-columns: 1fr;
  }

  .epizoo-gallery__slide img:first-child {
    height: 180px;
  }

  .search-page__form {
    flex-direction: column;
  }

  .data-table {
    font-size: 0.875rem;
  }

  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }
}


/* =============================================
   LIGHTBOX — модальное окно для изображений
   ============================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
