.catalog {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24rem;
    color: #1C2126;
    margin-top: 20px;
}

.page--catalog-section .layout {
    overflow: visible;
}

.catalog__filter-mobile-open,
.catalog__filter-close,
.catalog__filter-backdrop {
    display: none;
}

.catalog__filter {
    width: 22%;
    min-width: 280px;
    padding: 10rem 10rem 10rem 0;

    border-radius: 12px;
    background-color: #ffffff;
    position: sticky;
    top: 20rem;
}

.catalog__filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12rem;
}

.catalog__filter-title {
    font-size: 20rem;
    font-weight: 700;
    line-height: 1.1;
}

.catalog__filter-reset {
    padding: 0;
    border: 0;
    background: transparent;
    color: #767D83;
    font-size: 14rem;
    line-height: 1.2;
    cursor: pointer;
    transition: 0.2s;
}

.catalog__filter-reset:hover {
    opacity: 0.7;
}

.catalog__filter-button,
.catalog__filter-request,
.catalog__item-image,
.catalog__item-name a,
.catalog__item-button,
.catalog__sort-item,
.catalog__configurator-link {
    text-decoration: none;
}

.catalog__item-name a,
.catalog__sort-item,
.catalog__configurator-link,
.catalog__item-button,
.catalog__filter-button,
.catalog__filter-request {
    color: inherit;
}

.catalog__item-name a,
.catalog__item-button {
    color: #1C2126;
}

.catalog__item-cart [hidden] {
    display: none !important;
}

.catalog__filter-result {
    margin-top: 12rem;
    font-size: 14rem;
    color: #767D83;
}

.catalog__filter-block {
    margin-top: 24rem;
    padding-top: 20rem;
    border-top: 1px solid #E6E8EA;
}

.catalog__filter-block-title {
    font-size: 16rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16rem;
}

.catalog__filter-range-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12rem;
}

.catalog__filter-field {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    font-size: 12rem;
    color: #767D83;
}

.catalog__filter-field input {
    width: 100%;
    padding: 11rem 12rem;
    border: 1px solid #DADCDE;
    border-radius: 8px;
    font-size: 14rem;
    line-height: 1.2;
    color: #1C2126;
    background-color: #F9FAFB;
}

.catalog__filter-field input:focus {
    outline: none;
    border-color: #ADC4E9;
    background-color: #ffffff;
}

.catalog__filter-slider {
    position: relative;
    height: 24rem;
    margin-top: 18rem;
}

.catalog__filter-slider-track,
.catalog__filter-slider-range {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4rem;
    transform: translateY(-50%);
    border-radius: 999px;
}

.catalog__filter-slider-track {
    background-color: #E6E8EA;
}

.catalog__filter-slider-range {
    background-color: #ADC4E9;
    left: 18%;
    right: 22%;
    z-index: 1;
}

.catalog__filter-slider-thumb {
    position: absolute;
    top: 50%;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border: 2px solid #ADC4E9;
    box-shadow: 0 2px 8px rgba(28, 33, 38, 0.12);
    cursor: grab;
    padding: 0;
    touch-action: none;
    user-select: none;
    appearance: none;
    -webkit-appearance: none;
    z-index: 2;
}

.catalog__filter-slider-thumb--start {
    left: 18%;
}

.catalog__filter-slider-thumb--end {
    left: 78%;
}

.catalog__filter-slider-thumb:active {
    cursor: grabbing;
}

.catalog__filter-slider-thumb:focus {
    outline: none;
    box-shadow: 0 0 0 4rem rgba(173, 196, 233, 0.35), 0 2px 8px rgba(28, 33, 38, 0.12);
}

.catalog__filter-scale {
    display: flex;
    justify-content: space-between;
    gap: 12rem;
    margin-top: 8rem;
    font-size: 12rem;
    color: #767D83;
}

.catalog__filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10rem;
    cursor: pointer;
    font-size: 14rem;
    line-height: 1.4;
    margin-top: 0;
}

.catalog__filter-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12rem 14rem;
}

.catalog__filter-checkbox input {
    margin-top: 0;
    width: 16rem;
    height: 16rem;
    accent-color: #ADC4E9;
    flex: 0 0 auto;
}

.catalog__filter-checkbox-text {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8rem;
    line-height: 1.2;
    min-width: 0;
}

.catalog__filter-checkbox-label {
    min-width: 0;
}

.catalog__filter-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    border: 1px solid #AEB6BE;
    color: #767D83;
    font-size: 12rem;
    line-height: 1;
    flex: 0 0 auto;
    background-color: #ffffff;
    cursor: help;
}

.catalog__filter-help::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8rem);
    transform: translateX(-50%);
    min-width: 200rem;
    max-width: min(240rem, calc(100vw - 32rem));
    padding: 8rem 10rem;
    border-radius: 8rem;
    background-color: #1C2126;
    color: #ffffff;
    font-size: 12rem;
    line-height: 1.35;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    z-index: 20;
}

