@media only screen and (min-width: 993px) {
  #middle-header,
  .middle-header,
  .header-catalog {
    z-index: 1200 !important;
  }

  .header-fixed #middle-header,
  .header-fixed .middle-header,
  .header-fixed .header-catalog {
    top: 0 !important;
    margin-top: 0 !important;
    transform: none !important;
    z-index: 1200 !important;
  }

  .header-fixed .catalog-menu {
    z-index: 1190 !important;
  }

  .catalog-list__item,
  .product-preview {
    scroll-margin-top: 10rem;
  }

  .catalog-list__item:hover,
  .product-preview:hover {
    z-index: 60;
  }

  .catalog__left {
    align-self: stretch;
    position: relative;
  }

  .catalog__left .catalog-sidebar {
    position: static !important;
    height: 100%;
    max-height: none;
    overflow: visible;
  }

  .catalog__left .catalog-sidebar__inner {
    position: relative;
    bottom: auto;
    height: 100%;
    max-height: none;
    overflow: visible;
  }

  .catalog-cats {
    position: sticky;
    top: 9.6rem;
    bottom: auto;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    z-index: 80;
    max-height: calc(100vh - 11.2rem);
    margin-top: 1.25rem;
    padding: 0.8rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 135, 148, 0.45) transparent;
  }

  .catalog-cats.codex-cats-fixed,
  .catalog-cats.codex-cats-bottom {
    z-index: 80;
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .catalog-cats.codex-cats-fixed {
    position: fixed !important;
  }

  .catalog-cats.codex-cats-bottom {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
  }

  .catalog-cats li {
    margin: 0;
  }

  .catalog-cats::-webkit-scrollbar {
    width: 0.4rem;
  }

  .catalog-cats::-webkit-scrollbar-track {
    background: transparent;
  }

  .catalog-cats::-webkit-scrollbar-thumb {
    background: rgba(123, 135, 148, 0.35);
    border-radius: 99rem;
  }

  .catalog-cats__sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
  }

  .catalog-cats li:nth-child(6n + 1) {
    --cat-accent: #2f8fff;
    --cat-accent-2: #6fb7ff;
    --cat-soft: #eef7ff;
    --cat-blob: rgba(47, 143, 255, 0.13);
  }

  .catalog-cats li:nth-child(6n + 2) {
    --cat-accent: #ff8a2a;
    --cat-accent-2: #ffc171;
    --cat-soft: #fff6e8;
    --cat-blob: rgba(255, 138, 42, 0.13);
  }

  .catalog-cats li:nth-child(6n + 3) {
    --cat-accent: #22b873;
    --cat-accent-2: #78dfb3;
    --cat-soft: #eefaf4;
    --cat-blob: rgba(34, 184, 115, 0.13);
  }

  .catalog-cats li:nth-child(6n + 4) {
    --cat-accent: #8b5cf6;
    --cat-accent-2: #c4b5fd;
    --cat-soft: #f5f0ff;
    --cat-blob: rgba(139, 92, 246, 0.13);
  }

  .catalog-cats li:nth-child(6n + 5) {
    --cat-accent: #f24f86;
    --cat-accent-2: #ffb3ca;
    --cat-soft: #fff0f5;
    --cat-blob: rgba(242, 79, 134, 0.13);
  }

  .catalog-cats li:nth-child(6n + 6) {
    --cat-accent: #12b8c9;
    --cat-accent-2: #7ce8f1;
    --cat-soft: #eefcff;
    --cat-blob: rgba(18, 184, 201, 0.13);
  }

  .catalog-cats a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.2rem;
    padding: 0.28rem 0.65rem 0.28rem 0.25rem;
    overflow: visible;
    color: #221f1f !important;
    font-family: Arial, "Segoe UI", Roboto, Helvetica, sans-serif;
    font-size: 1.4rem;
    line-height: 1.12;
    font-weight: 400;
    text-decoration: none !important;
    background: transparent;
    border: 0;
    border-radius: 0.8rem;
    box-shadow: none;
    transition: color 0.16s ease, background 0.16s ease;
  }

  .catalog-cats a::before {
    content: "";
    position: absolute;
    inset: 0.55rem auto 0.55rem 0;
    width: 0.28rem;
    border-radius: 99rem;
    background: #ff0048;
    opacity: 0;
    transform: scaleY(0.45);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .catalog-cats a::after {
    content: none;
  }

  .catalog-cats__icon {
    position: relative;
    z-index: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex: 0 0 2.1rem;
    width: 2.1rem;
    height: 2.1rem;
    line-height: 1;
    color: #7b8794 !important;
    border-radius: 0.55rem;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    transition: color 0.16s ease, background 0.16s ease;
  }

  .catalog-cats__icon::before {
    content: none;
  }

  .catalog-cats__icon svg {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.55rem;
    transform: translateY(0.08rem);
    fill: none;
    stroke: currentColor;
    stroke-width: 2.05;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .catalog-cats__icon svg,
  .catalog-cats__icon use {
    color: currentColor !important;
    stroke: currentColor !important;
  }

  .catalog-cats__icon svg * {
    vector-effect: non-scaling-stroke;
  }

  .catalog-cats__text,
  .catalog-cats__name {
    position: relative;
    z-index: 1;
    display: block;
    min-width: 0;
    color: inherit !important;
  }

  .catalog-cats__name {
    font-size: 1.4rem;
    line-height: 1.12;
    font-weight: 400;
    letter-spacing: 0;
  }

  .catalog-cats a:hover {
    color: #ff0048 !important;
    background: #fff4f7;
  }

  .catalog-cats a.current {
    color: #111827 !important;
    background: #fff4f7;
    box-shadow: none;
  }

  .catalog-cats a.current::before {
    opacity: 1;
    transform: scaleY(1);
  }

  .catalog-cats a.current .catalog-cats__icon {
    color: #ff0048 !important;
  }

  .catalog-cats a:hover span,
  .catalog-cats a.current span {
    color: inherit !important;
  }

  .catalog-cats a:hover .catalog-cats__icon,
  .catalog-cats a.current .catalog-cats__icon {
    color: #ff0048 !important;
  }
}

@media only screen and (max-width: 992px) {
  html.catalog-sidebar-active,
  html.catalog-sidebar-active body {
    overflow: hidden;
  }

  .catalog__left {
    display: block !important;
    position: static;
    width: auto;
    padding: 0;
  }

  .catalog-sidebar {
    position: fixed !important;
    inset: 0;
    z-index: 100000;
    display: block !important;
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    background: rgba(10, 18, 32, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
  }

  .catalog-sidebar.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .catalog-sidebar__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block !important;
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .catalog-sidebar__mobile-head,
  .catalog-sidebar__inner {
    position: fixed;
    left: 0;
    width: min(86vw, 38rem);
    background: #fff;
    transform: translateX(-104%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
  }

  .catalog-sidebar.active .catalog-sidebar__mobile-head,
  .catalog-sidebar.active .catalog-sidebar__inner {
    transform: translateX(0);
  }

  .catalog-sidebar__mobile-head {
    top: 0;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    height: 6.4rem;
    padding: 1.1rem 1.4rem 1rem 1.6rem;
    border-radius: 0 1.8rem 0 0;
    border-bottom: 1px solid #edf2f7;
    box-shadow: 1.2rem 0 3rem rgba(15, 23, 42, 0.08);
  }

  .catalog-sidebar__mobile-title {
    min-width: 0;
    color: #0f172a;
    font-family: Arial, "Segoe UI", Roboto, Helvetica, sans-serif;
    font-size: 1.72rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
  }

  .catalog-sidebar__close-text {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 4.2rem;
    width: 4.2rem;
    height: 4.2rem;
    padding: 0;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e5edf5;
    border-radius: 50%;
    box-shadow: 0 0.6rem 1.4rem rgba(15, 23, 42, 0.08);
  }

  .catalog-sidebar__close-text span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .catalog-sidebar__close-text svg {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    fill: currentColor;
  }

  .catalog-sidebar__inner {
    top: 6.4rem;
    bottom: 0;
    height: auto;
    max-height: none;
    padding: 1.2rem 1.25rem 2.4rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 1.8rem 0;
    box-shadow: 1.2rem 1.8rem 3rem rgba(15, 23, 42, 0.18);
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 135, 148, 0.45) transparent;
  }

  .catalog-sidebar__inner::-webkit-scrollbar {
    width: 0.35rem;
  }

  .catalog-sidebar__inner::-webkit-scrollbar-track {
    background: transparent;
  }

  .catalog-sidebar__inner::-webkit-scrollbar-thumb {
    background: rgba(123, 135, 148, 0.35);
    border-radius: 99rem;
  }

  .catalog-sidebar .price-filter {
    margin: 0 0 1.4rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 1.4rem;
    box-shadow: 0 0.7rem 2.2rem rgba(15, 23, 42, 0.06);
  }

  .catalog-sidebar .price-filter__title {
    margin-bottom: 1rem;
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
  }

  .catalog-sidebar .price-filter__row,
  .catalog-sidebar .price-filter__fields {
    gap: 0.8rem;
  }

  .catalog-sidebar .price-filter input {
    min-height: 4rem;
    border-radius: 1rem;
    border-color: #dbe5ef;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 600;
  }

  .catalog-sidebar .price-filter__submit,
  .catalog-sidebar #ocfilter-button {
    min-height: 4.2rem;
    border-radius: 1.1rem;
    color: #fff;
    background: #ff0048;
    box-shadow: 0 0.9rem 1.8rem rgba(255, 0, 72, 0.18);
  }

  .catalog-sidebar .catalog-cats {
    position: static !important;
    display: flex !important;
    flex-direction: column;
    gap: 0.45rem;
    max-height: none;
    margin: 0;
    padding: 0.2rem 0 0;
    overflow: visible;
    border: 0;
  }

  .catalog-sidebar .catalog-cats__sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
  }

  .catalog-sidebar .catalog-cats li {
    margin: 0;
  }

  .catalog-sidebar .catalog-cats a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 4.4rem;
    padding: 0.76rem 0.9rem;
    color: #0f172a !important;
    font-size: 1.42rem;
    line-height: 1.12;
    font-weight: 600;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 1.2rem;
    box-shadow: 0 0.5rem 1.6rem rgba(15, 23, 42, 0.05);
  }

  .catalog-sidebar .catalog-cats a.current {
    color: #ff0048 !important;
    background: #fff4f7;
    border-color: rgba(255, 0, 72, 0.18);
  }

  .catalog-sidebar .catalog-cats__icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.8rem;
    width: 2.8rem;
    height: 2.8rem;
    color: #ff0048 !important;
    background: #fff0f5 !important;
    border-radius: 0.85rem;
  }

  .catalog-sidebar .catalog-cats__icon svg {
    display: block;
    width: 1.55rem;
    height: 1.55rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .catalog-sidebar .catalog-cats__text,
  .catalog-sidebar .catalog-cats__name {
    min-width: 0;
    color: inherit !important;
  }
}
