/*==========  Desktop First Method  ==========*/

/* Large Devices, Wide Screens */
@media only screen and (max-width: 1200px) {

}

/* Medium Devices, Desktops */
@media only screen and (max-width: 992px) {
    header .address-wrap:after {
        display: none;
    }

    header .address-wrap,
    header .contact-wrap {
        margin: 10px auto;
        width: 57%;
    }

    header .block-icon.tel {
        padding-left: 30px;
    }

    header .block-icon.tel:before {
        left: 0;
    }

    .zakaz-calc:before {
        display: none;
    }

    .zakaz-calc .calc-img-link {
        padding: 30px 10px;
        border-top: 1px solid #c0c5c8;
        background-image: url(/bitrix/templates/nwmd/i/bg-point.png);
    }

    .full-w.zakaz-calc .calc-img-link {
        border: none;
    }

    .question.vvmd-form input[type="text"] {
        width: 95.5%;
    }

    .border-dashed-gray > img {
        margin: 0 auto;
        display: block;
    }

    .border-dashed-gray {
        text-align: center;
    }

    .border-dashed-gray > div {
        float: none;
        width: 100%;
    }

    .img-cat .inner:after {
        display: none;
    }

    .sub_menu {
        width: 70%;
        margin: 0 auto;
    }

    .sub_menu > li {
        width: 100%;
        display: inline;
    }

    .sub_menu > li > ul > li {
        float: left;
        width: 50%;
    }

    .vvmd-form-line {
        text-align:center;
        padding-left:0;
        margin-bottom:20px;
    }

    .kvart-zakaz > div {
        width: 100% !important;
        float: none;
        margin-bottom:30px;
    }
    .kvart-zakaz > .kvart-zakaz-arrow {
        display:none;
    }
}

/* Small Devices, Tablets */
@media only screen and (max-width: 767px) {
    .section_name h3 {
        font-size: 24px;
    }

    table.mini.price tr td:nth-child(even) {
        width: 20% !important;
    }

    table.mini.price tr td {
        border: 1px solid #fff;
    }

    /*Disable Animation on Mobile Devices*/
    .animated {
        /*CSS transitions*/
        -o-transition-property: none !important;
        -moz-transition-property: none !important;
        -ms-transition-property: none !important;
        -webkit-transition-property: none !important;
        transition-property: none !important;
        /*CSS transforms*/
        -o-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        -webkit-transform: none !important;
        transform: none !important;
        /*CSS animations*/
        -webkit-animation: none !important;
        -moz-animation: none !important;
        -o-animation: none !important;
        -ms-animation: none !important;
        animation: none !important;
    }

    /*tabs*/
    .nav-tabs.w-100 {
        display: block;
        width: 100%;
    }

    .nav-tabs.w-100 > li {
        display: block;
        padding: 0;
    }

    .main-page-menu {
        display: block;
    }

    .main-page-menu li {
        display: inline-block;
    }

    .photo-gallery a {
        width: 48%;
    }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width: 480px) {
    .search-block input[type="text"] {
        padding: 7px 30px 7px 10px;
        font-size: 16px;
    }

    .search-block input[type="submit"] {
        width: 37px;
        height: 37px;
    }

    .search-block {
        margin-top: 6px;
    }

    ul.nav {
        padding-left: 15px;
        padding-right: 15px;
    }

    .nav > li:hover .st_profit::before, .nav > li:hover .st_profit::after {
        display: none;
    }

    .navbar-header {
        padding-left: 15px;
    }

    .sub_menu {
        text-align: center;
    }

    .sub_menu li {
        text-align: left;
    }

    .sub_menu > li {
        width: 100%;
        display: block;
    }

    .sub_menu > li + li,
    .sub_menu > li > ul > li + li {
        margin-top: 10px;
    }

    .sub_menu > li > ul > li {
        float: none;
        width: 100%;
    }

    .sub_menu > li > ul > li > a {
        font-size: 18px;
    }
}

/* Custom, iPhone Retina */
@media only screen and (max-width: 320px) {

}

/* other custom*/
@media only screen and (min-width: 769px) {
    ul.nav.navbar-nav .sub_menu > li {
        text-align: left;
        float: left;
    }
}

@media (max-width: 765px) {
    .d-form-list li img {
        margin-top: 0;
    }

    .d-form-list h2 {
        text-align: center;
    }
}

@media only screen and (max-width: 670px) {
    .sub_menu {
        width: 100%;
    }

    .zakaz-blue-items li {
        min-height: 0 !important;
    }
}

@media only screen and (max-width: 620px) {
    ul.nav.navbar-nav > li {
        display: block;
        width: 100%;
    }

    ul.nav.navbar-nav > li a,
    ul.nav.navbar-nav > li a:hover,
    ul.nav.navbar-nav > li a:focus,
    ul.nav.navbar-nav > li a:visited {
        padding: 10px;
    }

    ul.nav.navbar-nav > li a,
    ul.nav.navbar-nav > li a:hover,
    ul.nav.navbar-nav > li a:focus,
    ul.nav.navbar-nav > li a:visited,
    ul.nav.navbar-nav > li.active a,
    ul.nav.navbar-nav > li.active a:hover,
    ul.nav.navbar-nav > li.active a:focus,
    ul.nav.navbar-nav > li.active a:visited {
        font-size: 18px;
    }
}

@media only screen and (max-width: 600px) {
    header .address-wrap,
    header .contact-wrap {
        width: 100%;
    }
}

@media (max-width: 580px) {
    .feedback-question {
        width: 100%;
    }

    .text-justify,
    .section-content p {
        text-align: left;
    }
}

@media (max-width: 530px) {
    .img-cat .col-xs-6.mod {
        width: 100%;
    }
}

@media only screen and (max-width: 500px) {
    .locks.bottom-dashed-black img {
        max-width: 250px;
    }

    .blue-form{
        margin-left: 0;
        margin-right: 0;
        padding: 20px 15px;
    }
}

@media (min-width: 495px) and (max-width: 538px) {
    .zakaz-white-items li img + span {
        min-height: 45px;
    }
}

@media (max-width: 495px) {
    .otdelka .title {
        min-height: 0;
    }
}

@media (max-width: 420px) {
    .kvart-zakaz > div img {
        display:block;
        margin:0 auto 20px !important;
    }
    .kvart-zakaz > .kvart-zakaz-center img {
        margin:0 auto 20px !important;
    }
}

@media (max-width: 400px) {
    .photo-gallery a {
        width: 95%;
    }
}

@media (max-width: 395px) {
    .bottom_menu > li {
        width: 30%;
        margin: 10px 0;
        font-size: 16px;
    }

    .bottom_menu > li::after {
        visibility: hidden;
    }

    h1 {
        font-size: 30px;
        line-height: 30px;
    }
}

@media only screen and (max-width: 320px) {
    h1 {
        font-size: 26px;
        line-height: 30px;
    }
}
