.teachers-pazhvak {
    --teachers-ink: #102f49;
    --teachers-muted: #597386;
    --teachers-blue: #176eb5;
    --teachers-blue-dark: #0b4d7b;
    --teachers-sky: #dff3fb;
    --teachers-teal: #35b9b2;
    --teachers-coral: #ed7b66;
    --teachers-gold: #f3b83f;
    --teachers-paper: #fffdf9;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--teachers-ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(53, 185, 178, .15), transparent 28rem),
        radial-gradient(circle at 92% 20%, rgba(243, 184, 63, .16), transparent 28rem),
        linear-gradient(180deg, #eff9fd 0%, #fffdf9 47%, #edf7fb 100%);
}

.teachers-pazhvak,
.teachers-pazhvak * {
    box-sizing: border-box;
}

.teachers-shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.teachers-hero {
    position: relative;
    padding: clamp(60px, 8vw, 108px) 0 clamp(54px, 7vw, 88px);
}

.teachers-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .22;
    background-image:
        linear-gradient(rgba(23, 110, 181, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 110, 181, .12) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, #000 18%, transparent 92%);
}

.teachers-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
    align-items: center;
    gap: clamp(40px, 7vw, 92px);
}

.teachers-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border: 1px solid rgba(23, 110, 181, .15);
    border-radius: 999px;
    color: var(--teachers-blue-dark);
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 8px 22px rgba(31, 84, 119, .08);
    font-size: 13px;
    font-weight: 850;
}

.teachers-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teachers-coral);
    box-shadow: 0 0 0 5px rgba(237, 123, 102, .13);
}

.teachers-hero h1 {
    max-width: 690px;
    margin: 0;
    color: var(--teachers-ink);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: -.045em;
}

.teachers-hero h1 span {
    position: relative;
    display: inline-block;
    color: var(--teachers-blue);
}

.teachers-hero h1 span::after {
    content: "";
    position: absolute;
    right: 3%;
    bottom: 2px;
    z-index: -1;
    width: 94%;
    height: 13px;
    border-radius: 999px;
    opacity: .55;
    background: var(--teachers-gold);
    transform: rotate(-1.6deg);
}

.teachers-hero-lead {
    max-width: 630px;
    margin: 23px 0 0;
    color: var(--teachers-muted);
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 2;
}

.teachers-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 29px;
}

.teachers-hero-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 20px;
    border: 1px solid rgba(16, 47, 73, .12);
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
    transition: transform .22s ease, box-shadow .22s ease;
}

.teachers-hero-action.primary {
    border-color: var(--teachers-blue);
    color: white;
    background: linear-gradient(135deg, var(--teachers-blue), var(--teachers-blue-dark));
    box-shadow: 0 13px 27px rgba(23, 110, 181, .22);
}

.teachers-hero-action.secondary {
    background: rgba(255, 255, 255, .78);
}

.teachers-hero-action svg {
    width: 19px;
    height: 19px;
}

.teachers-hero-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(22, 66, 96, .16);
}

.teachers-visual {
    position: relative;
    width: min(100%, 450px);
    aspect-ratio: 1;
    justify-self: center;
    perspective: 1000px;
}

.teachers-visual-orbit {
    position: absolute;
    inset: 9%;
    border: 1px solid rgba(23, 110, 181, .15);
    border-radius: 50%;
    transform: rotateX(66deg) rotateZ(-10deg);
    box-shadow:
        0 0 0 35px rgba(23, 110, 181, .025),
        0 0 0 70px rgba(53, 185, 178, .025);
}

.teachers-visual-core {
    position: absolute;
    inset: 22%;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 38% 62% 58% 42% / 44% 41% 59% 56%;
    color: white;
    background:
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .23), transparent 25%),
        linear-gradient(145deg, var(--teachers-blue), var(--teachers-teal));
    box-shadow:
        0 34px 65px rgba(22, 83, 119, .25),
        inset 0 1px 1px rgba(255, 255, 255, .38);
    transform: rotate(6deg) translateZ(36px);
}

.teachers-visual-core svg {
    width: 54%;
    height: 54%;
    transform: rotate(-6deg);
}

.teachers-visual-label {
    position: absolute;
    z-index: 3;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 16px;
    color: var(--teachers-ink);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 35px rgba(27, 74, 104, .14);
    font-size: 12px;
    font-weight: 850;
}

.teachers-visual-label::before {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    font-size: 17px;
}

.teachers-visual-label.label-one {
    top: 5%;
    right: 8%;
    transform: rotate(5deg);
}

.teachers-visual-label.label-one::before {
    content: "✦";
    color: var(--teachers-coral);
    background: rgba(237, 123, 102, .1);
}

.teachers-visual-label.label-two {
    top: 34%;
    left: -1%;
    transform: rotate(-5deg);
}

