@media screen and (min-width: 375px){ 
    .slider{
        background-position: -390px 0;
    }
    .dealInfo{
        margin: 40px 0 0;
    }
}

@media screen and (width: 768px) and (height: 1024px){
    .carousel-caption {
        top: 400px;
    }
}

@media screen and (width: 1024px) and (height: 1366px){
    .carousel-caption {
        top: 500px;
    }
}

@media screen and (min-width: 768px){
    .slider{
        background-position: -520px 0;
    }
    
    .dealInfo{
        margin: 80px 0 0;
    }
    
    .dealInfo p, .dealInfo a{
        font-size: 22px;
    }
    
    .navPhone{
        margin: 10px 0 0 80px;
    }
    
    .carousel-caption {
        top: 0px;
    }
    .about-text{
        margin-top: 0;
    }
    
    .showForm.btn-custom{
        margin: 0 0 0 calc(50% - 60px);
    }
    
    .popup{
        max-width: 600px;
        margin: 0 0 0 50%;
        -webkit-transform: translate(-50%);
        transform: translate(-50%);
    }
    .popup img{
        width: 300px;
        float: left;
        margin: 0 10px 0 0;
    }
    .popup article{
        padding: 0;
    }
    /*stock*/
    .stock .showForm.btn-custom:hover{
        background: #ffffff;
        color: #544042;
    }
    .stock{
        -ms-flex-flow: row;
        -o-flex-flow: row;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        flex-flow: row;
        padding: 20px 40px;
    }
    
    .stockText h3{
        color: #ffffff;
        text-shadow: 2px 2px #333;
    }
    
    .stockText p{
        font-size: 18px;
        color: #ffffff;
    }
    
    .stock img{
        width: 120px;
        margin: 0;
    }
    /*stock*/
    
    #testimonials{
        background-position: -300px 0;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) { 
 .featured-list #grid .thumb {
	  width: 50%;
	}
	
	.carousel-caption h1 {
	  font-size: 40px;
	  text-transform: uppercase;
	  line-height:auto !important;
	}
}
/* Mobile Layout: 320px. */
@media only screen and (max-width: 767px) { 
    .slide2r {
        height: calc(100vh - 70px);
        background: url('../img/123123фйы.jpg') no-repeat;
        background-size: cover;
    
    }
    .itemsBox {
        background: #ffffff;
        border-radius: 3px;
        box-shadow: 0 10px 30px #444;
        padding: 40px 47px;
    }
    .hover-text h3 {
        font-size: 33px;
        padding-top: 14px;
        text-align: center;
        margin: 0 0 5px;
    }
    .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
        border-color: #101010;
        background: #fff !important;
    }
    .portfolio-item img {
        margin: 0 0 20px;
  
    }
    .carousel-caption .brend {
        font-size: 33px;
    }
    .portItem img {
        width: 100% !important;
        height: 100% !important;
    }
	.featured-list #grid .thumb {
	  width: 50%;
	}
	.carousel-caption {
	  top: 0px;
	}
	
	.carousel-caption h1 {
	  font-size: 24px;
	  text-transform: uppercase;
	  line-height:auto !important;
	}
	
	.btn.btn-learn {
	  font-size: 16px;
	  font-weight: 500;
	  padding: 10px 20px;
	  text-align: center;
	  text-transform: uppercase;
	}
	
	.about-text{
		text-align:center;
	}
	
	.single-feature{
		text-align:center;
	}
	
	.feature-icon{
		margin-bottom:8px;
	}
	
	.feature-text h4{
		line-height:25px;
	}
	
}
/* Wide Mobile Layout: 480px. */
@media only screen and (min-width: 480px) and (max-width: 767px) { 
	.featured-list #grid .thumb {
	  width: 50%;
	}
	
	.carousel-caption {
	  top: 5px;
	}
	
	.carousel-caption h1 {
	  font-size: 15px;
	  text-transform: uppercase;
	  line-height:auto !important;
	}
	
	.btn.btn-learn {
	  font-size: 10px;
	  font-weight: 500;
	  padding: 5px 7px;
	  text-align: center;
	  text-transform: uppercase;
	}
	
	.about-text{
		text-align:center;
	}	
}

@media screen and (width: 1024px) and (height: 768px){
    .slider, #installation, #testimonials{
        background-attachment: scroll;
    }
}

@media screen and (width: 1024px) and (height: 1366px){
    .slider, #installation, #testimonials{
        background-attachment: scroll;
    }
}

@media screen and (width: 1366px) and (height: 1024px){
    .slider, #installation, #testimonials{
        background-attachment: scroll;
    }
}

@media screen and (min-width: 1024px){
    .slider{
        background-position: 0 50px;
    }
    
    .dealInfo{
        margin: 20px 0;
    }
    
    .carousel-caption h1{
        font-size: 46px;
    }    
    .slider, #installation, #testimonials{
        background-attachment: fixed;
    }
    
    .navPhone{
        margin: 8px 0 0 60px;
    }
    
    .dealInfo{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row;
        flex-flow: row;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    .dealInfo p{
        margin: 0 30px 0 0;
    }
    
    #testimonials{
        background-position: 0 0;
    }
}

@media screen and (min-width: 1280px){
    
    .navPhone{
        margin: -4px 0 0 110px;
    }

    .navPhone a{
        font-size: 24px;
    }
    
}