/* ============================================================
   ШАПКА САЙТА
   Сюжет сохранён: оранжевая верхняя строка → синий блок
   (юбилейные знаки • адрес/почта • герб+название • телефоны •
   начальник института) → сине-оранжевая линия → меню.
   Отличие от исходника: вместо видео — лёгкий декоративный фон,
   вся сетка резиновая и сворачивается на мобильных.
   ============================================================ */

.site-header{position:relative;z-index:50}

/* ---------- 1. Верхняя оранжевая строка ---------- */
.topline{
  position:relative;z-index:2;
  background:var(--orange);
  color:#fff;
}
.topline__inner{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  min-height:44px;padding-block:7px;flex-wrap:wrap;
}
.topline__group{display:flex;align-items:center;gap:6px;flex-wrap:wrap}

.topline__link{
  display:inline-flex;align-items:center;gap:9px;
  color:#fff;font-size:13.5px;font-weight:700;line-height:1.2;
  padding:6px 10px;border-radius:var(--radius-sm);
  transition:background .2s var(--ease);
}
.topline__link:hover{background:rgba(255,255,255,.2);color:#fff}
.topline__link .ic{width:21px;height:21px;flex:none;object-fit:contain}
.topline__link .ic--white{filter:brightness(0) invert(1)}

.topline__icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:var(--radius-sm);
  transition:background .2s var(--ease),transform .2s var(--ease);
}
/* Наведение задаётся один раз ниже, общим правилом с .topline__link —
   у иконок соцсетей и текстовых ссылок верхней строки должен быть
   одинаковый отклик на курсор, без отдельного эффекта на каждый вид */
.topline__icon img{width:20px;height:20px;object-fit:contain}
.topline__icon img.inv{filter:brightness(0) invert(1)}

.topline__btn{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.5);
  color:#fff;font-size:13.5px;font-weight:700;line-height:1;cursor:pointer;
  padding:7px 14px;border-radius:var(--radius-pill);
  transition:background .2s var(--ease);
}
.topline__btn:hover{background:rgba(255,255,255,.32)}
.topline__btn .i{font-size:16px}

/* Личный кабинет — главное действие в верхней строке, поэтому
   инверсия: белая заливка на оранжевом фоне заметна сразу.
   Размер и отступы — те же, что у «Для слабовидящих» (.topline__btn):
   различаться должен только цвет, не форма кнопки. */
.topline__btn--accent{
  background:#fff;border-color:#fff;color:var(--blue);
  box-shadow:0 3px 10px rgba(0,0,0,.22);
}
.topline__btn--accent .user-name{
  max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.topline__btn--accent:hover{background:var(--blue);border-color:var(--blue);color:#fff}

/* ---------- 2. Основной синий блок ----------
   Структура по образцу: тонкая строка реквизитов сверху
   (адрес, почта) — затем герб института с полным официальным
   наименованием, телефоны и блок начальника. Без карточек-пилюль:
   текст лежит прямо на синем фоне, как в исходнике, но с более
   аккуратной типографикой и лёгкой глубиной фона. ---------- */
.header-main{
  position:relative;
  background:linear-gradient(135deg,#256bc4 0%,var(--blue) 45%,var(--blue-dark) 100%);
  color:#fff;
  overflow:hidden;
}
.header-main::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1.5px, transparent 0);
  background-size:26px 26px;
  opacity:.5;
}
.header-main__inner{
  position:relative;z-index:1;
  padding-block:clamp(8px,2.2vw,10px);
}

/* Строка реквизитов: адрес и почта, без фона — плоский текст
   с иконкой, как на образце. Тонкая линия снизу лишь слегка
   отделяет её от герба и телефонов. */
.header-meta-row{
  display:flex;align-items:center;flex-wrap:wrap;gap:14px 32px;
  padding-bottom:clamp(5px,1.6vw,10px);
  margin-bottom:clamp(2px,2vw,5px);
  border-bottom:1px solid rgba(255,255,255,.14);
}
.header-meta{display:flex;gap:28px;flex-wrap:wrap;flex:none}
.meta-item{
  display:flex;align-items:center;gap:10px;
  font-size:13.5px;line-height:1.4;color:#fff;
}
.meta-item .ic{width:19px;height:19px;flex:none;filter:brightness(0) invert(1);opacity:.92}
.meta-item a{color:#fff}
.meta-item a:hover{color:var(--orange)}

/* Поиск — в этой же строке, следом за реквизитами. Раньше жил
   в полосе меню отдельной узкой полоской, а строка реквизитов
   рядом с ней пустовала на широких экранах: адрес и почта
   занимают едва ли половину ширины контейнера. Растягиваем
   поиск на всё, что осталось — flex:1 с потолком, чтобы поле
   ввода не расползалось на весь экран при очень широком окне. */
.meta-search{
  display:flex;align-items:center;gap:6px;
  flex:1 1 220px;max-width:420px;margin-left:auto;
  height:32px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius-pill);
  padding:0 4px 0 14px;
  transition:background .2s var(--ease),border-color .2s var(--ease);
}
.meta-search:focus-within{
  background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.36);
  box-shadow:0 0 0 3px rgba(255,134,0,.25);
}
.meta-search input{
  background:none;border:0;color:#fff;font-size:13.5px;
  width:100%;height:100%;font-family:inherit;min-width:0;
}
.meta-search input::placeholder{color:rgba(255,255,255,.7)}
.meta-search input:focus{outline:none}
.meta-search button{
  display:grid;place-items:center;flex:none;
  background:var(--orange);border:0;color:#fff;cursor:pointer;
  width:24px;height:24px;border-radius:50%;
  transition:background .2s var(--ease);
}
.meta-search button:hover{background:var(--orange-dark)}
.meta-search button .i{width:14px;height:14px}

