/* Каталог и хлебные крошки — с оригинала vostok.ru/catalog */

.breadcrumbs {
    padding: 12px 0;
}

.breadcrumbs__list {
    list-style: none;
    padding: 0 var(--container-padding, 0);
    margin: 0 calc(var(--container-padding, 0) * -1);
    display: flex;
    overflow: auto;
}

@media (max-width: 1439px) {
    .breadcrumbs__list {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .breadcrumbs__list {
        padding-bottom: 8px;
    }
}

@media (min-width: 1440px) {
    .breadcrumbs__list {
        padding: 0;
        margin: 0;
    }
}

.breadcrumbs__item {
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    color: #8f8f8f;
    flex-shrink: 0;
}

.breadcrumbs__item:not(:last-child) {
    position: relative;
    padding: 0 20px 0 0;
}

.breadcrumbs__item:not(:last-child)::before {
    background: #dadada;
    content: "";
    width: 1px;
    height: 10px;
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translate(0, -50%) skew(-20deg);
}

.breadcrumbs__link {
    color: #000;
    transition: color .3s;
}

.breadcrumbs__link:hover {
    color: #1266b1;
}

.catalog-categories-page {
    padding-bottom: 56px;
}

@media (min-width: 768px) {
    .catalog-categories-page {
        padding-bottom: 80px;
    }
}

.catalog-categories__group:not(:first-child) {
    padding: 32px 0 0;
    margin: 31px 0 0;
    border-top: 1px solid #dadada;
}

.categories-group__name {
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    margin: 0 0 20px;
}

@media (min-width: 768px) {
    .categories-group__name {
        font-size: 20px;
        line-height: 26px;
        font-weight: 500;
    }
}

.categories-group__link {
    color: inherit;
    transition: color .3s;
}

.categories-group__link:hover {
    color: #1266b1;
}

.categories-group__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .categories-group__list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .categories-group__list {
        grid-template-columns: repeat(6, 1fr);
    }
}

.catalog-category__head {
    display: flex;
    align-items: baseline;
    gap: 0 8px;
    flex-wrap: wrap;
}

.catalog-category__name {
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    margin: 0;
    color: inherit;
    transition: color .3s;
}

@media (min-width: 768px) {
    .catalog-category__name {
        font-size: 16px;
        line-height: 24px;
        font-weight: 500;
    }
}

.catalog-category__name:hover {
    color: #1266b1;
}

.catalog-category__count {
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    margin: 0;
    color: #8f8f8f;
}

.catalog-category__list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.catalog-category__item {
    display: flex;
}

.catalog-category__item:not(:first-child) {
    margin: 8px 0 0;
}

.catalog-category__link {
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    color: #1d4e9e;
    transition: color .3s;
}

@media (min-width: 768px) {
    .catalog-category__link {
        font-size: 14px;
        line-height: 22px;
        font-weight: 400;
    }
}

.catalog-category__link:hover {
    color: #1266b1;
}

/* Страница категории */
.catalog-page {
    display: grid;
    gap: 56px;
    padding-bottom: 56px;
}

@media (min-width: 768px) {
    .catalog-page {
        gap: 80px;
        padding-bottom: 80px;
    }
}

.catalog {
    display: grid;
    gap: 20px;
}

@media (min-width: 1024px) {
    .catalog {
        grid-template-columns: 301px 1fr;
    }
}

@media (min-width: 1280px) {
    .catalog {
        grid-template-columns: 325px 1fr;
    }
}

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

.catalog__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
}

