.header-link-icon {
  padding: 0;
  border: none;
  background: transparent;
}

.header-fixed__burger,
.header-fixed__menu-close,
.header-fixed__menu-backdrop {
  display: none;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
}

.header-fixed .header-fixed__logo svg {
  display: block;
  width: 158px;
  height: auto;
}

.header-fixed .header-fixed__navigation {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
}

.header-fixed .header-fixed__menu-drawer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.header-fixed .header-fixed__menu-body {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-fixed .header-fixed__more {
  position: relative;
  z-index: 1;
  margin-left: auto;
}

.header-fixed .header-fixed__phone {
  white-space: nowrap;
}

.header-fixed .header-fixed__menu-footer {
  display: none;
}

.header-fixed .header-fixed__menu-logo {
  display: none;
}

body.header-menu--open {
  overflow: hidden;
  padding-right: var(--header-menu-scrollbar-comp, 0px);
}

body.header-menu--open .header-fixed {
  padding-right: var(--header-menu-scrollbar-comp, 0px);
}

@media (max-width: 1400px) and (min-width: 961px) {
  .header-fixed .header-fixed__wrap {
    gap: 16px;
  }

  .header-fixed .header-fixed__more {
    gap: 16px;
  }

  .header-fixed .header-fixed__nav-icons {
    gap: 16px;
  }

  .header-fixed .header-fixed__logo svg {
    width: 140px;
  }

  .header-fixed .header-fixed__menu-drawer {
    min-width: 0;
    flex: 1 1 auto;
  }

  .header-fixed .header-fixed__menu-body {
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .header-fixed .header-fixed__menu-body::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 1180px) and (min-width: 961px) {
  .header-fixed .header-fixed__wrap {
    gap: 12px;
  }

  .header-fixed .header-fixed__more {
    gap: 12px;
  }

  .header-fixed .header-fixed__nav-icons {
    gap: 12px;
  }

  .header-fixed .header-fixed__logo svg {
    width: 128px;
  }
}

@media (max-width: 1200px) and (min-width: 961px) {
  .header-fixed .header-fixed__phone {
    display: none;
  }
}

@media (max-width: 960px) {
  .header-fixed {
    min-height: 45px;
    padding: 10px 0;
  }

  .header-fixed .header-fixed__wrap {
    gap: 12px;
  }

  .header-fixed .header-fixed__logo {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
  }

  .header-fixed .header-fixed__logo svg {
    width: 132px;
  }

  .header-fixed .header-fixed__navigation {
    position: fixed;
    inset: 0;
    z-index: 30;
    visibility: hidden;
    pointer-events: none;
    /* После снятия --open дочерние transition успевают отыграть, затем скрываем слой */
    transition: visibility 0s linear 0.25s;
  }

  .header-fixed .header-fixed__navigation.header-fixed__navigation--open {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s linear 0s;
  }

  .header-fixed .header-fixed__menu-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(17, 18, 29, 0.42);
    opacity: 0;
    transition: opacity 0.25s ease-out;
    cursor: pointer;
  }

  .header-fixed .header-fixed__navigation.header-fixed__navigation--open .header-fixed__menu-backdrop {
    opacity: 1;
  }

  .header-fixed .header-fixed__menu-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 380px);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    background: #9192a5;
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
    overflow-y: auto;
  }

  .header-fixed .header-fixed__menu-logo {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .header-fixed .header-fixed__menu-logo svg {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
  }

  .header-fixed .header-fixed__navigation.header-fixed__navigation--open .header-fixed__menu-drawer {
    transform: translateX(0);
  }

  .header-fixed .header-fixed__menu-close {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: -5px;
    margin-top: -5px;
    cursor: pointer;
    color: #ffffff;
  }

  .header-fixed .header-fixed__menu-close-line {
    position: absolute;
    width: 24px;
    height: 2px;
    border-radius: 100px;
    background: currentColor;
  }

  .header-fixed .header-fixed__menu-close-line:first-child {
    transform: rotate(45deg);
  }

  .header-fixed .header-fixed__menu-close-line:last-child {
    transform: rotate(-45deg);
  }

  .header-fixed .header-fixed__menu-body {
    display: block;
    width: 100%;
  }

  .header-fixed .header-fixed__menu-footer {
    display: flex;
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    text-align: center;
  }

  .header-fixed .header-fixed__menu-phone {
    color: #ffffff;
    text-decoration: none;
  }

  .header-fixed .header-fixed__menu-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .header-fixed .header-fixed__menu-social-link {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #9192a5;
    transition: opacity 0.2s ease-out;
  }

  .header-fixed .header-fixed__menu-social-link svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .header-fixed .header-fixed__menu-cta {
    display: inline-flex;
    min-height: 44px;
    padding: 12px 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background: #ffffff;
    text-decoration: none;
    color: #9192a5;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    transition: opacity 0.2s ease-out;
  }

  .header-fixed .header-fixed__more {
    gap: 16px;
  }

  .header-fixed .header-fixed__nav-icons {
    gap: 20px;
  }

  .header-fixed .header-fixed__phone {
    display: none;
  }

  /* Ниже .header-fixed__more (z-index:1), иначе fixed-оверлеи корзины/избранного
     оказываются под бургером и клики попадают в кнопку меню. */
  .header-fixed .header-fixed__burger {
    position: relative;
    z-index: 0;
    display: inline-flex;
    width: 25px;
    height: 20px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 0;
    gap: 0;
    cursor: pointer;
    color: #ffffff;
  }

  .header-fixed .header-fixed__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    flex-shrink: 0;
    border-radius: 0;
    background: currentColor;
  }

  .header-fixed-basket {
    height: auto;
    padding: 0;
    gap: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .header-fixed-basket .header-fixed-basket__label,
  .header-fixed-basket .header-fixed-basket__badge {
    display: none;
  }

  .header-fixed-basket .header-fixed-basket__icon {
    width: 20px;
    height: 20px;

    color: rgba(255, 255, 255, 0.85);
  }
}

@media (hover: hover) {
  .header-fixed .header-fixed__menu-social-link:hover {
    opacity: 0.8;
  }

  .header-fixed .header-fixed__menu-cta:hover {
    opacity: 0.8;
  }
}

@media (max-width: 600px) {
  .header-fixed .header-fixed__logo svg {
    width: 104px;
  }

  .header-fixed .header-fixed__more {
    gap: 10px;
  }

  .header-fixed .header-fixed__nav-icons {
    gap: 20px;
  }

  .header-fixed .header-link-icon {
    width: 20px;
    height: 20px;
  }

  .header-fixed .header-fixed__menu-drawer {
    width: 100%;
    padding: 20px 20px 28px;
  }

  .header-fixed .header-fixed__menu-logo svg {
    width: 220px;
  }

  .header-fixed-basket {
    min-width: 0;
  }

  .header-fixed .header-fixed__menu-cta {
    width: 100%;
    max-width: 193px;
  }
}