/**
Theme Name: OldTownApartmentsCode
Author: OldTownApartments
Author URI: https://oldtownapartments-torun.pl/
Description: OTA
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oldtownapartmentscode
Template: astra
*/
/* ==================================================
   OLD TOWN APARTMENTS — ZMIENNE GLOBALNE
================================================== */

:root {
    --ota-brown: #4a1714;
    --ota-red: #a8382f;
    --ota-red-hover: #8f2e27;
    --ota-gold: #c9944a;
    --ota-gold-hover: #d9a65a;
    --ota-cream: #f4ecdf;
    --ota-light: #faf7f1;
    --ota-white: #ffffff;
}


/* ==================================================
   NAGŁÓWEK — USTAWIENIA WIZUALNE
   Przyklejenie i zmiana tła są obsługiwane przez JS.
================================================== */

#masthead {
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
}

#masthead .ast-primary-header-bar {
    min-height: 68px;
    border-bottom: 1px solid transparent;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* ==================================================
   LOGO W NAGŁÓWKU
================================================== */

#masthead .custom-logo-link {
    display: flex;
    align-items: center;
}

#masthead .custom-logo {
    display: block;
    width: 28px;
    max-width: 28px;
    height: auto;
}


/* ==================================================
   PRZYCISK „REZERWUJ” W NAGŁÓWKU
================================================== */

#masthead .ast-header-button-1 .ast-custom-button,
#masthead .ast-custom-button {
    color: var(--ota-white) !important;
    background-color: var(--ota-red) !important;
    border: 1px solid var(--ota-red) !important;

    border-radius: 5px;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

#masthead .ast-header-button-1 .ast-custom-button:hover,
#masthead .ast-custom-button:hover {
    color: var(--ota-white) !important;
    background-color: var(--ota-red-hover) !important;
    border-color: var(--ota-red-hover) !important;

    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 23, 20, 0.22);
}


/* ==================================================
   HERO — GŁÓWNY KONTENER
================================================== */

.ota-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    align-items: stretch;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
}


/* ==================================================
   HERO — OBRAZ Z WIDGETU IMAGE BY SOFTLITE
================================================== */

.ota-hero-image {
    position: absolute !important;
    inset: 0;
    z-index: 0;

    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

.ota-hero-image .elementor-widget-container {
    width: 100% !important;
    height: 100% !important;
}

.ota-hero-image img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover;
    object-position: center center;
}


/* ==================================================
   HERO — GRADIENT
================================================== */

.ota-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(10, 4, 3, 0.92) 0%,
            rgba(10, 4, 3, 0.78) 25%,
            rgba(10, 4, 3, 0.54) 48%,
            rgba(10, 4, 3, 0.24) 72%,
            rgba(10, 4, 3, 0.08) 100%
        ),
        linear-gradient(
            180deg,
            rgba(10, 4, 3, 0.30) 0%,
            rgba(10, 4, 3, 0.06) 45%,
            rgba(10, 4, 3, 0.48) 100%
        );
}

.ota-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background: rgba(20, 7, 4, 0.08);
}


/* ==================================================
   HERO — KONTENER TREŚCI
================================================== */

.ota-hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    width: min(100%, 1180px);
    min-height: 100vh;
    min-height: 100svh;

    margin: 0 auto;

    padding:
        clamp(180px, 22vh, 225px)
        clamp(24px, 4vw, 48px)
        clamp(45px, 6vh, 70px);

    transform: translateX(-20px);
}


/* ==================================================
   HERO — ETYKIETA „TORUŃ · OLD TOWN”
================================================== */

