@media (max-width: 1699px) and (min-width: 1200px) {
    .navbar .logo {
        padding: 15px 35px;
    }
    #myNavbar .nav-item {
        margin-left: 21px;
    }
}

@media only screen and (max-width: 1200px) {
    .navbar .logo {
        width: 290px;
    }
    #myNavbar {
        top: 70px;
    }
    #myNavbar .nav-item {
        margin-left: 17px;
        font-size: 1.2em;
    }
    #myNavbar .dropdown-content {
        top: 41px;
        min-width: 126px;
    }
    #mainPicture {
        margin-top: 110px;
    }
}

@media only screen and (max-width: 991px) {
    .navbar .logo {
        width: 206px;
    }
    #myNavbar {
        top: 51px;
    }
    #myNavbar .nav-item {
        margin-left: 15px;
        font-size: 1.1em;
    }
    #myNavbar .dropdown-content {
        top: 33px;
        min-width: 116px;
    }
    #mainPicture {
        margin-top: 84px;
    }
    #mainPicture .text-img {
        width: 55%;
    }
    #specialtyUnits .specialty-unit img {
        transform: scale(.80) translate(-61%, -61%);
    }
    /* .main-contact p {
        font-size: 1.4em;
        text-align: center;
    } */
}

@media only screen and (max-width: 767px) {
    .navbar-default .navbar-toggle {
        margin-top: 25px;
    }
    .navbar-default .navbar-collapse {
        border: none;
    }
    #myNavbar {
        position: initial;
        float: right;
        margin-bottom: 8px;
        margin-top: 5px;
    }
    #myNavbar .dropdown-content {
        margin-right: 15px;
        position: initial;
        background-color: transparent;
        padding-top: 5px;
        text-align: right;
        transform: scaleY(1);
        opacity: 1;
    }
    #myNavbar .dropdown-content a {
        color: #2e2e2e;
        font-size: 0.9em;
    }
    #myNavbar .nav-item {
        float: none;
        font-size: 1.3em;
        margin-bottom: 7px;
    }
    #myNavbar .gap {
        height: 0;
    }
    .nav-item.facebook {
        display: none;
    }
    #mainPicture {
        margin-top: 85px;
    }
    #specialtyUnits .row {
        flex-direction: column;
    }
    #specialtyUnits .specialty-unit {
        flex-basis: 100%;
        padding-bottom: 62.5%;
    }
    #specialtyUnits .specialty-unit img {
        transform: scale(1.2) translate(-40%, -40%);
    }
    #specialtyUnits .specialty-unit,
    #specialtyUnits .specialty-unit+.details {
        order: 0;
    }
    /* .contact-logo {
        width: 73%;
    }
    #contactForm {
        width: 80%;
        margin-right: 39px;
    }
    h4 {
        font-size: 1.6em;
    }
    .kazerin {
        height: 229px;
    }
    .kazerin .project-name h4 {
        font-size: 3.6em;
    }
    .kazerin .project-name div {
        font-size: 3.6em;
    }
    .project-logo img {
        width: 340px;
    }
    .form-control {
        height: 33px;
        font-size: 1.2em;
    }
    .main-contact p {
        font-size: 1.4em;
        text-align: center;
    }
    .btn {
        font-size: 1.7em;
    }
    .warpper-sent-box {
        height: 433px;
        width: 80%;
    } */
    #projects .project {
        flex: 0 0 50%;
        height: 229px;
    }

    #projects .p1 {
        order: 1;
    }
    
    #projects .p2 {
        order: 2;
    }
    
    #projects .p1+.details {
        order: 3;
    }
    
    #projects .p2+.details {
        order: 4;
    }
    
    #projects .p3 {
        order: 5;
    }
    
    #projects .p4 {
        order: 6;
    }
    
    #projects .p3+.details {
        order: 7;
    }
    
    #projects .p4+.details {
        order: 8;
    }
    
    #projects .p5 {
        order: 9;
    }
    
    #projects .p6 {
        order: 10;
    }
    
    #projects .p5+.details {
        order: 11;
    }
    
    #projects .p6+.details {
        order: 12;
    }
    
    #projects .p7 {
        order: 13;
    }
    
    #projects .p8 {
        order: 14;
    }
    
    #projects .p7+.details {
        order: 15;
    }
    
    #projects .p8+.details {
        order: 16;
    }
    
    #projects .p9 {
        order: 17;
    }
    
    #projects .p10 {
        order: 18;
    }
    
    #projects .p9+.details {
        order: 19;
    }
    
    #projects .p10+.details {
        order: 20;
    }
    
    #projects .p11 {
        order: 21;
    }
    
    #projects .p12 {
        order: 22;
    }
    
    #projects .p11+.details {
        order: 23;
    }
    
    #projects .p12+.details {
        order: 24;
    }

    #projects .p13 {
        order: 25;
    }

    #projects .p14 {
        order: 26;
    }

    #projects .p13+.details {
        order: 27;
    }

    #projects .p14+.details {
        order: 28;
    }

    #projects .p15 {
        order: 29;
    }

    #projects .p16 {
        order: 30;
    }

    #projects .p15+.details {
        order: 31;
    }

    #projects .p16+.details {
        order: 32;
    }

    #projects .p17 {
        order: 33;
    }

    #projects .p18 {
        order: 34;
    }

    #projects .p17+.details {
        order: 35;
    }

    #projects .p18+.details {
        order: 36;
    }
    
    /* --- contact --- */
    #contactForm {
        width: 80%;
        margin-right: 39px;
    }
    #contactForm .form-control {
        height: 33px;
        font-size: 1.2em;
    }
    #contactForm .btn {
        font-size: 1.7em;
    }
    #contact p {
        font-size: 1.4em;
        text-align: center;
    }
    #contact p span {
        white-space: nowrap;
    }
}

