
.main{
    margin-top: 39px !important;
}
.main li:nth-child(4){
    margin-right: 0px !important;
}
#header {
    padding: 20px 0 40px 0;
}
#offers{
    display: none;
}
#offers2{
    display: none;
}
#family{
    margin-bottom: 50px;
}
.space{
    height: 50px;
}
#slider_container {
    width: 100%;
}


#history {
    margin-left: 0;
    margin-top: 20px;
    float: left;
}
.home .image, .home2 .image {
        width: 45%;
    }

.home .content {
        width: 55%;
    }
.center {
    width: 100%;
    float: left;
}

.mcontainer {
    padding: 0 15px;
}

#left {
    width: 270px;
    float: left;
}

#right {
    width: calc(100% - 285px);
    float: right;
}

#image_text {
    width: 100%;
    height: 138px;
    background: transparent url('../images/image_text.png') top center no-repeat;
    margin: 15px 0 0 0;
    text-align: center;
    float: left;
}



#title, #title2 {
    margin-top: 0;
}

h2.our_products {
    margin-top: 20px;
}

.home .image img, .home2 .image img, .home3 .image img {
    display: block;
    width: 100%;
    float: left;

    margin: auto;
}

.home .image, .home2 .image {
    overflow: hidden;
    background: transparent !important;
}

.home .content .container {
    padding: 10px 20px;
}

.home2 .content .container {
    padding: 10px 20px;
}



.home .content, .home2 .content {
    font-size: 16px;
}

.text {
    font-size: 16px;
    line-height: 28px;
}

h1 {
    font-size: 36px;
}

.owl-carousel-photo .owl-prev {
    left: -35px;
}

.owl-carousel-photo .owl-next {
    right: -35px;
}

@media all and (max-width: 1420px) {
	
 #menu.mcontainer {
 padding: 0px!important;
 }
.gallery:nth-child(3n+4) {
margin-right: 23px!important;
}
#menu ul li a {
margin: 0 10px!important;	
}
.main {
margin-top: 19px !important;
}
#header {
    padding: 20px 0 20px 0;
}
}

@media all and (min-width: 1100px) and (max-width: 1290px) {
    
	.left25 {
		width: 32%;
        margin: 0 0 30px 0;
		text-align:center;
	}
	.home h2{
        font-size: 25px !important;
    }
    .blue_header p{
        font-size: 12px;
    }
    .blue_text{
        padding-right: 20px;
        font-size: 13px;
    }
    .blue_tile img{
        margin-right: 30px;
    }

}
@media all and (max-width: 1100px) {
    #three_tiles{
        max-width: 1200px;
        height: 450px;
    }
    #tile1{
        background: transparent url('../images/photo_1.jpg') left top no-repeat;
    }
    #tile2{
        background: transparent url('../images/photo_2.jpg') left top no-repeat;
    }
    #tile3{
        background: transparent url('../images/photo_3.jpg') left top no-repeat;
    }
    .tile {
        width: 100%;
        float: left;
        height: 100%;
        margin-right: -2px;
    }
    .blue_tile {
        background: #4f69bf;
        width: 580px;
        height: 298px;
        position: relative;
        top: 0px;
        right: 0px;
        padding: 100px 30px 0 30px;
        float: right;
    }
}

@media all and (max-width: 1100px) {

    #title, #title.title2 {
        background: rgba(0, 51, 153, 0.9);
    }

}



