/* ==========================================================
   Доработки поверх шаблона. Файл НЕ генерируется из SCSS —
   правки здесь не пропадут при пересборке template_styles.css.
   Подключён в header.php перед </head>.
   ========================================================== */

/* === Меню в хедере: hover и активный пункт (16.10.2026) === */
.header__menu ul a {
  transition: color .2s ease;
}
.header__menu ul a svg {
  transition: fill .2s ease;
}
.header__menu ul a:hover,
.header__menu ul a.active {
  color: var(--color-tile7);
}
.header__menu ul a:hover svg,
.header__menu ul a.active svg {
  fill: var(--color-tile7);
}

/* Активный пункт красим сразу, без анимации — иначе при переходе в раздел видно мигание */
.header__menu ul a.active,
.header__menu ul a.active svg {
  transition: none;
}

/* === Меню в футере: hover и активный пункт (16.10.2026) === */
.footer__menu-list ul a,
.footer__bottom ul li a {
  transition: color .2s ease;
}
.footer__menu-list ul a:hover,
.footer__menu-list ul a.active,
.footer__bottom ul li a:hover,
.footer__bottom ul li a.active {
  color: var(--color-tile7);
}
.footer__menu-list ul a.active,
.footer__bottom ul li a.active {
  transition: none;
}

/* мобильное меню: нижняя кнопка «Версия для слабовидящих» не обрезается снизу */
.header__mobile .tabs__content-item { padding-bottom: 12px; box-sizing: border-box; }

/* бургер: высота списка по экрану, кнопка «Версия для слабовидящих» всегда видна */
.header__mobile .tabs__content-item { height: auto; max-height: calc(100vh - 223px); max-height: calc(100dvh - 223px); }
@media (min-width: 768px) { .header__mobile .tabs__content-item { max-height: calc(100vh - 300px); max-height: calc(100dvh - 300px); } }
.header__mobile .tabs__content-item .enableuGost { position: sticky; bottom: 0; z-index: 2; background: #fff; box-shadow: 0 12px 0 #fff, 0 -10px 12px -6px rgba(255,255,255,.9); }
