/* =========================================================
   TEAM — Nasz Zespół
   ========================================================= */

.team {
    background: var(--bg);
    padding: var(--section-py) 0;
    position: relative;
    overflow: hidden;
}

.team::before {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 70px solid rgba(195, 160, 75, 0.05);
    pointer-events: none;
}

/* Header */
.team__header {
    text-align: center;
    margin-bottom: 64px;
}

.team__heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    color: var(--black);
    letter-spacing: .04em;
    margin: 8px 0 16px;
}

.team__sub {
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--graphite);
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* Grid — centered, up to 2 columns */
.team__grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

/* Card */
.team-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-top: 3px solid var(--gold);
    padding: 40px 32px 36px;
    width: 300px;
    text-align: center;
    position: relative;
    transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}

.team-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .10);
    transform: translateY(-4px);
}

/* Photo placeholder */
.team-card__photo-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
}

.team-card__photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gold-pale);
    border: 2px solid rgba(195, 160, 75, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.team-card__photo-placeholder svg {
    width: 56px;
    height: 56px;
}

.team-card__photo-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(195, 160, 75, 0.25);
    pointer-events: none;
}

/* Body */
.team-card__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.35;
    margin-bottom: 8px;
}

.team-card__role {
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}

.team-card__divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 16px auto 0;
    opacity: .5;
}

/* Responsive */
@media (max-width: 680px) {
    .team__grid {
        flex-direction: column;
        align-items: center;
    }

    .team-card {
        width: 100%;
        max-width: 320px;
    }
}
