/* 
cennik-item-logo
cennik-item-ilosc
cennik-item-koszt
cennik-item-opis
cennik-item-przycisk 
*/

#cennik-section
{
    width: 80%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;        /* <<< TO DODAJE SPADANIE DO NASTĘPNEGO WIERSZA */
    align-items: flex-start; /* lepsze niż center przy wielu wierszach */
    justify-content: center;
    margin: 0 auto;
    gap: 2rem;

    margin-top: 2rem;
}
.cennik-item
{
    width: 30em;
    height: 32rem;
    /* border: 5px solid #1c66c5; */
    border-radius: 3rem;
    padding: 1.5rem 2rem;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);

    flex-direction: column;
    justify-content: space-between;
    display: flex;
}





.cennik-item-logo img
{
    width: 4em;
    height: 4em;
}
.cennik-item-logo
{
    text-align: left;
}
.cennik-item-ilosc
{
    text-align: left;
    font-size: 1.5em;
}
.cennik-item-koszt span
{
    font-size: 2em;
    font-weight: 600;
    font-style: italic;
}
.cennik-item-koszt
{
    font-weight: 600;
    font-style: italic;
    font-size: 1.8em;

}
.cennik-item-opis
{
    font-size: 1.1em;
}
.cennik-item-przycisk
{
    width: 100%;
    text-align: center;
    margin-top: 3em;
}
.cennik-przycisk
{
    background-color: #FF6700;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;

    display: block;   /* sprawia, że element zachowuje się jak blok */
    width: 100%;      /* zajmuje całą szerokość rodzica */
    text-align: center; /* żeby tekst był na środku */
}

.cennik-przycisk:hover
{
    background-color: #e65a00;
}

#finisher-header {
    position: relative;
    overflow: hidden; 
    z-index: 0;
    color: #f1f1f1;
}
#finisher-header .cennik-item-przycisk a
{
    background-color: #f1f1f1; /* jasny niebieski */
    color: #000000;           /* ciemnoniebieski tekst */
}
#finisher-header .cennik-item-przycisk a:hover
{
    background-color: #e0e0e0; /* jasny niebieski */
          /* ciemnoniebieski tekst */
}
#finisher-header .cennik-item-logo img
{
    filter: invert(1) brightness(2);
}




/* @media screen and (max-width: 768px)
{
    #cennik-section {
        width: 95%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cennik-item {
        width: 100%;      
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-radius: 3rem;
        padding: 1rem;
    }

    .cennik-item-ilosc {
        font-size: 0.8rem;
        font-weight: 600;
    }

    .cennik-item-koszt {
        font-size: 0.7rem;
    }
    .cennik-item-koszt span{
        font-size: 1.2rem;
    }

    .cennik-item-opis,
    .cennik-item-przycisk {
        display: none; 
    }

    .cennik-item-logo img {
        width: 2.5rem;
        height: 2.5rem;
    }
} */

.cennik-item-podpowiedz
{
    display: none;
}

#cennik-zajec-h1
{
    text-align: center;
    font-size: 2.5rem;
    margin-top: 2rem;
    color: #004E98;
    text-transform: uppercase;
    font-style: italic;
    display: none;
}

@media screen and (max-width: 930px) {
    
    #cennik-zajec-h1
    {
        display: block;
    }

    #cennik-section {
        width: 95%;
        gap: 1rem;
    }
    .cennik-item-ilosc
    {
        text-transform: uppercase;
        font-weight: 600;
    }

    .cennik-item {
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 1rem;
        cursor: pointer;
        position: relative;
        overflow: hidden; /* ważne dla animacji wysokości */
        transition: all 0.3s ease;
    }

    /* początkowo – wszystko w jednej linii */
    .cennik-item:not(.active) {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    /* elementy w linii */
    .cennik-item:not(.active) .cennik-item-ilosc,
    .cennik-item:not(.active) .cennik-item-podpowiedz {
        display: inline-block;
        margin: 0;
    }

    /* cena na start – ukryta z animacją */
    .cennik-item:not(.active) .cennik-item-koszt,
    .cennik-item-opis,
    .cennik-item-przycisk {
        max-height: 0;
        opacity: 0;
        width: 0;
        overflow: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    .cennik-item:not(.active) .cennik-item-przycisk
    {
        display: none;
    }

    /* po kliknięciu – kolumna z opisem, przyciskiem i ceną */
    .cennik-item.active {
        flex-direction: column;
    }

    .cennik-item.active .cennik-item-koszt,
    .cennik-item.active .cennik-item-opis,
    .cennik-item.active .cennik-item-przycisk {
        display: block;
        max-height: 200px; /* wystarczająco duża, żeby zmieścić treść */
        opacity: 1;
        transform: translateY(0);
        margin-top: 0.5rem;
        width: 100%;
    }

    .cennik-item.active .cennik-item-podpowiedz {
        display: none;
    }

    .cennik-item-logo img {
        width: 2rem;
        height: 2rem;
    }

    .cennik-item-ilosc {
        font-size: 1rem;
        font-weight: 600;
    }

    .cennik-item-koszt {
        font-size: 1rem;
    }
    .cennik-item-koszt span {
        font-size: 1.3rem;
    }

    .cennik-item-podpowiedz {
        font-size: 0.9rem;
        color: #555;
        font-style: italic;
    }

}