@media (min-width: 768px) {
    .catalog__head {
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .catalog__head {
        grid-column: span 2;
    }

    .catalog--empty .catalog__head {
        grid-column: auto;
    }
}

.catalog-page__name {
    font-size: 24px;
    line-height: 30px;
    font-weight: 500;
    margin: 0;
}

@media (min-width: 768px) {
    .catalog-page__name {
        font-size: 28px;
        line-height: 34px;
        font-weight: 500;
    }
}

@media (min-width: 1280px) {
    .catalog-page__name {
        font-size: 32px;
        line-height: 40px;
        font-weight: 500;
    }
}

.catalog__count {
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    margin: 0;
    color: #8f8f8f;
}

@media (min-width: 768px) {
    .catalog__count {
        font-size: 14px;
        line-height: 22px;
        font-weight: 400;
    }
}

.catalog__filters {
    display: none;
}

@media (min-width: 1024px) {
    .catalog__filters {
        display: flex;
        align-items: flex-start;
    }
}

.catalog__filters-wrapper {
    border: 1px solid #dadada;
    border-radius: 8px;
    padding: 19px;
    width: 100%;
}

.catalog-filters {
    position: relative;
}

.catalog-filters__reset {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #dadada;
}

.catalog-filters__reset[hidden] {
    display: none !important;
}

.catalog-filters__reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #dadada;
    border-radius: 8px;
    background: #fff;
    color: #1d4e9e;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.catalog-filters__reset-btn:hover {
    background: #f3f7ff;
    border-color: #1d4e9e;
}

.catalog-filters__item:not(:first-child) {
    margin: 20px 0 0;
}

.filter-group {
    border-bottom: 1px solid #dadada;
}

.catalog-filters__item:last-child .filter-group {
    border-bottom: none;
}

.filter-group__head {
    display: flex;
    align-items: flex-end;
    padding: 0 0 19px;
}

.filter-group__name {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

@media (min-width: 768px) {
    .filter-group__name {
        font-size: 18px;
        line-height: 26px;
        font-weight: 500;
    }
}

.filter-group__content {
    padding: 0 0 19px;
}

.filter-group__content.is-scroll {
    overflow: auto;
    max-height: 240px;
    padding-right: 8px;
}

.filter-group__content.is-scroll::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.filter-group__content.is-scroll::-webkit-scrollbar-track {
    background-color: #f4f6fa;
    border-radius: 8px;
}

.filter-group__content.is-scroll::-webkit-scrollbar-thumb {
    background-color: #dadada;
    border: 1px solid transparent;
    border-radius: 8px;
    background-clip: content-box;
}

.filter-group__content.is-scroll:hover::-webkit-scrollbar-thumb {
    background-color: #8f8f8f;
}

.catalog-filters__item:last-child .filter-group__content {
    padding-bottom: 0;
}

.filter-range__inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.filter-range__input {
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    display: block;
    width: 100%;
    background-color: #f4f6fa;
    height: 44px;
    border: 1px solid #f4f6fa;
    border-radius: 4px;
    padding: 10px 15px;
    transition: border-color .3s;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .filter-range__input {
        font-size: 14px;
        line-height: 22px;
        font-weight: 400;
    }
}

.filter-range__input::placeholder {
    color: #8f8f8f;
}

.filter-range__input:hover {
    border: 1px solid #dbe8ff;
}

.filter-range__input:focus {
    outline: none;
    border: 1px solid #1d4e9e;
}

.filter-range__bar {
    margin: 16px 0 0;
}

.range-block {
    display: flex;
    align-items: center;
    width: 100%;
    height: 24px;
    padding: 0 12px;
    box-sizing: border-box;
}

.range-block__line {
    background-color: #dadada;
    border-radius: 4px;
    height: 2px;
    width: 100%;
    position: relative;
}

.range-block--disabled .range-block__line {
    background-color: #e3e6ea;
}

.range-block__range {
    height: 100%;
    background-color: #1d4e9e;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.range-block--disabled .range-block__range {
    background-color: #e3e6ea;
}

.range-block__toggle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #1d4e9e;
    cursor: pointer;
    border: none;
    padding: 0;
    touch-action: none;
}

.range-block__toggle--max {
    left: 100%;
}

.range-block__toggle:disabled {
    cursor: default;
    background-color: #e3e6ea;
}

.filter-chips {
    padding: 0 8px 0 0;
}

.filter-chips__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filter-chip__label {
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    min-height: 32px;
    padding: 5px 11px;
    border-radius: 4px;
    cursor: pointer;
    transition-duration: .3s;
    transition-property: background-color, border-color, color;
    border: 1px solid #dadada;
    background-color: #fff;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-chip__label:hover {
    border: 1px solid #1266b1;
}

