.mm-bg{
    --mm-story: var(--bs-color);
    margin: 0;
    padding: 35px;
    background: #fff;
    border: 0;
    border-radius: 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    font: inherit;
    color: inherit;
    box-sizing: border-box;
}
.mm-bg *,
.mm-bg *::before,
.mm-bg *::after{box-sizing:border-box}
.mm-bg a{color:inherit;text-decoration:none}
.mm-bg a:hover{color:var(--bs-color)}

.mm-bg .product-content__head{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0 0 12px;
}
.mm-bg .product-content__head h2{margin:0}
.mm-bg:not(.is-open) .js-mm-bg-close{display:none}
.mm-bg.is-open .js-mm-bg-close{cursor:pointer}
.mm-bg__lead{
    margin:0 0 8px;
    font-size:15px;
    line-height:1.6;
}
.mm-bg__sub{
    margin:0 0 20px;
    font-size:15px;
    line-height:1.6;
    color:#828282;
}
.mm-bg__toggle{margin:0 0 16px}
.mm-bg__toggle span{cursor:pointer}
.mm-bg:not(.is-collapsed) .mm-bg__toggle,
.mm-bg.is-expanded .mm-bg__toggle{display:none}

.mm-bg__avatars{display:none;align-items:center;flex-wrap:wrap;gap:16px;margin:0 0 8px;cursor:pointer}
.mm-bg.is-collapsed .mm-bg__avatars{display:flex}
.mm-bg.is-expanded .mm-bg__avatars,
.mm-bg.is-open .mm-bg__avatars{display:none}
.mm-bg__avatars-more{font-size:15px}

.mm-bg-story{
    display:block;
    width:80px;
    height:80px;
    padding:2px;
    border-radius:50%;
    overflow:hidden;
    border:2px solid var(--bs-color);
    background:#fff;
    flex:none;
}
.mm-bg-story img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
    background:#eee;
}
.mm-bg-story--lg{width:72px;height:72px}
.mm-bg-story--sm{width:56px;height:56px}

.mm-bg__grid{
    display:flex;
    flex-wrap:wrap;
    gap:24px 28px;
    margin:8px 0 0;
}
.mm-bg.is-collapsed .mm-bg__grid{display:none}
.mm-bg.is-expanded .mm-bg__grid,
.mm-bg:not(.is-collapsed) .mm-bg__grid{display:flex}
.mm-bg.is-open .mm-bg__grid{display:none}
.mm-bg__tile{
    display:flex;
    flex-direction:column;
    align-items:center;
    width:100px;
    flex:0 0 100px;
    cursor:pointer;
    text-align:center;
    color:inherit;
    font:inherit;
    background:none;
    border:0;
    padding:0;
    box-shadow:none;
    height:auto;
    line-height:normal;
    white-space:normal;
}
.mm-bg__tile:hover .mm-bg__tile-name{color:var(--bs-color)}
.mm-bg-story-wrap{position:relative;display:block}
.mm-bg__sticker{
    position:absolute;
    top:-5px;
    left:-5px;
    z-index:2;
    white-space:nowrap;
}
.mm-bg__tile-name{
    display:block;
    width:100%;
    margin-top:8px;
    font-size:13px;
    line-height:1.35;
    font-weight:400;
}

