.ag_menubtn {
    display: none;
}

.ag_clbtn {
    display: none;
    width: 35px;
    height: 25px;
    position: fixed;
    z-index: 999999;
    left: -50px;
    fill: #fff;
    cursor: pointer;
    -moz-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}




@media (max-width: 1023px) {
    .center {
        width: 700px;
    }

    .moduletable_menu {
        display: none;
    }

    .mid .center > .left {
        position: fixed;
        float: none;
        top: 0;
        bottom: 0;
        left: -250px;
        width: 250px;
        background: #ffffff;
        padding: 30px 15px;
        box-sizing: border-box;
        -moz-transition: all 0.5s;
        -webkit-transition: all 0.5s;
        -o-transition: all 0.5s;
        transition: all 0.5s;
        z-index: 9999;
    }

    .mid .right {
        width: 100%;
        float: none;
        padding: 0;
        box-sizing: border-box;
        background: none;
    }

    .mid .right .blog .leading-0 {
        width: 100%;
    }

    .mid .right .blog {
        width: 700px;
    }

    .mid .right .blog .leading-0 > .readmore a {
        width: 170px;
    }

    .mid .right .newsflash-horiz_portfolio {
        width: 700px;
    }

    .mid .right .newsflash-horiz_portfolio .portitem {
        width: 33.3333%;
        margin: 0 !important;
    }

    .mid .right .newsflash-horiz_portfolio .imageport {
        width: 100%;
    }

    .mid .right .newsflash-horiz_portfolio .centeritem {
        padding: 0 10px;
        box-sizing: border-box;
    }

    .moduletable_adress {
        float: left;
        margin-left: 50px;
        margin-top: 5px;
        width: 180px;
    }

    .moduletable_contacts {
        width: 185px;
    }

    footer .moduletable_adress {
        width: 33%;
        box-sizing: border-box;
        margin: 0;
        border-right: none;
    }

    footer .moduletable_contacts {
        box-sizing: border-box;
        width: 33%;
    }

    footer .moduletable_flogo {
        box-sizing: border-box;
        width: 33%;
    }

    footer .moduletable_fmenu {
        float: none;
        width: 100%;
        display: inline-block;
        margin-top: 20px;
        border-top: 1px dotted #ccc;
        padding-top: 20px;
    }

    footer .moduletable_fmenu li {
        border-right: none;
        width: 33%;
        box-sizing: border-box;
    }

    footer {
        margin-top: 50px;
    }

    .ag_menubtn {
        display: block;
        float: right;
        margin: 40px 0 0 25px;
        cursor: pointer;
    }

    .mid .center > .left.open {
        left: 0;
        box-shadow: 0px 0px 12px -2px;
    }

    body.black:after {
        content: ' ';
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.5);
    }

    .ag_clbtn.open {
        display: block;
        left: 280px;
    }

    .counter {
        display: none;
    }

}



@media (max-width: 767px) {
    .center {
        width: 430px;
    }

    .mid .right .blog {
        width: 100%;
    }

    .mid .right .blog .leading-0 > .readmore a {
        left: initial;
        right: 0;
    }

    .mid .right .blog .leading-0 > .introtext {
        width: 100%;
        max-width: 250px;
        position: absolute;
        background: #f44934;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0 40px 0 25px;
        text-align: left;
        box-sizing: border-box;
        height: 70px;
    }

    .mid .right .blog {
        overflow: hidden;
    }

    .mid .right .newsflash-horiz_portfolio .portitem {
        width: 100%;
        margin-bottom: 50px !important;
    }

    .mid .right .newsflash-horiz_portfolio .centeritem {
        padding: 0;
    }

    .mid .right .newsflash-horiz_portfolio {
        width: 100%;
    }

    .moduletable_text h3 {
        margin: 0;
    }

    .moduletable_adress {
        display: none;
    }

    .moduletable_contacts p {
        line-height: 16px;
    }

    .custom_logo {
        margin-top: -5px;
    }

    .ag_menubtn {
        margin: 25px 0 0 25px;
    }

    footer .moduletable_contacts {
        width: 50%;
    }

    .mid .right .item-page img {
        max-width: 200px;
        max-height: 153px;
    }

    .item-page p > ymaps {
        width: 100% !important;
    }

    .into .right .blog .items-leading > div {
        width: 215px;
    }

    .ag_w_1_2 {
        width: 100%;
        margin: 0;
        float: none;
    }

    table.cms_table {
        max-width: 430px;
    }

    body {
        overflow-x: hidden;
    }

    p.clearboth > img {
        height: initial;
    }

    .item-page > div > img {
        height: initial;
    }

    .ag_preim_bottom_dott {
        display: block;
        border-bottom: none;
    }

    .ag_preim.ag_left_dott {
        border-right: none;
    }

    .ag_preim {
        width: 100%;
        padding: 10px;
    }

    #backcall.cfg_align_right-top {
        top: 105px !important;
        right: 15px !important;

    }

}