@media all and (max-width: 1020px) {
    .gallery:nth-child(3n+4) {
margin-right: 18px!important;
}
	.left25 {
		width: 32%;
        margin: 0 0 30px 0;
		text-align:center;
	}
	#menu ul {
        background: rgba(79, 105, 191, 0.9);
    }
    #blue_div ul{
        text-align: center;
    }
    #blue_div ul li img{
        display: block;
    }
    #blue_div ul li{

        width: 432px;
    }
    #slider h2 {
        font-size: 45px;
        margin: 0 0 30px 0;
    }

    #slider h3 {
        font-size: 30px;
    }

    #showmenu {
        display: block;
    }

    ul.main i {
        display: block;
    }

    #menu ul {
        display: none;
    }

    .col-4 {
        width: 48%;
        margin: 0 4% 20px 0;
    }

    .col-4:nth-child(4n+1) {
        clear: none;
    }

    .col-4:nth-child(4n+4) {
        margin-right: 4%;
    }

    col-4:nth-child(2n+1) {
        clear: left;
    }

    .col-4:nth-child(2n+2) {
        margin-right: 0;
    }
    .logo {
        margin: 0 0 0 20px;
        left: 0;
    }
    .menu1 {
        transform: translate(0px, 0px);
    }
    .menu2 {
        transform: translate(0px, 0px);
    }
    .logo1 {
        transform: scale(1,1);
        transform-origin:top;
    }
    .logo2 {
        transform: scale(1,1);
        transform-origin:top;
    }
    #header {
        padding: 20px 0 0 0;
    }
    .wrap_el {
        width: 48%;
        margin-right: 1%;
        margin-left: 1%;
        padding-bottom: 48%;

    }
}

@media all and (max-width: 900px) {
    
	 .gallery:nth-child(3n+4) {
     margin-right: 16px!important;
     }
	.left25 {
		width: 50%!important;
        margin: 0 0 30px 0;
		text-align:center;
	}
	.booking form input, form textarea {
		width:90%!important;
	}
	.blue_ico1, .blue_ico2, .blue_ico3 {
	margin-left:10px;
	}
	.apartment_left {
        width: 100%;
    }

    .apartment_right {
        width: 100%;
        margin-top: 30px;
    }
    .slider-for .slick-slide {
        height: 400px;
    }
    .xxx{
        height: 400px;
        background-size: auto 130%;
    }
    .space{
        display: none;
    }
    #family{
        margin-bottom: 0px;
    }
    .home, .home2 {
        margin-top: 0px;
    }
    .slider-nav{
        display: none !important;
    }
    .slick-arrow{
        display: none !important;
    }
    .slider_des{
        display: none;
    }
    .slider_des2{
        display: none;
    }
    #slider div.im {
        height: auto;
    }

    .owl-theme .owl-dots {
        top: 105%;
    }

    .home_blocks {
        width: 100%;
        margin: 0 0;
        float: left;
    }

    .home .content .container {
        padding: 10px 20px 10px 0;
    }

    .home2 .content .container {
        padding: 10px 20px 10px 0;
    }

    .home .image, .home2 .image {
        width: 100%;
        background: transparent;
        position: relative;
        float: left;
    }

    .home .content, .home2 .content {
        width: 100%;
        float: left;
    }

    .home .content .container, .home2 .content .container {
        width: auto;
    }

    #left {
        width: 100%;
        float: left;
    }

    #right {
        width: 100%;
        margin-top: 20px;
        float: right;
    }

    #slider {
        height: auto;
        margin-bottom: 0px;
    }
    #header .phone {
        width: 100%;
    }

    #header .email {
        width: 100%;
        margin-top: 10px;
    }

    #header .phoneContainer {
        white-space: nowrap;
    }
    
    #three_tiles{
        margin: 0 auto;
        max-width: 1700px;
        height: 560px;
        margin-bottom: 60px;
    }
    .tile{
        width: 100%;
        float: left;
        height: 100%;
        margin-right: 0px;
        margin-bottom: 120px;
    }
    #tile1{
        background: transparent url('../images/photo_1.jpg') top no-repeat;
    }
    #tile2{
        background: transparent url('../images/photo_2.jpg') top no-repeat;
    }
    #tile3{
        background: transparent url('../images/photo_3.jpg') top no-repeat;
    }

    .blue_tile{
        background: #4f69bf;
        position: relative;
        top: 398px;
        left: 0;
		height:120px;
        right: 0;
        margin: 0 auto;
        padding:30px 30px 0 30px;
        float: none;
        max-width: 505px;
    }
	#three_tiles {
    height: 450px;
    }
}