.filter-chip__label--active {
    border: 1px solid #1d4e9e;
    background-color: #1d4e9e;
    color: #fff;
}

.filter-chip__count {
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    color: #8f8f8f;
    transition: color .3s;
}

.filter-chip__label--active .filter-chip__count {
    color: rgba(255, 255, 255, .5);
}

.filter-chip__label svg {
    flex-shrink: 0;
    display: block;
}

.filter-colors {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-colors__item:not(:first-child) {
    margin: 8px 0 0;
}

.filter-color__label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.filter-color__color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #dadada;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-size: cover;
}

.filter-checkboxes .checkbox-block__label-content {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.filter-checkboxes__wrapper--double .checkbox-block__label-content {
    min-width: 0;
}

.filter-color__label--active .filter-color__color::after {
    content: "";
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' d='M5 12.5 9.5 17 19 7'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px;
    position: absolute;
    top: 0;
    left: 0;
}

.filter-color__name {
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0 0;
}

@media (min-width: 768px) {
    .filter-color__name {
        font-size: 14px;
        line-height: 22px;
        font-weight: 400;
    }
}

.filter-color__count {
    color: #8f8f8f;
}

.filter-checkboxes__wrapper {
    display: grid;
    gap: 8px;
    padding: 0 8px 0 0;
}

.filter-checkboxes__wrapper--double {
    grid-template-columns: repeat(2, 1fr);
}

.filter-checkboxes__count {
    padding: 0 0 0 4px;
    color: #8f8f8f;
}

.catalog-content__sorting--desktop {
    display: none;
    margin-left: auto;
}

@media (min-width: 1024px) {
    .catalog-content__sorting--desktop {
        display: block;
    }
}

.catalog__filters-head {
    display: none;
}

.catalog-filters-mobile-backdrop {
    display: none;
}

@media (max-width: 1023px) {
    .catalog-page.is-filters-open .catalog__filters {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 1200;
        width: min(100%, 360px);
        background: #fff;
        box-shadow: -8px 0 24px rgba(0, 0, 0, .12);
    }

    .catalog-page.is-filters-open .catalog__filters-wrapper {
        border: 0;
        border-radius: 0;
        padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        flex: 1;
    }

    .catalog-page.is-filters-open .catalog-filters__reset {
        position: sticky;
        bottom: 0;
        margin-top: 16px;
        padding: 12px 0 calc(8px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
        border-top: 0;
        z-index: 2;
    }

    .catalog-page.is-filters-open .catalog__filters-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #dadada;
        font-size: 16px;
        line-height: 24px;
        font-weight: 500;
    }

    .catalog__filters-close {
        border: 0;
        background: transparent;
        font-size: 28px;
        line-height: 1;
        color: #8f8f8f;
        cursor: pointer;
        padding: 0;
    }

    /* Только при открытых фильтрах — иначе display:block перебивает [hidden] */
    .catalog-page.is-filters-open .catalog-filters-mobile-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1190;
        background: rgba(0, 0, 0, .35);
    }

    body.catalog-filters-open {
        overflow: hidden;
    }
}

.catalog-content__head--mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    position: relative;
    z-index: 5;
}

@media (min-width: 1024px) {
    .catalog-content__head--mobile {
        display: none;
    }
}

.catalog-content__filters-toggler {
    background: #dbe8ff;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    min-height: 44px;
    padding: 9px 15px;
    border-radius: 4px;
    border: 0;
    color: #1d4e9e;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.catalog-content__sorting {
    margin-left: auto;
    flex-shrink: 0;
}

.catalog-content__head--mobile .catalog-content__sorting {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 220px;
}

.flat-select {
    position: relative;
    min-width: 156px;
    max-width: max-content;
}

.catalog-content__head--mobile .flat-select {
    width: 100%;
    min-width: 0;
    max-width: none;
}

@media (min-width: 768px) {
    .flat-select {
        min-width: 164px;
    }
}

.flat-select.is-open {
    --select-button-icon-transform: rotate(180deg);
    --select-list-border: 1px solid #dadada;
    --select-list-height: auto;
    --select-button-border-radius: 0;
    z-index: 30;
}

