/* style.css */

/* --- Ogólne style --- */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #4a5568; /* Ciemny szary tekst */
    background-color: #F8F9FA; /* Bardzo jasny szary, prawie biały */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Sekcje --- */
section {
    padding: 60px 0;
    text-align: center; /* Pozostaje dla domyślnego wyrównania tekstu */
}

/* --- Sekcja Hero (nagłówek) --- */
.hero-section {
    background-color: #E0F2F7; /* Jasny pastelowy błękit */
    color: #2c5282; /* Ciemniejszy, stonowany błękit */
    padding: 80px 0;
    /* Dodajemy flexbox do wyśrodkowania elementów wertykalnie i horyzontalnie */
    display: flex;
    flex-direction: column; /* Ułożenie elementów w kolumnach */
    justify-content: center; /* Wyśrodkowanie wertykalne */
    align-items: center; /* Wyśrodkowanie horyzontalne */
    text-align: center; /* Upewniamy się, że tekst jest wyśrodkowany */
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    max-width: 900px; /* Ogranicz maksymalną szerokość nagłówka */
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 800px;
    /* margin-left: auto; */ /* Usunięte, bo align-items: center załatwia sprawę */
    /* margin-right: auto; */
}

/* --- Przyciski CTA --- */
.cta-button {
    display: inline-block; /* lub block dla pełnej kontroli nad margin auto */
    background-color: #90CAF9; /* Średnio jasny pastelowy błękit */
    color: #FFFFFF;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none; /* Jeśli używasz jako link */
    /* Jeśli .hero-section nie ma display: flex, można użyć margin: 0 auto; */
    /* margin: 0 auto; */
}

.cta-button:hover {
    background-color: #64B5F6; /* Nieco ciemniejszy błękit na hover */
    transform: translateY(-2px);
}

/* --- Reszta stylów bez zmian --- */
.features-section {
    background-color: #FFFFFF;
    padding: 80px 0;
}

.features-section h2 {
    font-size: 2.8em;
    margin-bottom: 60px;
    color: #333;
}

.feature-item {
    display: inline-block;
    width: 30%;
    vertical-align: top;
    margin: 1.5%;
    padding: 30px;
    box-sizing: border-box;
    background-color: #F0F4F8;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    font-size: 1.6em;
    color: #4a5568;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1.0em;
    color: #667085;
}

/* --- Sekcja Call to Action (dolna) --- */
.call-to-action-section {
    background-color: #CFE2F3;
    color: #2c5282;
    padding: 70px 0;
}

.call-to-action-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #2c5282;
}

.call-to-action-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.call-to-action-section form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.call-to-action-section input[type="email"] {
    padding: 15px 20px;
    border: 1px solid #A7D9F0;
    border-radius: 5px;
    font-size: 1.1em;
    width: 300px;
    max-width: 80%;
}

/* --- Stopka (Footer) --- */
footer {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

/* --- Responsywność --- */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3em;
    }
    .hero-section p {
        font-size: 1.1em;
    }
    .features-section h2 {
        font-size: 2.2em;
    }
    .feature-item {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .feature-item {
        width: 90%;
        margin: 20px auto;
        padding: 20px;
    }
    .call-to-action-section form {
        flex-direction: column;
    }
    .call-to-action-section input[type="email"] {
        width: 90%;
    }
    .cta-button {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .features-section h2,
    .call-to-action-section h2 {
        font-size: 1.8em;
    }
    section {
        padding: 40px 0;
    }
}