﻿.tuition-fee {
    width: 100%;
    padding: 2rem 0;
    box-sizing: border-box;
}

.tuition-fee__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
}

/* KARTA */

.tuition-fee__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px 24px 24px;
    background: #edf1f5;
    border: 0;
    border-radius: 8px;
    box-sizing: border-box;
    text-align: center;
}

/* GÓRNA CZĘŚĆ */

.tuition-fee__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding: 0;
}

.tuition-fee__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: 16px 0 20px;
    flex: 0 0 96px;
    border-radius: 50%;
    background: #1a1f35;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.tuition-fee__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.tuition-fee__title {
    order: -1;
    margin: 0 0 2px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
}

.tuition-fee__subtitle {
    max-width: 280px;
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

/* OPŁATY */

.tuition-fee__years {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 16px;
}

.tuition-fee__year {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    min-height: 0;
    padding: 2px 0;
    border: 0;
}

.tuition-fee__year-label {
    font-size: 1rem;
    font-weight: 400;
}

    .tuition-fee__year-label::after {
        content: ":";
    }

.tuition-fee__value {
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
}

/* CMS - BRAK DANYCH */

.tuition-fee__empty {
    width: 100%;
    padding: 1.5rem;
    border: 1px dashed #bbb;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
}

/* TELEFON */

@container (max-width: 600px) {
    .tuition-fee__grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .tuition-fee__card {
        padding: 20px;
    }

    .tuition-fee__icon {
        width: 88px;
        height: 88px;
        flex-basis: 88px;
    }
}
