@media (max-width: 1200px) {
    .cf_pwrap .col2:first-child {
        width: 40%;
    }
    .cf_pwrap .col2:last-child {
        width: 60%;
    }
    .cf_pwrap .col2:last-child .inwrap { padding: 20px 30% 20px 20px; }
}
@media (max-width: 1024px) {
    .cf_line .m_container span.wpcf7-form-control-wrap,
    .cf_line .m_container div.wpcf7 .btn_cfline { width: 49%; }
    .cf_line .m_container div.wpcf7 .btn_cfline {
        margin: 0 auto 0 0;
        display: block;
    }
    .cf_line .m_container span.wpcf7-form-control-wrap { margin-left: 2%; }
    .cf_line .m_container span.wpcf7-form-control-wrap:nth-child(2n) { margin-left: 0;}
    .cf_line .m_container div.wpcf7 input[type=submit] {
        width: 100%;
        margin-right: 0;
    }
    .arch_wrapper .cpl_stry {
        width: 49%;
        margin-left: 2%;
    }
    .arch_wrapper .cpl_stry:nth-child(2n) {
        margin-left: 0;
    }
    .arch_wrapper .cpl_stry:last-child {
        opacity: 0;
    }
    .cf_pwrap .col2:last-child .inwrap { max-width: 350px; }
    .cf_pwrap .head_cf_line { text-align: center; }
    .inrow.vid_wrapper .col3,
    .inrow.vid_wrapper .col3:nth-child(3n) {
        width: 49%;
        margin-left: 2%;
    }
    .inrow.vid_wrapper .col3:nth-child(2n) { margin-left: 0; }
}
@media (max-width: 900px) {
    .inrow.p_wrapper .col2.thumb_page {
        width: 100%;
        opacity: 1;
        height: 350px;
    }
    .p_wrapper .p_entry {
        width: 100%;
    }
    .arch_wrapper .col3,
    .arch_wrapper .col3:nth-child(3n) {
        width: 49%;
        margin-left: 2%;
    }
    .arch_wrapper .col3:nth-child(2n) { margin-left: 0; }
}
@media (max-width: 870px) {
    .cf_pwrap .col2:last-child,
    .cf_pwrap .col2:first-child {
        width: 100%;
        display: block;
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
    .cf_pwrap .col2:first-child .inwrap {
        position: inherit;
        text-align: center;
        max-width: none;
        left: auto;
        top: auto;
        -webkit-transform: translate(0,0);
        -moz-transform: translate(0,0);
        -ms-transform: translate(0,0);
        -o-transform: translate(0,0);
        transform: translate(0,0);
        padding: 25px 10px;
        width: auto;
    }
    .cf_pwrap .col2:first-child:after {
        width: 0;
        height: 0;
    }
    .cf_pwrap .col2:first-child:before {
        -webkit-transform: skew(0deg);
        -moz-transform: skew(0deg);
        -ms-transform: skew(0deg);
        -o-transform: skew(0deg);
        transform: skew(0deg);
        width: 100%;
        height: 1px;
        left: 0;
        bottom: 10px;
    }
    .glry_t .p_entry,
    .glry_t .col2l.thumb_page {
        width: 100%;
    }
    .glry_t .col2l.thumb_page {
        height: 300px;
        opacity: 1;
    }
    .tcf_wrap h1 {
        position: relative;
        text-align: center;
        left: auto;
        bottom: auto;
        -webkit-transform: translate(0,0);
        -moz-transform: translate(0,0);
        -ms-transform: translate(0,0);
        -o-transform: translate(0,0);
        transform: translate(0,0);
    }
}
@media (max-width: 700px) {
    .col2.hmps_r_side, .col2.hmps_l_side {
        width: 100%;
        height: 50%;
    }
    .hmps_wrapper {
        height: 550px;
    }
    .hmps_r_side {
        margin-bottom: 5px;
    }
    .hmps_l_side .lay_hmps,
    .hmps_l_side .col2.reg_hmps:first-child { margin-right: 0; }
    .arch_wrapper .col3,
    .arch_wrapper .col3:nth-child(3n) {
        width: 49%;
        margin-left: 2%;
    }
    .arch_wrapper .col3:nth-child(2n) {
        margin-left: 0;
    }
    .inrow.cf_pwrap { overflow-x: inherit; }
    .cf_pwrap .col2:last-child .inwrap {
        max-width: 290px;
        margin: auto;
        display: block;
        width: 90%;
        padding: 25px 0;
    }
}
@media (max-width: 650px) {
    .f_entry:before {
        background: none;
    }
    .f_entry {
        width: 95%;
        display: block;
        margin: auto;
    }
    footer:before {
        bottom: auto;
        top: -100px;
    }
    footer ul li {
        display: block;
        margin: 0 auto 20px auto;
    }
    footer ul li:after {
        content: '';
    }
}
@media (max-width: 628px) {
    header .logo {
        display: block;
        margin: auto;
        width: 60%;
        text-align: center;
    }
    .mobile-footer {
        background:#000;
        display:block;
        width:100%;
        position:fixed;
        bottom:0;
        right:0;
        height:auto;
        z-index:99999;
        text-align:center;
        border-top:1px solid white;
    }
    .mobile-footer div {
        display:inline-block;
        vertical-align:top;
        width:32%;
        border-left:1px solid white;
        height:40px;
        padding: 5px 0;
    }
    .mobile-footer div:last-of-type {
        border-left:0;
    }
    nav {
        background:#000;
        display:none;
        position:fixed;
        height:auto;
        max-height: calc(100% - 50px);
        width:100%;
        right:0;
        z-index:999;
        bottom:51px;
        border:1px solid white;
        border-right:0;
    }
    nav > div.menu-main-container {
        position: relative;
        overflow-y: scroll;
        overflow-x: hidden;
    }
    nav ul ,
    nav ul li ,
    nav ul li a {
        display:block;
        color:#fff;
        width:100%;
        margin:0;
        padding: 0;
    }
    nav .menu > li {
        width: 50%;
        margin: 0;
    }
    nav  ul.menu li a {
        padding: 20px 0;
        width:100%;
    }
    nav ul li:after {
        display:none;
    }
    .menu-item-has-children:hover .sub-menu {
        opacity: 0;
        visibility: hidden;
    }
    .mobile-footer div a {
        display:block;
        width:100%;
        height:100%;
    }
    .mobile-menu {
        background:url(../images/icons/mm-menu-w.png) no-repeat center center;
        background-size: auto 80%;
    }
    .firstz {
        background:url(../images/icons/mm-home-w.png) no-repeat center center;
        background-size: auto 80%;
    }
    .second {
        background:url(../images/icons/mm-info-w.png) no-repeat center center;
        background-size: auto 80%;
    }
    .third {
        background:url(../images/icons/mm-phone-w.png) no-repeat center center;
        background-size: auto 80%;
    }
    .glry_imgs .col3 {
        width: 100%;
        margin: 1.5% 0 0 0;
    }
}
@media (max-width: 600px) {
    .leshonit_wrapper {
        display: none;
    }
}
@media (max-width: 500px) {
    .ph_wrapper.inlinem {
        display: block;
        margin: auto;
        text-align: center;
    }
    .t_header .socials {
        text-align: center;
        display: block;
        margin: 10px 0;
    }
    .arch_wrapper .col3,
    .arch_wrapper .col3:nth-child(2n),
    .arch_wrapper .col3:nth-child(3n) {
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }
    .hmps_wrapper .hmps_item:hover > a .hmp_caption {
        max-height: 45px;
    }
    .inrow.vid_wrapper .col3,
    .inrow.vid_wrapper .col3:nth-child(2n),
    .inrow.vid_wrapper .col3:nth-child(3n) {
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }
    .footer_mailer .col2 {
        width: 95%;
        max-width: none;
    }
    .footer_mailer .btn_cfline input[type=submit] {
        width: 100%;
        max-width: none;
    }
    .tcf_wrap {
        padding-bottom: 20px;
        height: auto;
    }
    header.home_abs {
        top: 280px;
    }
}
@media (max-width: 400px) {
    .cf_line .m_container span.wpcf7-form-control-wrap, .cf_line .m_container div.wpcf7 .btn_cfline { width: 100%; }

}