.header {
  background: var(--color-dark);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header__container {
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo__img {
  height: 32px;
  object-fit: contain;
}

/* NAVIGATION */

.nav {
  display: flex;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
}

.nav__link {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  font-family: var(--font-text);
  text-transform: capitalize;
}

.nav__link--active {
  color: var(--color-primary);
}
.nav__link:hover {
  color: var(--color-primary);
}

/* BURGER MENU */

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav__burger-line {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: 0.3s ease;
}

.nav__burger--active .nav__burger-line {
  background: var(--color-primary);
}

.nav__burger--active .nav__burger-line:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

.nav__burger--active .nav__burger-line:nth-child(2) {
  opacity: 0;
}

.nav__burger--active .nav__burger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

.nav__burger:focus-visible {
  outline: none;
}

@media (max-width: 1150px) {
  .nav__item:nth-child(n + 10) {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--color-dark);
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    padding: 32px;
  }

  .nav--open {
    min-height: calc(100vh - 64px);
    opacity: 1;
    pointer-events: auto;
    padding: 32px;
  }

  .nav__burger {
    display: flex;
  }

  .nav__list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }

  .nav__item:nth-child(n + 10) {
    display: block;
  }
}
