/* ============================================
   COMPONENT: STANDARD SECTION (Dlaczego My)
============================================ */

/* 1. Główny wrapper sekcji
   Dodajemy solidny padding góra/dół (5rem = ok. 80px)
   oraz jasne tło, żeby odciąć się od bieli.
*/
.section-standard {
    background-color: #f8f9fa; /* Jasny szary - kluczowy dla kontrastu */
    padding: 5rem 0;           /* Duży odstęp wewnątrz sekcji (góra/dół) */
    position: relative;
    z-index: 2;
}

/* Dekoracyjny trójkąt na dole */
.section-standard::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 25px solid #f8f9fa; /* Musi być ten sam kolor co tło sekcji */
    z-index: 3;
}

/* 2. Naprawa Kontenera
   Jeśli nie masz globalnej klasy .container, ta definicja
   wyśrodkuje treść i nada marginesy boczne.
*/
.section-standard .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Margines bezpieczeństwa na telefonach */
    width: 100%;
    box-sizing: border-box;
}

/* 3. Nagłówek sekcji (Tytuł i opis) */
.section-header {
    margin-bottom: 4rem; /* Duży odstęp między opisem a kartami */
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem; /* Wyraźny, duży nagłówek */
    color: #343a40;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

/* Czerwona kreska pod tytułem */
.underline {
    width: 60px;
    height: 4px;
    background: #b01c2e; /* Brand Red */
    margin: 0 auto 1.5rem auto;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.1rem;
    color: #555555;
    max-width: 700px; /* Ograniczamy szerokość tekstu dla czytelności */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 4. Grid Kart */
.features-grid {
    display: grid;
    /* Automatyczne dopasowanie kolumn: min 320px szerokości */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem; /* Odstęp między kafelkami */
}

/* 5. Wygląd pojedynczej karty */
.feature-card {
    background: #ffffff;
    padding: 3rem 2rem; /* Dużo oddechu wewnątrz karty */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); /* Delikatny cień */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Wyrównanie do lewej (zgodnie ze screenem) */
    text-align: left;
}

/* Hover effect - czerwony pasek */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(176, 28, 46, 0.03); /* Bardzo delikatna czerwień */
    z-index: -1;
    transition: height 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px); /* Uniesienie */
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.feature-card:hover::before {
    height: 100%;
}

/* Ikony */
.feature-icon {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: #b01c2e; /* Czerwony kolor ikon */
}

/* Typografia wewnątrz karty */
.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    color: #343a40;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsywność */
@media (max-width: 1110px) {
    .section-standard {
        padding: 3rem 0; /* Nieco mniejszy padding na mobilu */
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr; /* Jedna kolumna na telefonie */
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
}