@media screen and (max-width: 991px) {
    #slider .item {
        margin: 0;
        padding: 3rem 0 8rem;
    }

    #slider .item h3 {
        font-size: 1.2rem;
    }

    #slider .item h2 {
        font-size: 2rem;
        max-width: 100%;
    }


    #slider .item .text p,
    .section-title p,
    p {
        font-size: .85rem;
        font-weight: 300;
    }

    .entry-content input[type="submit"],
    .btn-main a {
        padding: 0.6rem 1rem;
        font-size: .7rem;
    }

    .scroll-down {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .scroll-down a {
        font-size: .8rem;
        ;
        padding: 0.6rem 0.8rem;
    }

    .service {
        padding: 3rem 0 1rem
    }

    .rooms {
        padding: 3rem 0 3rem
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .rooms .entry-content h2 {
        margin: 1rem 0.5rem;
        font-size: 1.4rem;
    }

    #footer-wrapper {
        padding: 3rem 0;
    }

    #block-10,
    #block-11,
    #block-12 {
        text-align: left;
    }


    .footer-bottom {
        padding: 3rem 0 0rem 0;
    }

    .page-title {
        padding: 2.5rem 0;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .page-wrapper {
        padding: 3rem 0;
    }

    body.page-id-115 .wp-block-columns,
    body.page-id-122 .wp-block-columns {
        gap: 0em;
    }

    p.has-background {
        padding: 0.3rem;
    }

    #image-map-pro-9f69af73-cb79-42f1-accd-420daf3ce358 .imp-ui-light.imp-object-menu-on-top .imp-object-list-item,
    #image-map-pro-9f69af73-cb79-42f1-accd-420daf3ce358 .imp-ui-light .imp-ui-layers-select,
    #image-map-pro-fa9fc084-05ca-4ec5-8448-e4ddc2da8756 .imp-ui-light.imp-object-menu-on-top .imp-object-list-item,
    #image-map-pro-fa9fc084-05ca-4ec5-8448-e4ddc2da8756 .imp-ui-light .imp-ui-layers-select {
        font-size: .8rem !important;
        max-width: 100%;
    }

    .imp-ui-top-left {
        max-width: 70%;
    }

    .imp-ui-layers-menu-wrap {
        width: 75%;
    }

    .entry-content .imp-ui-light .imp-menu-button {
        fill: #fff !important;
        background: #cf2e2e !important;
        box-shadow: none !important;
        border: none !important;
        width: 35px !important;
        height: 35px !important;
    }

    .imp-object-list-item {
        z-index: 1;
        padding: 0 1rem;
        line-height: 34px;
        height: 34px;
    }

    .entry-content h2 {
        font-weight: 700;
        margin: 2rem 0 1rem;
        font-size: 1.4rem;
    }

    .mh-main .row {
        margin: 0 -15px;
        align-items: center;
    }

    .phone span,
    .envelope span {
        display: none
    }


    .mhm-contact .social::before {
        margin: 0 1rem 0 2rem;
    }

    .mhm-btn {
        display: none
    }

    .entry-content h3 {
        font-size: 1rem;
    }

    /* Całe sekcje z tabelami – przewijanie w poziomie */
    .pw-price-history .ceny-mieszkan,
    .pw-price-history .ceny-dodatki {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pw-price-history .ceny-table,
    .pw-price-history .history-table {
        font-size: 0.85rem;
        min-width: 720px;
        /* zapobiega zbytniemu zwężaniu */
    }

    /* Komórki bardziej kompaktowe */
    .pw-price-history .ceny-table th,
    .pw-price-history .ceny-table td,
    .pw-price-history .history-table th,
    .pw-price-history .history-table td {
        padding: 0.5rem 0.6rem;
        white-space: nowrap;
    }

    /* Guzik +/– mniejszy, ale bardziej czytelny */
    .pw-price-history .toggle-history {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.9rem;
        line-height: 1.7rem;
    }

    /* Historia wierszy – padding mniejszy */
    .pw-price-history .history-row td {
        padding: 0.75rem;
    }

    /* Nagłówki w historii trochę bardziej kompaktowe */
    .pw-price-history .history-table th {
        font-size: 0.75rem;
    }

}

