/* ═══════════════════════════════════════════
   BURGER MENU — burger-menu.css
   Цветовая схема: #092025 (фон) / #5bc0de (акцент)
════════════════════════════════════════════ */

/* ── Фикс ширины виджета Elementor ── */
.elementor-widget-shortcode,
.elementor-widget-shortcode .elementor-shortcode {
  display: inline-flex !important;
  width: auto !important;
  line-height: 1;
}

/* ── Кнопка бургера ── */
.burger-btn {
  width: 44px;
  height: 44px;
  border: 2px solid #5bc0de;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  padding: 0;
}
.burger-btn:hover {
  background: rgba(91, 192, 222, .12);
  border-color: #31a5c5;
}

.burger-icon {
  position: relative;
  width: 22px;
  height: 14px;
}
.burger-icon span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #5bc0de;
  border-radius: 2px;
  transition: transform .4s cubic-bezier(.23,1,.32,1),
              opacity   .3s ease,
              top       .4s cubic-bezier(.23,1,.32,1),
              width     .3s ease;
}
.burger-icon span:nth-child(1) { top: 0; }
.burger-icon span:nth-child(2) { top: 6px; width: 75%; }
.burger-icon span:nth-child(3) { top: 12px; width: 50%; }

/* Крестик при открытом меню */
.burger-btn.is-active .burger-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.burger-btn.is-active .burger-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(6px);
}
.burger-btn.is-active .burger-icon span:nth-child(3) {
  top: 6px;
  width: 100%;
  transform: rotate(-45deg);
}

/* ── Оверлей ── */
.burger-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 20, 25, .7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  z-index: 99998;
}
.burger-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ── Боковая панель (Drawer) ── */
.burger-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100dvh;
  background: #0b2a32;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.23,1,.32,1);
}
.burger-drawer::before {
  content: '';
  display: block;
  height: 3px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #5bc0de, #31a5c5, #1d7a96);
}
.burger-drawer.is-active {
  transform: translateX(0);
  box-shadow: -12px 0 50px rgba(0,0,0,.5);
}

/* Шапка дровера */
.burger-drawer__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(91, 192, 222, .12);
}
.burger-drawer__close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(91, 192, 222, .25);
  background: rgba(91, 192, 222, .08);
  border-radius: 8px;
  cursor: pointer;
  color: #5bc0de;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s, border-color .2s;
}
.burger-drawer__close:hover {
  background: rgba(91, 192, 222, .18);
  border-color: rgba(91, 192, 222, .5);
  transform: rotate(90deg);
}

/* Тело дровера */
.burger-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(91,192,222,.2) transparent;
}

/* ── Стили меню WordPress ── */
.burger-drawer__body .menu,
.burger-drawer__body ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.burger-drawer__body .menu-item > a {
  display: block;
  padding: 13px 24px;
  text-decoration: none !important;
  color: #a8d8e8 !important;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background .2s, color .2s, padding-left .2s;
  border-left: 3px solid transparent;
}
.burger-drawer__body .menu-item > a:hover {
  background: rgba(91, 192, 222, .1);
  color: #5bc0de !important;
  padding-left: 30px;
  border-left-color: rgba(91, 192, 222, .4);
}

/* Активный пункт */
.burger-drawer__body .menu-item.current-menu-item > a,
.burger-drawer__body .menu-item.current_page_item > a,
.burger-drawer__body .menu-item.current-menu-ancestor > a {
  color: #5bc0de !important;
  background: rgba(91, 192, 222, .12);
  border-left-color: #5bc0de;
  font-weight: 600;
}

/* Разделитель между пунктами */
.burger-drawer__body .menu-item {
  border-bottom: 1px solid rgba(91, 192, 222, .06);
}
.burger-drawer__body .menu-item:last-child {
  border-bottom: none;
}

/* ── Подменю ── */
.burger-drawer__body .sub-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s cubic-bezier(.23,1,.32,1);
  background: rgba(9, 32, 37, .6);
  border-left: 2px solid rgba(91, 192, 222, .2);
  margin-left: 24px;
}
.burger-drawer__body .menu-item-has-children.is-open > .sub-menu {
  max-height: 600px;
}
.burger-drawer__body .sub-menu .menu-item > a {
  font-size: 14px;
  padding: 10px 20px;
  color: #6fabb9 !important;
}
.burger-drawer__body .sub-menu .menu-item > a:hover {
  color: #5bc0de !important;
  background: rgba(91, 192, 222, .08);
  padding-left: 26px;
}

/* Стрелка у пунктов с подменю */
.burger-drawer__body .menu-item-has-children > a {
  position: relative;
  padding-right: 40px;
}
.burger-drawer__body .menu-item-has-children > a::after {
  content: '›';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 20px;
  color: rgba(91, 192, 222, .4);
  transition: transform .3s, color .2s;
}
.burger-drawer__body .menu-item-has-children.is-open > a::after {
  transform: translateY(-50%) rotate(90deg);
  color: #5bc0de;
}

/* ── Анимация появления пунктов ── */
.burger-drawer__body .menu > .menu-item {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity .35s ease, transform .35s ease;
}
.burger-drawer.is-active .menu > .menu-item             { opacity: 1; transform: translateX(0); }
.burger-drawer.is-active .menu > .menu-item:nth-child(1) { transition-delay: .07s; }
.burger-drawer.is-active .menu > .menu-item:nth-child(2) { transition-delay: .11s; }
.burger-drawer.is-active .menu > .menu-item:nth-child(3) { transition-delay: .15s; }
.burger-drawer.is-active .menu > .menu-item:nth-child(4) { transition-delay: .19s; }
.burger-drawer.is-active .menu > .menu-item:nth-child(5) { transition-delay: .23s; }
.burger-drawer.is-active .menu > .menu-item:nth-child(6) { transition-delay: .27s; }
.burger-drawer.is-active .menu > .menu-item:nth-child(7) { transition-delay: .31s; }
.burger-drawer.is-active .menu > .menu-item:nth-child(8) { transition-delay: .35s; }

/* ── Блокировка скролла страницы ── */
body.burger-menu-open { overflow: hidden; }

/* ── Специфичный фикс для виджета с ID ── */
.elementor-element-46665126 {
  width: auto !important;
}