.mm-bg-sheet{margin-top:0;position:relative}
.mm-bg-sheet[hidden],
.mm-bg-shade[hidden],
.mm-bg-video[hidden],
.mm-bg-zoom[hidden],
.mm-bg-pane[hidden],
.mm-bg-variant[hidden]{display:none!important}
.mm-bg-sheet__bar{display:none}
.mm-bg-sheet__grab{display:none}
.mm-bg-pane__top{display:flex;gap:12px;align-items:center;margin-bottom:16px}
.mm-bg-photo{position:relative;display:block;flex:none;cursor:pointer}
.mm-bg-photo > .product-dialog{position:absolute;left:0;bottom:0;z-index:2;pointer-events:none}
.mm-bg-pane__title{font-size:18px;font-weight:700;line-height:1.3;margin:0}
.mm-bg-pane__eff{font-size:15px;line-height:1.6;margin:6px 0 0;color:#000}

.mm-bg .product-skus-radio{margin:0 0 12px;padding-bottom:10px;box-shadow:0 5px 30px rgba(0,0,0,.05)}
.mm-bg .product-skus-radio__list{display:flex;flex-wrap:wrap;gap:8px 16px}
.mm-bg .product-skus-radio__item{margin:0}

.mm-bg-step{
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:14px 0;
    border-bottom:1px solid #ebebeb;
}
.mm-bg-step.is-kit{border-bottom-color:#000}
.mm-bg-card__num{
    flex:none;
    width:22px;
    padding-top:2px;
    font-size:15px;
    font-weight:700;
}
.mm-bg-step__body{flex:1;min-width:0}
.mm-bg-card__role{
    margin:0 0 4px;
    font-size:12px;
    line-height:1.3;
    font-weight:700;
    color:#828282;
}
.mm-bg-card__role.is-main{color:var(--bs-color)}
.mm-bg-card__how{font-size:13px;color:#828282;line-height:1.4;margin:0 0 8px}
.mm-bg .badge.mm-bg-card__here{
    color:#046fca;
    background:#fff;
    border:1px solid #046fca;
}
.mm-bg-step__row{display:flex;align-items:center;gap:28px}
.mm-bg-step__card{
    flex:0 1 300px;
    width:300px;
    max-width:calc(100% - 78px);
}
.mm-bg-step__card .product-mini-h__outer{display:block;width:100%;padding:0}
.mm-bg .product-mini-h__image{overflow:visible}
.mm-bg .product-mini-h__dialog{display:block}
.mm-bg-step .header-user-item__inner{
    flex:none;
    width:50px;
    height:50px;
    line-height:50px;
    border-radius:12px;
    text-align:center;
    text-decoration:none;
    border:1px solid var(--header-users-btns-border-color);
    font-size:16px;
    color:var(--header-users-btns-color);
    display:inline-block;
    position:relative;
}

.mm-bg-others{margin:18px 0 8px;font-size:15px}
.mm-bg-strip{display:flex;flex-wrap:wrap;gap:16px 12px}

.mm-bg-shade{display:none}
.mm-bg-video{position:fixed;inset:0;background:#000;z-index:1930;align-items:center;justify-content:center}
.mm-bg-video.is-open{display:flex}
.mm-bg-video video{max-width:100%;max-height:100%}
.mm-bg-zoom{position:fixed;inset:0;z-index:1960;background:rgba(0,0,0,.72);align-items:center;justify-content:center;padding:24px}
.mm-bg-zoom.is-open{display:flex!important}
.mm-bg-zoom img{display:block;width:auto;height:auto;max-width:min(560px,100%);max-height:min(560px,calc(100vh - 80px));object-fit:contain;border-radius:16px;background:#eee}
.mm-bg-video .gallery-video-overlay__close,
.mm-bg-zoom .gallery-video-overlay__close{
    position:absolute;
    z-index:2;
    top:max(8px, env(safe-area-inset-top));
    right:8px;
    width:44px;
    height:44px;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    color:#fff;
    font-size:30px;
    line-height:44px;
    text-align:center;
    text-shadow:0 1px 4px rgba(0,0,0,.85);
    cursor:pointer;
    display:block;
}

@media (min-width:800px){
    .mm-bg-col{
        flex:0 0 40%;
        min-width:0;
        box-sizing:border-box;
    }
    .mm-bg-story{width:120px;height:120px;padding:3px}
    .mm-bg-story--lg{width:108px;height:108px}
    .mm-bg-story--sm{width:72px;height:72px}
    .mm-bg__tile{width:120px;flex-basis:120px}
}

@media (max-width:1024px){
    .mm-bg{box-shadow:0 3px 25px rgba(0,0,0,0.06)}
}

.mm-bg--assistant{
    margin:0;
    padding:0;
    background:none;
    box-shadow:none;
    border-radius:0;
}
.mm-bg-launcher{
    position:fixed;
    right:18px;
    bottom:18px;
    z-index:110;
    display:flex;
    align-items:flex-end;
    gap:8px;
    width:auto;
    max-width:320px;
    height:auto;
    min-height:0;
    padding:0;
    border:0;
    border-radius:0;
    background:none;
    color:#000;
    box-shadow:none;
    cursor:pointer;
    font:inherit;
    line-height:1.3;
    text-align:left;
    white-space:normal;
    animation:mm-bg-slide-in .7s ease-out .4s backwards;
}
.mm-bg-launcher.is-in{animation:none}
.mm-bg-launcher .js-mm-bg-launcher{
    display:flex;
    align-items:flex-end;
    gap:8px;
    min-width:0;
    cursor:pointer;
}
.mm-bg--assistant.is-modal .mm-bg-launcher{display:none}
.mm-bg-launcher.is-min{
    max-width:none;
}
.mm-bg-launcher.is-min .mm-bg-launcher__msg,
.mm-bg-launcher.is-min .sk-popup-close{display:none}
.mm-bg-launcher .sk-popup-close{
    position:absolute;
    top:0;
    right:0;
    flex:none;
    cursor:pointer;
}
.mm-bg-launcher__photo{
    display:block;
    width:48px;
    height:48px;
    border-radius:50%;
    overflow:hidden;
    border:2px solid var(--bs-color);
    background:#fff;
    box-shadow:0 4px 16px rgba(0,0,0,0.1);
    flex:none;
}
.mm-bg-launcher__photo img{display:block;width:100%;height:100%;object-fit:cover}
.mm-bg-launcher__msg{
    display:block;
    min-width:0;
    padding-right:36px;
    white-space:normal;
}
.mm-bg-launcher__tag{
    display:block;
    font-size:12px;
    font-weight:700;
    line-height:1.3;
    margin:0 0 4px 12px;
    white-space:normal;
}
.mm-bg-launcher__bubble{
    display:block;
    position:relative;
    background:#fff;
    border-radius:18px 18px 18px 6px;
    padding:10px 14px;
    box-shadow:0 5px 24px rgba(0,0,0,0.12);
    white-space:normal;
}
.mm-bg-launcher__bubble::before{
    content:"";
    position:absolute;
    left:-5px;
    bottom:10px;
    width:10px;
    height:10px;
    background:#fff;
    transform:rotate(45deg);
    border-radius:2px;
    box-shadow:-2px 2px 6px rgba(0,0,0,0.04);
}
.mm-bg-launcher__title,
.mm-bg-launcher__sub{
    display:block;
    position:relative;
    white-space:normal;
}
.mm-bg-launcher__title{
    font-size:14px;
    font-weight:400;
    line-height:1.35;
}
.mm-bg-launcher__sub{
    font-size:13px;
    font-weight:400;
    line-height:1.35;
    margin-top:4px;
    color:#828282;
}
.mm-bg-modal{
    position:fixed;
    inset:0;
    z-index:1910;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
    box-sizing:border-box;
}
.mm-bg-modal[hidden]{display:none!important}
/* Окно «Перейти» темы — z-index 2010. На телефоне тема опускает его до 110, и гид его перекрывает. Пока гид открыт, поднимаем только это окно. */
body:has(.mm-bg.is-open) .popup-mini-messages,
body:has(.mm-bg-modal:not([hidden])) .popup-mini-messages{z-index:2010}
.mm-bg-modal__overlay{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.mm-bg-modal__dialog{
    position:relative;
    z-index:1;
    width:100%;
    max-width:920px;
    max-height:calc(100% - 24px);
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    background:#fff;
    border-radius:30px;
    box-shadow:0 5px 30px rgba(0,0,0,0.12);
    padding:28px 32px 32px;
    box-sizing:border-box;
    scrollbar-width:thin;
    scrollbar-color:#c8c8c8 transparent;
}
.mm-bg-modal__dialog::-webkit-scrollbar{width:10px}
.mm-bg-modal__dialog::-webkit-scrollbar-track{
    background:transparent;
    margin:22px 0;
}
.mm-bg-modal__dialog::-webkit-scrollbar-thumb{
    background:#cfcfcf;
    border-radius:10px;
    border:3px solid #fff;
}
.mm-bg-modal__dialog::-webkit-scrollbar-thumb:hover{background:#b5b5b5}
body.mm-bg-zoom-open .js-mm-bg-modal-close{display:none}
.mm-bg-modal__dialog > .sk-popup-close{
    top:16px;
    right:16px;
    cursor:pointer;
}

@keyframes mm-bg-slide-in{
    from{transform:translateX(calc(100% + 32px));opacity:0}
    to{transform:none;opacity:1}
}
@media (prefers-reduced-motion:reduce){
    .mm-bg-launcher{animation:none}
}

@media (max-width:799px){
    body.mm-bg-lock{overflow:hidden}
    .mm-bg{margin:-48px 0 16px;padding:24px}
    .mm-bg--assistant{margin:0;padding:0}
    .mm-bg.mm-bg--page{margin:0 0 16px}
    .mm-bg-launcher{
        right:10px;
        bottom:calc(env(safe-area-inset-bottom, 0px) + 68px);
        max-width:calc(100% - 20px);
        min-height:0;
        padding:0;
        border-radius:0;
    }
    .mm-bg-launcher.is-min{max-width:none}
    .mm-bg-launcher__photo{width:44px;height:44px}
    .mm-bg-launcher__tag{font-size:11px;margin-left:10px}
    .mm-bg-launcher__title{font-size:13px}
    .mm-bg-launcher__sub{font-size:12px}
    .mm-bg-modal{padding:0;align-items:flex-end}
    .mm-bg-modal__dialog{
        max-width:none;
        max-height:92vh;
        border-radius:24px 24px 0 0;
        padding:16px 16px 24px;
    }
    .mm-bg-modal__dialog > .sk-popup-close{
        top:8px;
        right:8px;
    }
    .mm-bg-shade{display:block;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:1900}
    .mm-bg-sheet{
        position:fixed;
        left:0;
        right:0;
        top:8vh;
        bottom:0;
        margin:0;
        padding:10px 16px 24px;
        background:#fff;
        border:0;
        border-radius:24px 24px 0 0;
        z-index:1920;
        overflow:auto;
        -webkit-overflow-scrolling:touch;
    }
    .mm-bg:not(.mm-bg--assistant) .mm-bg-sheet__bar{display:flex;justify-content:center;align-items:center;position:sticky;top:0;min-height:44px;background:#fff;z-index:1;padding:8px 0 6px;cursor:pointer;touch-action:none}
    .mm-bg:not(.mm-bg--assistant) .mm-bg-sheet__grab{display:block;width:40px;height:4px;border-radius:2px;background:#ddd;margin:0}
    .mm-bg--assistant .mm-bg-sheet{
        position:relative;
        left:auto;
        right:auto;
        top:auto;
        bottom:auto;
        margin:0;
        padding:0;
        background:transparent;
        border-radius:0;
        z-index:auto;
        overflow:visible;
    }
    .mm-bg--assistant .mm-bg-sheet__grab{display:none}
}
