.header {
  background: #21201f;
  color: #fff;
  font-family: manrope, Arial, Helvetica, sans-serif;
  font-size: 18px;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 5;
}
.header__wrapper {
  max-width: 1920px;
  margin-inline: auto;
  padding: 0 var(--pi);
  display: flex;
  align-items: center;
  height: 88px;

  --pi: 50px;
}
@media (width < 1030px) {
  .header__wrapper {
    --pi: 50px;
    height: 40px;
  }
}
@media (width < 768px) {
  .header__wrapper {
    --pi: 16px;
  }
}

.header__logo {
  width: 100%;
  max-width: 222px;
  height: 100%;
  margin-right: 15px;

  & img {
    height: 100%;
    width: 100%;
  }
}
@media (width < 1030px) {
  .header__logo {
    max-width: 150px;
  }
}
@media (width < 480px) {
  .header__logo {
    margin-right: auto;
  }
}

.header__city {
  position: relative;
  margin-right: auto;
  height: 100%;
}
@media (width < 480px) {
  .header__city {
    display: none;
  }
}

.header__city-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 15px;
  font-weight: 500;
  height: 100%;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;

  &::before {
    content: "";
    width: 16px;
    height: 22px;
    background: center/cover no-repeat url("../images/header/location.svg");
  }

  transition: all 0.4s;
  &:hover {
    background-color: #e84d2680;
  }
}

.header__city-popup {
  position: absolute;
  top: 100%;
  left: 0;
  background: #21201f;
  padding: 16px;
  font-size: 1em;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  z-index: 2;

  display: none;
  &._active {
    display: block;
  }
}

.header__city-popup-content {
  flex-direction: column;
  gap: 1em;

  display: none;
  &._active {
    display: flex;
  }
}
.header__city-title {
  white-space: nowrap;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}
.header__city-question-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
.header__city-question-button {
  width: 100%;
  border-radius: 0.4em;
  padding: 0.4em 1em;
  background: radial-gradient(65.49% 100% at 51.66% 0%, #ff8262 0%, #e84e26 52.4%, #e87726 100%);
  font-size: 0.9em;
  font-weight: 600;
  font-family: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;

  &:nth-of-type(1) {
    background: radial-gradient(65.49% 100% at 51.66% 0%, #f1f1f1 0%, #ffffff 52.4%, #c6c6c6 100%);
    color: #21201f;
  }
}

.header__city-answers-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  font-size: 0.9em;
}
.header__city-answer {
  color: inherit;
  font-family: inherit;
  font-size: inherit;

  &._active {
    color: #e84e26;
    cursor: pointer;
  }

  transition: all 0.4s;
  &:hover {
    color: #e84e26;
  }
}

.header__nav {
  display: flex;
  height: 100%;
}
.header__nav-link {
  height: 100%;
  padding-inline: 15px;
  display: flex;
  align-items: center;
  color: inherit;
  font-family: inherit;
  font-size: inherit;

  transition: all 0.4s;
  &:hover {
    background-color: #e84d2680;
  }
}
@media (width < 1030px) {
  .header__nav {
    display: none;
  }
}

.header__contact-link {
  height: 100%;
  padding-inline: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: inherit;
  font-family: inherit;
  font-size: inherit;

  transition: all 0.4s;
  &:hover {
    background-color: #e84d2680;
  }

  &::before {
    content: "";
    width: 24px;
    aspect-ratio: 1;
    flex-shrink: 0;
    background: center/cover no-repeat;
  }

  &._phone::before {
    background-image: url("../images/header/phone.svg");
  }
  &._email::before {
    background-image: url("../images/header/email.svg");
  }
}
@media (width < 1580px) {
  .header__contact-link {
    display: none;
  }
}

.header__soc {
  display: flex;
  align-items: center;
  margin-left: 15px;
  height: 100%;
}

.header__soc-link {
  width: 24px;
  aspect-ratio: 1;
  background: center/cover no-repeat;
  padding-inline: 3px;
  background-origin: content-box;
  box-sizing: content-box;

  &:first-child {
    background-image: url("../images/header/tg.svg");
  }
  &:nth-child(2) {
    background-image: url("../images/header/vk.svg");
  }
  &:last-child {
    background-image: url("../images/header/ru.svg");
  }
}

.header__search-btn {
  width: 26px;
  aspect-ratio: 1;
  background: center/cover no-repeat url("../images/header/search.svg");
  margin-left: 30px;
  background-origin: content-box;
  box-sizing: content-box;
  cursor: pointer;
}
.header--search {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border-top: 1px solid gray;
  padding: 10px var(--pi);
  background: #21201f;

  display: none;
  &._active {
    display: block;
  }
}
.header--search__input {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}
@media (width < 1030px) {
  .header__search-btn {
    display: none;
  }
}

table.title-search-result td {
  background: #21201f !important;
}
table.title-search-result td.td--left-empty {
  width: 0 !important;
  border-right: none !important;
  padding: 0 !important;
}

.burger {
  display: none;
  --deltaY: -6px;
}
@media (width < 1030px) {
  .burger {
    display: block;
    width: 32px;
    height: 32px;
    position: relative;
    margin-left: 15px;
    cursor: pointer;
  }
}
.burger span {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 2px;
  border-radius: 3px;
  background-color: #e84e26;
  transition: transform 0.5s ease;
  margin: auto;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-color: inherit;
}
.burger span::before {
  top: var(--deltaY);
  transition:
    top 0.3s ease 0.3s,
    transform 0.3s ease;
}
.burger span::after {
  bottom: var(--deltaY);
  transition:
    bottom 0.3s ease 0.3s,
    transform 0.3s ease;
}
.burger._active span {
  transform: rotate(225deg);
  transition: transform 0.3s ease 0.3s;
}
.burger._active span::before {
  top: 0;
  transition:
    top 0.3s ease,
    transform 0.3s ease 0.3s;
}
.burger._active span::after {
  bottom: 0;
  transform: rotate(90deg);
  transition:
    bottom 0.3s ease,
    transform 0.3s ease 0.3s;
}
.header__burger-menu {
  display: none;
}
@media (width < 1030px) {
  .header__burger-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    padding-bottom: 16px;
    width: 100%;
    background: #21201f;

    & .header__contact-link {
      display: flex;
      padding: 8px 15px;
    }

    & .header__nav {
      display: flex;
      flex-direction: column;
    }

    & .header__nav-link {
      padding: 8px 15px;
    }

    transform: translateX(-100%);
    transition: all 0.4s;
    &._active {
      transform: translateX(0);
    }
  }
}