.flat-select__button {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    border: 1px solid #dadada;
    background: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    border-bottom-left-radius: var(--select-button-border-radius, 4px);
    border-bottom-right-radius: var(--select-button-border-radius, 4px);
    cursor: pointer;
    text-align: left;
}

.catalog-content__head--mobile .flat-select__button {
    min-height: 44px;
    padding: 9px 12px 9px 15px;
    box-sizing: border-box;
}

.flat-select__button-text {
    font-size: 12px;
    line-height: 20px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-content__head--mobile .flat-select__button-text {
    font-size: 14px;
    line-height: 22px;
}

@media (min-width: 768px) {
    .flat-select__button-text {
        font-size: 14px;
        line-height: 22px;
        font-weight: 500;
    }
}

.flat-select__button-icon {
    margin-left: auto;
    flex-shrink: 0;
    transform: var(--select-button-icon-transform, rotate(0deg));
    transition: transform .2s ease;
}

.flat-select__list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 0 0 4px 4px;
    margin: -1px 0 0;
    padding: 0;
    list-style: none;
    z-index: 8;
    overflow: auto;
    border: var(--select-list-border, none);
    height: var(--select-list-height, 0);
    max-height: 200px;
}

.catalog-content__head--mobile .flat-select__list {
    left: auto;
    right: 0;
    width: max-content;
    min-width: 100%;
    max-width: min(280px, calc(100vw - 32px));
    max-height: none;
    z-index: 40;
    border-radius: 0 0 8px 8px;
    /* Закрытое состояние: без padding/тени — иначе при height:0 снизу торчит полоска и режет бордер кнопки */
    padding: 0;
    box-shadow: none;
    overflow: hidden;
}

.catalog-content__head--mobile .flat-select.is-open .flat-select__list {
    border-color: #dadada;
    padding: 4px 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
    overflow: auto;
}

.flat-select__option {
    font-size: 12px;
    line-height: 20px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    padding: 4px 12px;
    cursor: pointer;
    background: transparent;
    border: 0;
    box-sizing: border-box;
}

.catalog-content__head--mobile .flat-select__option {
    font-size: 14px;
    line-height: 22px;
    padding: 12px 16px;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .flat-select__option {
        font-size: 14px;
        line-height: 22px;
        font-weight: 500;
    }
}

.flat-select__option:hover,
.flat-select__option.is-selected {
    background: #f4f6fa;
}

.catalog-content__head--mobile .flat-select__option.is-selected {
    color: #1d4e9e;
    background: #f3f7ff;
}

.catalog-content__empty {
    margin: 0;
    padding: 8px 0 24px;
    max-width: 1014px;
    font-size: 18px;
    line-height: 26px;
    font-weight: 500;
    color: #000;
}

@media (min-width: 768px) {
    .catalog-content__empty {
        padding: 12px 0 32px;
        font-size: 20px;
        line-height: 28px;
    }
}

@media (min-width: 1280px) {
    .catalog-content__empty {
        font-size: 24px;
        line-height: 30px;
    }
}

.catalog-content__empty--filtered {
    color: #8f8f8f;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
}

@media (min-width: 768px) {
    .catalog-content__empty--filtered {
        font-size: 16px;
        line-height: 24px;
    }
}