@media (min-width: 0px) and (max-width:340px) {}

@media (min-width: 340px) and (max-width:576px) {}

@media (min-width: 0px) and (max-width:400px) {}

@media (min-width: 400px) and (max-width:576px) {}

@media (min-width: 0px) and (max-width:576px) {
    .mh-main {
        padding: 1rem 0 0 0;
    }

    .mhm-contact {
        justify-content: center;
        margin: .5rem 0 1rem 0;
    }
}

@media (min-width: 0px) and (max-width:768px) {

    #block-10 p {
        font-size: 1.2rem;
    }

    #slider .item .text {
        margin: 0 auto 2.5rem;
        max-width: 100%;
    }
}

@media (min-width: 576px) and (max-width:768px) {
    .mh-main {
        padding: 1rem 0 1rem 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #slider .item .text {
        margin: 0 auto 2.5rem;
        max-width: 75%;

    }

    #block-10 p {
        font-size: 1rem;
    }
}

@media (min-width: 991px) and (max-width:1024px) {}

@media (min-width: 991px) and (max-width:1200px) {
    .mh-main .row {
        margin: 0 -15px;
        align-items: center;
    }

    .phone span,
    .envelope span {
        display: none
    }

    .mh-main {
        padding: 1rem 0;
    }

    .mhm-contact .social::before {
        margin: 0 1rem 0 2rem;
    }

    .navbar-light .navbar-nav .nav-link {
        margin: 0 0.1rem;
        padding: 0.2rem 0.2rem;
        font-size: .7rem;
        text-transform: none;
    }

    .entry-content input[type="submit"],
    .btn-main a {
        padding: 0.6rem 0.6rem;
        font-size: .7rem;
        text-transform: none;
    }

    #slider .item {
        margin: 0;
        padding: 4rem 0 8rem;
    }

    #slider .item h3 {
        font-size: 1.4rem;
    }

    #slider .item h2 {
        font-size: 3rem;
        max-width: 100%;
    }


    #slider .item .text p,
    .section-title p,
    p {
        font-size: .85rem;
        font-weight: 300;
    }

    .scroll-down {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .scroll-down a {
        font-size: .8rem;
        ;
        padding: 0.6rem 0.8rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .rooms .entry-content h2 {
        margin: 1rem 0.5rem;
        font-size: 1.4rem;
    }

    #footer-wrapper {
        padding: 4rem 0;
    }


    .footer-bottom {
        padding: 3rem 0 0rem 0;
    }

    .page-title {
        padding: 2.5rem 0;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .page-wrapper {
        padding: 3rem 0;
    }


    p.has-background {
        padding: 0.6rem;
    }

    .entry-content h2 {
        font-weight: 700;
        margin: 2rem 0 1rem;
        font-size: 1.4rem;
    }

    #block-10 p {
        font-size: 1.2rem;
    }

    .entry-content h3 {
        font-size: 1rem;
    }

    .entry-content .imp-ui-light .imp-menu-button {
        fill: #fff !important;
        background: #cf2e2e !important;
        box-shadow: none !important;
        border: none !important;
        width: 35px !important;
        height: 35px !important;
    }

    .imp-object-list-item {
        z-index: 1;
        padding: 0 1rem;
        line-height: 34px;
        height: 34px;
    }
}

