/* Desktop rules stay in the original themes. */
@media screen and (max-width: 850px) {
    body { min-width: 0; }
    #header, .header_menu { width: 100%; }
    #topmenu { height: auto; overflow: visible; background: #dc0000; }
    #topmenu div.change-city, #topmenu div.change-city-2 {
        position: relative;
        left: auto;
        margin: 0;
        padding: 10px 24px;
        font-size: 22px;
        text-align: center;
    }
    #topmenu .navbar { min-height: 0; margin: 0; }
    #nav { height: auto; margin: 0; }
    #nav div ul.menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0 4px;
    }
    #nav div ul.menu li { float: none; }
    #nav div ul.menu li a {
        margin: 0 !important;
        padding: 11px 12px !important;
        font-size: 16px !important;
        line-height: 22px;
    }
    #nav div ul.menu li:nth-child(6) a,
    #nav div ul.menu li:nth-child(7) a { font-size: 18px !important; }

    .main_header {
        position: relative;
        height: calc(140px + var(--aik-slider-height, 74vw));
        overflow: hidden;
        background-image: linear-gradient(to bottom, #ef0800, #de0000 55%, #fbf4e4 95%) !important;
        transition: none;
    }
    .main_header .logo {
        position: absolute;
        top: 10px;
        left: 3%;
        width: 44%;
        max-width: 180px;
        height: 120px;
        margin: 0;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    .main_header div.phone {
        position: absolute;
        top: 42px;
        left: 51%;
        width: 46%;
        max-width: 220px;
        height: 66px;
        margin: 0;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    .main_header > div.slider {
        position: absolute;
        top: 140px;
        left: 0;
        width: 699px;
        height: 515px;
        margin: 0;
        transform: scale(var(--aik-slider-scale, 0.45));
        transform-origin: top left;
    }
    /* Retain the original picture-to-frame offsets and Nivo dimensions. */
    .main_header > div.slider > div.slides { left: 12px; top: 7px; margin: 0; }
    .main_header > div.slider > div.podlojka { left: 0; top: 0; margin: 0; }

    .container, .container.product { width: 94%; max-width: 100%; }
    #content { width: 94% !important; max-width: 100%; box-sizing: border-box; }
    section > img, .entry img { max-width: 100%; height: auto; }
    .container.product .width25 { width: 50%; float: none; flex: 0 0 50%; }
    .container.product .bistroheight { height: auto !important; }
    .jbzoo-item { margin: 16px 10px 28px; }
    .item-image img { max-width: 300px; width: 100%; height: auto; }
    h4.item-title { min-height: 0; padding-top: 0; font-size: 27px; }
    .item-fulltext { min-height: 0; }
    .element-textarea, .element-textarea2 { font-size: 18px; }
    span.price, span.sizr, span.size, .wi40 { font-size: 24px; }
    .width25 .jbzoo-item .element-textarea2 .radio-b { font-size: 20px; }

    .title_1 {
        position: relative;
        height: auto;
        margin: 0 auto 20px;
        text-align: center;
    }
    .flexslider2 { height: 56px; }
    .flexslider2 ul li { height: 56px; }
    .flexslider2 ul li span { display: block; font-size: 23px; line-height: 28px; padding: 5px; }
    .white_line { display: block; font-size: 25px; line-height: 30px; padding: 6px; }
    .rightblock_text { font-size: 24px !important; }
    .order { height: auto; margin-bottom: 24px; }
    .order .coocker, .order .hand { display: none; }
    .order .order_text {
        position: relative;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 30px 18px;
        box-sizing: border-box;
    }
    .orderka { font-size: 28px; }
    .order_textka { font-size: 18px; line-height: 1.4; }
    .hot_line { font-size: 27px; }
    .order_phone { font-size: 29px; }
    .cooperation { width: 94%; box-sizing: border-box; overflow-wrap: break-word; }
    .cooperation .row { margin: 0; }
    .cooperation .col-md-6 { padding: 0; }
    .cooperation .row .col-md-6 span.desc, .cooperation .regular { font-size: 21px; }
    ul.stores { padding-left: 24px; }
    .map, .map2 { height: 380px; }
    .map2 { box-sizing: border-box; }

    #footer-wide { height: auto; min-height: 200px; }
    .subfooter { width: 100%; padding: 30px 18px; box-sizing: border-box; }
    .flexslider, .flex-control-nav { width: 100%; }
    .flexslider .slides img { width: 100%; height: auto; }
    .hreview, .wpcr3_div_2, .wpcr3_review, .wpcr3_respond_2 { width: 94%; max-width: 100%; box-sizing: border-box; }
    textarea.wpcf7-textarea, #wpcr_table_2 tbody tr td textarea,
    .wpcr3_respond_2 textarea { min-width: 0; width: 100% !important; max-width: 100%; }
    .wpcr3_respond_2 input[type="text"] { min-width: 0; width: 100%; box-sizing: border-box; }
    .wpcr3_respond_2 .wpcr3_table_2,
    .wpcr3_respond_2 .wpcr3_table_2 tbody,
    .wpcr3_respond_2 .wpcr3_table_2 tr,
    .wpcr3_respond_2 .wpcr3_table_2 td { display: block; width: 100%; box-sizing: border-box; }

    #simplemodal-container {
        left: 18px !important;
        top: 32px !important;
        width: calc(100% - 36px) !important;
        height: auto !important;
        min-height: 0;
        max-height: calc(100vh - 64px);
        box-sizing: border-box;
    }
    #simplemodal-container .simplemodal-wrap {
        height: auto !important;
        max-height: calc(100vh - 74px);
        overflow: auto !important;
    }
    #simplemodal-container a.modalCloseImg { top: -29px; right: 0; }
    #basic-modal-city, #basic-modal-content { padding: 18px; }
    #simplemodal-container ul.city { margin: 0; padding: 0; }
}

@media screen and (max-width: 600px) {
    .container.product .width25 { width: 100%; flex-basis: 100%; }
}
