﻿.header-section {
  width: 100%;
}

.header {
  z-index: var(--header-z);
  top: 25px;
  left: var(--p-inline);
  width: calc(100% - var(--p-inline) * 2);
  background-color: #fff;
  border-radius: 80px;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding-block: 10px;
  padding-inline: 30px;
  display: flex;
  position: fixed;
  box-shadow: 0 2px 5px #0000001a;
  @media (max-width: 1200px) {
    height: 40px;
    padding-inline: 20px;
  }
}

.header__logos {
  align-items: center;
  gap: 16px;
  height: 100%;
  display: flex;
  @media (max-width: 1100px) {
    gap: 10px;
  }
}

.header__logos .logo-separator {
  background-color: #090204;
  width: 1.5px;
  height: 100%;
  top: 0;
  left: 50%;
  translate: -50%;
}

.header__sharmax,
.header__evraz {
  align-items: center;
  height: 100%;
  display: flex;
}

.header__sharmax img,
.header__evraz img {
  @media (max-width: 1200px) {
    height: 11px;
  }
}

.header__list {
  gap: 70px;
  display: flex;
  @media (max-width: 1400px) {
    gap: 60px;
  }
}

.header__link {
  position: relative;
  font-size: 22px;
  font-weight: 400;
  @media (max-width: 1200px) {
    font-size: 14px;
  }
  @media (max-width: 1400px) {
    font-size: 16px;
  }
}

.header__link:after {
  content: "";
  background-color: currentColor;
  width: 0;
  height: 1.5px;
  transition: all 0.2s;
  position: absolute;
  bottom: 0;
  right: 0;
}

.header__link:hover:after {
  width: 100%;
}

.header__burger {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
  width: 32px;
  height: 16px;
  padding-inline: 6px;
  @media (max-width: 1100px) {
    display: flex;
  }
}

.header__burger-line {
  background-color: #2d2f33;
  width: 20px;
  height: 2px;
  transition: all 0.2s ease-in-out;
  display: block;
}

.header__nav {
  @media (max-width: 1100px) {
    display: none;
  }
}

.header__nav--open {
  display: block;
  position: absolute;
  top: 60px;
  right: 0;
  border-radius: 20px;
  background-color: #fff;
}

.header__nav--open .header__list {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
}

.header__burger--open .header__burger-line:nth-child(1) {
  rotate: 45deg;
  translate: 0 6px;
}

.header__burger--open .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger--open .header__burger-line:nth-child(3) {
  rotate: -45deg;
  translate: 0 -6px;
}
