/* =========================================================
   GLOBAL PRE-FOOTER CTA
   ========================================================= */
.kb-prefooter-cta {
    --kb-prefooter-bg: none;
    position: relative;
    width: 100%;
    margin-top: 58px;
    min-height: 340px;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--kb-primary);
    background-image: var(--kb-prefooter-bg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.kb-prefooter-cta__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(37, 45, 82, 0) 0%,
            rgba(37, 45, 82, 0.08) 38%,
            rgba(37, 45, 82, 0.82) 55%,
            rgba(37, 45, 82, 0.98) 100%
        );
}

.kb-prefooter-cta__inner {
    min-height: 340px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.kb-prefooter-cta__content {
    width: 50%;
    padding: 42px 0 42px 46px;
    color: var(--kb-white);
}

.kb-prefooter-cta__title {
    margin: 0;
    max-width: 520px;
    color: var(--kb-white);
    font-family: var(--kb-font);
    font-size: clamp(42px, 3.25vw, 58px);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.kb-prefooter-cta__description {
    max-width: 590px;
    margin: 22px 0 0;
    color: var(--kb-white);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
}

.kb-prefooter-cta__contact-title {
    margin: 52px 0 12px;
    color: var(--kb-accent);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.kb-prefooter-cta__links {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
}

.kb-prefooter-cta__links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 22px;
    color: var(--kb-white);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color .2s ease;
}

.kb-prefooter-cta__links a:first-child {
    padding-left: 0;
}

.kb-prefooter-cta__links a + a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: rgba(255, 255, 255, 0.55);
}

.kb-prefooter-cta__links a:hover,
.kb-prefooter-cta__links a:focus-visible {
    color: var(--kb-accent);
}

@media (max-width: 1100px) {
    .kb-prefooter-cta {
        margin-top: 44px;
    }

    .kb-prefooter-cta__content {
        width: 56%;
        padding-left: 28px;
    }

    .kb-prefooter-cta__title {
        font-size: 44px;
    }
}

@media (max-width: 767px) {
    .kb-prefooter-cta {
        margin-top: 36px;
        min-height: 440px;
        background-image: var(--kb-prefooter-bg-mobile, var(--kb-prefooter-bg));
        background-position: center center;
        background-size: cover;
    }

    .kb-prefooter-cta__overlay {
        background: rgba(37, 45, 82, 0.82);
    }

    .kb-prefooter-cta__inner {
        min-height: 440px;
        justify-content: flex-start;
    }

    .kb-prefooter-cta__content {
        width: 100%;
        padding: 54px 0;
    }

    .kb-prefooter-cta__title {
        max-width: 390px;
        font-size: clamp(36px, 11vw, 46px);
    }

    .kb-prefooter-cta__description {
        max-width: 520px;
        font-size: 17px;
    }

    .kb-prefooter-cta__contact-title {
        margin-top: 38px;
        font-size: 22px;
    }

    .kb-prefooter-cta__links a {
        padding: 0 16px;
        font-size: 15px;
    }

    .kb-prefooter-cta__links a:first-child {
        padding-left: 0;
    }
}
@media (max-width: 480px) {
    .kb-prefooter-cta__content {
        padding: 46px 0;
    }

    .kb-prefooter-cta__links {
        width: min(100%, 280px);
        flex-direction: column;
        align-items: flex-start;
    }

    .kb-prefooter-cta__links a,
    .kb-prefooter-cta__links a:first-child {
        width: 100%;
        min-height: 40px;
        padding: 0;
    }

    .kb-prefooter-cta__links a + a::before {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.35);
    }
}


@media (max-width: 760px) {
    .kb-prefooter-cta__title {
        font-size: 24px;
        line-height: 1.08;
    }
}
