/* Контейнер меню — теперь не влияет на поток на десктопе */
.mobile-menu-container {
  position: relative;
  width: 100%;
}

/* Гамбургер-кнопка */
.hamburger-btn {
  position: fixed;
  top: 25px;
  right: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
  padding: 0;
  /* Важно: скрываем на десктопе */
  display: none;
}

.hamburger-line {
  display: block;
  height: 4px;
  border-radius: 2px;
  background-color: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-line.short  { width: 18px; }
.hamburger-line.medium { width: 24px; }
.hamburger-line.long   { width: 32px; }

/* Анимация при открытии меню */
.hamburger-btn.open .hamburger-line.short {
  transform: rotate(45deg) translate(6px, 6px);
  opacity: 0.9;
}

.hamburger-btn.open .hamburger-line.medium {
  opacity: 0;
}

.hamburger-btn.open .hamburger-line.long {
  transform: rotate(-45deg) translate(6px, -6px);
  opacity: 0.9;
}

/* Меню */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  background-color: #a895a8;
  z-index: 999;
  transition: height 0.5s ease-out;
  /* Скрываем на десктопе */
  display: none;
}

.mobile-menu.open {
  height: 100vh;
}

/* Список меню */
.mobile-menu-list {
  font-family: 'Tenor Sans';
  list-style: none;
  padding: 80px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mobile-menu-item {
  text-align: center;
}

.mobile-menu-link {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.mobile-menu-link:hover {
  color: #e0d6f9;
}

/* Медиа-запросы: показываем только на мобильных */
@media (max-width: 844px) {
  .hamburger-btn {
    display: flex; /* Показываем гамбургер */
  }
  
  .mobile-menu {
    display: block; /* Показываем меню */
  }
}

/* Адаптивность: уменьшение шрифта на очень маленьких экранах */
@media (max-width: 375px) {
  .mobile-menu-link {
    font-size: 1.3rem;
  }
}

@media (max-width: 320px) {
  .mobile-menu-link {
    font-size: 1.2rem;
  }
  .hamburger-btn {
    top: 12px;
    right: 12px;
  }
}
.mobile-menu-item a {
color: #e4e3e3!important;
}
.mobile-menu-item a:hover {
  color: #cfc9c9!important;
}