/* =========================================================
   ÚČTOFLOW – TÝM
   ========================================================= */

.team-section {
    padding: 105px 0;
    background: var(--white);
}


/* =========================================================
   ÚVOD
   ========================================================= */

.team-section .section-intro {
    margin-bottom: 54px;
}


/* =========================================================
   HLAVNÍ KARTA VEDENÍ
   ========================================================= */

.team-lead-card {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);

    margin-bottom: 26px;

    overflow: hidden;

    border-radius: 22px;

    background: var(--navy);
}


.team-lead-visual {
    position: relative;

    min-height: 290px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            rgba(95, 209, 204, 0.12),
            rgba(20, 155, 155, 0.04)
        );
}


.team-avatar-large {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 128px;
    height: 128px;

    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
    color: var(--aqua);

    font-size: 38px;
    font-weight: 700;
}


.team-lead-content {
    padding: 46px 50px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.team-lead-label {
    margin: 0 0 11px;

    color: var(--aqua);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.team-lead-content h3 {
    margin: 0 0 7px;

    color: var(--white);

    font-size: 31px;
    line-height: 1.25;

    font-weight: 700;
}


.team-role {
    margin: 0 0 22px;

    color: var(--aqua);

    font-size: 13px;
    font-weight: 700;
}


.team-lead-content p:last-child {
    max-width: 610px;

    margin: 0;

    color: #dce8ee;

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   OSTATNÍ ČLENOVÉ TÝMU
   ========================================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}


.team-card {
    position: relative;

    min-height: 270px;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--white);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.team-card:hover {
    transform: translateY(-3px);

    border-color: #d4e2e7;

    box-shadow:
        0 14px 32px rgba(16, 42, 67, 0.07);
}


/* =========================================================
   AVATAR
   ========================================================= */

.team-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 25px;

    border-radius: 50%;

    background: #e8f7f6;
    color: var(--teal);

    font-size: 18px;
    font-weight: 700;
}


/* =========================================================
   TEXT KARTY
   ========================================================= */

.team-card h3 {
    margin: 0 0 6px;

    color: var(--navy);

    font-size: 19px;
    line-height: 1.35;

    font-weight: 700;
}


.team-card .team-role {
    margin-bottom: 17px;

    color: var(--teal);

    font-size: 11px;
    line-height: 1.5;

    letter-spacing: 0.3px;
}


.team-card > p:last-child {
    margin: 0;

    color: var(--text);

    font-size: 13px;
    line-height: 1.75;
}


/* =========================================================
   ZVÝRAZNĚNÁ KARTA
   ========================================================= */

.team-card-dark {
    border-color: var(--navy);

    background: var(--navy);
}


.team-card-dark .team-avatar {
    background: rgba(95, 209, 204, 0.14);
    color: var(--aqua);
}


.team-card-dark h3 {
    color: var(--white);
}


.team-card-dark .team-role {
    color: var(--aqua);
}


.team-card-dark > p:last-child {
    color: #dce8ee;
}


/* =========================================================
   SPODNÍ TEXT
   ========================================================= */

.team-bottom-note {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    margin-top: 42px;
    padding-top: 32px;

    border-top: 1px solid var(--border);
}


.team-bottom-note p {
    max-width: 760px;

    margin: 0;

    color: var(--text);

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .team-lead-card {
        grid-template-columns: 1fr;
    }


    .team-lead-visual {
        min-height: 210px;
    }
}


@media (max-width: 650px) {

    .team-section {
        padding: 75px 0;
    }


    .team-grid {
        grid-template-columns: 1fr;
    }


    .team-lead-content {
        padding: 34px 28px;
    }


    .team-lead-content h3 {
        font-size: 26px;
    }


    .team-bottom-note {
        flex-direction: column;
        align-items: flex-start;
    }
}