@media only screen and (max-width: 480px) {
    .navbar .logo {
        width: 170px;
    }
    .navbar-default .navbar-toggle {
        margin-top: 20px;
    }
    #myNavbar .nav-item {
        font-size: 1.2em;
    }
    #mainPicture {
        margin-top: 74px;
    }
    #mainPicture .text-img {
        width: 73%;
    }
    #specialtyUnits .specialty-unit img {
        transform: scale(.60) translate(-81.5%, -81.5%);
    }
    #specialtyUnits .details .close {
        width: 45px;
    }
    #specialtyUnits .details .logo {
        width: 280px;
        padding: 38px 0 34px 0;
    }
    #specialtyUnits .details ul.custom-list {
        text-align: initial;
    }
    #specialtyUnits .details ul.custom-list li {
        display: list-item;
    }
    /* .kazerin .project-name h4 {
        font-size: 2em;
    }
    .kazerin .project-name div {
        font-size: 2em;
    }
    .project-logo img {
        width: 180px;
    }
    .kazerin .project-name div {
        top: 69%;
    }
    .gallery-logo {
        right: 16px;
        top: 6px;
    }
    .gallery-logo img {
        width: 78px;
    }
    .project-gallery .city,
    .project-gallery .name {
        font-size: 18px;
    }
    .close img {
        width: 25px;
    }
    .gallery-carrousel {
        max-width: 356px;
    }
    .carousel-control .glyphicon-chevron-left,
    .carousel-control .glyphicon-chevron-right,
    .carousel-control .icon-next,
    .carousel-control .icon-prev {
        top: 67%;
    }
    .carousel-control .icon-prev,
    .carousel-control .glyphicon-chevron-left {
        left: 11%;
        margin: 0;
    }
    .carousel-control .icon-next,
    .carousel-control .glyphicon-chevron-right {
        right: 11%;
        margin: 0;
    }
    .contact-logo {
        width: 84%;
    }
    .main-contact p {
        padding: 22px 0 40px 0;
    }
    .close {
        width: 35px;
    }
    .text-logo {
        width: 280px;
        padding: 38px 0 34px 0;
    }
    .warpper-sent-box {
        right: 40px;
    }
    .icons {
        float: none;
        text-align: left;
        padding-left: 40px;
    }
    .icons img {
        width: 35px;
    }
    .wrapper-gallery-head {
        margin-top: 20px;
        margin-bottom: 10px;
    }
    #myCarousel .carousel-inner {
        width: calc(100% - 80px);
        margin: 0 auto;
    }
    .carousel-control.left {
        margin-left: -13px;
    }
    .carousel-control .icon-prev,
    .carousel-control .glyphicon-chevron-left {
        top: calc(50% - 10px);
        left: 20px;
    }
    .carousel-control.right {
        margin-right: -13px;
    }
    .carousel-control .icon-next,
    .carousel-control .glyphicon-chevron-right {
        top: calc(50% - 10px);
        right: 20px;
    }
    .icon-site,
    .icon-site-blue {
        margin-left: 10px;
    } */
    #projects .project {
        flex: 0 0 100%;
    }

    #projects .p1 {
        order: 1;
    }
    
    #projects .p1+.details {
        order: 2;
    }

    #projects .p2 {
        order: 3;
    }
    
    #projects .p2+.details {
        order: 4;
    }
    
    #projects .p3 {
        order: 5;
    }
    
    #projects .p3+.details {
        order: 6;
    }
    
    #projects .p4 {
        order: 7;
    }
    
    #projects .p4+.details {
        order: 8;
    }
    
    #projects .p5 {
        order: 9;
    }
    
    #projects .p5+.details {
        order: 10;
    }
    
    #projects .p6 {
        order: 11;
    }
    
    #projects .p6+.details {
        order: 12;
    }
    
    #projects .p7 {
        order: 13;
    }
    
    #projects .p7+.details {
        order: 14;
    }
    
    #projects .p8 {
        order: 15;
    }
    
    #projects .p8+.details {
        order: 16;
    }
    
    #projects .p9 {
        order: 17;
    }
    
    #projects .p9+.details {
        order: 18;
    }
    
    #projects .p10 {
        order: 19;
    }
    
    #projects .p10+.details {
        order: 20;
    }
    
    #projects .p11 {
        order: 21;
    }
    
    #projects .p11+.details {
        order: 22;
    }
    
    #projects .p12 {
        order: 23;
    }
    
    #projects .p12+.details {
        order: 24;
    }

    #projects .p13 {
        order: 25;
    }
    
    #projects .p13+.details {
        order: 26;
    }

    #projects .p14 {
        order: 27;
    }
    
    #projects .p14+.details {
        order: 28;
    }

    #projects .p15 {
        order: 29;
    }
    
    #projects .p15+.details {
        order: 30;
    }

    #projects .p16 {
        order: 31;
    }
    
    #projects .p16+.details {
        order: 32;
    }

    #projects .p17 {
        order: 33;
    }
    
    #projects .p17+.details {
        order: 34;
    }

    #projects .p18 {
        order: 35;
    }
    
    #projects .p18+.details {
        order: 36;
    }

    #projects .project.empty {
        display: none;
    }


    /* --- projects --- */
    .wrapper-gallery-head {
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .gallery-logo {
        right: 16px;
        /* top: 6px; */
    }

    .gallery-logo img {
        width: 56px;
    }

    .project-gallery .city, .project-gallery .name {
        font-size: 18px;
    }

    .close {
        width: 35px;
    }

    .close img {
        width: 25px;
    }

    .gallery-carrousel {
        max-width: 356px;
    }

    .icons {
        float: none;
        text-align: left;
        padding-left: 40px;
    }

    .icons img {
        width: 35px;
    }

    .icon-site, .icon-site-blue {
        margin-left: 10px;
    }

    .carousel .carousel-inner {
        width: calc(100% - 80px);
        margin: 0 auto;
    }

    .carousel-control.left {
        margin-left: -13px;
    }

    .carousel-control.right {
        margin-right: -13px;
    }
    
   /* --- contact --- */
    .contact-logo {
        width: 84%;
    }
    #contact p {
        padding: 22px 0 40px 0;
    }
}