/*==========  Desktop First Method  ==========*/

/* Large Devices, Wide Screens */

@media screen and (max-height: 700px){


    .button-wrapper {
        position: absolute;
        bottom: 20px;
        width: 100%;
    }

    .slider-wrapper {
        position: relative;
        margin-bottom: 10px;
        height: auto;
    }

    .unset_animation{
        margin-top: 20px;
    }


    .calculate-title{
        max-height: 60px;
    }  

    .block-calculation-main {
        overflow: auto;
        height: 100vh;
        width: 100vw;
    }

    .block-calculation-inner-calculate {
        margin-top: 46px;
    }


}

@media screen and (max-height: 670px){
    .button-wrapper {
        position: relative;
        bottom: auto;
        margin-bottom: 20px;
    }   
}

@media screen and (max-height: 530px){

    .main-nav ul {
        height: auto;}

    .main-nav{
        margin-top: 77px;
    }
    .main-nav li {
        height: 159px;
    }

    .contacts {
        position: relative;
        left: 0px;
        width: 100%;
        text-align: center;
        background: #000 none repeat scroll 0% 0%;
        display: inline-block;
    }

    .must_be_pverflow{
        overflow: auto;
    }

    .must_be_pverflow-inner{
        height: auto;
    }

}

@media only screen and (max-width : 1200px) {
    .choose-block::after {
        top: 26px;
        right: -62px;
        width: 121px;
        height: 121px;
    }

    .templates-block {
        width: calc(70% - 65px);
    }

    .choose-block {
        margin-right: 65px;
    }

}
@media screen and (max-width: 1165px){
    .site-type + label:nth-child(10){
        margin-right: 0px;
    }

    .submit-templates{
        margin-top: 20px;
        margin-left: 50px;
    }

    .submit-templates::before, .submit-templates::after {
        background: rgb(50, 50, 50);
        width: 30px;
        height: 30px;
    }
}

@media screen and (max-width: 960px){

    /*    .gallery-wrap .item-type-mobile {
            width: 50%;
        }
    
    
        .portfolio-slider-mobile{
            display: none;
        }
    
        .portfolio-slider-500height{
            display: inline-block;
        }
    
        .portfolio-slider-main{
            display: none;
        }*/

    #filter-templates-block-mobile{
        display: inline-block;
    }

    #filter-templates-block-main{
        display: none;
    }


    .new-line{
        width: 100%;
    }

    .block-calculation-cost{
        width: 40%;
        position: relative;
        bottom: auto;
    }

    .title-portfolio {
        margin-left: 150px;
    }

    .templates-title {
        margin-left: 177px;
    }
}


/* Medium Devices, Desktops */