.ota-hero-eyebrow {
    position: relative;

    width: fit-content;
    margin: -10px 0 21px 36px;

    color: rgba(255, 255, 255, 0.95);

    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.ota-hero-eyebrow::before {
    content: "";
    position: absolute;

    top: 50%;
    right: calc(100% + 13px);

    width: 24px;
    height: 1px;

    background-color: var(--ota-gold);

    transform: translateY(-50%);
}

.ota-hero-eyebrow .elementor-widget-container,
.ota-hero-eyebrow p {
    margin: 0;
}


/* ==================================================
   HERO — NAGŁÓWEK H1
================================================== */

.ota-hero-title {
    width: min(100%, 690px);
    margin: 0 0 22px;
}

.ota-hero-title h1,
.ota-hero-title .elementor-heading-title {
    margin: 0;

    color: var(--ota-white) !important;

    font-size: clamp(48px, 4.2vw, 72px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -1.8px;

    text-wrap: balance;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.18),
        0 5px 24px rgba(0, 0, 0, 0.12);
}


/* ==================================================
   HERO — OPIS
================================================== */

.ota-hero-description {
    width: min(100%, 590px);
    margin: 0 0 34px;
}

.ota-hero-description,
.ota-hero-description p {
    color: rgba(255, 255, 255, 0.95) !important;

    font-size: clamp(15px, 1.05vw, 17px);
    font-weight: 400;
    line-height: 1.55;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.ota-hero-description p {
    margin: 0;
}


/* ==================================================
   HERO — KONTENER PRZYCISKÓW
================================================== */

.ota-hero-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;

    width: auto;
    margin: 7px 0 42px;
}

.ota-hero-button-primary .elementor-button,
.ota-hero-button-secondary .elementor-button {
    min-height: 44px;
    padding: 13px 21px;

    border-radius: 4px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}


/* ==================================================
   HERO — PRZYCISK BOOKING
================================================== */

.ota-hero-button-primary .elementor-button {
    color: #20120d !important;
    background-color: var(--ota-gold) !important;
    border: 1px solid var(--ota-gold) !important;
}

.ota-hero-button-primary .elementor-button:hover {
    color: #20120d !important;
    background-color: var(--ota-gold-hover) !important;
    border-color: var(--ota-gold-hover) !important;

    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 12, 6, 0.25);
}


/* ==================================================
   HERO — PRZYCISK „ZOBACZ APARTAMENTY”
================================================== */

.ota-hero-button-secondary .elementor-button {
    color: var(--ota-white) !important;

    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.ota-hero-button-secondary .elementor-button:hover {
    color: var(--ota-brown) !important;

    background-color: var(--ota-white) !important;
    border-color: var(--ota-white) !important;

    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 12, 6, 0.20);
}

.ota-hero-buttons .elementor-button-icon {
    display: inline-flex;
    align-items: center;
}


/* ==================================================
   HERO — TRZY ZALETY I LINIA
================================================== */

.ota-hero-benefits {
    position: relative;

    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    align-items: center;

    width: min(100%, 660px);

    column-gap: 38px;
    row-gap: 16px;

    margin-top: 0;
    padding-top: 27px;
}

.ota-hero-benefits::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 92%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(201, 148, 74, 0.58) 0%,
            rgba(255, 255, 255, 0.16) 42%,
            rgba(255, 255, 255, 0.04) 78%,
            rgba(255, 255, 255, 0) 100%
        );
}

.ota-hero-benefits > .e-con,
.ota-hero-benefits > .elementor-element {
    width: auto;
    min-width: 0;
}

.ota-hero-benefits,
.ota-hero-benefits p,
.ota-hero-benefits .elementor-icon-list-text,
.ota-hero-benefits .elementor-heading-title {
    color: rgba(255, 255, 255, 0.93) !important;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.ota-hero-benefits svg,
.ota-hero-benefits i {
    color: var(--ota-gold) !important;
    fill: var(--ota-gold) !important;
}


/* ==================================================
   PASEK CZTERECH ZALET POD HERO
   Dynamic Card Box Softlite
================================================== */

.ota-features {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--ota-cream);
}

.ota-features-box {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ota-features-box > .elementor-widget-container {
    width: 100% !important;
}

/* Główna sekcja generowana przez Softlite */
.ota-features-box .softlite-dynamic-card-box {
    width: 100% !important;
    margin: 0 !important;
    padding: 38px 24px !important;

    background: var(--ota-cream) !important;
}

/* Właściwy wrapper czterech elementów */
.ota-features-box .softlite-dynamic-card-box > .tvgp3pk {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: start !important;

    width: min(100%, 1180px) !important;
    margin: 0 auto !important;

    gap: 40px !important;
}

/* Pojedynczy element */
.ota-features-box .um3gniot {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;
    min-width: 0 !important;

    text-align: center !important;
}

/* Okrąg ikony */
.ota-features-box .um3gniot > span:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;

    margin: 0 auto 14px !important;

    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.76) !important;
    border: 1px solid rgba(74, 23, 20, 0.05) !important;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Ikony */
.ota-features-box .um3gniot svg {
    width: 20px !important;
    height: 20px !important;

    color: var(--ota-red) !important;
    stroke: var(--ota-red) !important;
}

.ota-features-box .um3gniot svg path,
.ota-features-box .um3gniot svg circle,
.ota-features-box .um3gniot svg line,
.ota-features-box .um3gniot svg polyline {
    stroke: var(--ota-red) !important;
}

