/* === Общее для хедера === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1e3a8a;
}

/* === Навигация === */
.nav-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #1e3a8a;
}

/* === Выпадающее меню === */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
}

.dropdown-menu li a:hover {
  background: #f3f4f6;
  color: #1e3a8a;
}

/* === Бургер-меню === */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #1e3a8a;
  transition: 0.3s;
}

/* === Мобильная версия (< 768px) === */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    z-index: 999;
    padding: 3rem 2rem;
  }

  .nav.active {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  /* Выпадашка в мобильном меню */
  .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .dropdown-menu {
    display: none;
    margin-top: 0.5rem;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }
}