.catalog-content__list {
    list-style: none;
    padding: 0;
    margin: 0 calc(var(--container-padding, 0) * -1);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .catalog-content__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .catalog-content__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .catalog-content__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.catalog-content__item {
    border-bottom: 1px solid #dadada;
    min-height: 290px;
}

.catalog-content__item:nth-child(1),
.catalog-content__item:nth-child(2) {
    border-top: 1px solid #dadada;
}

.catalog-content__item:nth-child(2n+1) {
    border-right: 1px solid #dadada;
}

@media (min-width: 768px) {
    .catalog-content__item {
        min-height: 309px;
        border-radius: 4px;
        border: 1px solid #dadada;
    }
}

@media (min-width: 1024px) {
    .catalog-content__item {
        min-height: 431px;
    }
}

@media (min-width: 1280px) {
    .catalog-content__item {
        min-height: 408px;
    }
}

@media (min-width: 1440px) {
    .catalog-content__item {
        min-height: 465px;
    }
}

.catalog-content .product-snippet__name {
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    height: 48px;
}

@media (min-width: 768px) {
    .catalog-content .product-snippet__name {
        font-size: 16px;
        line-height: 24px;
    }
}

/* Hover карточки: синяя полоска «Выбрать размер» (как на vostok.ru) */
.catalog-content .product-snippet {
    height: 100%;
    display: flex;
    align-items: flex-end;
    position: relative;
    background-color: #fff;
    overflow: hidden;
    border-radius: inherit;
}

/* Слайдер поверх карточки — как в shop-main / vostok.ru */
.catalog-content .product-snippet-slider {
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    position: absolute;
    top: 16px;
    left: 16px;
    overflow: hidden;
    pointer-events: none;
}

.catalog-content .product-snippet-slider__imgs {
    width: 100%;
    height: 100%;
    display: flex;
}

.catalog-content .product-snippet-slider__img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.catalog-content .product-snippet-slider__img img {
    display: block;
    object-fit: contain;
    object-position: top center;
    max-width: 100%;
    max-height: 100%;
}

.catalog-content .product-snippet__content {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 12px 15px 10px;
    position: relative;
    z-index: 0;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.catalog-content .product-snippet__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.catalog-content .product-snippet-select {
    border: none;
    padding: 11px 16px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #1d4e9e;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transform: translateY(100%);
    transition: 0.3s transform, 0.3s background-color;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    z-index: 3;
}

.catalog-content .product-snippet-select__text,
.catalog-content .product-snippet-select__price {
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    color: #fff;
}

.catalog-content .product-snippet--hover-down .product-snippet-select {
    visibility: hidden;
    pointer-events: none;
    transform: none;
    border-radius: 0 0 4px 4px;
    width: calc(100% + 2px);
    left: -1px;
}

@media (min-width: 768px) {
    .catalog-content .product-snippet--hover-down {
        border-radius: 4px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .catalog-content .product-snippet-select:hover {
        background-color: #1266b1;
    }

    .catalog-content .product-snippet:hover .product-snippet-select {
        transform: translateY(0);
    }

    .catalog-content .product-snippet--hover-down:hover {
        z-index: 2;
        overflow: visible;
    }

    .catalog-content .product-snippet--hover-down:hover .product-snippet-select {
        visibility: visible;
        pointer-events: none;
        /* было -139px — сдвиг контента уменьшен в 3 раза */
        bottom: -46px;
        transform: none;
    }

    .catalog-content .product-snippet--hover-down:hover .product-snippet__content {
        transform: translateY(calc((100% - 1px) / 3));
        border-right: 1px solid #dadada;
        border-left: 1px solid #dadada;
        margin: 0 -1px;
        width: calc(100% + 2px);
        background-color: #fff;
    }

    .catalog-content .product-snippet--hover-down:hover .product-snippet__link {
        height: calc(100% + 47px);
    }
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .catalog-content .product-snippet--hover-down:hover {
        border-radius: inherit;
    }
}

.catalog-content__item {
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .catalog-content__item:hover {
        z-index: 3;
    }
}

.catalog-page__articles {
    overflow: hidden;
    margin: 0 calc(var(--container-padding, 0) * -1);
}

.catalog-page__articles .shop-main__block {
    margin: 0;
}

/* Новости/баннеры на категории: клип горизонтального вылета слайдеров */
.catalog-page {
    max-width: 100%;
    overflow-x: clip;
}

.catalog,
.catalog-content,
.catalog__head,
.catalog-page__legal,
.catalog-page__news {
    min-width: 0;
    max-width: 100%;
}

.catalog-page__news,
.catalog-page__legal {
    overflow-x: clip;
}

.catalog-page__news .articles-block {
    margin-block: 0;
}

@media (max-width: 767px) {
    .catalog-page__news .articles-block {
        margin-top: 56px;
    }
}

.catalog-page__news .articles-block__slider {
    margin-right: 0;
}

.catalog-content__list {
    max-width: none;
    box-sizing: border-box;
}

.catalog-content__item {
    min-width: 0;
}

.catalog-content .product-snippet__name {
    overflow-wrap: anywhere;
}

.legal-entity-banners {
    --legal-entity-banners-border-width: 4px;
    --legal-entity-banners-img-width: 220px;
}

@media (min-width: 768px) {
    .legal-entity-banners {
        --legal-entity-banners-img-width: 235px;
    }
}

@media (min-width: 1024px) {
    .legal-entity-banners {
        --legal-entity-banners-img-width: 179px;
    }
}

@media (min-width: 1280px) {
    .legal-entity-banners {
        --legal-entity-banners-img-width: 285px;
    }
}

@media (min-width: 1440px) {
    .legal-entity-banners {
        --legal-entity-banners-img-width: 325px;
    }
}

.legal-entity-banners__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 1024px) {
    .legal-entity-banners__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.legal-entity-banners__item {
    padding: 12px;
    border-radius: 8px;
    border: var(--legal-entity-banners-border-width) solid #f4f6fa;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.legal-entity-banners__item--fill {
    background: #f4f6fa;
}

.legal-entity-banners__item:not(:first-child) {
    margin: 16px 0 0;
}

@media (min-width: 768px) {
    .legal-entity-banners__item {
        --legal-entity-banners__item-padding-left: calc(var(--legal-entity-banners-img-width) - var(--legal-entity-banners-border-width) + 20px);
        padding: 28px 16px 28px var(--legal-entity-banners__item-padding-left);
    }
}

@media (min-width: 1024px) {
    .legal-entity-banners__item {
        padding: 382px 16px 16px;
    }

    .legal-entity-banners__item:not(:first-child) {
        margin: 0;
    }
}

@media (min-width: 1280px) {
    .legal-entity-banners__item {
        padding: 28px 16px 28px var(--legal-entity-banners__item-padding-left);
        min-height: 352px;
    }
}

@media (min-width: 1440px) {
    .legal-entity-banners__item {
        padding: 36px 16px 36px var(--legal-entity-banners__item-padding-left);
        min-height: 374px;
    }
}

.legal-entity-banners__img {
    display: none;
}

@media (min-width: 768px) {
    .legal-entity-banners__img {
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        overflow: hidden;
        position: absolute;
        top: calc(var(--legal-entity-banners-border-width) * -1);
        left: calc(var(--legal-entity-banners-border-width) * -1);
        width: var(--legal-entity-banners-img-width);
        height: calc(100% + 8px);
    }

    .legal-entity-banners__img img {
        display: block;
        object-fit: contain;
        object-position: bottom center;
        max-width: none;
        max-height: 100%;
        height: 100%;
        width: auto;
    }
}

@media (min-width: 1024px) {
    .legal-entity-banners__img {
        height: 366px;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (min-width: 1280px) {
    .legal-entity-banners__img {
        flex-shrink: 0;
        width: var(--legal-entity-banners-img-width);
        height: calc(100% + 8px);
        justify-content: center;
    }
}

.legal-entity-banners__name {
    font-size: 24px;
    line-height: 30px;
    font-weight: 500;
    margin: 0 0 20px;
}

.legal-entity-banners__description {
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    margin: 0;
}

@media (min-width: 768px) {
    .legal-entity-banners__description {
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
    }
}

.legal-entity-banners__button {
    background: #1d4e9e;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    min-height: 44px;
    padding: 9px 15px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition-duration: .3s;
    transition-property: background-color, border-color, color;
    border: 1px solid #1d4e9e;
    color: #fff;
    width: 100%;
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.legal-entity-banners__button:disabled {
    cursor: default;
    background: #e3e6ea;
    border: 1px solid #e3e6ea;
    color: #8f8f8f;
}

.legal-entity-banners__button:not(:disabled):hover {
    background: #1266b1;
    border: 1px solid #1266b1;
}

@media (min-width: 768px) {
    .legal-entity-banners__button {
        width: auto;
    }
}

/* Страница поиска: без колонки фильтров, сетка карточек как в каталоге на всю ширину */
.catalog--search {
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .catalog--search {
        grid-template-columns: 1fr;
    }

    .catalog--search .catalog__head {
        grid-column: auto;
    }

    /* В каталоге с фильтрами на 1024 — 2 колонки; без сайдбара оставляем 3 */
    .catalog--search .catalog-content__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.search-page__pagination {
    margin: 32px 0 0;
}

.search-page__pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-page__page {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #dadada;
    border-radius: 4px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

.search-page__page.is-current {
    background: #1d4e9e;
    border-color: #1d4e9e;
    color: #fff;
}

.catalog-page.is-catalog-loading .catalog__content,
.catalog-page.is-catalog-loading .catalog__filters-wrapper {
    opacity: .55;
    pointer-events: none;
}

.catalog-page.is-catalog-loading .catalog__count {
    opacity: .7;
}

/* Модалка «Продолжить как юрлицо» */
.legal-entity-popup {
    position: fixed;
    inset: 0;
    z-index: 2200;
}

.legal-entity-popup[hidden] {
    display: none;
}

.legal-entity-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.legal-entity-popup__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100dvh - 40px);
    padding: 24px 16px 24px;
    overflow: auto;
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .legal-entity-popup__panel {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 50%;
        width: min(480px, calc(100% - 48px));
        max-height: min(90dvh, 720px);
        padding: 28px 28px 24px;
        border-radius: 12px;
        transform: translate(-50%, -50%);
    }
}

.legal-entity-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #424242;
    cursor: pointer;
}

.legal-entity-popup__close:hover {
    background: #f4f6fa;
}

.legal-entity-popup__title {
    margin: 0 36px 12px 0;
    color: #1a1a1a;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .legal-entity-popup__title {
        font-size: 24px;
        line-height: 32px;
    }
}

.legal-entity-popup__lead {
    margin: 0 0 20px;
    color: #616161;
    font-size: 14px;
    line-height: 22px;
}

.legal-entity-popup__form {
    display: grid;
    gap: 16px;
}

.legal-entity-popup__field {
    display: grid;
    gap: 6px;
}

.legal-entity-popup__label {
    color: #4b5563;
    font-size: 13px;
    line-height: 18px;
}

.legal-entity-popup__label abbr {
    text-decoration: none;
    color: #d12f2f;
}

.legal-entity-popup__input,
.legal-entity-popup__textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d8dce5;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: inherit;
}

.legal-entity-popup__textarea {
    min-height: 96px;
    resize: vertical;
}

.legal-entity-popup__input:focus,
.legal-entity-popup__textarea:focus {
    outline: none;
    border-color: #1d4e9e;
    box-shadow: 0 0 0 3px rgba(29, 78, 158, .15);
}

.legal-entity-popup__input.is-invalid {
    border-color: #d12f2f;
}

.legal-entity-popup__file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.legal-entity-popup__file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #1d4e9e;
    border-radius: 4px;
    background: #fff;
    color: #1d4e9e;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    cursor: pointer;
}

.legal-entity-popup__file-button:hover {
    background: #f4f6fa;
}

.legal-entity-popup__file-name {
    margin: 0;
    color: #616161;
    font-size: 13px;
    line-height: 18px;
    word-break: break-word;
}

.legal-entity-popup__hint {
    margin: 0;
    color: #8f8f8f;
    font-size: 12px;
    line-height: 16px;
}

.legal-entity-popup__error {
    margin: 0;
    color: #d12f2f;
    font-size: 12px;
    line-height: 16px;
}

.legal-entity-popup__consent {
    margin-top: 4px;
}

.legal-entity-popup__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    padding: 12px 16px;
    border: 1px solid #1d4e9e;
    border-radius: 4px;
    background: #1d4e9e;
    color: #fff;
    font-size: 15px;
    line-height: 22px;
    font-weight: 500;
    cursor: pointer;
}

.legal-entity-popup__submit:hover:not(:disabled) {
    background: #1266b1;
    border-color: #1266b1;
}

.legal-entity-popup__submit:disabled {
    cursor: default;
    background: #e3e6ea;
    border-color: #e3e6ea;
    color: #8f8f8f;
}

.legal-entity-popup__success .legal-entity-popup__submit {
    margin-top: 16px;
}

body.is-legal-entity-popup-open {
    overflow: hidden;
}


