.header__nav {
  max-width: 480px;
  flex-grow: 1;
  flex-shrink: 1;
}

.header__list {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
}

.header__link {
  position: relative;
  font-family: 'Open Sans', 'sans-serif';
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  color: #0e0e0f;
  max-width: 186px;
  width: 100%;
  transition: all 0.2s ease-in-out;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}

.header__link::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  z-index: -1;
  background-image: url('/local/templates/main/assets/img/blot.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: inherit;
}

.header__link:hover:before {
  opacity: 1;
}

.header__link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
}

.header__link:visited {
  color: inherit;
}

.header__link:hover {
  color: #00a76b;
}

.header__item {
  position: relative;
}

.header__item_star {
  display: flex;
  align-items: center;
  gap: 7px;
}

.header__item_star::before {
  content: url('images/star.svg');
}

@media screen and (max-width: 980px) {
  .header__nav {
    max-width: none;
    min-height: 100vh;
    left: 0;
    top: 47px;
    background-color: #ffffff;
    position: absolute;
    transform: translateX(-200%);
    transition: all 0.5s linear;
    overflow: hidden;
    z-index: 999;
    width: 0;
    justify-content: normal;
    padding: 86px 50px 70px 48px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
  }

  .header__nav_opened {
    width: auto;
    transform: translateX(0);
  }

  .header__list  {
    flex-direction: column;
    gap: 25px;
  }

  .header__item_star {
    left: -21px;
  }
}
