body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    color: #333;
}

.zespol {
    padding: 40px 20px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.zespol h1 {
    font-size: 36px;
    color: #005f8f;
    margin-bottom: 10px;
}

.zespol p {
    font-size: 18px;
    color: #444;
    margin-bottom: 30px;
}

/* nagłówki sekcji */

.sekcja-naglowek {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #005f8f;
    position: relative;
    text-align: center;
}

/* Niebieski pasek */

.sekcja-naglowek::after {
    content: "";
    width: 70px;
    height: 4px;
    background-color: #005f8f;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    border-radius: 2px;
}

/* siatka */

.sekcja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 15px;      /* <-- odstęp po bokach */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box; /* <-- padding wchodzi w szerokość */
}

/* karty personelu */

.osoba-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    cursor: default;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-self: start;
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.osoba-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.20);
}

.osoba-card img {
    width: 190px;
    height: 250px;        
    object-fit: cover; 
    border-radius: 15px; 
    margin: 0 auto 15px auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.osoba-card:hover img {
    transform: translateY(-8px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.20);
}

.osoba-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #222;
}

.osoba-card p {
    font-size: 16px;
    color: #555;
    margin-top: 0;
    margin-bottom: 0;
}

/* ----- PRZYCISK UMÓW WIZYTĘ ----- */

.umow-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #005f8f;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    margin: 12px auto 15px auto;   /* odstępy nad i pod */
    font-weight: 600;
    font-size: 16px;

    /* ZAPOBIEGA rozszerzaniu na całą szerokość */
    width: auto;
    align-self: center;

    transition: 0.3s ease;
}

.umow-btn:hover {
    background-color: #004466;
    transform: none !important;
    box-shadow: none !important;
}

/* Telefon – przycisk dalej NIE będzie pełnej szerokości */
@media (max-width: 900px) {
    .umow-btn {
        width: auto;      /* OBLIGATORYJNE, aby się nie rozwlekał */
        max-width: none;
    }
}


/* rozwijane informacje */

.toggle-info {
    cursor: pointer;
    color: #005f8f; /* Niebieski */
    font-weight: 600;
    
    display: inline-flex;
    align-items: center;
    gap: 6px;
    
    margin-top: auto;
    align-self: center; 
    
    padding: 10px 0 0 0; 
    border-top: 1px solid #eee;
    font-size: 16px;
    user-select: none;
}

/* Stylizacja strzałki */
.strzalka {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 5px solid transparent; 
    border-right: 5px solid transparent;
    border-top: 5px solid #005f8f; /* Niebieska strzałka w dół */
    transition: transform 0.3s ease; 
}

/* Obrót strzałki, gdy sekcja jest otwarta */
.toggle-info.active .strzalka {
    transform: rotate(180deg) !important; 
}

/* Reguły do ukrywania (animacja) */
.info-hidden {
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out; 
    width: 100%;
    text-align: left;
    padding: 0;
}

/* Automatyczne dopasowanie wielkości */
.info-hidden.open {
    max-height: 500px !important;
    
    padding: 10px 0 0 0; 
}

.info-hidden p {
    margin: 5px 0;
    color: #333;
}

.info-hidden strong {
    color: #005f8f; /* Niebieski dla pogrubionego tekstu */
}

/* responsywność */

@media (max-width: 600px) {
    body, html {
        overflow-x: hidden; /* blokuje przesuwanie */
    }

    .zespol {
        padding: 20px 15px;
        box-sizing: border-box;
    }

    /* Kontener kafelków */
    .zespol-container {
        max-width: 420px;   
        margin: 0 auto;     
        width: 100%;
        box-sizing: border-box;
    }

    /* Siatka kafelków */
    .sekcja-grid {
        display: flex !important;
        flex-direction: column; 
        align-items: center;    
        gap: 20px;
        width: auto;            
        margin: 0 auto;
    }

    /* Karty personelu */
    .osoba-card {
        max-width: 360px; 
        margin: 0 auto;   
        box-sizing: border-box;
        max-width: 74%;
        padding: 20px;
        align-items: center;  
    }
}








