/* People, portraits and original logo curls: the working site's visual language. */
.team-design{--team-ease:cubic-bezier(.16,1,.3,1)}
.team-page{font-size:16px;line-height:1.7}
.team-page :is(h1,h2,h3){font-weight:600;letter-spacing:-.035em;text-wrap:balance}
.team-page h1{font-size:clamp(60px,6.2vw,88px);line-height:1.08}
.team-page h2{font-size:clamp(40px,4.1vw,59px);line-height:1.12}
.team-page h3{font-size:28px;line-height:1.2;letter-spacing:-.025em}
.team-page .breadcrumbs{padding-block:16px;margin-bottom:16px}
.team-hero{display:grid;grid-template-columns:1.05fr 1fr;gap:7%;align-items:center;padding-block:40px 100px}
.team-hero-copy{position:relative;z-index:2}
.team-lead{max-width:390px;margin-top:28px;font-size:18px;line-height:1.7}
.team-page .marker{white-space:nowrap}
.team-page .marker:after{animation:team-underline .88s .15s both}
.team-meet{display:inline-flex;align-items:center;gap:22px;margin-top:28px;min-height:52px;border-bottom:1px solid var(--ink);font-weight:500}
.team-meet svg{transition:transform .68s var(--team-ease)}
.team-meet:hover svg{transform:translate(5px,5px) rotate(90deg)}
.team-collage{position:relative;width:88%;justify-self:center;aspect-ratio:1;isolation:isolate;--spread:0;--drift:0px}
.team-curl{position:absolute;width:82%;height:85%;object-fit:contain;top:0;left:7%;transform:rotate(-18deg);opacity:.9;z-index:-1}
.team-snapshot{position:absolute;width:53%;height:65%;top:16%;left:24%;border:7px solid var(--paper);border-radius:12px;overflow:hidden;transform-origin:50% 90%;transition:transform .88s var(--team-ease);background:var(--quiet)}
.team-snapshot img{width:100%;height:100%;object-fit:cover;object-position:center 30%}
.team-snapshot-0{transform:translate(calc(-38% - var(--spread)*8%),calc(-12px + var(--drift))) rotate(calc(-12deg - var(--spread)*3deg))}
.team-snapshot-1{transform:translate(calc(38% + var(--spread)*8%),calc(10px - var(--drift))) rotate(calc(12deg + var(--spread)*3deg))}
.team-snapshot-2{transform:translateY(calc(58px + var(--drift))) rotate(-3deg)}
.team-snapshot-2 img{object-position:46% center}
.team-collage-note{position:absolute;bottom:0;right:0;font-size:14px;line-height:1.6;text-align:right}
.team-hero:has(.team-meet:hover) .team-collage,.team-hero:has(.team-meet:focus-visible) .team-collage,.team-collage:hover{--spread:1}
.team-roster{padding-top:32px;scroll-margin-top:35px}
.team-heading{display:grid;grid-template-columns:1.05fr 1fr;gap:7%;align-items:end;margin-bottom:48px}
.team-heading>p{font-size:16px;color:var(--muted);line-height:1.8;padding-bottom:4px}
.team-director{display:grid;grid-template-columns:1fr 1fr;gap:8%;align-items:center;padding-bottom:64px;border-bottom:1px solid var(--line)}
.team-portrait{overflow:hidden;border-radius:14px;background:var(--quiet)}
.team-portrait img{width:100%;height:100%;object-fit:cover;object-position:center 28%;transition:transform .88s var(--team-ease)}
.team-director .team-portrait{aspect-ratio:1.18}
.team-director .team-portrait img{object-position:50% 38%}
.team-director-copy{max-width:485px;padding-right:20px}
.team-page .team-director h3{font-size:clamp(32px,3.1vw,44px);margin-block:14px 24px}
.team-role{font-size:14px;line-height:1.65;color:var(--muted)}
.team-bio{font-size:16px;line-height:1.8;max-width:65ch}
.team-bio p+p{margin-top:16px}
.team-schedule{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:52px;border-bottom:1px solid var(--line);font-size:14px;font-weight:500;transition:border-color .4s,color .4s}
.team-director .team-schedule{margin-top:26px;max-width:300px}
.team-schedule svg{width:20px;height:20px;transition:transform .56s var(--team-ease)}
.team-schedule:hover{border-color:var(--ink)}
.team-schedule:hover svg{transform:translate(3px,-3px)}
.team-members{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:32px;row-gap:64px;margin-top:64px;align-items:start}
.team-member{min-width:0}
.team-member .team-portrait{aspect-ratio:4/4.5}
.team-member h3{margin-top:24px;max-width:18ch}
.team-member .team-role{margin-top:12px;min-height:48px}
.team-details{border-bottom:1px solid var(--line);margin-top:14px}
.team-details summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:52px;cursor:pointer;list-style:none;font-size:14px;font-weight:500}
.team-details summary::-webkit-details-marker{display:none}
.team-details summary svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;transition:transform .56s var(--team-ease)}
.team-details[open] summary svg{transform:rotate(45deg)}
.team-details summary:hover{color:var(--teal)}
.team-details .team-bio{padding:8px 0 24px;font-size:15px}
.team-member:has(.team-details[open]) .team-portrait img{transform:scale(1.045)}
.team-member>.team-schedule{margin-top:8px}
.team-member:not(:has(.team-details))>.team-schedule{margin-top:74px}
.team-invitation{position:relative;isolation:isolate;display:flex;justify-content:space-between;align-items:center;gap:32px;margin-block:120px 0;padding:56px 64px;border-radius:16px;background:var(--quiet);overflow:hidden}
.team-invitation>div{position:relative;z-index:1;max-width:580px}
.team-invitation p{margin-top:26px;max-width:400px;font-size:17px}
.team-invitation .button{margin-top:28px}
.team-invitation>img{position:absolute;width:400px;height:400px;object-fit:contain;right:8%;top:8%;z-index:-1;opacity:.75;transform:rotate(-25deg)}
.team-round{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;flex-shrink:0;width:166px;height:166px;border-radius:50%;border:1px solid var(--ink);background:var(--paper);font-size:14px;line-height:1.5;text-align:center;transition:transform .68s var(--team-ease),background .56s}
.team-round:hover{transform:rotate(-10deg);background:var(--yellow)}
.team-page :is(a,button,summary):focus-visible{outline:3px solid var(--teal);outline-offset:5px}
.team-page ::selection{background:var(--yellow);color:var(--ink)}
@keyframes team-underline{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.team-member:hover .team-portrait img{transform:scale(1.055)}}
@media(max-width:1100px){.team-hero{gap:4%;grid-template-columns:1.1fr 1fr}.team-page h1{font-size:clamp(52px,6.1vw,68px)}.team-members{column-gap:24px}.team-page h3{font-size:24px}.team-invitation{padding:44px}}
@media(max-width:850px){.team-hero{grid-template-columns:1fr 1fr;gap:28px;padding-bottom:70px}.team-page h1{font-size:clamp(44px,6.1vw,58px)}.team-lead{font-size:16px}.team-collage-note{font-size:12px;bottom:-20px}.team-heading{gap:28px}.team-director{gap:32px}.team-director-copy{padding-right:0}.team-page .team-director h3{font-size:32px}.team-bio{font-size:15px}.team-members{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:48px}.team-invitation{margin-top:90px;padding:36px}.team-round{width:132px;height:132px}.team-invitation>img{right:0;width:320px}}
@media(max-width:600px){.team-page .breadcrumbs{margin-bottom:0}.team-hero{display:flex;flex-direction:column;align-items:stretch;gap:24px;padding-block:32px 70px}.team-page h1{font-size:clamp(42px,13.2vw,72px);line-height:1.1}.team-lead{margin-top:24px;max-width:340px;font-size:17px}.team-meet{margin-top:20px;font-size:15px}.team-collage{height:340px;aspect-ratio:auto;width:82%;max-width:410px;align-self:center;margin-top:6px}.team-collage-note{right:-7%;bottom:-10px;font-size:13px}.team-snapshot{border-width:5px}.team-page h2{font-size:clamp(40px,12.6vw,64px);line-height:1.12}.team-heading{display:block;margin-bottom:32px}.team-heading>p{margin-top:24px;font-size:15px}.team-roster{padding-top:8px}.team-director{grid-template-columns:1fr;gap:26px;padding-bottom:40px}.team-director .team-portrait{aspect-ratio:1.1}.team-director .team-role{max-width:290px}.team-page .team-director h3{font-size:34px;max-width:12ch;margin-block:12px 20px}.team-director .team-schedule{max-width:none;margin-top:18px}.team-members{grid-template-columns:1fr;gap:44px;margin-top:40px}.team-member .team-portrait{aspect-ratio:4/4.1}.team-member h3{font-size:30px;margin-top:22px}.team-member .team-role{min-height:0;margin-top:10px;max-width:34ch}.team-details{margin-top:16px}.team-member:not(:has(.team-details))>.team-schedule{margin-top:18px}.team-invitation{margin-top:80px;padding:32px 24px 36px;display:block}.team-invitation>div{min-width:0;max-width:100%}.team-invitation h2{font-size:clamp(34px,10.3vw,54px)}.team-invitation p{font-size:16px;margin-top:22px}.team-invitation .button{font-size:14px;gap:16px;padding-inline:18px;width:100%}.team-round{margin-top:32px;width:126px;height:126px;font-size:13px}.team-invitation>img{width:260px;height:260px;right:-55px;top:auto;bottom:-30px}.team-invitation .marker:after{animation:none}}
@media(max-width:360px){.team-collage{height:290px}.team-page h3{font-size:28px}.team-invitation{padding-inline:20px}.team-invitation .button{font-size:13px;padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.team-page *,.team-page *:before,.team-page *:after{animation:none!important;transition:none!important}.team-collage{--spread:0!important;--drift:0px!important}}

/* Shared catalogue follows the complete team. */
.team-roster .team-members{margin-top:0}.team-page #directions{margin-top:120px}.team-page #directions h2{font-size:clamp(40px,4.4vw,64px)}
@media(max-width:600px){.team-page #directions{margin-top:80px}.team-page #directions h2{font-size:clamp(40px,12.6vw,64px)}}
/* Caption has its own space below the moving mobile portrait stack. */
@media(max-width:600px){
 .team-collage{margin-bottom:64px}
 .team-collage-note{top:calc(100% + 28px);bottom:auto;right:-7%}
}

/* 44: имя педагога в одну строку, если помещается в колонку */
.team-member h3{max-width:none}

/* 55: заголовок педагогов в 2 строки на десктопе (переносы задаёт <br>) */
@media (min-width:1101px){#team-title{white-space:nowrap;max-width:none}}