@media screen and (max-width: 768px), screen and (max-device-width: 768px) {

    .email-footer{
        width: 219px;
    }

    .main-nav a span {
        width: 25%;
    }

    .contacts a {
        padding-left: 0px;
        font-size: 16px;
    }

    .contacts .phone-footer-elem-1::before {
        width: 0px;
        height: 0px;
        background: none }

    .contacts .skype-footer::before{
        top: 2px;
    }

    .gallery-wrap {
        height: calc(99% - 77px);
    }

    .portfolio-slider-outer {
        height: calc(100% - 100px);
        display: inline-block;
        min-height: 155px;
    }

    .wrapper_portfolio{
        margin-top: 0px;
    }

    .portfolio-buttons {
        font-size: 10px;
        padding: 6px 7px 7px;
    }

    .button-wrapper {
        position: relative;
        bottom: auto;
        margin-bottom: 20px;
    } 

    .gallery-wrap .item-type-mobile {
        width: 100%;
    }

    .templates-title {
        margin-left: 0px;
    }

    .block-calculation-cost{
        width: 100%;
        position: relative;
        bottom: auto;
    }

    .calculate-title{
        max-height: 100%;
    }

    .block-calculation-title {
        top: 0px;
        padding: 0px;
        letter-spacing: 0px;
    }

    .block-calculation-main{
        overflow: auto;
        height: 100vh;
    }
    .block-calculation-mainbackground{
        padding: 10px;
        overflow: auto;
    }

    .block-calculation-inner-main-all{
        background: none;
        width: 100%;
        margin-bottom: 10px;
    }

    .block-calculation-inner-main{
        width: 100%;
        left: 0px;
        background: transparent none repeat scroll 0% 0%;
    }

    .container{
        padding: 0px;
    }

    .block-calculation-cost-textcost{
        padding-top: 11px;
        display: inline-block;
    }

    .block-calculation-cost {
        position: relative;
        bottom: auto;
        padding: 0px;
        right: auto;
    }

    .modal-wrapper{
        width: 90%;
    }


    .contacts {
        position: relative;
        left: 0px;
        width: 100%;
        text-align: center;
        background: #000 none repeat scroll 0% 0%;
        display: inline-block;
    }

    .must_be_pverflow{
        overflow: auto;
    }

    .must_be_pverflow-inner{
        height: auto;
    }

    .contacts-inner{
        padding-bottom: 20px;
    }

    .main-nav ul {
        height: auto;}

    .main-nav{
        margin-top: 77px;
    }
    .main-nav li {
        height: 159px;
        display: inline-block;
        width: 70%;
        margin-right: 0px;
    }

    .main-nav a {
        height: 100%;
        width: 100%;
        padding: 0.5em;
    }

    .main-nav a h4 {
        font-size: 0.9em;
        letter-spacing: 0px;
    }
    /*    .main-nav a span {
            width: 100%;
            height: 100%;
        }*/

    .main-nav a .home-icon, .main-nav a .templates-icon, .main-nav a .portfolio-icon, .main-nav a .partners-icon{
        background-repeat: no-repeat;
    } 

    .contacts p {
        position: relative;
        display: inline-block;
        width: 100%;
        margin: 0px;
        font-size: 1em;
    }

    .main-logo {
        width: 196px;
    }

    .company-name {
        font-size: 48px;
        margin: 0px;
    }

    .wrapper-main-text .main-text {
        display: inline-block;
        margin: 0px;
    }
    
    .main-text2 {
        display: inline-block;
        margin: 0px;
    }

    .partners-top {
        height: 148px;
    }

    .partners-top .partners-title {
        margin: 0px;
        font-size: 6rem;
        padding-top: 2%;
        padding-left: 20px;
    }

    #block-advertising-border-text {
        top: calc(100% + 23px);
    }



    .portfolio-slider-mobile{
        display: inline-block;
    }

    .portfolio-slider-500height{
        display: none;
    }

    .portfolio-slider-main{
        display: none;
    }

    .gallery-wrap{
        width: 100% !important;
        margin-bottom: 20px;
    }

    .wrapper_portfolio{
        width: 100%;
    }

    .socials {
        height: 30px;
        width: 30px;
    }

    .social-twitter {
        background-position: -31px 0px;
    }

    .social-mailru {
        background-position: -63px 0px;
    }

    .social-vkontakte {
        background-position: -96px 0px;
    }

    .social-odnoklassniki {
        background-position: -128px 0px;
    }
    .social-plusone {
        background-position: -160px 0px;
    }

    .partner-list-background {
        display: none;
    }

    .slider-wrapper {
        position: relative;
        margin-bottom: 10px;
        height: auto;
    }

    .unset_animation{
        margin-top: 20px;
    }

    .cotnacts-recall {
        margin-bottom: 10px;
        left: calc(50% - 25px);
        display: none;
    }

    .recall-div{
        display: none;
    }

    .main-container {
        overflow-y: scroll;
    }
    .templates-block {
        width: 100%;
    }
    .choose-block {
        margin-top: 0px;
        max-width: 100%;
        width: 100%;
        margin-left: 0px;
        text-align: center;
        margin-bottom: 73px;
    }
    .choose-block::after {
        background: transparent url("../img/mobile-arrow.png") no-repeat scroll 0% 0%;
        width: 100%;
        bottom: -143px;
        top: auto;
        transform: rotate(0deg);
        z-index: 999;
        left: 1px;
        background-size: 100% auto;
        height: 143px;
    }
    .templates-title {
        display: none;
        text-align: center;
        padding: 0;
        line-height: .9;
        font-size: 6rem;
    }

    .wrapper-tags {
        width: 80%;
        margin: 0 auto;
    }

    input[type=radio] + label {
        margin-right: 0px;
        margin-bottom: 1em;
    }
    .filter-templates-block p {
        text-align: center;
    }

    .works-menu{
        position: relative;
    }

    .works-menu .main-menu {
        position: relative;
        width: 18em;
        margin: 0 auto;
    }

    .partners-top .partners-title {
        text-align: center;
        margin: 0;
        padding: 0;
        font-size: 4em;
        margin-top: -0.6em;
    }

    .customNavigation {
        display: block;
    }
    .button-wrapper .partner-btn {
        margin-bottom: 40px;
    }
    .customNavigation .next {
        margin-top: -75px;
        width: 40px;
        height: 120px;
        background: url(../img/m-left-arrow.svg);
        right: 20px;
    }
    .btn{
        z-index: 999;
    }
    .customNavigation .prev {
        margin-top: -75px;
        width: 40px;
        height: 120px;
        background: url(../img/m-right-arrow.svg);
        left: 20px;
    }
    .main-menu .works-logo,
    .main-menu .hamburger-logo {
        display: none;
    }
    .works-menu .main-menu {
        width: 70px;
        height: 70px;
        background: url(../img/m-menu-btn.svg);
    }
    .wrapper_portfolio .title-portfolio {
        font-size: 3em;
        margin-left: 0;
        margin-top: 0;
        width: 100%;
    }
    .site-type + label:nth-child(10) {
        width: 165px;
    }
    .contacts p {
        width: auto;
    }

    .contacts .phone-footer{
        padding-left: 0px;
    }

    .portfolio-item-offlink {
        left: 5px;
        top: 5px;
    }

    .wrapp-slider {
        margin-top: 0px;
    }
    .template-item-link-button {
        font-size: 10px;
        margin-top: 14px;
    }

}


@media screen and (max-width: 370px), screen and (max-device-width: 370px) {
    .recall-div{
        width: 100%;
    }

    .contacts a {
        width: 100%;
    }

    .type-site-select-value-block{
        width: 100%;
    }
}