.mobile{
    display: block;
}
.nomobile{
    display: none;
}

#contact{
    margin: 0 auto;
    width: 600px;
    float: none;
}

#history {
    margin-left: 0;
    margin-top: 20px;
    float: left;
}

.center {
    width: 100%;
    float: left;
}

#footer .center {
    width: 600px;
    float: none;
}
.pad{
    padding-left: 7%;
}
.mcontainer {
    padding: 0 15px;
}

#menu ul {
    text-align: center;
}

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

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

#header.home #logo {
    width: 100%;
    text-align: center;
}

#header.home #logo img {
    max-width: 380px;
}

#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;
}

#logo {
    width: 100%;
    margin: 0;
    text-align: center;
}

#menu {
    width: 100%;
    margin: 0 0 20px 0;
    float: left;
}

#header {
    position: relative;
}

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

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

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

    #title, #title.title2 {
        background: #40642f;
    }
    #footer {
	background: #3bb5e9!important;
	}
}

@media all and (max-width: 1000px) {
    .phone{
        margin-bottom: 15px;
    }

    #showmenu {
        display: block;
    }

    ul.main i {
        display: block;
    }

    #menu ul {
        display: none;
    }

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

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

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

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

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

}

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

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

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



}

@media all and (max-width: 800px) {
    #tlo, #tlo2{
        background-size: 150%;
    }
    #apartments_table {
        display: none;
    }

    #apartments_responsive {
        display: block;
    }

    .home .content .container, .home2 .content .container, .home3 .content .container {
        width: 70%;
    }
}

@media all and (max-width: 700px) {
    .pokoj1{
            padding: 25px 20px;

    }
    .pokoj_cena{
        position: static;
        margin-bottom: 20px;

    }
    .pokoj_tytul{
        display: block;
        margin-bottom: 30px;
        margin-top: 30px;

    }
    .clear_boy2{
        clear: both;
    }
    .fotox {
        width: 100% !important;
    }
    .przycisk{
        top: 20px;
        right: 20px;
    }
    .col-2, .left50, .left33, .lef66 {
        width: 100%;
        margin: 0 0 30px 0;
    }

    #apartment_title {
        text-align: left;

    }

    #apartment_title .btn {
        float: left;
    }

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

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

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

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

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

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

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

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

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

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

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

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

    #footer .center {
        width: 100%;
        float: left;
    }

    #fbLike1, #fbLike0 {
        display: none;
    }

    #footer .p {
        width: 100%;
        margin-top: 15px;
        float: left;
    }
	h1 {
	color: #fff!important;
	}
}
@media all and (max-width: 620px) {
    #contact{
        display: none;
    }
    #contact2{
        display: block;
        clear: both;
    }
    #phons{
        clear: both;
        width: 370px;
        margin: 0 auto;
        height: 55px;
    }
    .phone{
        margin-right: 0px;
    }
    #logo{
        margin-bottom: 25px;
    }
    .p1{
        margin-right: 20px;
    }
    .mail{
        float: none;
        margin:0 auto;
    }
    #menu{
        margin-bottom: 0px;
    }
    #menu ul.r{
        top: 300px;
    }
	
}
@media all and (max-width: 600px) {
    #podfooter{
    color: #0f4279;
    text-align: center;
    padding: 7px 0px 7px 0px;
}
    .pad{
        padding-left: 0;
    }
    .left3x{
        width: 240px;
        margin: 0 auto;
        float: none;
    }
    .home .image, .home2 .image, .home3 .image {
        width: 100%;
        background: transparent;
        position: relative;
        float: left;
    }

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

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

    .home .content .container, .home2 .content .container, .home3 .content .container {
        width: auto;
    }
 .col-5 {
        width: 100%;
        margin-right: 4%;
    }

    .gallery_content .col-5 {
        width: 100%;
        margin-right: 1%;
    }
}

@media all and (max-width: 550px) {
    #tlo, #tlo2{
        background-size: 250%;
    }
    #image_text h1 {
        font-size: 32px;
    }

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

    #products_slider, #purpose_slider {
        width: 80%;
        margin-left: 10%;
    }

    #slider h2 {
        font-size: 26px;
        margin: 0 0 30px 0;
    }

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

}

@media all and (max-width: 500px) {
    .przycisk{
        bottom: 10px;
        top: auto;
    }
    .pokoj1{
        padding-bottom: 120px;

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

    #image {
        height: 250px;
    }

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

    #logo {
        width: 100%;
        background-size: contain;
        margin-top: 20px;
    }

    .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%;
    }



}

@media all and (max-width: 450px) {
    .przycisk{
        bottom: 10px;
        left: calc(50% - 30px);
    }
    #header.home #logo img {
        max-width: 100%;
    }

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

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

    #logo {

    }
    #phons{
        width: 175px;
    }
    .phone{
        float: none;
    }
    .mail{

    }
    #menu{
        margin-bottom: 5px;
    }
    #menu ul.r{
        top: 300px;
    }
}