.teachers-visual-label.label-two::before {
    content: "◉";
    color: var(--teachers-teal);
    background: rgba(53, 185, 178, .1);
}

.teachers-visual-label.label-three {
    right: 4%;
    bottom: 8%;
    transform: rotate(-3deg);
}

.teachers-visual-label.label-three::before {
    content: "♫";
    color: #9b5ca0;
    background: rgba(155, 92, 160, .1);
}

.teachers-count-note {
    position: absolute;
    bottom: 2%;
    left: 16%;
    z-index: 3;
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    color: var(--teachers-blue-dark);
    background: var(--teachers-paper);
    box-shadow: 0 18px 38px rgba(29, 75, 106, .16);
    text-align: center;
}

.teachers-count-note strong {
    display: block;
    margin-bottom: -5px;
    font-size: 27px;
    font-weight: 950;
    line-height: 1;
}

.teachers-count-note span {
    font-size: 10px;
    font-weight: 850;
}

.teachers-intro-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: clamp(44px, 6vw, 72px);
}

.teachers-principle {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 16px 17px;
    border: 1px solid rgba(28, 88, 125, .11);
    border-radius: 20px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 13px 30px rgba(32, 75, 101, .07);
}

.teachers-principle-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    color: var(--teachers-blue);
    background: rgba(23, 110, 181, .1);
}

.teachers-principle:nth-child(2) .teachers-principle-icon {
    color: var(--teachers-coral);
    background: rgba(237, 123, 102, .1);
}

.teachers-principle:nth-child(3) .teachers-principle-icon {
    color: var(--teachers-teal);
    background: rgba(53, 185, 178, .1);
}

.teachers-principle-icon svg {
    width: 22px;
    height: 22px;
}

.teachers-principle strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 950;
}

.teachers-principle span {
    display: block;
    color: var(--teachers-muted);
    font-size: 11px;
    line-height: 1.6;
}

.teachers-list-section {
    padding: 0 0 clamp(76px, 9vw, 122px);
}

.teachers-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.teachers-section-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--teachers-blue);
    font-size: 13px;
    font-weight: 900;
}

.teachers-section-heading h2 {
    margin: 0;
    color: var(--teachers-ink);
    font-size: clamp(27px, 4vw, 42px);
    font-weight: 950;
    line-height: 1.45;
}

.teachers-section-heading p {
    max-width: 400px;
    margin: 0;
    color: var(--teachers-muted);
    font-size: 13px;
    line-height: 1.9;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.5vw, 28px);
    perspective: 1300px;
}

.teacher-card {
    --teacher-accent: var(--teachers-blue);
    --teacher-soft: rgba(23, 110, 181, .1);
    --teacher-rx: 0deg;
    --teacher-ry: 0deg;
    --teacher-mx: 50%;
    --teacher-my: 35%;
    position: relative;
    display: grid;
    grid-template-columns: minmax(155px, .43fr) minmax(0, .57fr);
    min-height: 325px;
    overflow: hidden;
    border: 1px solid rgba(28, 88, 125, .12);
    border-radius: 28px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 20px 48px rgba(28, 71, 98, .1);
    transform: rotateX(var(--teacher-rx)) rotateY(var(--teacher-ry));
    transform-style: preserve-3d;
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.teacher-card:nth-child(4n + 2) {
    --teacher-accent: var(--teachers-coral);
    --teacher-soft: rgba(237, 123, 102, .1);
}

.teacher-card:nth-child(4n + 3) {
    --teacher-accent: #9b5ca0;
    --teacher-soft: rgba(155, 92, 160, .1);
}

.teacher-card:nth-child(4n + 4) {
    --teacher-accent: var(--teachers-teal);
    --teacher-soft: rgba(53, 185, 178, .1);
}

.teacher-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--teacher-mx) var(--teacher-my), rgba(255, 255, 255, .5), transparent 32%);
    mix-blend-mode: screen;
    transition: opacity .2s ease;
}

.teacher-card:hover {
    border-color: color-mix(in srgb, var(--teacher-accent) 34%, transparent);
    box-shadow: 0 27px 60px rgba(28, 71, 98, .17);
    transform: rotateX(var(--teacher-rx)) rotateY(var(--teacher-ry)) translateY(-5px);
}

.teacher-card:hover::before {
    opacity: 1;
}

.teacher-photo-wrap {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--teacher-soft);
    transform: translateZ(20px);
}

.teacher-photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 60%, rgba(12, 49, 73, .23)),
        linear-gradient(90deg, transparent 78%, rgba(255, 255, 255, .16));
}

.teacher-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .38s cubic-bezier(.2, .8, .2, 1), filter .3s ease;
}

.teacher-card:hover .teacher-photo {
    filter: saturate(1.06);
    transform: scale(1.045);
}

