/* article.css */

/* Ogólne style dla artykułu */
article {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

/* Stylizacja głównego nagłówka (h1) */
article h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin: 3rem 0 1.5rem;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

/* Wyśrodkowanie CTA pod H1 */
article .cta-button:first-of-type {
    display: block;
    margin: 0 auto 2rem;
    width: fit-content;
}

/* Stylizacja wiersza (row-1) */
.row-1 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    align-items: center;
}

/* Stylizacja lewej kolumny (left-module) */
.left-module {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Stylizacja prawej kolumny (right-content) */
.right-content {
    padding: 1.5rem;
}

/* Stylizacja nagłówków (h2) w prawej kolumnie */
.right-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: #003087;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Stylizacja paragrafów (p) w prawej kolumnie */
.right-content p {
    font-size: 1rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Stylizacja przycisku CTA w right-content - wyśrodkowanie */
.right-content .cta-button {
    display: block;
    margin: 1rem auto;
    width: fit-content;
}

/* Stylizacja sekcji "interrupter" - pełna szerokość */
.interrupter {
    width: 100vw; /* Pełna szerokość widoku */
    position: relative; /* Umożliwia przesunięcie względem rodzica */
    left: 50%; /* Przesunięcie w prawo o połowę */
    right: 50%; /* Przesunięcie w lewo o połowę */
    margin-left: -50vw; /* Korekta w lewo o połowę widoku */
    margin-right: -50vw; /* Korekta w prawo o połowę widoku */
    margin-bottom: 3rem;
}

/* Wyśrodkowanie CTA przed modułem "Oferta" */
.interrupter:last-of-type .cta-button {
    display: block;
    margin: 0 auto 2rem;
    width: fit-content;
}

/* Responsywność */
@media (max-width: 1024px) {
    article h1 {
        margin: 2.5rem 0 1rem;
    }

    article .cta-button:first-of-type {
        margin-bottom: 1.5rem;
    }

    .row-1 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .right-content {
        padding: 1rem;
    }

    .right-content h2 {
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    article {
        padding: 1rem;
    }

    article h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin: 2rem 0 0.75rem;
    }

    article .cta-button:first-of-type {
        margin-bottom: 1rem;
    }

    .row-1 {
        gap: 1rem;
    }

    .right-content p {
        font-size: 0.9rem;
    }

    .right-content .cta-button {
        margin: 0.75rem auto;
    }
}