.cta-parallax {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.cta-parallax .cta-parallax-background {
    position: relative;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; /* Efekt paralaksy */
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Fallback dla urządzeń mobilnych */
@media (hover: none) {
    .cta-parallax .cta-parallax-background {
        background-attachment: scroll;
    }
}

.cta-parallax .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.cta-parallax .cta-content {
    color: var(--color-white);
    max-width: 800px;
    text-align: left;
}

.cta-parallax .content-wrapper {
    position: relative;
    /* Zwiększamy nieprzezroczystość tła dla lepszego kontrastu */
    background-color: rgba(27, 91, 160, 0.95);
    padding: 40px;
    border-radius: 20px;
}

.cta-parallax .cta-heading {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.cta-parallax .cta-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-parallax .cta-button {
    margin-top: 2rem;
}

.cta-parallax .button-icon {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

/* Focus states */
.cta-parallax a:focus {
    outline: 3px solid var(--color-white);
    outline-offset: 2px;
}

.cta-parallax a:focus:not(:focus-visible) {
    outline: none;
}

.cta-parallax a:focus-visible {
    outline: 3px solid var(--color-white);
    outline-offset: 2px;
}

/* Hover effects */
.cta-parallax .button-with-icon:hover .button-icon,
.cta-parallax .button-with-icon:focus .button-icon {
    transform: translateX(5px);
}

/* Skip navigation for keyboard users */
.cta-parallax a.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: var(--color-white);
    color: var(--color-black);
    text-decoration: none;
}

.cta-parallax a.skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
}

/* Responsywność */
@media (max-width: 768px) {
    .cta-parallax .cta-parallax-background {
        min-height: 400px;
    }

    .cta-parallax .cta-heading {
        font-size: 2.5rem;
    }

    .cta-parallax .cta-text {
        font-size: 1.1rem;
    }

    .cta-parallax .content-wrapper {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .cta-parallax .cta-parallax-background {
        min-height: 300px;
    }

    .cta-parallax .cta-heading {
        font-size: 2rem;
    }

    .cta-parallax .container {
        padding: 40px 20px;
    }

    .cta-parallax .content-wrapper {
        padding: 20px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cta-parallax .cta-parallax-background {
        background-attachment: scroll;
    }
    
    .cta-parallax .button-icon {
        transition: none;
    }
} 