/* Основной ряд: герб + название, телефоны, начальник.
   Колонки закреплены за блоками явно (grid-column), а не по
   порядку следования в разметке. Без этого при отсутствующих
   юбилейных знаках (их DOM-узел вообще не выводится, когда
   изображение не выбрано) соседние блоки съезжали бы в чужие
   колонки — с виду незаметно при типичном заполнении, но
   непредсказуемо при других сочетаниях. Явное закрепление
   гарантирует: каждый блок всегда в своём месте, пустая
   колонка просто схлопывается. */
.header-row{
  display:grid;
  grid-template-columns:auto minmax(320px,1fr) auto auto auto;
  align-items:center;
  gap:clamp(20px,2.4vw,44px);
}
.header-row .emblem--left{grid-column:1}
.header-row .header-brand{grid-column:2}
.header-row .header-contacts{grid-column:3}
.header-row .header-chief{grid-column:4}
.header-row .emblem--right{grid-column:5}

/* Юбилейные/партнёрские знаки — необязательные слоты по краям.
   Пока изображение не выбрано в панели, места не занимают. */
.emblem{
  width:clamp(70px,6vw,104px);aspect-ratio:1;
  display:grid;place-items:center;
}
.emblem img{
  width:100%;height:100%;object-fit:contain;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.3));
}

/* Герб института и полное наименование — смысловой центр шапки */
.header-brand{
  display:flex;align-items:center;gap:clamp(16px,1.8vw,30px);
  color:#fff;min-width:0;
}
.header-brand__logo{
  width:clamp(92px,7.6vw,132px);aspect-ratio:1;flex:none;
}
.header-brand__logo img{
  width:100%;height:100%;object-fit:contain;
  filter:drop-shadow(0 5px 14px rgba(0,0,0,.35));
}
.header-brand__full{
  font-size:clamp(14px,1.05vw,16.5px);font-weight:600;
  line-height:1.5;color:#fff;max-width:58ch;text-align:center;
  /* Официальное наименование длинное — на очень тесных экранах
     ограничиваем шестью строками вместо бесконтрольного растяжения */
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;
  overflow:hidden;
}

