/*==========  Desktop First Method  ==========*/
/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
    .wrapper-mid {
        width: 100% !important;
    }
    .cont-form {
        margin-top: 0;
    }
    .cont-form .form-bot button {
        float: left;
    }
}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
    .main-form .quest {
        padding-top: 30px;
        text-align: center;
    }
    footer#footer .footer-address {
        margin-top: 15px;
    }
    .navbar-default .navbar-nav > li > a:hover {
        padding: 9px 15px;
    }
    .gallery .port-part:nth-child(2n), .gallery .port-part:nth-child(2n+1) {
        float: none !important;
    }
    .gallery .port-part {
        margin: 0 auto;
    }
    .services .container .row > .col-lg-6:last-child {
        position: relative;
        right: -10px;
    }
}

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
    .services .container .row > .col-lg-6:last-child {
        right: 0;
    }
    /*.services .container .row > .col-lg-6:first-child {
        left: 0;
    }*/
    .slider .wrapper-mid .slide-text {
        height: 200px;
    }
    .footer-address {
        padding-left:; 10px;
    }
    .footer-phone {
        padding-right: 10px;
    }
    .contacts-info .right {
        float: left !important;
    }
    .gallery a:after {
        left: 0;
    }
    header#header .container .row>div {
        text-align: center;
    }
    header#header .container .row>div:last-child {
        position: absolute;
        top: 35px;
    }
    header#header .contacts {
        margin-top: 5px !important;
    }
    header#header .call-btn {
        margin-top: 10px !important;
    }
    .navbar button.navbar-toggle {
      float: none;
      margin: 0 auto;
      display: block;
    }
}

@media only screen and (max-width : 540px) {
    header#header .container .row .contacts, header#header .container .row .call-btn {
        background: none;
    }
    .nav.navbar-nav li {
        width: 100% !important;
    }
    .wrapmain .nav.navbar-nav li a:hover {
        padding-top: 15px !important;
    }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {
    .footer-logo-copy {
        width: 100% !important;
    }
    .footer-phone, .footer-address {
        width: 100% !important;
        padding: 10px 0 !important;
    }
    footer#footer .row {
        padding-top: 50px;
    }
    .services .serv-block {
        min-height: 181px !important;
    }
    .services .serv-block .serv-text {
        padding: 20px 0 0 5px !important;
        font-size: 0.9em !important;
    }
    .main-form {
        padding-bottom: 30px;
    }
    .contacts-info {
        padding: 0 5px;
        font-size: 1em;
    }
        .logo {
        z-index: 1;
    }
    .services .container .row > .col-lg-6:first-child {
        left: 0 !important;
    }
    .main-text {
        padding: 15px !important;
    }
    .wrapmain .main-form .form-bot {
        padding: 15px !important;
    }
    .wrapmain .main-form .form-bot input {
        width: 100% !important;
    }
    footer {
        text-align: center;
        position: relative;
    }
    footer#footer:before {
        left: 0 !important;
    }
    footer#footer .footer-phone {
        position: absolute;
        top: 25px;
        text-align: center;
    }
    .gallery a:after {
        left: 0 !important;
    }
    .services .container .row > .col-lg-6:last-child {
        right: 0 !important;
    }
    .wrapmain .main-form .quest {
        padding-top: 0px !important;
    }
    .slider .slide-text .slide-second-line {
        bottom: 34% !important;
    }
    .slider .slide-text .slide-first-line {
        right: 8%;
    }
    .utp .wrapper-mid div {
        margin: 0 !important;
    }
    .main-form .form-bot {
        margin-top: 30px !important;
    }
    .footer-spacer {
        display: none;
    }
    header#header .logo {
        margin-top: 40px !important;
    }
    header#header .contacts>div {
        background: url("../img/phone.png") no-repeat left center !important;
    }
    .cont-form .form-bot button {
        font-size: 0.8em;
    }
    .rotate {
        top: 40% !important;
        left: -5% !important;
    }
    .slide-first-line {
        bottom: 48% !important;
    }
    .slide-first-line, .slide-second-line {
        font-size: 3em !important;
    }
    .footer-links ul li span {
        display: none;
    }
    .footer-links ul {
        font-size: 0.9em;
    }
    
}

/* Custom, iPhone Retina */
@media only screen and (max-width : 320px) {
    .services {
        overflow: hidden;
    }
    .main-form .quest div {
        font-size: 1.5em !important;
    }
    .main-form .form-bot {
        padding-left: 1px !important;
    }
    .main-form .col-xs-6 {
        height: 150px !important;
        min-height: 150px ; 
    }
    .serv-text {
        padding: 10px 0 0 10px
        font-size: 0.8em
    }
    .footer-address {
        width: 100% !important;
        text-align: center;
        padding-left: 0px !important;
        background: none !important;
        margin-bottom: 10px;
    }
    .footer-phone {
        width: 100%;
        text-align: center;
        background: none !important;
        margin-top: 0 !important;
    }
    .cont-form .form-bot textarea, .cont-form .form-bot input {
        width: 281px;
    }
    .cont-form .form-bot button {
        width: 281px;
    }
    .main-text {
        padding: 15px !important;
    }
    footer#footer {
       padding-bottom: 10px; 
    }
}

/*==========  Mobile First Method  ==========*/

/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}

/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {

}

/* Small Devices, Tablets */k
@media only screen and (min-width : 768px) {
    .main-form .form-bot {
        padding-left: 100px !important; }
    .contacts-info .right .cont-address {
        margin-bottom: 10px; }
}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
    .container {
        width: 960px !important;
    }
    .contacts-info .right {
        padding-left: 120px !important;
    }
}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {
    .container {
        width: 960px !important;
    }
    .cont-form .form-bot button {
        float: right;
    }
    .main-bg .gallery .gal-right .port-part-right {
        float: right;
    }
    .services .container .row > .col-lg-6:first-child {
        position: relative;
        left: -10px;
    }
    .slider .slide-text .slide-first-line {
        right: 8%;
    }
}

@media only screen and (min-width : 320px) and (max-width : 500px) {
    .galleryItem {
        width: 50%;
        float: left;
        margin: 0 auto;
    }
}
@media only screen and (min-width : 500px) and (max-width : 768px) {
    .galleryItem {
        width: 25%;
        float: left;
        margin: 0 auto;
    }
}