.header {
  padding-top: 30px;
  background: url("../../uploads/header-bg.png") repeat-x;
}
.header__wrap {
  justify-content: space-between;
}
.header__nav {
  margin-top: 20px;
  width: calc( 50% - 92px );
}
.header__nav ul li {
  z-index: 1;
  transition: 0.4s;
  margin-right: 110px;
  position: relative;
}
.header__nav ul li:before {
  z-index: -1;
  top: 50%;
  left: 50%;
  width: calc( 100% + 28px );
  height: 44px;
  background: #fbb900;
  transform: translate(-50%, -50%);
  transition: 0.4s;
  content: "";
  position: absolute;
}
.languages::before {
  z-index: -1;
  top: 50%;
  left: 50%;
  width: calc( 100% + 10px );
  height: 44px;
  background: #fbb900;
  transform: translate(-50%, -50%);
  transition: 0.4s;
  content: "";
  position: absolute;
}
.header__nav ul li a {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}
.header__nav ul li:last-of-type {
  margin-right: 0;
}
.header__nav ul li:hover a {
  color: #e30033;
}
.header__nav ul li.--red {
  margin-right: 15px;
}
.header__nav ul li.--red:before {
  height: 32px;
  background: #e30033;
  border-radius: 20px;
  opacity: 1;
  visibility: visible;
}
.header__nav ul li.--red a {
  color: #fff;
}
.header__nav ul li.--red:hover:before {
  background: #2d2d2c;
}
.header__nav:nth-last-child(2) ul {
  justify-content: flex-end;
}
.header__logo {
  max-width: 184px;
}

.ham {
  display: none;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  padding: 2px;
}
.ham div {
  width: 27px;
  height: 3px;
  background: #e30033;
  margin-bottom: 6px;
}
.ham div:nth-of-type(1) {
  transition: background 0.3s, transform 0.3s ease-in-out;
  transform-origin: 0 0;
}
.ham div:nth-of-type(2) {
  transition: background 0.3s, transform 0.15s ease-in-out;
}
.ham div:nth-of-type(3) {
  transition: background 0.3s, transform 0.3s ease-in-out;
  transform-origin: 0 100%;
  margin-bottom: 0;
}
.ham:hover div {
  background: #2d2d2c;
}
.ham.--toggle div {
  background: #2d2d2c;
}
.ham.--toggle div:nth-of-type(1) {
  transform: rotate(45deg);
}
.ham.--toggle div:nth-of-type(2) {
  transform: scaleY(0);
}
.ham.--toggle div:nth-of-type(3) {
  transform: rotate(-45deg);
}
.ham.--toggle:hover div {
  background: #2d2d2c;
}

@media screen and (max-width: 1350px) {
  .header__logo {
    max-width: 150px;
    height: 150px;
  }
}
@media screen and (max-width: 1080px) {
  .header__logo {
    max-width: 120px;
    height: 120px;
  }
  .header__nav {
    width: calc( 50% - 60px );
  }
  .header__nav ul li {
    margin-right: 50px;
  }
  .header__nav ul li a {
    font-size: 20px;
  }
}
@media screen and (max-width: 767px) {
  .header {
    z-index: 11;
    top: 0;
    left: 0;
    right: 0;
    padding-top: 10px;
    padding-bottom: 15px;
    background-position-y: bottom;
    position: fixed;
    width: 100%;
  }
  .header:before {
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc( 100% + 30px );
    transition: 0.3s;
    background: #fff;
    content: "";
    opacity: 0;
    visibility: hidden;
    position: absolute;
    box-shadow: 2px 2px 8px rgba(45, 45, 44, 0.1);
  }
  .header.--toggle:before {
    opacity: 1;
    visibility: visible;
  }
  .header.--toggle .header__logo {
    height: 0;
  }
  .header.--toggle .header__nav {
    opacity: 1;
    width: 100%;
    margin-bottom: 40px;
    height: auto;
    visibility: visible;
  }
  .header.--toggle .header__nav:first-child {
    margin-top: 120px;
  }
  .header__wrap {
    justify-content: flex-start;
    align-items: center;
  }
  .header__logo {
    max-width: 90px;
    height: 90px;
  }
  .header__nav {
    z-index: 11;
    margin-top: 0;
    opacity: 0;
    height: 0;
    width: 0;
    visibility: hidden;
  }
  .header__nav ul {
    align-items: center;
    flex-direction: column;
  }
  .header__nav ul li {
    margin-right: 0;
    margin-bottom: 40px;
  }
  .header__nav ul li:before {
    background: transparent;
  }
  .header__nav ul li:last-of-type {
    margin-bottom: 0;
  }
  .header__nav ul li.--red {
    margin-right: 0;
  }
  .header__ham {
    z-index: 11;
    top: 35px;
    right: 10px;
    position: absolute;
  }

  .ham {
    display: flex;
  }
}
@media screen and (max-width: 580px) {
  .header__logo {
    max-width: 80px;
    height: 80px;
  }
}
@media screen and (max-width: 389px) {
  .header__logo {
    max-width: 70px;
    height: 70px;
  }
  .header__ham {
    top: 30px;
  }
}