/* Końcowe CTA strony głównej. */
#main-content.vds-home {
    background-color: #f5f8fb;
}

.vds-home-cta {
    --cta-ink: #fff;
    --cta-accent: #ed1b2f;
    --cta-accent-hover: #c91326;
    --cta-top-cut: clamp(38px, 5vw, 86px);
    --cta-shape: polygon(
        0 0,
        53% var(--cta-top-cut),
        100% 10px,
        100% 100%,
        0 100%
    );

    position: relative;
    isolation: isolate;
    min-height: clamp(430px, 32vw, 620px);
    overflow: hidden;
    background: #f5f8fb;
    color: var(--cta-ink);
    font-family: var(--vds-font-family);
}

.vds-home-cta,
.vds-home-cta * {
    box-sizing: border-box;
}

.vds-home-cta__media,
.vds-home-cta__media::after,
.vds-home-cta::before {
    position: absolute;
    inset: 0;
}

.vds-home-cta::before {
    z-index: -2;
    background: #10213a;
    clip-path: var(--cta-shape);
    content: "";
}

.vds-home-cta__media {
    z-index: -1;
    background: #10213a;
    clip-path: var(--cta-shape);
}

.vds-home-cta__media::after {
    background:
        linear-gradient(90deg, rgba(4, 17, 39, .88) 0%, rgba(4, 17, 39, .7) 30%, rgba(4, 17, 39, .3) 58%, rgba(4, 17, 39, .08) 82%),
        linear-gradient(180deg, rgba(4, 17, 39, .08) 45%, rgba(4, 17, 39, .28) 100%);
    content: "";
    pointer-events: none;
}

.vds-home-cta__image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center 58%;
}

.vds-home-cta__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(100%, 1800px);
    min-height: inherit;
    margin: 0 auto;
    padding: calc(var(--cta-top-cut) + 40px) clamp(24px, 7vw, 126px) clamp(64px, 6vw, 108px);
}

.vds-home-cta__eyebrow {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .78);
    font-size: 10px;
    font-weight: var(--vds-medium-weight, 500);
    line-height: 1.4;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.vds-home-cta__title {
    max-width: none;
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: clamp(42px, 4.2vw, 74px);
    font-weight: var(--vds-heading-weight, 300);
    line-height: var(--vds-heading-line-height, 1.02);
    letter-spacing: var(--vds-heading-spacing, -0.035em);
    white-space: nowrap;
}

.vds-home-cta__description {
    max-width: 46ch;
    margin-top: 18px;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(15px, 1.05vw, 18px);
    font-weight: var(--vds-body-weight, 400);
    line-height: 1.5;
}

.vds-home-cta__description p {
    margin: 0 0 1em;
}

.vds-home-cta__description p:last-child {
    margin-bottom: 0;
}

.vds-home-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 52px;
    margin-top: 28px;
    padding: 15px 24px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: var(--cta-accent);
    color: #fff;
    font-size: 11px;
    font-weight: var(--vds-semibold-weight, 600);
    line-height: 1.2;
    letter-spacing: .025em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease, transform .2s ease;
}

.vds-home-cta__arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform .2s ease;
}

.vds-home-cta__button:hover {
    background: var(--cta-accent-hover);
    transform: translateY(-2px);
}

.vds-home-cta__button:hover .vds-home-cta__arrow {
    transform: translateX(3px);
}

.vds-home-cta__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@media (max-width: 1100px) {
    .vds-home-cta__title {
        max-width: 13ch;
        white-space: normal;
    }
}

@media (max-width: 767px) {
    .vds-home-cta {
        --cta-top-cut: 36px;
        --cta-shape: polygon(0 0, 58% var(--cta-top-cut), 100% 8px, 100% 100%, 0 100%);
        min-height: 500px;
    }

    .vds-home-cta__image {
        object-position: 62% center;
    }

    .vds-home-cta__media::after {
        background: linear-gradient(90deg, rgba(4, 17, 39, .88) 0%, rgba(4, 17, 39, .7) 58%, rgba(4, 17, 39, .28) 100%);
    }

    .vds-home-cta__content {
        justify-content: flex-end;
        padding: calc(var(--cta-top-cut) + 48px) 24px 58px;
    }

    .vds-home-cta__title {
        font-size: clamp(38px, 11vw, 54px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vds-home-cta__button,
    .vds-home-cta__arrow {
        transition: none;
    }
}

/*
 * Na podstronie hoteli przestrzeń widoczna nad wyciętym obrazem CTA
 * musi kontynuować kolor sekcji katalogu. Selektor rodzeństwa działa
 * również wtedy, gdy pomiędzy sekcjami pojawi się dodatkowy element.
 */
body.page-template-page-hotele .vds-home-cta,
body.page-template-page-hotele-php .vds-home-cta,
.vds-hotel-archive ~ .vds-home-cta {
    margin-top: -1px;
    background: #f2f7fa !important;
}


/* Pojedynczy hotel — białe przejście nad CTA */
body.single-vds_hotel .vds-home-cta,
.vds-hotel-detail ~ .vds-home-cta {
    margin-top: -1px;
    background-color: #ffffff !important;
}
