/* ==========================================================================
   --- BLOK 05: DODATKOWE ATUTY (FEATURES) ---
   ========================================================================== */
.features-section {
    padding: 40px 20px 60px 20px;
    background-color: #000000;
    width: 100%;
    box-sizing: border-box; /* ---> NAPRAWIONE: Dodano reset pudełkowy sekcji */
}

.features-section .contact-container {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%; /* ---> NAPRAWIONE: Zabezpieczenie szerokości kontenera */
    box-sizing: border-box; /* ---> NAPRAWIONE: Dodano reset pudełkowy kontenera */
}

.features-section .features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    width: 100%; /* ---> NAPRAWIONE: Wymuszenie równej szerokości siatki */
    box-sizing: border-box;
}

.features-section .feature-card {
    background-color: #0a0f0f;
    border: 1px solid rgba(164, 178, 164, 0.15);
    padding: 30px 25px;
    flex: 1 1 300px; /* ---> NAPRAWIONE: Elastyczna szerokość bazowa bez konfliktu z max-width */
    max-width: 360px;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Efekt uniesienia kafelka po najechaniu */
.features-section .feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(164, 178, 164, 0.4);
    box-shadow: 0 10px 20px rgba(164, 178, 164, 0.05);
}

.features-section .feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(164, 178, 164, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 1px solid rgba(164, 178, 164, 0.2);
    transition: background-color 0.3s ease;
}

.features-section .feature-card:hover .feature-icon-wrapper {
    background-color: rgba(164, 178, 164, 0.2);
}

.features-section .feature-icon {
    font-size: 1.6rem;
}

.features-section .feature-card h4 {
    font-family: 'Playfair Display', serif;
    color: #a4b2a4;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 15px;
}

.features-section .feature-card p {
    font-family: 'Lora', serif;
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   PEŁNA I POPRAWIONA RESPONSYWNOŚĆ MOBILNA (EKRANY PONIŻEJ 768px) - BLOK_05
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* Globalne wymuszenie zabezpieczenia kontenerów przed rozciąganiem */
    .features-section {
        padding: 40px 15px !important; /* ---> NAPRAWIONE: Wyrównanie bocznego paddingu do reszty bloków (15px) */
        overflow: hidden; /* ---> NAPRAWIONE: Zabezpieczenie przed ucieczką obiektów w bok */
    }

    .features-section .contact-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Przeorganizowanie siatki atutów w ładną, wyśrodkowaną kolumnę */
    .features-section .features-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Likwidacja sztywnych szerokości kafelków uniemożliwiających responsywność */
    .features-section .feature-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 25px 15px !important;
        flex: 0 0 100% !important; /* ---> NAPRAWIONE: Sztywne wymuszenie pełnego rzędu na mobile */
    }
}
