.hamburger {
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: black;
  transition: all 0.3s ease-in-out;
}

/* Анімація бургер-меню при відкритті */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================= */
/* 🔹 DROPDOWN MENU 🔹 */
/* ============================= */
.nav-menu {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px 0;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease, top 0.3s ease;
  z-index: 1000;
}

.nav-menu ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-menu a {
  color: white;
  font-size: 18px;
  text-decoration: none;
}

.nav-menu.active {
  top: 60px;
  opacity: 1;
  transform: translateY(0);
}

@media screen and (min-width: 768px) {
  .hamburger,
  .nav-menu,
  .navbar {
    display: none;
  }
}
