/* Team portraits already have circular framing; preserve their original square proportions. */
.team-section{background:#fff;padding-top:48px;padding-bottom:80px}
.team-group+.team-group{margin-top:64px}
.team-group-title{font-size:25px;font-weight:550;letter-spacing:-.03em;line-height:1.4;margin:0 0 38px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.team-section .team-grid{gap:44px 32px;align-items:start}
.team-section .team-leadership{grid-template-columns:repeat(2,minmax(0,1fr));max-width:900px;gap:72px;margin-inline:auto}
.team-section .team-card{text-align:center;min-width:0;padding-inline:12px}
.team-section .team-photo{width:min(100%,260px);aspect-ratio:1;background:#fff;overflow:hidden;border-radius:50%;margin-inline:auto}
.team-section .team-leadership .team-photo{width:min(100%,320px)}
.team-section .team-photo img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;object-position:center;background:#fff}
.team-caption{padding-top:22px}
.team-caption h3{font-size:22px;font-weight:600;line-height:1.4;letter-spacing:-.03em;margin:0;overflow-wrap:break-word}
.team-section .team-card p{font-size:13px;line-height:1.65;color:var(--muted);max-width:280px;margin:8px auto 0}
.team-leadership .team-caption h3{font-size:25px}
.team-specialists .team-card:last-child:nth-child(3n+1){grid-column:2}
@media(max-width:900px){
 .team-section .team-leadership{max-width:760px;gap:40px}
 .team-section .team-leadership .team-photo{width:min(100%,280px)}
 .team-section .team-specialists{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 28px}
 .team-specialists .team-card:last-child:nth-child(3n+1){grid-column:auto}
 .team-specialists .team-card:last-child:nth-child(odd){grid-column:1/-1;max-width:360px;width:calc((100% - 28px)/2);justify-self:center}
 .team-caption h3{font-size:21px}
 .team-leadership .team-caption h3{font-size:23px}
}
@media(max-width:560px){
 .team-section{padding-top:32px;padding-bottom:55px}
 .team-group+.team-group{margin-top:45px}
 .team-group-title{font-size:22px;padding-bottom:17px;margin-bottom:30px}
 .team-section .team-leadership,.team-section .team-specialists{grid-template-columns:1fr;gap:34px}
 .team-section .team-card{padding:0}
 .team-section .team-photo{width:min(100%,240px)}
 .team-section .team-leadership .team-photo{width:min(100%,280px)}
 .team-specialists .team-card:last-child:nth-child(odd){grid-column:auto;width:100%;max-width:none}
 .team-caption{padding-top:18px}
 .team-caption h3,.team-leadership .team-caption h3{font-size:23px}
 .team-section .team-card p{font-size:13px;max-width:280px}
}