@media (max-width: 479px) {
    .center {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    header .center {
        padding: 20px 20px 50px 20px;
    }

    .moduletable_logo p:first-child img {
        width: 150px;
        height: initial;
    }

    .moduletable_logo {
        width: 150px;
    }

    .moduletable_contacts {
        width: 145px;
    }

    .custom_contacts p:first-child {
        font-size: 18px;
        text-align: right;
    }

    .custom_contacts p:first-child span {
        font-size: 18px !important;
    }

    label.sk-btn.sk-head {
        width: 115px;
    }

    .custom_contacts p:nth-child(5) {
        font-size: 12px;
    }

    inspector-stylesheet:11 .custom_contacts p:nth-child(4) {
        font-size: 11px;
    }

    .ag_menubtn {
        margin: 90px 0 0 0;
        position: absolute;
        border: 2px solid #f44934;
        padding: 5px 5px 5px 5px;
    }

    ul {
        padding-left: 20px;
    }

    .ag_clbtn.open {
        left: 260px;
    }

    .mid .right .item-page img {
        max-width: 100%;
        max-height: initial;
        height: auto;
        padding: 0 0 10px 0 !important;
    }

    footer .moduletable_flogo img {
        width: 100%;
        height: initial;
    }

    footer .moduletable_contacts {
        width: 66%;
    }

    footer .moduletable_contacts p:first-child span {
        font-size: 18px !important;
    }

    footer .moduletable_contacts p:nth-child(3) strong {
        font-size: 11px;
    }

    footer .moduletable_contacts p {
        line-height: 10px;
        text-align: right;
    }

    footer .moduletable_flogo {
        margin-top: -12px;
    }

    footer .moduletable_fmenu li {
        width: 100%;
        padding: 0;
        text-align: center;
        margin-bottom: 15px;
    }

    .moduletable_alkem p {
        text-align: center !important;
        line-height: 20px;
    }

    footer .alkem .center > div:first-child {
        display: none;
    }

    .custom_text p img {
        width: 100%;
        margin: 0 !important;
        padding-bottom: 20px;
    }

    .mid .right .blog .leading-0 > a > .imageakc {
        width: 100%;
        height: 175px;
    }

    .mid .right .blog .leading-0 > .readmore a {
        left: 0;
        width: 100%;
        text-align: center;
    }

    .mid .right .blog .leading-0 > .introtext {
        max-width: 100%;
        text-align: center;
        bottom: 65px;
    }

    .into .right .blog .items-leading > div {
        width: 100%;
    }

    .into .right .blog div.page-header {
        width: 100%;
        box-sizing: border-box;
    }

    .div-img {
        width: 100%;
        box-sizing: border-box;
    }

    .ag_w_block.ag_div_form_gal > div:last-child {
        display: none;
    }

    #backcall.cfg_align_right-top {
        top: 95px !important;
        right: 10px !important;

    }


}
