/* /local/components/belebnev/catalog.menu/templates/.default/style.css */

/* Overlay */
.bm-catalog {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    font-family: inherit;
}

.bm-catalog.is-open {
    display: block;
}

.bm-catalog__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}

.bm-catalog__panel {
    position: relative;
    margin: 40px auto;
    width: min(1400px, calc(100vw - 80px));
    height: min(820px, calc(100vh - 80px));
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.bm-catalog__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.bm-catalog__close:before {
    content: "×";
    font-size: 24px;
    line-height: 1;
}

/* Desktop */
.bm-desk {
    display: flex;
    height: 100%;
}

.bm-desk__left {
    width: 420px;
    border-right: 1px solid rgba(0, 0, 0, .06);
    padding: 26px 16px;
    overflow: auto;
}

.bm-desk__right {
    flex: 1;
    padding: 26px 34px 30px;
    overflow: auto;
}

/* Left list */
.bm-left__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 14px;
    border-radius: 14px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    color: #1b1b1b;
}

.bm-left__item:hover {
    background: rgba(0, 0, 0, .03);
}

.bm-left__item.is-active {
    background: #e30613;
    color: #fff;
}

.bm-left__chev {
    margin-left: auto;
    opacity: .8;
}

.bm-left__item.is-active .bm-left__chev {
    opacity: 1;
}

.bm-left__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-left__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Right pane */
.bm-right__pane {
    display: none;
}

.bm-right__pane.is-active {
    display: block;
}

.bm-right__crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 16px;
}

.bm-right__crumbs a {
    color: #111;
    text-decoration: none;
}

.bm-right__title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 14px;
    color: #111;
}

.bm-right__hr {
    height: 2px;
    background: rgba(0, 0, 0, .08);
    margin: 0 0 18px;
}

.bm-split-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 16px;
}

.bm-split-top__line {
    height: 2px;
    background: rgba(0, 0, 0, .08);
}

/* Columns like макет */
.bm-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 44px;
}

.bm-cols--one {
    grid-template-columns: 1fr;
}

.bm-col {
    min-width: 0;
}

.bm-link {
    display: block;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    padding: 6px 0;
}

.bm-link:hover {
    text-decoration: underline;
}

.bm-link--h {
    font-weight: 800;
    font-size: 18px;
    padding: 10px 0 8px;
}

.bm-link--h2 {
    font-weight: 800;
    font-size: 16px;
    padding: 10px 0 6px;
}

.bm-links {
    margin-top: 2px;
}

.bm-lvl3 {
    margin-top: 4px;
}

.bm-lvl3__block {
    margin-top: 6px;
}

.bm-empty a {
    color: #111;
    font-weight: 700;
}

/* Mobile screens */
.bm-mob {
    display: none;
    height: 100%;
}

.bm-mob__screen {
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
}

.bm-mob__screen.is-active {
    transform: translateX(0);
}

.bm-mob__screen.is-left {
    transform: translateX(-100%);
}

.bm-mob__top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.bm-mob__back {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.bm-mob__h {
    font-weight: 800;
    font-size: 16px;
}

.bm-mob__items {
    padding: 10px 16px;
    overflow: auto;
}

.bm-mob__items a,
.bm-mob__items button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    margin: 6px 0;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    cursor: pointer;
    text-align: left;
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.bm-mob__items a:active,
.bm-mob__items button:active {
    transform: translateY(1px);
}

/* Responsive */
@media (max-width: 998px) {
    .bm-catalog__panel {
        margin: 0;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .bm-desk {
        display: none;
    }

    .bm-mob {
        display: block;
        position: relative;
    }
}

.bm-lock {
    overflow: hidden !important;
}

.bm-mob {
    display: none;
}

@media (max-width: 998px) {
    .bm-desk {
        display: none;
    }

    .bm-mob {
        display: block;
        height: 100%;
    }

    .bm-mob__screen {
        position: absolute;
        inset: 0;
        background: #fff;
        transform: translateX(100%);
        transition: transform .25s ease;
        overflow: auto;
    }

    .bm-mob__screen.is-active {
        transform: translateX(0);
    }

    .bm-mob__screen.is-left {
        transform: translateX(-30%);
    }

    .bm-mob__top {
        position: sticky;
        top: 0;
        background: #fff;
        padding: 16px 16px 10px;
        border-bottom: 1px solid rgba(0, 0, 0, .08);
        z-index: 2;
    }

    .bm-mob__back {
        background: none;
        border: 0;
        padding: 0;
        font-weight: 600;
    }

    .bm-mob__h {
        margin-top: 10px;
        font-size: 18px;
        font-weight: 700;
    }

    .bm-mob__items {
        padding: 10px 16px 24px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .bm-mob__item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 12px;
        border: 1px solid rgba(0, 0, 0, .08);
        border-radius: 12px;
        background: #fff;
        text-decoration: none;
        color: inherit;
    }

    .bm-mob__item--btn {
        cursor: pointer;
    }

    .bm-mob__chev {
        opacity: .6;
    }
}