/* Стили для компонента header */
.header {
  z-index: 100;
  padding-top: 20px;
  position: relative;
}

/* Удаляем старые стили для navbar и добавляем стили для content */
.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Добавляем стили для секций */
.header__section {
  padding: 0;
}

.header__section--logo {
  flex: 0 0 auto;
}

.header__section--nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__section--actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

.header__logo {
  display: inline-block;
  text-decoration: none;
  color: var(--text-light);
  transition: opacity 0.3s;
}

.header__logo:hover {
  opacity: 0.8;
  color: var(--primary-color);
}

.header__logo-text {
  font-size: 1.5rem;
}

.header__nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  justify-content: center;
}

.header__nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.header__nav-link:hover {
  color: var(--primary-color);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Обновляем стили для кнопок */
.header__button {
  text-decoration: none;
  transition: transform 0.3s;
  color: var(--text-light);
}

.header__button:hover {
  transform: translateY(-2px);
  color: var(--primary-color);
}

.header__button-wrapper {
  display: flex;
  align-items: center;
}

.header__button-icon {
  height: 2rem;
  width: auto;
}

/* Добавляем стили для мобильной панели */
.header__mobile-panel {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

/* Сохраняем стили для мобильной версии */
.header__actions--mobile {
  display: none;
  align-items: center;
}

.header__mobile-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.5rem;
  transition: transform 0.3s;
}

.header__mobile-button:hover {
  transform: translateY(-2px);
}

.header__mobile-button-icon {
  height: 1.75rem;
  width: auto;
}

.header__mobile-button--support {
  color: var(--text-light);
}

.header__mobile-button--exchange {
  color: var(--primary-color);
}

.header__mobile-button--exchange .header__mobile-button-text {
  color: var(--primary-color);
}

.header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.header__menu-toggle-icon {
  height: 1.75rem;
  width: auto;
  transition: transform 0.3s;
}

.header__menu-toggle.active .header__menu-toggle-icon {
  transform: rotate(90deg);
}

.header__promo {
  position: relative;
  display: flex;
  margin-top: 40px;
  gap: 10px;
}

.header__promo-container {
  display: flex;
  width: 868px;
  height: 180px;
  background: var(--primary-color);
  border-radius: 25px;
  align-items: center;
  justify-content: space-between;
}

.header__promo-content {
  flex: 1;
  margin-left: 30px;
  z-index: 1;
  max-width: 100%;
}

.header__promo-description {
  margin-top: 20px;
  line-height: 128%;
}

.header__promo-icon {
  flex: 0 0 auto;
  height: 160px;
  opacity: 15%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 20px;
}

.header__promo-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .header__promo {
    flex-direction: column;
  }
  
  .header__promo-container {
    width: 100%;
  }
  
}

@media (max-width: 1024px) {
  .header {
    padding-top: 10px;
  }

  /* Обновляем медиа-запросы для новой структуры */
  .header__content {
    position: relative;
    z-index: 100;
  }

  .header__section {
    display: none;
  }

  /* Показываем мобильную панель */
  .header__mobile-panel {
    display: flex;
    width: 100%;
  }

  .header__actions--mobile {
    display: flex;
    gap: 1.5rem;
  }

  .header__section--nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background: var(--background-dark);
    padding: 5rem 2rem 2rem;
    z-index: 100;
    transition: left 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: block;
  }

  .header__section--nav.active {
    left: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .header__nav-link {
    font-size: 1rem;
  }

  .header__section--actions {
    display: none;
  }

  .header__menu-toggle {
    display: flex;
  }

  .header__menu-toggle.active span {
    background-color: var(--text-light);
  }

  .header__menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .header__menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .header__menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .header__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .header__overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .main-content {
    transition: transform 0.3s;
  }
}

@media (max-width: 992px) {
  .header__promo {
    margin-top: 30px;
  }

  .header__promo-container {
    height: 125px;
  }

  .header__promo-content {
    margin-left: 20px;
    max-width: 70%;
  }

  .header__promo-description {
    margin-top: 10px;
  }

  .header__promo-icon {
    height: 105px;
    margin-right: 10px;
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .header__promo {
    margin-top: 20px;
  }

  .header__promo-container {
    height: 100px;
  }

  .header__promo-content {
    margin-left: 15px;
    max-width: 75%;
  }

  .header__promo-description {
    line-height: 120%;
  }

  .header__promo-icon {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .header__section--nav {
    width: 85%;
  }

  .header__promo-icon {
    height: 60px;
  }
}
