.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #fff;
}

.site-header__inner {
  display: flex;
  flex-direction: column;
}

.site-header__top {
  margin-bottom: 10px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(99px, 183px) auto 1fr;
}

.site-header__middle {
  margin-bottom: 20px;
}

.site-header__location {
  width: 183px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-header__nav {
  display: flex;
  align-items: center;
  padding-right: 42px;
}

.site-header__nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.site-header__nav a {
  font-weight: 400;
font-size: 16px;
line-height: 24px;
letter-spacing: 0%;
}

.site-header__phones {
  display: flex;
  align-items: center;
}

.site-header__phones-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header__middle {
  display: grid;
  grid-template-columns: minmax(102px, 183px) 1fr;
  position: relative;
}

.site-header__logo {
  width: 102px;
  height: auto;
}

.site-header__middle-group {
  display: flex;
  align-items: center;
}

.site-header__btn {
  width: 100%;
  max-width: 204px;
  height: 51px;
  margin-right: 20px;
}

.site-header__search-wrapper {
  width: 100%;
  height: 51px;
}

.site-header__mobile-search {
  display: none;
}

.site-header__search {
  display: flex;
  align-items: center;
}

.site-header__input {
  width: 100%;
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0%;
  border: 1px solid #D8D8D8;
  height: 51px;
  padding: 15.5px 32px;
  background-color: #fff;
}

.site-header__search-btn {
  height: 51px;
  padding: 3px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: var(--primary);
  font-size: 0;
  color: transparent;
}

.site-header__burger {
  display: none;
}

.site-header .cart-icon {
  margin-left: 36px;
}

.cart-icon {
  position: relative;
}

.cart-icon__count {
  position: absolute;
  right: 0;
  top: 0;
  aspect-ratio: 1 / 1;
  height: 18px;
  width: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0%;
  background: #FFFFFF;
  border-radius: 50%;
}

.mobile-menu {
  display: none;
}

.site-header__bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 14px;
  position: relative;
  user-select: none;
}

.site-header__bottom::after {
  position: absolute;
  display: block;
  content: '';
  width: 253px;
  height: 4px;
  background: linear-gradient(to right, #AF242F 50%, #434041 50%);
  bottom: 0;
  right: 0;
}

.site-header__bottom::-webkit-scrollbar {
  display: none;
}

.site-header__cat {
  width: max-content;
  white-space: nowrap;
}

@media (max-width: 1300px) {
  .site-header__phones {
    display: none;
  }

  .site-header__nav {
    width: 100%;
    justify-content: flex-end;
    padding-right: 0;
  }

  .site-header__top {
    grid-template-columns: minmax(99px, 183px) 1fr;
  }
}

@media (max-width: 768px) {
  .site-header__top {
    display: none;
  }

  .site-header__middle {
    margin-bottom: 10px;
    padding-top: 10px;
  }

  .site-header__bottom::after {
    width: 101px;
    background: linear-gradient(to right, #AF242F 65%, #434041 65%);
  }

  .site-header__btn {
    display: none;
  }

  .site-header__middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .site-header__logo {
    width: 79px;
  }

  .site-header__search {
    position: absolute;
    opacity: 0;
    top: calc(100% + 10px);
    width: 100%;
    height: 44px;
    pointer-events: none;
    left: 0;
    z-index: 5;
  }

  .site-header__search.open {
    opacity: 1;
    pointer-events: all;
  }

  .site-header__search-wrapper {
    height: auto;
  }

  .site-header .cart-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0;
  }

  .site-header .cart-icon svg {
    width: 27px;
    height: auto;
  }

  .site-header__mobile-search {
    display: block;
    height: 44px;
    width: 44px;
    margin-right: 20px;
    cursor: pointer;
  }

  .site-header__burger {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0;
    color: transparent;
    margin-left: 20px;
    cursor: pointer;
  }

  .mobile-menu {
    display: flex;
    position: absolute;
    top: 0;
    right: -120%;
    width: 100%;
    height: 100dvh;
    max-height: max-content;
    background-color: #fff;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    transition: right 0.3s ease-in-out;
  }

  .mobile-menu.open {
    right: 0;
  }

  .mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .mobile-menu__actions {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .mobile-menu__action {
    height: 44px;
    cursor: pointer;
  }

  .mobile-menu__location {
    display: flex;
    align-items: center;
  }

  .mobile-menu__nav .menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
  }

  .mobile-menu__phones {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-menu__phones-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-menu__address {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}