/* Tekst pod ikoną */
.ota-features-box .softlite-dynamic-card-box-text-1 {
    display: block !important;
    width: 100% !important;

    color: var(--ota-brown) !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

/* Hover */
.ota-features-box .um3gniot:hover > span:first-child {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 8px 22px rgba(74, 23, 20, 0.08);
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 921px) {
    .ota-features-box .softlite-dynamic-card-box > .tvgp3pk {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 34px 24px !important;
    }
}

/* ==================================================
   TELEFON
================================================== */

@media (max-width: 600px) {
    .ota-features-box .softlite-dynamic-card-box {
        padding: 30px 20px !important;
    }

    .ota-features-box .softlite-dynamic-card-box > .tvgp3pk {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .ota-features-box .um3gniot {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;

        text-align: left !important;
    }

    .ota-features-box .um3gniot > span:first-child {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;

        margin: 0 14px 0 0 !important;
    }

    .ota-features-box .softlite-dynamic-card-box-text-1 {
        text-align: left !important;
    }
}
/* ==================================================
   HERO — NIŻSZE EKRANY LAPTOPÓW
================================================== */

@media (min-width: 922px) and (max-height: 780px) {

    .ota-hero-content {
        padding-top: 140px;
        padding-bottom: 35px;
    }

    .ota-hero-eyebrow {
        margin-top: 0;
        margin-bottom: 16px;
    }

    .ota-hero-title {
        margin-bottom: 16px;
    }

    .ota-hero-title h1,
    .ota-hero-title .elementor-heading-title {
        font-size: clamp(46px, 4vw, 62px);
    }

    .ota-hero-description {
        margin-bottom: 22px;
    }

    .ota-hero-buttons {
        margin-top: 0;
        margin-bottom: 30px;
    }

    .ota-hero-benefits {
        padding-top: 21px;
    }
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 921px) {

    .ota-hero-image img {
        object-position: 58% center;
    }

    .ota-hero::before {
        background:
            linear-gradient(
                90deg,
                rgba(14, 6, 4, 0.84) 0%,
                rgba(14, 6, 4, 0.66) 54%,
                rgba(14, 6, 4, 0.25) 100%
            ),
            linear-gradient(
                180deg,
                rgba(12, 5, 4, 0.26) 0%,
                rgba(12, 5, 4, 0.08) 48%,
                rgba(12, 5, 4, 0.48) 100%
            );
    }

    .ota-hero-content {
        padding:
            145px
            clamp(30px, 6vw, 55px)
            50px;

        transform: none;
    }

    .ota-hero-title {
        width: min(100%, 650px);
    }

    .ota-hero-title h1,
    .ota-hero-title .elementor-heading-title {
        font-size: clamp(46px, 7vw, 62px);
    }

    .ota-hero-benefits {
        width: min(100%, 620px);
        column-gap: 24px;
    }

    .ota-features-box > .elementor-widget-container > div {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 32px 24px !important;
    }
}


/* ==================================================
   TELEFON
================================================== */

@media (max-width: 767px) {

    .ota-hero-image img {
        object-position: 62% center;
    }

    .ota-hero::before {
        background:
            linear-gradient(
                90deg,
                rgba(15, 6, 4, 0.80) 0%,
                rgba(15, 6, 4, 0.58) 100%
            ),
            linear-gradient(
                180deg,
                rgba(15, 6, 4, 0.22) 0%,
                rgba(15, 6, 4, 0.18) 45%,
                rgba(15, 6, 4, 0.72) 100%
            );
    }

    .ota-hero-content {
        justify-content: flex-end;

        padding:
            115px
            20px
            32px;

        transform: none;
    }

    .ota-hero-eyebrow {
        margin: 0 0 17px 31px;

        font-size: 9px;
        letter-spacing: 3px;
    }

    .ota-hero-eyebrow::before {
        width: 20px;
        right: calc(100% + 11px);
    }

    .ota-hero-title {
        width: 100%;
        margin-bottom: 17px;
    }

    .ota-hero-title h1,
    .ota-hero-title .elementor-heading-title {
        font-size: clamp(39px, 11.5vw, 52px);
        line-height: 1;
        letter-spacing: -1.2px;
    }

    .ota-hero-description {
        width: 100%;
        margin-bottom: 21px;
    }

    .ota-hero-description,
    .ota-hero-description p {
        font-size: 14px;
        line-height: 1.5;
    }

    .ota-hero-buttons {
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        gap: 10px;

        margin: 0 0 28px;
    }

    .ota-hero-button-primary,
    .ota-hero-button-secondary {
        width: 100%;
    }

    .ota-hero-button-primary .elementor-button,
    .ota-hero-button-secondary .elementor-button {
        justify-content: center;

        width: 100%;
        min-height: 46px;
    }

    .ota-hero-benefits {
        grid-template-columns: 1fr;
        justify-content: start;

        width: 100%;
        row-gap: 10px;

        padding-top: 22px;
    }

    .ota-hero-benefits,
    .ota-hero-benefits p,
    .ota-hero-benefits .elementor-icon-list-text,
    .ota-hero-benefits .elementor-heading-title {
        font-size: 12px;
    }
}


/* ==================================================
   PASEK ZALET — TELEFON
================================================== */

@media (max-width: 600px) {

    .ota-features-box {
        padding: 30px 20px !important;
    }

    .ota-features-box > .elementor-widget-container > div {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }
}


/* ==================================================
   BARDZO MAŁE TELEFONY
================================================== */

@media (max-width: 380px) {

    .ota-hero-content {
        padding-right: 16px;
        padding-left: 16px;
        padding-bottom: 22px;
    }

    .ota-hero-title h1,
    .ota-hero-title .elementor-heading-title {
        font-size: 37px;
    }

    .ota-hero-benefits {
        display: none;
    }
}


/* ==================================================
   PASEK ADMINISTRATORA WORDPRESS
================================================== */

body.admin-bar .ota-hero,
body.admin-bar .ota-hero-content {
    min-height: calc(100svh - 32px);
}

@media (max-width: 782px) {

    body.admin-bar .ota-hero,
    body.admin-bar .ota-hero-content {
        min-height: calc(100svh - 46px);
    }
}

/* ==================================================
   APARTAMENTY — ZDJĘCIA KART + ZOOM
================================================== */

.ota-room-image,
.ota-room-image .elementor-widget-container,
.ota-room-image .softlite-dynamic-card-box {
    overflow: hidden !important;
}

/* Kontener zdjęcia generowany przez Softlite */
.ota-room-image .softlite-dynamic-card-box-link-target {
    display: block !important;

    width: 100% !important;
    height: 360px !important;

    overflow: hidden !important;
    background: transparent !important;
}

/* Faktyczne zdjęcie */
.ota-room-image
.softlite-dynamic-card-box
img.softlite-dynamic-icon {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;

    transform: scale(1) !important;
    transform-origin: center center !important;

    transition:
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.35s ease !important;
}

/* Usunięcie czarnego paska generowanego przez Softlite */
.ota-room-image .b050i7cc {
    display: none !important;

    height: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
}

/* Zoom po najechaniu */
.ota-room-image:hover
.softlite-dynamic-card-box
img.softlite-dynamic-icon {
    transform: scale(1.07) !important;
    filter: brightness(0.95);
}


/* ==================================================
   TABLET — ZDJĘCIA KART
================================================== */

@media (max-width: 1024px) {

    .ota-room-image .softlite-dynamic-card-box-link-target {
        height: 320px !important;
    }
}


/* ==================================================
   TELEFON — ZDJĘCIA KART
================================================== */

@media (max-width: 767px) {

    .ota-room-image .softlite-dynamic-card-box-link-target {
        height: 270px !important;
    }
}

/* ==================================================
   MODAL APARTAMENTU — WERSJA POPRAWIONA
================================================== */

#ota-test-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

#ota-test-modal.is-open {
    display: flex;
}

#ota-test-modal .ota-test-modal__overlay {
    position: absolute;
    inset: 0;

    background: rgba(15, 10, 8, 0.84);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* ==================================================
   GŁÓWNE OKNO MODALA
================================================== */

#ota-test-modal .ota-test-modal__dialog {
    position: relative;
    z-index: 2;

    width: min(100%, 980px) !important;
    max-height: calc(100vh - 48px);

    margin: 0;
    padding: 0 !important;

    overflow-x: hidden;
    overflow-y: auto;

    color: #4a1714;
    background: #fffaf3;

    border-radius: 16px;

    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}