.catalog__filter-help::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2rem);
    transform: translateX(-50%);
    border-left: 6rem solid transparent;
    border-right: 6rem solid transparent;
    border-top: 6rem solid #1C2126;
    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
}

.catalog__filter-help:hover::after,
.catalog__filter-help:hover::before {
    opacity: 1;
}

.catalog__filter .catalog__filter-button {
    font-size: 14rem;
    width: 100%;
    background-color: #ADC4E9;
    color: #050505;
    border-radius: 12px;
    padding: 10px;

    margin-top: 20px;
}

.catalog__filter .catalog__filter-button:hover {
    opacity: 0.8;
}

.catalog-smart-filter__block {
    margin-top: 18rem;
}

.catalog-smart-filter__block .catalog__filter-block-title {
    margin-bottom: 12rem;
}

.catalog-smart-filter__checklist {
    grid-template-columns: 1fr;
}

.catalog-smart-filter__actions {
    display: grid;
    gap: 12rem;
}

.catalog-smart-filter__reset {
    display: inline-flex;
    justify-content: center;
    margin-top: 0;
}

.catalog__filter .catalog__filter-pricelist {
    display: flex;
    text-align: center;
    font-size: 18rem;
    width: 100%;
    background-color: #ADC4E9;
    color: #050505;
    border-radius: 12px;
    padding: 10px;

    margin-top: 50px;
}

.catalog__filter .catalog__filter-pricelist:hover {
    opacity: 0.8;
}

.catalog__filter .catalog__filter-request {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 18rem;
    width: 100%;
    background-color: #ADC4E9;
    color: #050505;
    border-radius: 12px;
    padding: 10px;

    margin-top: 20px;
}

.catalog__filter .catalog__filter-request:hover {
    opacity: 0.8;
}

.catalog__filter-nav {
    display: grid;
    gap: 10rem;
}

.catalog__filter-nav-link {
    color: #1C2126;
    text-decoration: none;
    font-size: 14rem;
    line-height: 1.35;
    transition: 0.2s;
}

.catalog__filter-nav-link:hover {
    opacity: 0.7;
}

.catalog__filter-cta {
    margin-top: 20rem;
}

.catalog__filter-cta .catalog__filter-pricelist,
.catalog__filter-cta .catalog__filter-request {
    text-decoration: none;
}



.catalog__products {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 74%;
}

.catalog__products .catalog__configurator-link {
    width: 100%;
    padding: 12px 10px;
    background-color: #ADC4E9;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    border-radius: 12px;
    transition: 0.2s;

    font-size: 14rem;
    font-weight: 500;
}

.catalog__products .catalog__configurator-link:hover {
    opacity: 0.8;
}

.catalog__products .catalog__sort {
    display: flex;
    gap: 20px;
    font-size: 14rem;
}

.catalog__products .catalog__sort .catalog__sort-item {
    cursor: pointer;
}

.catalog__products .catalog__sort .catalog__sort-item:hover {
    opacity: 0.7;
}

.catalog__products .catalog__items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.catalog__products .catalog__items .catalog__item {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    border: 1px solid #DADCDE;
    border-radius: 12px;
}

.catalog__products .catalog__items .catalog__item .catalog__item-code {
    width: 100%;
    display: flex;
    font-size: 12px;
    color: #93999E;
}

.catalog__products .catalog__items .catalog__item .catalog__item-specs {
    margin-top: 12px;
    display: grid;
    gap: 6px;
}

.catalog__products .catalog__items .catalog__item .catalog__item-spec {
    font-size: 12px;
    line-height: 1.35;
    color: #5F6770;
}

.catalog__products .catalog__items .catalog__item .catalog__item-spec span {
    color: #93999E;
}

.catalog__products .catalog__items .catalog__item .catalog__item-spec strong {
    font-weight: 500;
}

.catalog__products .catalog__items .catalog__item {
    width: 100%
}

