/* ============================================================
   SIBERIA — меню на всю высоту. Включается только ?menu=on.
   Только раскладка: цвета, шрифты и размеры не меняем.
   ============================================================ */

@media (max-width: 1023px) {

  /* панель тянется вниз до кнопки, которая закреплена поверх страницы */
  .header__wrapper {
    height: calc(100 * var(--vh, 1vh) - 60px) !important;
  }

  /* меню — колонка: пункты сверху, контакты прижаты к низу */
  .header.is-active .header__inner {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  /* список пунктов занимает всё свободное место и прокручивается */
  .header.is-active .main-nav {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
    max-height: none !important;
    overflow-y: auto !important;
    margin-bottom: 0 !important;
  }

  .header.is-active .main-nav__wrapper {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
    max-height: none !important;
  }

  /* пункты распределяются по высоте */
  .header.is-active .main-nav__list {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  /* контакты и соцсети — фиксированный блок внизу */
  .header.is-active .header__inner > .header__bottom {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
  }

  .header.is-active .header__inner > .header__bottom:first-of-type {
    margin-top: auto !important;
  }
}