/* Телефоны — иконка в мягком круге, подпись и номер, без пилюль */
.header-contacts{display:flex;flex-direction:column;gap:14px}
.phone-item{display:flex;align-items:flex-start;gap:12px}
.phone-item__icon{
  width:34px;height:34px;flex:none;border-radius:50%;
  background:rgba(255,255,255,.14);display:grid;place-items:center;
}
.phone-item__icon .ic{width:17px;height:17px;filter:brightness(0) invert(1)}
.phone-item__label{font-size:12.5px;opacity:.85;line-height:1.3;margin-bottom:2px}
.phone-item__nums{display:flex;flex-direction:column}
.phone-item__nums a{color:#fff;font-size:17px;font-weight:700;line-height:1.35;white-space:nowrap}
.phone-item__nums a:hover{color:var(--orange)}

/* Начальник института: подпись справа, фотография рядом.
   Без фотографии остаётся только текст — так же просто, без
   рамок и подложек, как остальные блоки этого ряда. */
.header-chief{display:flex;align-items:center;gap:16px}
.header-chief__text{
  text-align:right;font-size:14.5px;line-height:1.5;
  max-width:190px;color:rgba(255,255,255,.92);
}
.header-chief__name{
  display:block;margin-top:8px;font-weight:700;font-size:16.5px;
  color:var(--orange);line-height:1.35;
}
.header-chief__photo{
  width:120px;height:170px;flex:none;border-radius:8px;overflow:hidden;
  box-shadow:0 8px 20px rgba(4,16,34,.4);background:rgba(255,255,255,.1);
}
.header-chief__photo img{width:100%;height:100%;object-fit:cover}

/* ---------- 3. Фирменная линия ---------- */
/* Разделительная линия под шапкой: три равные полосы —
   оранжевая, синяя, оранжевая. Раньше центральная задавалась
   рамками, и её ширина зависела от толщины границ: полосы
   получались разной высоты. Градиент с точными долями делает
   их одинаковыми при любой высоте. */
.mchs-line{
  height:var(--header-line-h);
  background:linear-gradient(
    to bottom,
    var(--orange)    0      33.34%,
    var(--line-blue) 33.34% 66.67%,
    var(--orange)    66.67% 100%
  );
  border:0;
}

/* ---------- 4. Меню ---------- */
.nav{
  position:relative;z-index:40;
  background:var(--blue);
  box-shadow:var(--shadow-header);
}
.nav__inner{display:flex;align-items:center;gap:8px;min-height:var(--nav-h)}
.nav__logo{
  display:none;align-items:center;gap:10px;color:#fff;font-weight:700;font-size:14px;
  padding-right:14px;margin-right:4px;border-right:1px solid rgba(255,255,255,.2);
}
.nav__logo img{width:30px;height:30px;object-fit:contain}
.nav.is-stuck{position:fixed;top:0;left:0;right:0;box-shadow:var(--shadow-2)}

/* Метка для отслеживания прокрутки и распорка вместо
   выпавшего из потока меню (см. initSticky в header.js).
   Никакой анимации намеренно: переключение position: fixed
   происходит мгновенно, тем же кадром, что и появление
   распорки нужной высоты — тогда страница не дёргается и не
   телепортируется, а просто сразу оказывается в верном месте. */
.nav-sentinel{height:1px;margin-bottom:-1px}
.nav-spacer{height:0;overflow:hidden}

.nav__list{
  display:flex;flex-wrap:nowrap;align-items:center;gap:2px;
  margin:0;padding:0;list-style:none;flex:1;min-width:0;
}
.nav__item{min-width:0}
.nav__link{overflow:hidden;text-overflow:ellipsis}
/* Пункты меню в прилипшем состоянии — те же отступы и размер
   шрифта, что и в основной шапке: раньше они сжимались, и из-за
   этого горизонтальное положение пунктов расходилось с шапкой
   над ними. */
.nav__item{position:relative}
.nav__link{
  display:flex;align-items:center;gap:7px;
  padding:14px 21px;color:#fff;font-size:15.5px;font-weight:500;
  white-space:nowrap;cursor:pointer;background:none;border:0;
  transition:background .2s var(--ease),color .2s var(--ease);
}
.nav__link:hover,.nav__item:focus-within>.nav__link{background:rgba(255,255,255,.16);color:#fff}
.nav__item.is-active>.nav__link{background:rgba(0,0,0,.18);box-shadow:inset 0 -3px 0 var(--orange);color:#fff}
.nav__link .caret{display:inline-flex;opacity:.75;transition:transform .2s var(--ease)}
.nav__link .caret .i{width:13px;height:13px}
.nav__item:hover>.nav__link .caret{transform:rotate(180deg)}

/* Выпадающие уровни */
.nav__drop{
  position:absolute;top:100%;left:0;min-width:270px;
  background:var(--blue);border-radius:0 0 10px 10px;
  box-shadow:0 14px 30px rgba(0,0,0,.35);
  padding:6px 0;margin:0;list-style:none;
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .22s var(--ease),transform .22s var(--ease),visibility .22s;
}
.nav__item:hover>.nav__drop,
.nav__item:focus-within>.nav__drop{opacity:1;visibility:visible;transform:translateY(0)}
.nav__drop .nav__item>.nav__link{width:100%;padding:9px 18px;font-size:14.5px;justify-content:space-between}
/* Третий и следующие уровни — вбок */
.nav__drop .nav__drop{top:0;left:100%;border-radius:10px}
.nav__drop .nav__link .caret{transform:rotate(-90deg)}
.nav__item:hover>.nav__drop>.nav__item>.nav__link .caret{transform:rotate(-90deg)}

/* Кнопка мобильного меню */
.nav__burger{
  display:none;align-items:center;gap:9px;margin-left:auto;
  background:rgba(255,255,255,.14);border:0;color:#fff;cursor:pointer;
  padding:9px 14px;border-radius:var(--radius-sm);font-size:14px;font-weight:700;
}
.nav__burger:hover{background:rgba(255,255,255,.26)}
.nav__burger i{position:relative;width:18px;height:2px;background:#fff;display:block}
.nav__burger i::before,.nav__burger i::after{content:"";position:absolute;left:0;width:18px;height:2px;background:#fff}
.nav__burger i::before{top:-6px}
.nav__burger i::after{top:6px}

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

/* Точки перелома для нового ряда: герб+название, телефоны,
   начальник. Юбилейные знаки и блок начальника уходят первыми —
   они необязательны, название и телефоны остаются дольше. */
@media (max-width:1560px){
  .header-row{grid-template-columns:auto minmax(0,1fr) auto auto}
  .emblem--right{display:none}
}
@media (max-width:1320px){
  .header-chief__text{display:none}
}
@media (max-width:1140px){
  .header-row{grid-template-columns:auto minmax(0,1fr) auto}
  .header-chief{display:none}
}
@media (max-width:960px){
  .header-row{grid-template-columns:minmax(0,1fr)}
  .emblem{display:none}
  .header-contacts{
    flex-direction:row;flex-wrap:wrap;gap:20px;
    margin-top:4px;padding-top:14px;border-top:1px solid rgba(255,255,255,.14);
  }
  .header-brand{gap:14px}
  .header-brand__full{text-align:left;-webkit-line-clamp:4}
  .header-brand__logo{width:72px}
}

/* Мобильные: компактная шапка + выдвижное меню */
@media (max-width:900px){
  .header-meta{display:none}
  .header-brand__full{display:none}
  .header-brand__logo{width:60px}

  .topline__inner{min-height:34px}
  .topline__link span{display:none}
  .topline__link{padding:5px}

  /* «Для слабовидящих» и «Личный кабинет» — только значок,
     иначе группа кнопок переносится на второй ряд, вместе
     с иконками соцсетей на третий: на узком экране втроём
     они попросту не помещаются в одну строку. */
  .topline__btn span{display:none}
  .topline__btn{padding:7px;gap:0}
  .topline__btn--accent{padding:7px}
  .topline__group{gap:6px}
  .topline__icon{width:28px;height:28px}
  .topline__icon .ic{width:16px;height:16px}

  .mchs-line{height:15px}

  .nav__list{display:none}
  .nav__burger{display:flex}
  .nav__inner{justify-content:space-between;min-height:44px}
  .nav__logo{display:flex;border:0}
}

/* Раскрывающийся блок контактов на мобильных: адрес и почта
   прячутся под кнопку, герб и телефоны остаются на виду. */
.header-toggle .i{transition:transform .2s var(--ease)}
.header-toggle.is-open .i{transform:rotate(180deg)}
.header-toggle{
  display:none;width:100%;align-items:center;justify-content:space-between;
  text-align:left;cursor:pointer;margin-bottom:12px;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);
  color:#fff;font-size:13.5px;font-weight:700;padding:9px 14px;border-radius:var(--radius-sm);
}
.header-toggle:hover{background:rgba(255,255,255,.2)}
@media (max-width:900px){
  .header-toggle{display:flex}
  .header-main.is-open .header-meta{display:flex;flex-direction:column;gap:10px;margin-top:12px}
}

/* ---------- Выдвижное мобильное меню ---------- */
.drawer{position:fixed;inset:0;z-index:1000;visibility:hidden}
.drawer.is-open{visibility:visible}
.drawer__backdrop{
  position:absolute;inset:0;background:rgba(9,26,48,.55);
  opacity:0;transition:opacity .3s var(--ease);backdrop-filter:blur(2px);
}
.drawer.is-open .drawer__backdrop{opacity:1}
.drawer__panel{
  position:absolute;top:0;right:0;height:100%;width:min(370px,88vw);
  background:var(--blue);color:#fff;overflow-y:auto;
  transform:translateX(100%);transition:transform .32s var(--ease);
  box-shadow:-10px 0 30px rgba(0,0,0,.3);
  display:flex;flex-direction:column;
}
.drawer.is-open .drawer__panel{transform:translateX(0)}
.drawer__head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.16);
  position:sticky;top:0;background:var(--blue);z-index:2;
}
.drawer__title{display:flex;align-items:center;gap:10px;font-weight:700}
.drawer__title img{width:34px;height:34px;object-fit:contain}
.drawer__close{
  background:rgba(255,255,255,.16);border:0;color:#fff;cursor:pointer;
  width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
}
.drawer__close .i{width:18px;height:18px}
.drawer__search{display:flex;gap:8px;padding:14px 16px}
.drawer__search input{
  flex:1;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);
  border-radius:var(--radius-sm);color:#fff;padding:10px 12px;font-family:inherit;font-size:14px;
}
.drawer__search input::placeholder{color:rgba(255,255,255,.65)}
.drawer__search button{
  background:var(--orange);border:0;color:#fff;border-radius:var(--radius-sm);
  padding:0 14px;cursor:pointer;display:grid;place-items:center;
}
.drawer__search button .i{width:18px;height:18px}
.drawer__menu{list-style:none;margin:0;padding:0 0 10px}
.drawer__menu li{border-bottom:1px solid rgba(255,255,255,.1)}
.drawer__row{display:flex;align-items:stretch}
.drawer__link{
  flex:1;display:block;padding:13px 16px;color:#fff;font-size:15px;
}
.drawer__link:hover{background:rgba(255,255,255,.12);color:#fff}
.drawer__expand{
  width:52px;background:rgba(255,255,255,.08);border:0;color:#fff;cursor:pointer;
  display:grid;place-items:center;transition:background .2s var(--ease);
}
.drawer__expand .i{width:16px;height:16px;transition:transform .2s var(--ease)}
.drawer__expand.is-open .i{transform:rotate(180deg)}
.drawer__expand:hover{background:rgba(255,255,255,.2)}
.drawer__expand.is-open{background:var(--orange)}
.drawer__sub{list-style:none;margin:0;padding:0;display:none;background:rgba(0,0,0,.16)}
.drawer__sub.is-open{display:block}
.drawer__sub .drawer__link{padding-left:30px;font-size:14px}
.drawer__sub .drawer__sub .drawer__link{padding-left:46px}
.drawer__foot{
  margin-top:auto;padding:16px;font-size:13px;line-height:1.5;
  background:rgba(0,0,0,.2);
}
.drawer__foot a{color:#fff;display:block;margin-bottom:6px}

/* ============================================================
   СОВРЕМЕННЫЕ АКЦЕНТЫ
   Отдельный слой поверх готовой вёрстки. Здесь трогаются
   только фон, тени, прозрачность и переходы — ни одного
   свойства, влияющего на размер или поток блоков (width,
   height, padding, margin, gap, font-size). Наведение мышью
   использует transform, который не участвует в раскладке:
   соседние элементы не сдвигаются даже при увеличении блока.
   ============================================================ */

/* ---------- Верхняя строка: стекловидная подложка ---------- */
.topline{
  background:linear-gradient(90deg,var(--orange-dark) 0%,var(--orange) 45%,#ff9a2e 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 4px 14px rgba(0,0,0,.12);
}
.topline__icon{background:rgba(255,255,255,.08)}
.topline__btn{
  background:rgba(255,255,255,.14);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  box-shadow:0 1px 0 rgba(255,255,255,.25) inset;
}
.topline__btn:hover{
  background:rgba(255,255,255,.3);
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(0,0,0,.16),0 1px 0 rgba(255,255,255,.3) inset;
}
.topline__btn--accent{
  background:linear-gradient(180deg,#ffffff 0%,#f3f6fb 100%);
  box-shadow:0 3px 10px rgba(0,0,0,.22),0 1px 0 rgba(255,255,255,.6) inset;
}
.topline__btn--accent:hover{
  background:linear-gradient(180deg,var(--blue) 0%,var(--blue-dark) 100%);
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(8,25,50,.35);
}
/* Один и тот же отклик на наведение у ссылок верхней строки
   и у значков соцсетей — переход на министерство, к сведениям
   об организации и клик по каждой соцсети выглядят одинаково */
.topline__link,
.topline__icon{transition:background .2s var(--ease),transform .2s var(--ease)}
.topline__link:hover,
.topline__icon:hover{background:rgba(255,255,255,.12);transform:translateY(-1px)}

/* ---------- Основной блок: более глубокий и живой фон ---------- */
.header-main{
  background:
    radial-gradient(ellipse 900px 500px at 12% -10%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(135deg,#2c72cc 0%,var(--blue) 42%,var(--blue-dark) 78%,#0f2b52 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.1) inset;
}
.header-main::before{
  /* Тот же точечный узор, но чуть заметнее и со вторым мягким
     пятном света слева — уравновешивает существующий блик
     справа, заданный в ::after */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1.5px, transparent 0),
    radial-gradient(circle at 8% 30%, rgba(255,255,255,.10), transparent 55%);
  background-size:26px 26px, 100% 100%;
  opacity:.6;
}

/* Линия под реквизитами — мягкий градиент вместо ровной серой черты */
.header-meta-row{
  border-image:linear-gradient(90deg,rgba(255,255,255,.02),rgba(255,255,255,.28) 30%,rgba(255,255,255,.28) 70%,rgba(255,255,255,.02)) 1;
}
.meta-item .ic{transition:transform .2s var(--ease)}
.meta-item a{
  transition:color .2s var(--ease);
  background-image:linear-gradient(currentColor,currentColor);
  background-position:0 100%;background-repeat:no-repeat;background-size:0 1px;
  transition:color .2s var(--ease),background-size .25s var(--ease);
}
.meta-item a:hover{background-size:100% 1px}

/* Телефоны: тёплая подсветка иконки, аккуратное подчёркивание номера */
.phone-item__icon{
  background:linear-gradient(160deg,rgba(255,255,255,.22),rgba(255,255,255,.08));
  box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 4px 10px rgba(0,0,0,.15);
  transition:transform .2s var(--ease),box-shadow .2s var(--ease);
}
.phone-item:hover .phone-item__icon{
  transform:scale(1.08);
  box-shadow:0 1px 0 rgba(255,255,255,.35) inset,0 6px 14px rgba(0,0,0,.22);
}
.phone-item__nums a{
  background-image:linear-gradient(var(--orange),var(--orange));
  background-position:0 100%;background-repeat:no-repeat;background-size:0 2px;
  transition:color .2s var(--ease),background-size .25s var(--ease);
  padding-bottom:1px;
}
.phone-item__nums a:hover{background-size:100% 2px}

/* Начальник: та же фотография без отклика на наведение —
   только статичная тень, задающая объём. */
.header-chief__photo{
  box-shadow:0 8px 20px rgba(4,16,34,.4),0 0 0 1px rgba(255,255,255,.16) inset;
}
.header-chief__name{text-shadow:0 1px 8px rgba(0,0,0,.25)}

/* Юбилейные знаки: мягкая тень оживает при наведении */
.emblem img{transition:transform .3s var(--ease),filter .3s var(--ease)}
.emblem:hover img{transform:translateY(-3px);filter:drop-shadow(0 8px 18px rgba(0,0,0,.4))}

/* ---------- Полоса меню: чуть глубже, с плавным подчёркиванием ---------- */
.nav{
  background:linear-gradient(180deg,var(--blue) 0%,var(--blue-dark) 100%);
}
.nav__link{position:relative;transition:background .2s var(--ease),color .2s var(--ease)}
.nav__link::after{
  content:"";position:absolute;left:21px;right:21px;bottom:6px;height:2px;
  background:var(--orange);border-radius:2px;
  transform:scaleX(0);transform-origin:left;
  transition:transform .25s var(--ease);
  pointer-events:none;
}
/* Анимированная подсветка снизу — только для наведения на пункты,
   которые ещё НЕ являются текущей страницей. У текущей страницы
   уже есть своя постоянная линия (см. .nav__item.is-active выше,
   оранжевая, толще) — если бы вдобавок к ней ещё и наводился
   белый ::after при наведении, получались бы две линии разом. */
.nav__item:not(.is-active):hover>.nav__link::after,
.nav__item:not(.is-active):focus-within>.nav__link::after{transform:scaleX(1)}

/* Линия-«бутерброд» — мягкое свечение снизу для отделения от контента,
   высота и цвета самой полосы не меняются */
.mchs-line{box-shadow:0 6px 16px -6px rgba(0,60,140,.45)}
