.logo-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 96px;
    background: linear-gradient(0, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.7) 100%);
    /*mask: linear-gradient(black, black, transparent);*/
    -webkit-mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 75%,
            rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 75%,
            rgba(0, 0, 0, 0) 100%
    );
    width:5000px;
    z-index: var(--logo-bar-z-index);
    backdrop-filter: blur(15px);
    transform: translateY(-100%);
}

.logo-bar--visible {
    transform: translateY(0); /* wyjeżdża na miejsce */
}

.site-logo-link {
    position: absolute;
    z-index: var(--logo-z-index);
    margin: 2vh 0 0 4vw;

    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5)) drop-shadow(0 3px 3px rgba(0,0,0,0.3));
    transition: filter 0.3s ease;
    width: 15vh;
    min-height: 40px;

    img {
        width: 15vh;
        min-height: 40px;
    }
}

.site-logo {
    width: auto;
    transition: transform 0.2s ease, height 0.2s ease;
    transform-origin: 0 -20px;
}

.site-logo--small {
    transform: scale(0.4);
}

.home-hero {
    width: 100%;
    height: 33vh;
    background: url("/images/hero251213.jpg") no-repeat center left;
    background-size: cover;
    overflow: hidden;
    z-index: var(--hero-z-index);
    display: flex;
    align-items: center;
    justify-content: right;
}

.home-hero-sentence {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: bold;
    line-height: 1.5;
    color: var(--gold-light);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6);
    padding: 5vh 15rem;
}

.home-subhero {
    margin-top: 0;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 2.2rem;
    padding: 0 2rem;
}

.home-offers {
    margin: 4rem auto;
    padding: 0 2rem;
    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    ul {
        list-style: none;
        li {
            margin-bottom: 0.5rem;
            font-size: 1.4rem;
            line-height: 6vh;
        }
    }
}

.article-hero {
    background-position-y:-100px;
    height: 17vh;
    max-height: 17vh;
}

.article {
    font-size: 1.3rem;

    ul {
        color: var(--text);
    }

    .see-also {
        ul {
            color: var(--gold-mid);
            margin-top: 1rem;
            li {
                margin-bottom: 0.5rem;
                font-size: 1.3rem;
                line-height: 4vh;
            }
        }
    }
}

.fullwidth-table-container,
.packets {
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 2rem;
        border: 1px solid var(--gold-dark);
        margin-top: 2rem;

        th {
            background-color: var(--bg-dark);
            text-align: center;
            border-bottom: 1px solid var(--gold-dark);
        }

        th, td {
            border-right: 1px solid var(--gold-dark);
            padding: 0.5rem 1rem;
            text-align: left;
        }

        thead {
            th {
                text-align: center;

            }
        }

        tr:hover {
            background-color: var(--gold-dark);
        }
    }
}

.packets {
    table {
        tbody {
            td:nth-child(2),
            td:nth-child(3) {
                text-align: center;
            }
            td:nth-child(4) {
                text-align: right;
            }
        }
    }
}

footer {
    font-size: 1rem;
    background-color: var(--panel);
    border-top: 1px solid var(--gold-dark);
    margin-top: 0;
    padding: 0 0 1rem 0;
    color: var(--gold-mid);
    text-align: center;

    a {
        color: var(--gold-mid);
    }

    .links {
        background-color: var(--bg-mid);
        border-bottom: 1px solid var(--gold-dark);
        padding: 1rem;
    }

    .kpo {
        margin-top:15px;
        padding:10px;
        width: 420px;
        max-width:80% !important;
        background-color:white;
    }

    .copyright, .copyright a {
        color: var(--gold-mid);
    }

    .copyright {
        margin-top: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-height: 500px) {
    .site-logo--small {
        transform: scale(0.75);
    }
}

@media (min-height: 568px) {
    .site-logo--small {
        transform: scale(0.7);
    }
}

@media (min-height: 768px) {
    .site-logo--small {
        transform: scale(0.6);
    }
}

@media (min-height: 900px) {
    .site-logo--small {
        transform: scale(0.5);
    }
}

@media (min-height: 1050px) {
    .site-logo--small {
        transform: scale(0.4);
    }
}

.hero {
    width: 100%;
    height: 33vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    overflow: hidden;
    z-index: var(--hero-z-index);
}

@media (max-width: 1000px) {
    .home-hero-sentence {
        padding: 5vh 5rem;
    }
}

@media (min-width: 1000px) {
    .hero {
        img {
            width: 100%;
        }
    }

    .home-offers {
        ul {
            display: flex;
            flex-wrap: wrap;
        }

        h2 {
            margin-bottom: 2rem;
        }

        ul li {
            width: 50%;
            box-sizing: border-box;
            line-height: 3vh;
        }
    }
}




.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-widget {
    max-width: 520px;
    width: 90%;
    background: #000000;
    border: 1px var(--gold-dark) solid;
    border-radius: 8px;
    padding: 20px 24px;
    box-sizing: border-box;
}

.cookie-link {
    color: var(--gold-mid);
    text-decoration: underline;
}

.cookie-link:hover,
.cookie-link:focus {
    color: var(--accent-hover2);
    text-decoration: none;
}

@media (max-height: 480px) {
    .cookie-widget {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Home popup banner (Floating Card) – overlay above spa-occupancy-widget */
.home-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .home-popup-overlay {
        align-items: flex-end;
        padding-bottom: 15vh;
    }
}

.home-popup-overlay .home-popup-banner {
    max-width: 90vw;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 850px) {
    .home-popup-banner {
        max-width: 800px !important;
    }
}

.home-popup-banner-card {
    background: var(--bg-dark);
    border: 1px solid var(--gold-dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.home-popup-banner-card__title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gold-dark);
    background: var(--bg-dark);
    color: var(--gold-light);
    font-weight: 500;
}

.home-popup-banner-card__caption {
    flex: 1;
}

.home-popup-banner-card__close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: var(--gold-mid);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
}

.home-popup-banner-card__close:hover {
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.08);
}

.home-popup-banner-card__img {
    display: block;
    width: 100%;
    max-height: 60vh;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    vertical-align: top;
}

.home-popup-banner-card__lead {
    padding: 1rem;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
    border-top: 1px solid rgba(185, 141, 71, 0.2);
}

.home-popup-banner-card__lead p:last-child {
    margin-bottom: 0;
}

.home-popup-banner-card__cta {
    padding: 1rem;
    border-top: 1px solid rgba(185, 141, 71, 0.2);
}

.home-popup-inline.home-popup-banner-card {
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 90vw;
}

@media (min-width: 850px) {
    .home-popup-inline.home-popup-banner-card {
        max-width: 800px !important;
    }
}

.home-popup-inline .home-popup-banner-card__title-bar {
    padding-right: 1rem;
}