.teacher-photo-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    color: white;
    background: rgba(12, 49, 73, .62);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    font-size: 10px;
    font-weight: 850;
}

.teacher-photo-mark::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #65dfb7;
    box-shadow: 0 0 0 4px rgba(101, 223, 183, .14);
}

.teacher-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(20px, 2.8vw, 29px);
    transform: translateZ(28px);
}

.teacher-specialty {
    align-self: flex-start;
    margin-bottom: 13px;
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--teacher-accent);
    background: var(--teacher-soft);
    font-size: 11px;
    font-weight: 900;
}

.teacher-card h3 {
    margin: 0;
    color: var(--teachers-ink);
    font-size: clamp(21px, 2.4vw, 27px);
    font-weight: 950;
    line-height: 1.45;
}

.teacher-experience {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-height: 25px;
    margin: 8px 0 0;
    color: var(--teachers-muted);
    font-size: 12px;
    line-height: 1.75;
}

.teacher-experience svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--teacher-accent);
}

.teacher-course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 17px 0 20px;
    padding: 0;
    list-style: none;
}

.teacher-course-list li {
    padding: 5px 9px;
    border: 1px solid rgba(31, 84, 116, .1);
    border-radius: 999px;
    color: #526d80;
    background: #f7fafb;
    font-size: 10px;
    font-weight: 800;
}

.teacher-card-open {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding: 9px 13px;
    border: 1px solid rgba(31, 84, 116, .11);
    border-radius: 13px;
    cursor: pointer;
    color: var(--teachers-ink);
    background: white;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.teacher-card-open span:last-child {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    color: var(--teacher-accent);
    background: var(--teacher-soft);
    transition: transform .2s ease;
}

.teacher-card-open svg {
    width: 14px;
    height: 14px;
}

.teacher-card-open:hover,
.teacher-card-open:focus-visible {
    border-color: color-mix(in srgb, var(--teacher-accent) 30%, transparent);
    outline: none;
    color: var(--teacher-accent);
    background: var(--teacher-soft);
}

.teacher-card-open:hover span:last-child {
    transform: translateX(-3px);
}

.teachers-empty {
    padding: 70px 24px;
    border: 1px dashed rgba(23, 110, 181, .22);
    border-radius: 28px;
    text-align: center;
    background: rgba(255, 255, 255, .7);
}

.teachers-empty svg {
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
    color: var(--teachers-blue);
}

.teachers-empty h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

.teachers-empty p {
    margin: 0;
    color: var(--teachers-muted);
}

.teachers-cta {
    position: relative;
    overflow: hidden;
    margin-top: clamp(46px, 6vw, 75px);
    padding: clamp(28px, 5vw, 52px);
    border-radius: 30px;
    color: white;
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 255, 255, .17), transparent 27%),
        linear-gradient(135deg, #0b4d7b, #176eb5 58%, #2a9eae);
    box-shadow: 0 26px 60px rgba(19, 83, 124, .21);
}

.teachers-cta::after {
    content: "";
    position: absolute;
    top: -90px;
    left: -40px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255, 255, 255, .04), 0 0 0 76px rgba(255, 255, 255, .025);
}

.teachers-cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.teachers-cta span {
    display: block;
    margin-bottom: 5px;
    color: #bde9f1;
    font-size: 12px;
    font-weight: 850;
}

.teachers-cta h2 {
    margin: 0;
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 950;
    line-height: 1.55;
}

.teachers-cta p {
    max-width: 660px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.8;
}

.teachers-cta a {
    display: inline-flex;
    min-height: 48px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 15px;
    color: var(--teachers-blue-dark);
    background: white;
    box-shadow: 0 12px 25px rgba(4, 39, 62, .17);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    transition: transform .2s ease;
}

.teachers-cta a:hover {
    transform: translateY(-3px);
}

.teacher-dialog {
    width: min(880px, calc(100% - 28px));
    max-height: min(760px, calc(100dvh - 28px));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 28px;
    color: var(--teachers-ink);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 36px 95px rgba(7, 39, 61, .38);
}

.teacher-dialog::backdrop {
    background: rgba(7, 36, 56, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.teacher-dialog[open] {
    animation: teacher-dialog-in .28s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes teacher-dialog-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }
}

.teacher-dialog-close {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(16, 47, 73, .1);
    border-radius: 13px;
    cursor: pointer;
    color: var(--teachers-ink);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 19px rgba(21, 57, 81, .11);
}

.teacher-dialog-close svg {
    width: 18px;
    height: 18px;
}

.teacher-dialog-body {
    display: grid;
    grid-template-columns: minmax(280px, .44fr) minmax(0, .56fr);
    max-height: inherit;
}

.teacher-dialog-visual {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: var(--teachers-sky);
}

.teacher-dialog-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 55%, rgba(7, 43, 66, .55)),
        radial-gradient(circle at 20% 16%, rgba(255, 255, 255, .2), transparent 31%);
}

