.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 3.125rem auto var(--g-red);
  padding: 0 var(--g-side);
  box-sizing: border-box;
  max-width: var(--max-width);
}

@media (max-width: 1180px) {
  .head {
    --g-side: 1.25rem;
  }
}

@media (max-width: 650px) {
  .head {
    height: 60px;
  }
}

.head__right-wrapper {
  display: flex;
  align-items: center;
  gap: 0 30px;
}

.head__menu {
  display: flex;
}

@media (min-width: 1025px) {
  .head__burger {
    display: none;
  }

  .head__menu {
    gap: 35px 30px;
  }

  .head__search--mobile {
    display: none;
  }
}

@media (max-width: 1024px) {
  .head__right {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 15px;
  }

  .head__right-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    padding-top: 9.375rem;
    box-sizing: border-box;
    background-color: var(--secondary);
    opacity: 0;
    visibility: hidden;
    transition: opacity, visibility, .25s;
    z-index: 11;
  }

  .head__right-wrapper--open {
    opacity: 1;
    visibility: visible;
  }

  .head__menu {
    gap: 35px 0;
    flex-direction: column;
  }

  .head__search {
    display: none;
  }

  .head__burger {
    position: relative;
    height: 26px;
    width: 26px;
    cursor: pointer;
    z-index: 12;
  }

  .head__burger:after,
  .head__burger:before {
    content: '';
    position: absolute;
    width: 26px;
    height: 2px;
    background-color: var(--secondary);
    transition: top, transform, bottom, .25s;
  }

  .head__right-wrapper--open + .head__burger:after,
  .head__right-wrapper--open + .head__burger:before {
    background-color: #fff;
  }

  .head__burger:after {
    top: 6px;
  }

  .head__right-wrapper--open + .head__burger:after {
    top: 12px;
    transform: rotate(45deg) translateY(-50%);
  }

  .head__burger:before {
    bottom: 6px;
  }

  .head__right-wrapper--open + .head__burger:before {
    bottom: 12px;
    transform: rotate(-45deg) translateY(-50%);
  }
}