@media all and (max-width: 800px) {
    #apartments_table {
        display: none;
    }

    #apartments_responsive {
        display: block;
    }

    .owl-carousel-photo .owl-prev {
        left: -25px;
    }

    .owl-carousel-photo .owl-next {
        right: -25px;
    }

}

#slider h2 {
    font-size: 35px;
    line-height: 40px;
    margin: 0 0 15px 0;
    padding: 15px 30px;
}
@media all and (max-width: 700px) {
    

	#p1{
    width: 100%!important;
	}
   #p2{
    width: 100%!important;
   }
   #p3{
    width: 100%!important;
   }
	
	#slider{
        height: 400px;
    }
    .im{
        height: 400px !important;
        background-size: auto 100%;
        background-position-x: 50%;
        background-repeat: no-repeat;
    }
    .im img {
        display: none !important;
    }
    .slider_href img {
        display: inline;
    }
}
@media all and (max-width: 700px) {
    
	.gallery {
        width: 100%;
        margin-right: 2%;
        margin-bottom: 20px;
        position: relative;
        float: left;
    }
	.slider-for .slick-slide {
        height: 300px;
    }
    .xxx{
        height: 300px;
    }
    #slider h2 {
        font-size: 25px;
        line-height: 30px;
        margin: 0 0 00px 0;
        padding: 15px 30px;
    }

    #slider h3 {
        font-size: 24px;
    }

    .col-2, .left50, .left33, .lef66 {
        width: 100%;
        margin: 0 0 30px 0;
    }
	.left25 {
		width: 100%!important;
        margin: 0 0 30px 0;
		text-align:center;
	}

    #apartment_title {
        text-align: left;

    }

    #apartment_title .btn {
        float: left;
    }

    .col-3 {
        width: 48%;
        margin-right: 4%;
    }

    .col-3:nth-child(3n+1) {
        clear: none;
    }

    .col-3:nth-child(3n+3) {
        margin-right: 4%;
    }

    .col-3:nth-child(2n+1) {
        clear: left;
    }

    .col-3:nth-child(2n+2) {
        margin-right: 0;
    }

    .gallery_content .col-3 {
        width: 24%;
        margin-right: 1%;
    }

    .gallery_content .col-3:nth-child(3n+1) {
        clear: none;
    }

    .gallery_content .col-3:nth-child(3n+3) {
        margin-right: 1%;
    }

    .gallery_content .col-3:nth-child(6n+1) {
        clear: none;
    }

    .gallery_content .col-3:nth-child(6n+6) {
        margin-right: 1%;
    }

    .gallery_content .col-3:nth-child(4n+1) {
        clear: left;
    }

    .gallery_content .col-3:nth-child(4n+4) {
        margin-right: 0;
    }

    #footer .center {
        width: 100%;
        float: left;
    }
    #fbLike1, #fbLike0, #overlap1 {
        display: none;
    }

    #footer .p {
        width: 100%;
        margin-top: 15px;
        float: left;
    }

    .apartment_left {
        margin-top: 20px;
        width: 100%;
    }

    .apartment_right {
        margin-top: 20px;
        width: 100%;
    }

    .apartment_right .image {
        width: 100%;
        background: transparent !important;
    }

    .apartment_right .image img.main {
        display: block;
    }

    .apartment_right .icons {
        width: 100%;
        margin-top: 100px;
    }
}
@media all and (max-width: 700px) {
    .news_title1{
        font-size: 20px;
    }
    .news_title2{
        font-size: 20px;
    }
    #family_desc{

        margin-left: 5%;
    }
}
@media all and (max-width: 550px) {
    .blue_header{
        top: -5px;
        left: 9px;
    }
    .blue_ico1, .blue_ico2, .blue_ico3{
        width: 60px;
        height: 60px;
        background-size: 100%;
    }
    .slider-for .slick-slide {
    }
    .xxx{
        height: 250px;
    }
	
	#family_desc {
    width: 380px;
	}
    .gallery {
        width: 100%;
        margin-right: 2%;
        margin-bottom: 20px;
        position: relative;
        float: left;
    }

    .gallery:nth-child(3n+3) {
        margin-right: 0;
    }

    .gallery:nth-child(3n+1) {
        clear: left;
    }
    .gallery .name {
        position: absolute;
        background-color: rgba(0, 0, 0, 0.8);
        font-size: 20px;
        padding: 10px 20px;
        white-space: nowrap;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .gallery .name a {
        color: #fff;
    }

    .gallery .name a:hover {
        text-decoration: none;
    }


    .gallery_single_header h1{
        display: inline-block;
        font-size: 30px;
    }
    .wrap_el {
        width: 98%;
        margin-right: 1%;
        margin-left: 1%;
        padding-bottom: 98%;

    }

    #image_text h1 {
        font-size: 32px;
    }

    #image_text h2 {
        font-size: 30px;
    }

    #slider h3 {
        font-size: 18px;
    }

    #slider h2 {
        font-size: 20px;
        line-height: 22px;
        margin: 0 0 0px 0;
        padding: 10px 20px;
    }
    #blue_div ul li img {
        margin: 0 auto;
    }
    #blue_div ul{
        padding-left: 0px;
    }
    #blue_div ul li{
        width: 100%;
        height: 110px;
        font-size: 18px;
        text-align: center;
        line-height: 95px;
    }
    #blue_div ul li span{
        position: static;
    }

}