.teacher-dialog-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: center top;
}

.teacher-dialog-photo-label {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    color: white;
}

.teacher-dialog-photo-label span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 850;
}

.teacher-dialog-photo-label span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #70e6bd;
}

.teacher-dialog-content {
    overflow-y: auto;
    padding: clamp(27px, 4vw, 44px);
    scrollbar-color: rgba(23, 110, 181, .25) transparent;
    scrollbar-width: thin;
}

.teacher-dialog-specialty {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--teachers-blue);
    background: rgba(23, 110, 181, .09);
    font-size: 11px;
    font-weight: 900;
}

.teacher-dialog-name {
    margin: 0;
    color: var(--teachers-ink);
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 950;
    line-height: 1.4;
}

.teacher-dialog-experience {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    color: var(--teachers-muted);
    font-size: 13px;
}

.teacher-dialog-experience svg {
    width: 17px;
    height: 17px;
    color: var(--teachers-coral);
}

.teacher-dialog-section {
    margin-top: 27px;
    padding-top: 23px;
    border-top: 1px solid #e5edf2;
}

.teacher-dialog-section h3 {
    margin: 0 0 9px;
    color: var(--teachers-ink);
    font-size: 15px;
    font-weight: 950;
}

.teacher-dialog-description {
    margin: 0;
    color: #49677a;
    font-size: 13px;
    line-height: 2;
    white-space: pre-line;
}

.teacher-dialog-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.teacher-dialog-courses li {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--teachers-blue-dark);
    background: var(--teachers-sky);
    font-size: 12px;
    font-weight: 850;
}

body.teacher-dialog-open {
    overflow: hidden;
}

.teachers-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .62s ease, transform .62s cubic-bezier(.2, .8, .2, 1);
}

.teachers-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 960px) {
    .teachers-hero-inner {
        grid-template-columns: 1fr;
    }

    .teachers-hero-copy {
        text-align: center;
    }

    .teachers-hero h1,
    .teachers-hero-lead {
        margin-inline: auto;
    }

    .teachers-hero-actions {
        justify-content: center;
    }

    .teachers-visual {
        width: min(80vw, 390px);
    }

    .teacher-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .teachers-intro-strip {
        grid-template-columns: 1fr;
    }

    .teachers-principle {
        min-height: 75px;
    }

    .teachers-section-heading {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

    .teachers-grid {
        grid-template-columns: 1fr;
    }

    .teacher-card {
        grid-template-columns: minmax(145px, .4fr) minmax(0, .6fr);
    }

    .teachers-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .teacher-dialog {
        overflow-y: auto;
    }

    .teacher-dialog-body {
        display: block;
        overflow: visible;
    }

    .teacher-dialog-visual,
    .teacher-dialog-photo {
        min-height: 330px;
        height: 330px;
    }

    .teacher-dialog-content {
        overflow: visible;
    }
}

@media (max-width: 520px) {
    .teachers-shell {
        width: min(100% - 20px, 1180px);
    }

    .teachers-hero {
        padding-top: 42px;
    }

    .teachers-hero h1 {
        font-size: clamp(35px, 12vw, 49px);
    }

    .teachers-hero-lead {
        font-size: 15px;
        line-height: 1.9;
    }

    .teachers-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .teachers-hero-action {
        padding-inline: 10px;
    }

    .teachers-visual {
        width: min(90vw, 330px);
    }

    .teachers-visual-label {
        min-height: 42px;
        padding: 7px 9px;
        font-size: 10px;
    }

    .teachers-visual-label::before {
        width: 25px;
        height: 25px;
    }

    .teachers-count-note {
        width: 76px;
        height: 76px;
    }

    .teacher-card {
        display: block;
        min-height: 0;
        border-radius: 24px;
    }

    .teacher-photo-wrap {
        height: min(92vw, 390px);
    }

    .teacher-card-content {
        padding: 21px;
    }

    .teacher-experience {
        min-height: 0;
    }

    .teacher-dialog {
        width: calc(100% - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 22px;
    }

    .teacher-dialog-visual,
    .teacher-dialog-photo {
        height: 290px;
        min-height: 290px;
    }

    .teacher-dialog-close {
        top: 10px;
        left: 10px;
    }
}

@media (max-width: 380px) {
    .teachers-hero-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .teachers-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .teacher-card,
    .teacher-photo,
    .teachers-hero-action,
    .teachers-cta a,
    .teacher-card-open {
        transition: none;
        transform: none !important;
    }

    .teacher-dialog[open] {
        animation: none;
    }
}

@supports (content-visibility: auto) {
    .teachers-list-section {
        content-visibility: auto;
        contain-intrinsic-size: 1100px;
    }
}
