.header {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 0;
  z-index: 9;
  font-family: 'SourceSansPro';
}

.header_first_line {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 0 16px 0;
  border-bottom: 1px solid #e2e2e2;
  margin-bottom: 16px;
}

.header_rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header_rating img,
.header_rating__white img {
  height: 14px;
}

.header_rating__white {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.header_contacts {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header_contacts .detail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail__white {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .detail__white a {
  color: #ffffff;
}

.header_contacts img {
  width: 20px;
}

.header .logo img {
  height: 27px;
}

.header a {
  text-decoration: none;
  color: var(--black);
}

.header_second_line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header_second_line .burger {
  cursor: pointer;
}

.desktopMenu,
.desktopMenu__white {
  display: none;
  align-items: center;
}

.desktopMenu .links,
.desktopMenu__white .links {
  display: flex;
  gap: 43px;
  margin-right: 40px;
}

.desktopMenu ul,
.desktopMenu__white ul {
  list-style-type: none;
}

.desktopMenu .links li,
.desktopMenu__white .links li {
  margin-top: 10px;
  margin-left: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--black);
}

.header .desktopMenu__white .links li a {
  color: #ffffff;
}

.link__white {
  margin-top: 10px;
  margin-left: 0;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
}

.line__white {
  width: 100%;
  height: 1px;
  margin-top: 10px;
  transition: all 0.5s ease;
  background-color: #ffffff;
}

.mobileMenu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(
    170.5deg,
    #3f3e3e 0.46%,
    #181818 31.32%,
    #181818 100%
  );
  z-index: 10;
  transform: translateX(100%);
  font-family: var(--source-sans-pro);
}

.mobileMenu .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 82px 30px 52px 30px;
}

.mobileMenu .close {
  cursor: pointer;
}

.mobileMenu .links {
  list-style-type: none;
  padding: 0 15px;
}

.mobileMenu li {
  margin-left: 0;
}

.mobileMenu li a {
  text-decoration: none;
  margin-bottom: 20px;
  opacity: 0.8;
  transition: all 0.5s ease;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 27px;
}

.mobileMenu .link:hover {
  opacity: 1;
}

.mobileMenu .link:hover .line,
.mobileMenu .link:active .line {
  width: 100%;
}

.mobileMenu .title .line {
  width: 42px;
  height: 1px;
  margin-top: 7px;
  background-color: #ffffff;
  transition: all 0.5s ease;
}

.mobileMenu .button {
  padding-left: 30px;
  padding-top: 20px;
}

@-webkit-keyframes openMenu {
  to {
    transform: translateX(0);
  }
}

@keyframes openMenu {
  to {
    transform: translateX(0);
  }
}

@-webkit-keyframes closeMenu {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes closeMenu {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

.openAnimation {
  -webkit-animation: 1s openMenu forwards;
  animation: 1s openMenu forwards;
}

.closeAnimation {
  -webkit-animation: 1s closeMenu forwards;
  animation: 1s closeMenu forwards;
}

.separator {
  display: inline-block;
  width: 2px;
  height: 20px;
  background-color: #E2E2E2;
  vertical-align: middle;
}

.header a.language-selection {
  color: rgba(36, 36, 36, 0.5);
}

.header span.language-selection.active-lang {
  color: #242424;
}

@media screen and (min-width: 1160px) {
  .header {
    margin: auto;
    padding: 0 50px;
    max-width: calc(var(--global_container_width) + 100px);
  }

  .header .burger {
    display: none;
  }

  .desktopMenu,
  .desktopMenu__white {
    display: flex;
  }
}

@media screen and (max-width: 800px) {
  .header_contacts .detail.desktop-language-switcher {
    display: none;
  }

  .header_contacts .detail__white.desktop-language-switcher {
    display: none;
  }

  .header .mobile-language-switcher span.language-selection,
  .header .mobile-language-switcher a.language-selection {
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.5s ease;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 27px;
  }

  .mobile-language-switcher {
    display: flex;
    gap: 16px;
    align-items: center;
  }

  .header .mobile-language-switcher {
    padding: 0px 30px;
  }

  .mobile-language-switcher .separator {
    background-color: white;
    height: 17px;
  }

  .header .mobile-language-switcher span.language-selection.active-lang {
    color: white;
    opacity: 1;
  }
}

@media screen and (max-width: 750px) {
  .header {
    left: 0;
    right: 0;
  }
}

@media screen and (min-width: 750px) {
  .header {
    left: 0;
    right: 0;
    margin: auto;
    padding: 0 50px;
    max-width: calc(var(--global_container_width) + 100px);
  }
}

@media screen and (max-width: 650px) {
  .header_first_line {
    justify-content: flex-end;
  }

  .header_first_line .header_rating,
  .header_first_line .header_rating__white {
    display: none;
  }
}

@media screen and (max-width: 400px) {
  .header_first_line {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .header_first_line .header_contacts {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .header_first_line .detail {
    gap: 3px;
  }
}
