.header {
  padding-block: 1rem;
}

.header__up {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header__branding {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}

.header__branding-logo img {
  width: auto;
  height: 3.5rem;
}

.header__branding-title {
  color: white !important;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 500;
  display: block;
  max-width: 14rem;
  line-height: 1.25;
}

.header__line {
  margin-block: 1rem;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background-color: white;
}

.header__down .menu {
  list-style-type: none;
  display: flex;
  margin: 0;
  padding: 0;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.header__down .menu a {
  color: white !important;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.125rem;
  transition: opacity 300ms ease-out;
}

.header__down .menu li {
  overflow: hidden;
}

.header__down .menu a::after {
  content: "";
  height: 1px;
  background-color: white;
  width: 100%;
  display: block;
  transition: transform 300ms ease-out;
  transform: translateX(-101%);
}

.header__down .menu a:hover {
  opacity: 0.9;
}

.header__down .menu a:hover::after {
  transform: translateX(0%);
}

.header__contact-up {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
}

.header__contact-icon {
  height: 1.5rem;
  width: 1.5rem;
}

.header__contact-title {
  font-size: 0.875rem;
}

.header__contacts {
  display: flex;
  gap: 0.5rem;
}

.header__contact {
  max-width: 13rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: white !important;
  text-decoration: none;
  transition: opacity 300ms;
}

.header__contact:hover {
  opacity: 0.9;
}

.header__contact-title {
  opacity: 0.8;
  line-height: 1.25;
  display: block;
}

.header__menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.25rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: opacity 300ms;
}

.header__menu-button:hover {
  opacity: 0.85;
}

.home .header {
  position: absolute;
  z-index: 9;
  inset-inline: 0;
}

@media (min-width: 1025px) {
  .header__menu-button {
    display: none;
  }
}

@media (max-width: 1024px) {
  .header {
    padding-block: 0.75rem;
  }

  .header__contacts,
  .header__line,
  .header__down {
    display: none;
  }

  .header__menu-button {
    display: inline-flex;
  }

  .header__branding-logo img {
    height: 3.25rem;
  }

  .header__branding-title {
    font-size: 1rem;
    max-width: 10rem;
  }
}

@media (max-width: 480px) {
  .header__branding-title {
    display: none;
  }
}
