.header__container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  padding-top: 2rem;
  font-weight: 500;
}

.header__logo img {
  width: 8rem;
  height: auto;
}

.header__nav-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header__nav-item {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.header__nav-item a {
  text-decoration: none;
  color: inherit;
}

.header__nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background-color: black;
  transition: width 0.3s ease-in-out;
}

.header__nav-item:hover::after {
  width: 100%;
}

.header__burger-btn {
  display: none;
}

.header__btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.header__btn svg {
  width: 2.5rem;
  height: auto;
  transition-duration: 0.2s;

  top: -1.25rem;
  left: -0.9rem;
  right: 0;

  position: absolute;
}

.header__btn svg:hover {
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .header__burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 10;
  }

  .header__burger-btn span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: black;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  .header__burger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .header__burger-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .header__burger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .header__nav {
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 5;

    /* скрытие с анимацией */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  .header__nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header__nav-list {
    flex-direction: row;
    gap: 1rem;

    justify-content: center;
    flex-wrap: wrap;
  }
}