@media all and (max-width: 580px) {
    .blue_tile{
        width: 370px;
    }
    .tile{
        margin-bottom: 128px;
    }
}





@media all and (max-width: 500px) {

    .home .content .container, .home2 .content .container {
        padding: 40px 15px;
    }
    #family_desc{

        width: 320px;

    }
    #image {
        height: 250px;
    }

    #image h1 {
        font-size: 26px;
    }

    .col-4 {
        width: 100%;
        margin: 0 0 30px 0;
    }

    .col-3 {
        width: 100%;
        margin-right: 0%;
    }

    .col-3:nth-child(3n+3) {
        margin-right: 0%;
    }

    .slides-navigation a.prev, .slides-navigation a.next {
        display: none !important;
    }


}

@media all and (max-width: 450px) {

    #image_text h1 {
        font-size: 28px;
    }

    #image_text h2 {
        font-size: 24px;
    }
    #dopis{
        display: none;
    }
    #family_desc {
        margin-left: 0%;
    }

}
@media all and (max-width: 430px) {
    .blue_tile {
        width: 100%;
        padding: 15px 0px 0px 0px;
    }
    .blue_text{
        width: 330px;
        margin: 0 auto;
        font-size: 15px;
    }
    #footer_logo{
        width: 100%;
        background-size: 100%;
    }
    .blue_header h2 {
        font-size: 24px !important;
    }
    .blue_tile img {
        margin-right: 35px;
    }
    .blue_header p {
        font-size: 13px;
    }
    #family_text{
        width: 320px;
        margin: 0 auto;
		padding: 10px;
        font-size: 15px;
    }
    #family_h21{
        font-size: 22px;
        width: 320px;
        margin: 0 auto;
        display: block;
        margin-bottom: 30px;
 
    }
    #family_h22{
        font-size: 27px;
        width: 330px;
        margin: 0 auto;
        display: block;
        margin-bottom: 50px;
    }
    #family{
        height: 750px;
    }
    #family_desc{
        top: 80px;
    }
}
@media all and (max-width: 400px) {
  
    #family_text{
        width: 320px;
        margin: 0 auto;
		padding: 10px;
        font-size: 15px;
    }
	#family_desc {
      padding: 15px;
	}

}