/* Класс для отображения меню */
.dropdown-menu.is-open {
  display: flex;
  flex-direction: column;
}

/* Анимация стрелки */
.dropdown-toggle.is-open svg {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.mobile-menu-toggle {
  display: none;
}

/* Общие стили */
.header-wrapper {
  background: #fff;
  position: relative;
}

/* Десктопная версия */
.desktop-header-top {
  max-width: 1920px;
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  justify-content: space-evenly;
}

.header-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.header-logo-img {
  height: auto;
  max-width: 100%;
}

.header-logo-text {
  margin: 5px 0 0;
  font-size: 14px;
  color: #555;
  line-height: 1.3;
}

.header-center {
  flex: 1;
  padding: 0 30px;
  max-width: 500px;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.main-phone {
  font-weight: 600;
  font-size: 18px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--elab-background-color);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  min-width: 200px;
  z-index: 100;
  display: none;
}

.dropdown-item {
  /*display: block;*/
  padding: 8px 0;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  justify-content: center;
}

.nav-list a {
  text-decoration: none;
  /*color: #333;*/
  font-size: 16px;
}
.header-bottom {
  display: flex;
  justify-content: center;
}

/* Мобильная версия */
/* ===== Планшет (768px - 991px) ===== */
@media (max-width: 991px) {
  .desktop-header-top {
    flex-wrap: wrap;
    gap: 15px;
    padding: 12px 0;
  }

  .header-logo {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .header-logo-text {
    display: none;
    /* Скрываем текст лого на планшетах */
  }

  .header-center {
    order: 3;
    flex: 1 1 100%;
    padding: 0;
    margin-top: 10px;
  }

  .header-contacts {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 15px;
  }

  /* Показываем гамбургер */
  .mobile-menu-toggle {
    display: block;
    margin-right: 15px;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #333;
    transition: all 0.3s ease;
  }

  /* Скрываем меню на планшетах */
  .header-bottom {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 1000;
  }

  .nav-list {
    flex-direction: column;
    gap: 12px;
  }

  /* Анимация гамбургера */
  .mobile-menu-active .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu-active .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-active .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Показываем меню при активном гамбургере */
  .mobile-menu-active .header-bottom {
    display: block;
  }
}

/* ===== Мобильные (360px - 767px) ===== */
@media (max-width: 767px) {
  .desktop-header-top {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .header-logo {
    width: 100%;
    justify-content: space-between;
  }

  .header-center {
    order: 3;
    margin-top: 10px;
  }

  .phone-dropdown {
    width: 100%;
  }

  .callback-btn {
    width: 100%;
  }

  /* Уменьшаем телефон для мобилок */
  .main-phone {
    font-size: 16px;
  }
}
/* Стили для гамбургера */
.mobile-menu-toggle {
  display: none;
  /* Скрыт по умолчанию на десктопе */
  cursor: pointer;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #333;
  transition: all 0.3s ease;
}

/* Состояние активного гамбургера */
.mobile-menu-toggle.is-active .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header-bottom.is-open {
  display: block;
}

/* Адаптация для мобильных */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/* Стили для оверлея (фонового затемнения) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  /* Ниже меню, но выше контента */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.is-visible {
  opacity: 1;
  visibility: visible;
}