/* ==================================================
   PRZYCISK ZAMKNIĘCIA
================================================== */

#ota-test-modal .ota-test-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;

    color: #ffffff;
    background: #a8382f;

    border: 0;
    border-radius: 50%;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

#ota-test-modal .ota-test-modal__close:hover {
    background: #8f2e27;
    transform: rotate(90deg);
}


/* ==================================================
   GÓRNA CZĘŚĆ ZE ZDJĘCIEM
================================================== */

#ota-test-modal .ota-modal-hero {
    position: relative !important;

    width: 100%;
    height: clamp(480px, 55vw, 600px);

    margin: 0;
    padding: 0;

    overflow: hidden;
}

#ota-test-modal .ota-modal-hero > img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    margin: 0;
    padding: 0;

    object-fit: cover !important;
    object-position: center 55% !important;
}


/* ==================================================
   GRADIENT NA ZDJĘCIU
================================================== */

#ota-test-modal .ota-modal-hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(20, 10, 7, 0.02) 15%,
            rgba(20, 10, 7, 0.10) 48%,
            rgba(20, 10, 7, 0.72) 100%
        );
}


/* ==================================================
   TEKST NA ZDJĘCIU
================================================== */

#ota-test-modal .ota-modal-hero-content {
    position: absolute !important;
    left: 38px;
    right: 80px;
    bottom: 45px;
    z-index: 2;

    margin: 0;
    padding: 0;

    color: #ffffff;
}

