.header {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 10;
  width: 100%;
}

.container-header {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo img {
  height: 48px;
}

.nav {
  flex: 1;
  margin-left: 40px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: space-evenly;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-item a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  padding: 10px;
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 180px;
  z-index: 99;
}

.dropdown li a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  white-space: nowrap;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icons img {
  width: 28px;
  height: 28px;
}

.divider {
  width: 1px;
  height: 20px;
  background: #ccc;
}

.auth {
  background: none;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  color: #fff;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 90%;
  height: 100vh;
  background: #fff;
  padding: 60px 30px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: right 0.4s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.mobile-menu ul li a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
}

.mobile-submenu {
  display: none !important;
  padding-left: 16px;
  margin-top: 10px;
}

.mobile-item.open .mobile-submenu {
  display: block !important;
}

.mobile-submenu li {
  margin: 15px 0;
}

.mobile-submenu a {
  font-size: 16px;
  color: #555;
  text-decoration: none;
  padding-left: 10px;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header-icons {
    display: none;

  }
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}
