header {
  max-width: 190.2rem;
  padding: 1rem 16rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  position: fixed;
  z-index: 10;
  background-color: white;
  width: 100%;
  top: 0;

  @media (max-width: 767px) {
    padding: 1rem 1.6rem;
  }

  .header-img {
    width: 10rem;
    height: 12rem;

    @media (max-width: 767px) {
      width: 6.6rem;
      height: 8rem;
    }
  }
  .header-block_nav {
    display: flex;

    @media (max-width: 767px) {
      position: absolute;
      top: 99%;
      left: 0;
      width: 100%;
      height: 100vh;
      padding-top: 8rem;
      text-align: center;
      z-index: 5;
      flex-direction: column;
      display: none;
      background-color: var(--white);

      .header-nav__list {
        flex-direction: column;
        gap: 3rem;
        margin-bottom: 2rem;
      }
    }
  }
  .header-nav {
    .header-nav__list {
      display: flex;
      gap: 3.2rem;

      .list-item_nav {
        text-transform: uppercase;
      }

      a {
        color: var(--black);

        &:hover {
          text-decoration: underline;
          text-underline-offset: 0.4rem;
          text-decoration-color: var(--yellow);
        }
      }
    }
  }
  .header-search {
    display: none;
  }
  .header-block_contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;

    @media (max-width: 767px) {
      position: absolute;
      left: 0;
      top: calc(100% + 28rem);

      text-align: center;
      width: 100%;

      z-index: 5;
      display: none;
    }

    p {
      color: var(--grey);
    }

    a {
      color: var(--black);
      pointer-events: none;

      @media (max-width: 767px) {
        pointer-events: unset;
        width: fit-content;
        margin: 0 auto;
      }
    }
  }

  .burger {
    display: none;

    @media (max-width: 767px) {
      display: block;

      width: 2.4rem;
      padding: 1rem 0;

      display: flex;
      align-items: center;
      justify-content: center;
    }

    &:hover {
      .burger-menu {
        background-color: var(--yellow);
        &::after {
          background-color: var(--yellow);
        }
        &::before {
          background-color: var(--yellow);
        }
      }
    }

    .burger-menu {
      width: 2.4rem;
      height: 0.1rem;
      background-color: var(--black);

      position: relative;

      &::after {
        content: "";

        width: 100%;
        height: 0.1rem;
        background-color: var(--black);

        position: absolute;
        top: 0.6rem;
      }
      &::before {
        content: "";

        width: 100%;
        height: 0.1rem;
        background-color: var(--black);

        position: absolute;
        bottom: 0.6rem;
      }
    }

    /* крестик */
    &.active .burger-menu {
      background: transparent;

      &::before {
        transform: rotate(-45deg);
        bottom: 0;
      }

      &::after {
        transform: rotate(45deg);
        top: 0;
      }
    }
  }
}
/* Класс для показа меню */
.menu-active {
  @media (max-width: 767px) {
    .header-block_nav {
      display: flex !important;
    }

    .header-block_contact {
      display: flex !important;
    }
  }
}
