.catalog__top--world + .catalog__body {
    position: relative;
    z-index: 1;
    margin-top: 24px;
}

@keyframes catalog-sheet-in {
    from { transform: translateY(100%); }
    to { transform: none; }
}

.catalog-form input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.catalog__body {
    display: grid;
    grid-template-columns: 282px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    margin-top: 16px;
}

.catalog-side {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 24px;
    border: 1px solid var(--c-grey-200);
    border-radius: 8px;
    background: var(--c-blue-10);
}

.catalog-side::after {
    content: "";
    position: sticky;
    bottom: -24px;
    display: block;
    height: 72px;
    margin: -48px -24px -24px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23175cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center bottom 10px / 22px no-repeat,
        linear-gradient(rgba(245, 248, 255, 0), var(--c-blue-10) 65%);
    opacity: 0;
    pointer-events: none;
}

@supports (animation-timeline: scroll()) {
    .catalog-side::after {
        animation: catalog-side-fade linear both;
        animation-timeline: scroll();
        animation-range: calc(100% - 80px) 100%;
    }
}

@keyframes catalog-side-fade {
    from { opacity: 1; }
    to { opacity: 0; }
}

.catalog-side__title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
}

.catalog-forms {
    display: flex; flex-direction: column;
}

.catalog-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 0;
    border-bottom: 1px solid #dfe3ea;
    cursor: pointer;
}

.catalog-form:first-child {
    padding-top: 0;
}

.catalog-form:last-child {
    border-bottom: 0;
}

.catalog-form strong {
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
}

.catalog-form span {
    color: var(--c-grey-600);
    font-size: 13px;
    line-height: 17px;
}

.catalog-form input:checked ~ strong,
.catalog-form:hover strong {
    color: var(--c-blue);
}

.catalog-form input:focus-visible ~ strong {
    text-decoration: underline;
}

.catalog-side__clear {
    display: block;
    width: fit-content;
    margin: 8px 0 24px;
    padding: 8px 32px;
    border: 1px solid var(--c-grey-300);
    border-radius: 4px;
    background: #fff;
    color: var(--c-grey-500);
    font-size: 14px;
    text-decoration: none;
}

.catalog-side__clear:hover {
    color: var(--c-ink);
}

.catalog-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.catalog-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--c-grey-200);
    border-radius: 8px;
    background: #fff;
}

.catalog-search:focus-within {
    border-color: var(--c-blue);
    outline: 2px solid var(--c-blue);
    outline-offset: 2px;
}

.catalog-search input {
    flex: 1;
    min-width: 0;
    height: 58px;
    padding: 0 0 0 20px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.catalog-search button {
    padding: 0 18px;
    border: 0;
    background: none;
    cursor: pointer;
}

.catalog-filters__selects {
    display: contents;
}

.catalog-filters__toggle,
.catalog-sheet {
    display: none;
}

.catalog-search svg {
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.catalog-select select {
    width: 100%;
    height: 60px;
    padding: 0 44px 0 20px;
    border: 1px solid var(--c-grey-200);
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101828' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 18px center / 18px no-repeat;
    color: var(--c-grey-700);
    font: inherit;
    font-size: 14px;
    appearance: none;
    cursor: pointer;
}

.catalog-select select:focus {
    border-color: var(--c-blue);
}

.catalog-select select:focus-visible {
    outline: 2px solid var(--c-blue); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .catalog-sheet,
    .catalog-sheet::backdrop {
        animation: none;
    }
}

@media (max-width: 1100px) {
    .catalog__body {
        grid-template-columns: 1fr;
    }

    .catalog-side {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .catalog-side::after {
        display: none;
    }

    .catalog-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .catalog.is-enhanced .catalog__body > .catalog-side,
    .catalog.is-enhanced .catalog-filters > .catalog-filters__selects {
        display: none;
    }

    .catalog-filters {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .catalog.is-enhanced .catalog-filters__toggle {
        display: inline-flex;
    }

    .catalog-filters__toggle {
        align-items: center;
        gap: 10px;
        height: 60px;
        padding: 0 18px;
        border: 1px solid var(--c-grey-200);
        border-radius: 8px;
        background: #fff;
        color: var(--c-grey-700);
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .catalog-filters__toggle svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
    }

    .catalog-filters__badge {
        display: grid;
        place-items: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background: var(--c-blue);
        color: #fff;
        font-size: 12px;
    }

    .catalog-sheet[open] {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: auto 0 0;
        width: 100%;
        max-width: none;
        max-height: 88dvh;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 16px 16px 0 0;
        background: #fff;
        color: var(--c-ink);
        box-shadow: 0 -12px 40px rgba(16, 24, 40, .2);
        animation: catalog-sheet-in .3s cubic-bezier(.2, .7, .2, 1);
    }

    .catalog-sheet::backdrop {
        background: rgba(16, 24, 40, .5);
        animation: catalog-fade .3s ease-out;
    }

    .catalog-sheet__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid var(--c-grey-200);
    }

    .catalog-sheet__title {
        margin: 0;
        font-size: 20px;
    }

    .catalog-sheet__close {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 50%;
        background: var(--c-blue-25);
        cursor: pointer;
    }

    .catalog-sheet__close svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

    .catalog-sheet__body {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 20px;
    }

    .catalog-sheet .catalog-filters__selects {
        display: grid;
        gap: 12px;
        margin-bottom: 24px;
    }

    .catalog-sheet .catalog-select select {
        height: 52px;
    }

    .catalog-sheet .catalog-side {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0;
        border: 0;
        background: none;
    }

    .catalog-sheet__foot {
        padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--c-grey-200);
    }

    .catalog-sheet__apply {
        width: 100%;
        height: 52px;
        border: 0;
        border-radius: 8px;
        background: var(--c-blue);
        color: #fff;
        font: inherit;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
    }

    .is-sheet-open,
    .is-sheet-open body {
        overflow: hidden;
    }
}

@media (max-width: 520px) {
    .catalog-filters__toggle {
        height: 52px;
        padding: 0 14px;
    }
}