/*  */
.header__subnautica {
  display: none;

  position: absolute;
  top: 88px;
  left: 0;
  z-index: 5;
  background: #fff;
  width: 100%;
  overflow-y: scroll;
  height: calc(100vh - 88px);

  &._active {
    display: block;
  }
}
.menu__container {
  width: 100%;
  margin: 0 auto;
  padding: 0 70px 32px;
  font-family: manrope, Arial, Helvetica, sans-serif;
}
.menu__container__block {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.title-first-level {
  text-transform: uppercase;
}
.back__link {
  display: none;
}
.child__menu__section {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-top: 0.5em;
}
.item-parent-link {
  margin-block: 1em;
}
@media (width < 1000px) {
  .menu__container {
    padding: 0 16px;
  }
}
.burger__subnautica {
  display: block;
  width: 32px;
  height: 32px;
  position: relative;
  margin-right: 15px;
  cursor: pointer;
  --deltaY: -6px;
}
@media (width < 1030px) {
  .burger__subnautica {
    display: none;
  }
}
.burger__subnautica span {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 2px;
  border-radius: 3px;
  background-color: #e84e26;
  transition: transform 0.5s ease;
  margin: auto;
}
.burger__subnautica span::before,
.burger__subnautica span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-color: inherit;
}
.burger__subnautica span::before {
  top: var(--deltaY);
  transition:
    top 0.3s ease 0.3s,
    transform 0.3s ease;
}
.burger__subnautica span::after {
  bottom: var(--deltaY);
  transition:
    bottom 0.3s ease 0.3s,
    transform 0.3s ease;
}
.burger__subnautica._active span {
  transform: rotate(225deg);
  transition: transform 0.3s ease 0.3s;
}
.burger__subnautica._active span::before {
  top: 0;
  transition:
    top 0.3s ease,
    transform 0.3s ease 0.3s;
}
.burger__subnautica._active span::after {
  bottom: 0;
  transform: rotate(90deg);
  transition:
    bottom 0.3s ease,
    transform 0.3s ease 0.3s;
}