@media (min-width: 1200px) and (max-width:1380px) {
    .mh-main .row {
        margin: 0 -15px;
        align-items: center;
    }

    .phone span,
    .envelope span {
        display: none
    }

    .mh-main {
        padding: 2rem 0;
    }

    .mhm-contact .social::before {
        margin: 0 1rem 0 2rem;
    }

    .navbar-light .navbar-nav .nav-link {
        margin: 0 0.1rem;
        padding: 0.2rem 0.2rem;
        font-size: .7rem;
    }

    .entry-content input[type="submit"],
    .btn-main a {
        padding: 0.6rem 0.6rem;
        font-size: .7rem;
    }

    #slider .item {
        margin: 0;
        padding: 6rem 0 8rem;
    }

    #slider .item h2 {
        font-size: 4rem;
    }

    .entry-content .imp-ui-light .imp-menu-button {
        fill: #fff !important;
        background: #cf2e2e !important;
        box-shadow: none !important;
        border: none !important;
        width: 35px !important;
        height: 35px !important;
    }

    .imp-object-list-item {
        z-index: 1;
        padding: 0 1rem;
        line-height: 34px;
        height: 34px;
    }
}

@media (min-width: 1380px) and (max-width:1656px) {

    .entry-content input[type="submit"],
    .btn-main a {
        padding: 0.6rem 0.6rem;
    }

    .navbar-light .navbar-nav .nav-link {
        margin: 0 0.3rem;
        padding: 0.2rem 0.2rem;
        font-size: .7rem;
    }

    .mhm-contact .envelope {
        margin-left: 0.5rem;
    }

    .mhm-contact .social::before {
        margin: 0 0rem 0 1rem;
    }

    .phone span {
        display: none
    }

    #slider .item {
        margin: 0;
        padding: 6rem 0 8rem;
    }

    #slider .item h2 {
        font-size: 4rem;
    }

    .entry-content .imp-ui-light .imp-menu-button {
        fill: #fff !important;
        background: #cf2e2e !important;
        box-shadow: none !important;
        border: none !important;
        width: 35px !important;
        height: 35px !important;
    }

    .imp-object-list-item {
        z-index: 1;
        padding: 0 1rem;
        line-height: 34px;
        height: 34px;
    }
}

@media (min-width: 991px) {
    .service .col-lg-2 {
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 20%;
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1170px;
        max-width: 100%;
    }
}


/** CSS for small screen */

@media (min-width: 0px) and (max-width:576px) {

    .w15 {
        float: left;
        width: 15%;
    }

    .w20 {
        float: left;
        width: 20%;
    }

    .w30 {
        float: left;
        width: 30%;
    }

    .w40 {
        float: left;
        width: 40%;
    }

    .w50 {
        float: left;
        width: 50%;
    }

    .w60 {
        float: left;
        width: 60%;
    }

    .w70 {
        float: left;
        width: 70%;
    }
}

/** CSS for Menu on Mobile */

@media (min-width: 0px) and (max-width:991px) {
    .navbar-collapse {
        display: none;
    }

    .collapse.show {
        display: block;
        position: absolute;
        width: 100%;
        z-index: 9999;
        margin-top: 2rem;
        background: #0c0c0c;
    }

    .collapse.show .nav-link {
        text-align: right;
        color: #fff;
        padding: .25rem;
        margin: 0;
        font-size: .7rem;
        background: #0c0c0c;
    }

    .navbar-light .navbar-toggler-icon {
        background: #cb2226;
        color: #fff;
        padding: 0.5rem;
    }

    .navbar-light .navbar-brand,
    .navbar-light .navbar-toggler {
        border: none;
    }

    .navbar-toggler {
        -webkit-align-self: flex-end;
        -ms-flex-item-align: flex-end;
        align-self: flex-end;
        padding: 0;
        font-size: 1rem;
        line-height: 1;
        background: 0 0;
        border: none;
        border-radius: 0;
    }

    .navbar-toggler-icon {
        display: inline-block;
        width: 100%;
        height: 100%;
        vertical-align: middle;
        content: "";
        background: no-repeat center center;
        -webkit-background-size: 100% 100%;
        background-size: 100% 100%;
        font-size: 1rem
    }
}