#ota-test-modal .ota-modal-eyebrow {
    display: block;

    margin: 0 0 9px;

    color: #d6a04a;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#ota-test-modal .ota-modal-hero-content h2 {
    margin: 0 0 7px !important;

    color: #ffffff !important;

    font-size: clamp(38px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -1px;

    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.25);
}

#ota-test-modal .ota-modal-hero-content p {
    margin: 0 !important;

    color: rgba(255, 255, 255, 0.92) !important;

    font-size: 14px;
    line-height: 1.4;
}


/* ==================================================
   DOLNA CZĘŚĆ
================================================== */

#ota-test-modal .ota-modal-body {
    padding: 36px 40px;

    color: #5f4b41;
    background: #fffaf3;
}

#ota-test-modal .ota-modal-body p {
    margin: 0;

    font-size: 14px;
    line-height: 1.65;
}


/* ==================================================
   BLOKADA PRZEWIJANIA STRONY
================================================== */

body.ota-modal-open {
    overflow: hidden;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {

    #ota-test-modal {
        padding: 18px;
    }

    #ota-test-modal .ota-test-modal__dialog {
        max-height: calc(100vh - 36px);
    }

    #ota-test-modal .ota-modal-hero {
        height: 400px;
    }

    #ota-test-modal .ota-modal-hero-content {
        left: 30px;
        right: 72px;
        bottom: 26px;
    }

    #ota-test-modal .ota-modal-body {
        padding: 32px 30px;
    }
}


/* ==================================================
   TELEFON
================================================== */

@media (max-width: 600px) {

    #ota-test-modal {
        align-items: flex-start;
        padding: 12px;
    }

    #ota-test-modal .ota-test-modal__dialog {
        max-height: calc(100svh - 24px);
        border-radius: 12px;
    }

    #ota-test-modal .ota-test-modal__close {
        top: 10px;
        right: 10px;

        width: 36px;
        height: 36px;

        font-size: 22px;
    }

    #ota-test-modal .ota-modal-hero {
        height: 310px;
    }

    #ota-test-modal .ota-modal-hero > img {
        object-position: center center !important;
    }

    #ota-test-modal .ota-modal-hero-content {
        left: 20px;
        right: 58px;
        bottom: 20px;
    }

    #ota-test-modal .ota-modal-eyebrow {
        margin-bottom: 7px;

        font-size: 10px;
        letter-spacing: 2px;
    }

    #ota-test-modal .ota-modal-hero-content h2 {
        font-size: 32px;
        line-height: 1.08;
    }

    #ota-test-modal .ota-modal-hero-content p {
        font-size: 13px;
    }

    #ota-test-modal .ota-modal-body {
        padding: 25px 20px;
    }
}

/* ======================================================
   APARTAMENTY – JEDNA KARTA W WIERSZU NA TELEFONIE
====================================================== */

@media (max-width: 767px) {

    .ota-apartments-grid {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 24px !important;
    }

    .ota-apartments-grid > .e-con,
    .ota-apartments-grid > .elementor-element {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .ota-apartments-grid .elementor-widget,
    .ota-apartments-grid .elementor-widget-container {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ======================================================
   IKONY CECH – UKŁAD 2 × 2 NA TELEFONIE
====================================================== */

@media (max-width: 767px) {

    .ota-features-box .tvgpz8pk {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 24px 16px !important;
    }

    .ota-features-box .um3gniot {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        gap: 10px !important;
    }

    .ota-features-box .um3gniot span {
        white-space: normal !important;
        width: 100% !important;
        max-width: 140px !important;
        text-align: center !important;
        line-height: 1.35 !important;
    }
}
/* Mniejszy odstęp nad i pod ikonami na telefonie */

@media (max-width: 767px) {

    .ota-features-box {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .ota-features-box .tvgpz8pk {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

#CookiebotWidget {
    display: none !important;
}

/* Linki i przyciski w stopce */

.ys9r0bi2,
button.ys9r0bi2,
a.ys9r0bi2 {
    font: inherit !important;
    font-weight: 400 !important;
    color: inherit !important;
    text-decoration: none !important;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
