/* Основные стили меню */
.site-header {
  background-color: #cccccc;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.logo img {
  max-height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  position: relative;
  margin: 0 5px;
}

.menu-item a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.menu-item a i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
  color: #4f0151;
}

.menu-item a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Стили для выпадающего меню */
.has-dropdown {
  position: relative;
}

.dropdown-icon {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.has-dropdown:hover .dropdown-icon,
.has-dropdown:focus-within .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 100;
  list-style: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  margin: 0;
}

.dropdown-item a {
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  color: #333;
  border-radius: 0;
}

.dropdown-item a:hover {
  background-color: rgba(79, 1, 81, 0.05);
  transform: none;
}

/* Мобильное меню */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  color: #333;
  font-size: 1.25rem;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .menu {
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0;
  }

  .menu-item {
    margin: 0;
    width: 100%;
  }

  .menu-item a {
    padding: 1rem 1.5rem;
    justify-content: flex-start;
    border-radius: 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    background-color: rgba(0, 0, 0, 0.02);
    margin-top: 0;
    padding: 0;
  }

  .has-dropdown.active .dropdown-menu {
    max-height: 500px;
  }

  .main-nav.active {
    max-height: 500px;
  }

  .dropdown-item a {
    padding-left: 3rem;
  }
}