.catalog__products .catalog__items .catalog__item .catalog__item-image {
    margin-top: 20px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.catalog__products .catalog__items .catalog__item .catalog__item-image img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.catalog__products .catalog__items .catalog__item .catalog__item-rating {
    margin-top: 5px;
    display: flex;
    gap: 5px;
}

.catalog__products .catalog__items .catalog__item .catalog__item-name {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 14rem;
    font-weight: normal;
    line-height: 120%;
}

.catalog__products .catalog__items .catalog__item .catalog__item-sale {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.catalog__products .catalog__items .catalog__item .catalog__item-sale .old {
    font-size: 12rem;
    color: #484F55;
    text-decoration: line-through;
}

.catalog__products .catalog__items .catalog__item .catalog__item-sale .sale {
    font-size: 14rem;
    color: #ffffff;
    padding: 2px 8px;
    background-color: #3CAA3C;
    border-radius: 4px;
    font-weight: 500;
}

.catalog__products .catalog__items .catalog__item .catalog__item-price {
    margin-top: auto;
    font-size: 18rem;
    line-height: 24rem;
    font-weight: 700;
}

.catalog__products .catalog__items .catalog__item .catalog__item-button {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 8px;
    min-height: 36px;
    border: 0;
    font-size: 14rem;
    line-height: 20rem;
    font-weight: 500;
    background-color: #ADC4E9;
    border-radius: 8px;
    transition: 0.2s;
    cursor: pointer;
}

.catalog__products .catalog__items .catalog__item .catalog__item-button:hover {
    opacity: 0.8;
}

.catalog__products .catalog__items .catalog__item .catalog__item-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.catalog__products .catalog__items .catalog__item .catalog__item-button--active {
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    min-height: 36px;
    background-color: #1C2126;
    color: #ffffff;
}

.catalog__products .catalog__items .catalog__item .catalog__item-button--active:hover {
    opacity: 1;
}

.catalog__products .catalog__items .catalog__item .catalog__item-button-text {
    color: inherit;
}

.catalog__products .catalog__items .catalog__item .catalog__item-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.catalog__products .catalog__items .catalog__item .catalog__item-counter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    font-size: 18rem;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
    flex: 0 0 18px;
}

.catalog__products .catalog__items .catalog__item .catalog__item-counter-button:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.catalog__products .catalog__items .catalog__item .catalog__item-counter-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.catalog__products .catalog__items .catalog__item .catalog__item-counter-value {
    min-width: 18px;
    color: #ffffff;
    text-align: center;
}

.catalog__products .catalog__show-more {
    display: flex;
    justify-content: center;
    width: 99.8%;
    padding: 12px;
    font-size: 14rem;
    line-height: 20rem;
    font-weight: 500;
    color: #767D83;
    border-radius: 12px;
    box-shadow: 0px 1px 4px 0px #B8B8B8;
    transition: 0.2s;
    margin-right: 100px;

    cursor: pointer;
}

.catalog__products .catalog__show-more:hover {
    box-shadow: 0px 2px 4px 0px #7b7b7b;
}

.catalog__products .catalog__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 14rem;
    font-weight: 400;
}

.catalog__products .catalog__pagination .catalog__pagination-item {
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

.catalog__products .catalog__pagination .catalog__pagination-item:hover {
    opacity: 0.7;
}


.catalog__products .catalog__pagination .catalog__pagination-item.active span {
    z-index: 10;
    color: #ffffff;
}


.catalog__products .catalog__pagination .catalog__pagination-item.active::before {
    content: "";
    position: absolute;
    padding: 8px 12px;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    background-color: #ADC4E9;
    z-index: -1;
    left: -12px;
    top: -8px;
}

@media (max-width: 1180px) {
    .catalog {
        flex-direction: column;
    }

    .catalog__filter {
        width: 100%;
        min-width: 0;
        position: static;
    }

    .catalog__products {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .catalog__products .catalog__items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog__products .catalog__items {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog__products .catalog__sort {
        flex-wrap: wrap;
        gap: 12px 20px;
    }
}

@media (max-width: 540px) {
    .catalog {
        display: block;
        margin-top: 12px;
    }

    .catalog__filter-mobile-open {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-bottom: 14px;
        padding: 12px 16px;
        border-radius: 12px;
        background-color: #ADC4E9;
        color: #050505;
        font-size: 14rem;
        font-weight: 500;
    }

    .catalog__filter-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(28, 33, 38, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: 0.2s;
        z-index: 1190;
    }

    .catalog__filter {
        position: fixed;
        top: 12px;
        right: 0;
        bottom: 12px;
        width: min(100vw, 420px);
        min-width: 0;
        padding: 18px 16px 20px 0;
        border-radius: 16px 0 0 16px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 1200;
        overflow-y: auto;
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
    }

    .catalog__filter-head {
        align-items: center;
    }

    .catalog__filter-head-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .catalog__filter-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid #DADCDE;
        background: #ffffff;
        color: #1C2126;
        font-size: 22px;
        line-height: 1;
    }

    .page--catalog-section.is-filter-open {
        overflow: hidden;
    }

    .page--catalog-section.is-filter-open .catalog__filter {
        transform: translateX(0);
    }

    .page--catalog-section.is-filter-open .catalog__filter-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .catalog__filter-range-values {
        grid-template-columns: 1fr;
    }

    .catalog__products .catalog__items {
        grid-template-columns: 1fr;
    }

    .catalog__products .catalog__show-more {
        width: 100%;
        margin-right: 0;
    }

    .catalog__filter-checklist {
        grid-template-columns: 1fr;
    }

    .catalog__filter-help::after {
        min-width: 180rem;
        max-width: min(220rem, calc(100vw - 48rem));
        white-space: normal;
    }

}
