
/* =========================================================
   EMMA•MED Core 1.8.5 — MOBILE FIXES
   ========================================================= */

@media (max-width: 767px){

    html,
    body{
        max-width:100%!important;
        overflow-x:hidden!important;
    }

    /*
     * GLOBAL FOOTER
     * Убираем выезд футера/карточки "Как добраться" вправо.
     */
    .emma-site-footer{
        width:100%!important;
        max-width:100%!important;
        margin-left:0!important;
        margin-right:0!important;
        left:auto!important;
        right:auto!important;
        overflow:hidden!important;
    }

    .emma-site-footer__container{
        width:calc(100% - 20px)!important;
        max-width:100%!important;
        min-width:0!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }

    .emma-site-footer__main{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        grid-template-columns:minmax(0,1fr)!important;
        gap:28px!important;
    }

    .emma-site-footer__brand,
    .emma-site-footer__contacts-column,
    .emma-site-footer__map,
    .emma-site-footer__main > *{
        grid-column:1!important;
        min-width:0!important;
        max-width:100%!important;
    }

    .emma-site-footer__map{
        width:100%!important;
        margin:0!important;
        padding:20px 18px!important;
    }

    .emma-site-footer__map-top,
    .emma-site-footer__transport,
    .emma-site-footer__route{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
    }

    .emma-site-footer__map-address,
    .emma-site-footer__transport,
    .emma-site-footer__contact-content{
        overflow-wrap:anywhere!important;
        word-break:normal!important;
    }

    .emma-site-footer__route{
        margin-top:16px!important;
    }

    /*
     * HOME POPULAR PRICES
     * На узком телефоне цена больше не заезжает на название услуги.
     */
    .emma-home-prices,
    .emma-home-prices__grid,
    .emma-home-price__item{
        max-width:100%!important;
        min-width:0!important;
    }

    .emma-home-prices__grid{
        grid-template-columns:minmax(0,1fr)!important;
    }
}

@media (max-width: 480px){

    .emma-home-price__trigger{
        width:100%!important;
        min-height:0!important;
        padding:14px!important;
        display:grid!important;
        grid-template-columns:minmax(0,1fr)!important;
        align-items:start!important;
        gap:10px!important;
    }

    .emma-home-price__main{
        width:100%!important;
        min-width:0!important;
    }

    .emma-home-price__category{
        font-size:9px!important;
    }

    .emma-home-price__name{
        width:100%!important;
        min-width:0!important;
        padding-right:0!important;
        font-size:13px!important;
        line-height:1.35!important;
        overflow-wrap:anywhere!important;
    }

    .emma-home-price__right{
        width:100%!important;
        min-width:0!important;
        display:flex!important;
        align-items:center!important;
        justify-content:space-between!important;
        gap:12px!important;
    }

    .emma-home-price__value{
        font-size:13px!important;
        white-space:nowrap!important;
    }

    .emma-home-price__plus{
        width:30px!important;
        height:30px!important;
        flex:0 0 30px!important;
    }
}
