/* ===== Бургер-кнопка (скрыта на десктопе) ===== */

.overlay--burger {
  z-index: 999;
}

/* ===== Бургер ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  color:#03045e;
  cursor: pointer;
  flex-shrink: 0;
  order: -1; /* чтобы был первым в ряду */
}

.burger__line {
  display: block;
  width: 100%;
  height: 1px;
  border-radius: 3px;
  background-color: #03045e;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.burger.active .burger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Навигация (десктоп) ===== */
.header__nav {
  display: flex;
  justify-content: space-around;
}

.header__nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav-item p {
  display: inline;
  cursor: pointer;
}

.header__nav-link {
  text-decoration: none;
  color: #03045e;
  font-size: 16px;
  padding: 10px 10px;
  text-wrap-mode: nowrap;
  transition:
    0.5s ease,
    transform 0.2s ease;
  font-weight: lighter;
}

.header__nav-link:hover {
  color: #f7ad19;
}

/* ===== Кнопка закрытия (скрыта на десктопе) ===== */
.header__nav-close {
  display: none;
}
@media (max-width: 768px) {

}
/* ===== Мобильная версия ===== */
@media (max-width: 1150px) {
  .burger {
    display: flex;
  }

  .header__container {
    justify-content: space-between;
  }

.header__dropdown {
  background: none;
}

  .header__logo {
    margin: 0 auto;
  }

  .header__btn {
    flex-shrink: 0;
  }

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    padding: 80px 24px 32px;
    background: #f9fbff;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    overflow-y: auto;
    justify-content: flex-start;
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .header__nav-list {
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    order: 1;
  }

  .header__nav-link {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .header__version-desktop {
    display: none;
  }

  .header__version {
    order: 2;
    align-self: baseline;
    padding-top: 40px;
  }

  .header__version-mobile {
    display: block;
  }

  .header__dropdown {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease;
  }

  .header__nav-item--dropdown.open .header__dropdown {
    max-height: 300px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header__dropdown-link {
    padding: 8px 0;
    font-size: 16px;
  }

  .header__nav-close {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #535353;
  }
}
