/* =========================================================
   ALLHIR HEADER / MOBILE MENU tweaks
   ========================================================= */

/* базовый header как был */
header.wp-block-template-part{
  background: #1F1F1F;
  padding: 15px 0;
  border-bottom: 1px solid #2A2A2A;
  position: sticky;
  top: 0;
  z-index: 50;
}

header.wp-block-template-part nav.wp-block-navigation a{
  color: #E6E6E6 !important;
}
header.wp-block-template-part nav.wp-block-navigation a:hover{
  color: #FF8A00 !important;
}

/* hamburger */
.hamburger-menu{
  font-size: 28px;
  cursor: pointer;
  color: #ff8a00;
  padding: 5px 10px;
  display: inline-block;
}

/* sidebar */
.sidebar-menu{
  position: fixed;
  top: 0;
  left: -280px;
  width: 270px;
  height: 100vh;
  background: rgba(25,25,25,0.98);
  box-shadow: 10px 0 30px rgba(0,0,0,0.55);
  padding: 20px;
  transition: 0.25s ease;
  z-index: 9999;
  pointer-events: none;
}

.sidebar-menu.active{
  left: 0;
  pointer-events: auto;
}

.sidebar-close{
  font-size: 34px;
  color: #ff8a00;
  cursor: pointer;
  text-align: right;
  margin-bottom: 16px;
}

.sidebar-menu a{
  color: #ffffff !important;         /* ярче */
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: block;
  padding: 10px 8px;
  border-radius: 10px;
}

.sidebar-menu a:hover{
  background: rgba(255,138,0,0.14);
  color: #ff8a00 !important;
}

/* MOBILE header: компактнее, гамбургер сверху справа */
@media (max-width: 980px){
  header.wp-block-template-part{
    padding: 8px 0;
  }

  .hamburger-menu{
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 30px;
    z-index: 60;
  }
}
/* =========================================================
   ALLHIR — MOBILE HEADER: menu button top-right above login
   Требует класс на правом блоке иконок: .allhir-head-actions
   ========================================================= */

@media (max-width: 980px){

  /* делаем якорь для абсолютного позиционирования */
  header, .wp-site-blocks > header{
    position: relative;
  }

  /* правый блок (иконки входа/выхода) — тоже якорь */
  .allhir-head-actions{
    position: relative;
    padding-top: 46px; /* место под кнопку меню сверху */
  }

  /* кнопка открытия мобильного меню (бургер) */
  .wp-block-navigation__responsive-container-open{
    position: absolute !important;
    right: 12px !important;
    top: 8px !important;

    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;

    border-radius: 12px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 9999 !important;
  }

  /* на всякий: если тема рисует “левую” кнопку/дубликат — прячем всё,
     что лежит НЕ внутри нашего правого блока */
  header .wp-block-navigation__responsive-container-open{
    display: none !important;
  }
  header .allhir-head-actions .wp-block-navigation__responsive-container-open{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* делаем иконку бургера чуть контрастнее */
  .allhir-head-actions .wp-block-navigation__responsive-container-open svg{
    opacity: .95 !important;
  }
}