.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  /*background: #FFFFFF40;*/
  background: rgb(0 0 0 / 63%);
}

.header__container {
  padding-top: 12px;
  display: flex;
  gap: 40px;
}

img.header__logo {
  min-width: 100px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.header__nav-link {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: var(--color-white);
  white-space: nowrap;
  transition: opacity 0.2s;
}

.header__nav-link:hover {
  opacity: 0.75;
}

.header__phone {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-white);
  white-space: nowrap;
  transition: opacity 0.2s;
}

.header__phone:hover {
  opacity: 0.75;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.header__burger-line {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1, 2, 2, 0.97);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 80px 24px 40px;
}

.header__mobile-menu.is-open {
  display: flex;
}

.header__mobile-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.header__mobile-nav-link {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-white);
}

.header__mobile-phone {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-white);
}

.header__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__close::before,
.header__close::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
}

.header__close::before { transform: rotate(45deg); }
.header__close::after { transform: rotate(-45deg); }

/* --- Tablet --- */
@media (max-width: 1023px) {
  .header__nav {
    gap: 20px;
  }

  .header__nav-link {
    font-size: 14px;
  }

  .header__phone {
    font-size: 14px;
  }
}

/* --- Mobile --- */
@media (max-width: 910px) {
  .header__nav,
  .header__phone {
    display: none;
  }

  .header__burger {
    display: flex;
  }
}
