/* ============================================
   header-v2-burger.css
   Стили бургер-меню
   ============================================ */

/* Оверлей для затемнения фона */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.mobile-menu-overlay.active {
  display: block;
}

/* Основной контейнер меню */
.mobile-menu {
  position: fixed;
  z-index: 999;
  background: #F4F6F7;
  
  display: none;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu.active {
  display: flex;
}

/* Заголовок меню */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mobile-menu-title {
  font-family: 'OpenRunde-Bold', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 150%;
  letter-spacing: -0.011em;
  color: #1C1F26;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

.mobile-menu-close:hover {
  background: #D4DADE;
}

.mobile-menu-close img {
  width: 20px;
  height: 20px;
}

/* Контейнер для колонок */
.mobile-menu-section-wrapper {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
}

/* Секция (колонка) */
.mobile-menu-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}

/* Элементы меню */
.mobile-menu-item {
  padding: 4px 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'OpenRunde-Medium', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #77797D;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.mobile-menu-item:hover {
  color: #1C1F26;
}

.mobile-menu-item.active {
  color: #494C51;
}

.mobile-menu-item img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== ПЛАНШЕТНАЯ ВЕРСИЯ (992px - 1200px) ===== */
@media (min-width: 992px) and (max-width: 1200px) {
  .mobile-menu-overlay {
    top: 66px;
  }

  .mobile-menu {
    top: 66px;
    left: 40px;
    right: 40px;
    bottom: auto;
    border-radius: 16px;
    box-shadow: 4px 4px 50px 0px rgba(38, 68, 92, 0.2);
    padding: 16px 16px 24px 24px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (≤991px) ===== */
@media (max-width: 991px) {
  .mobile-menu-overlay {
    top: 0;
  }

  .mobile-menu {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    padding: 80px 24px 24px;
    box-shadow: none;
    overflow-y: auto;
    
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .mobile-menu-section-wrapper {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

@media (max-width: 480px) {
  .mobile-menu {
    padding: 70px 16px 20px;
  }

  .mobile-menu-title {
    font-size: 24px;
  }

  .mobile-menu-close {
    width: 40px;
    height: 40px;
  }

  .mobile-menu-item {
    padding: 10px 14px;
    font-size: 14px;
    height: auto;
  }
}