:root {
    --staff-blue: #16779b;
    --staff-blue-dark: #0d6384;
    --staff-ink: #24323a;
    --staff-muted: #607582;
    --staff-line: #d7e4e9;
    --staff-mist: #f1f6f8;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--staff-ink);
    background: #fff;
}

.mock-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(255 255 255 / 96%);
    border-top: 2px solid var(--staff-ink);
    border-bottom: 1px solid var(--staff-line);
    backdrop-filter: blur(12px);
}

.mock-header__inner {
    display: grid;
    grid-template-columns: 174px 154px minmax(360px, 1fr) auto;
    align-items: center;
    gap: 22px;
    min-height: 70px;
}

.mock-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: fit-content;
    color: var(--staff-ink);
    line-height: 1;
}

.mock-logo__caption {
    padding-left: 2px;
    color: var(--staff-ink);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .34em;
}

.mock-logo__name {
    font-size: 36px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -.075em;
}

.mock-logo__name span {
    color: var(--staff-blue);
}

.mock-header__city {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    color: var(--staff-ink);
    font-size: 14px;
}

.mock-header__city svg {
    color: var(--staff-muted);
}

.mock-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mock-header__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    padding: 10px 14px;
    color: var(--staff-ink);
    font-size: 15px;
    border-radius: 8px;
    transition: background-color 180ms, color 180ms;
}

.mock-header__nav-link:hover,
.mock-header__nav-link--active {
    color: var(--staff-blue-dark);
    background: var(--staff-mist);
}

.mock-header__contacts {
    display: flex;
    align-items: center;
    gap: 18px;
}

.mock-header__phone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.mock-header__phone-block a {
    color: var(--staff-ink);
    font-size: 20px;
    white-space: nowrap;
}

.mock-header__phone-block span {
    color: var(--staff-muted);
    font-size: 12px;
}

.mock-header__callback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: var(--staff-blue-dark);
    font-size: 14px;
    border: 1px solid var(--staff-blue-dark);
    border-radius: 14px;
    white-space: nowrap;
}

.staff-hero {
    background: var(--staff-mist);
    border-bottom: 1px solid var(--staff-line);
}

.staff-hero__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    min-height: 292px;
    padding-top: 64px;
    padding-bottom: 56px;
}

.staff-hero__copy {
    max-width: 760px;
}

.eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--staff-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.staff-hero h1 {
    max-width: 760px;
    color: var(--staff-ink);
}

.staff-hero__copy p {
    max-width: 640px;
    margin-top: 22px;
    color: var(--staff-muted);
    font-size: 18px;
    line-height: 1.5;
}

.staff-hero__note {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(100%, 360px);
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--staff-line);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgb(29 63 79 / 5%);
}

.staff-hero__note-icon {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--staff-blue);
    background: #e6f2f6;
    border-radius: 12px;
}

.staff-hero__note strong,
.staff-hero__note span:last-child {
    display: block;
}

.staff-hero__note strong {
    margin-bottom: 5px;
    color: var(--staff-ink);
    font-size: 15px;
    font-weight: 600;
}

.staff-hero__note span:last-child {
    color: var(--staff-muted);
    font-size: 13px;
    line-height: 1.35;
}

.staff-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.staff-section--muted {
    background: var(--staff-mist);
    border-top: 1px solid var(--staff-line);
    border-bottom: 1px solid var(--staff-line);
}

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

.section-heading h2 {
    color: var(--staff-ink);
}

.section-heading > p {
    max-width: 360px;
    margin-bottom: 3px;
    color: var(--staff-muted);
    font-size: 15px;
    line-height: 1.45;
    text-align: right;
}

.staff-section__side {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 16px;
}

.staff-section__side > p {
    max-width: 360px;
    margin-bottom: 0;
    color: var(--staff-muted);
    font-size: 15px;
    line-height: 1.45;
    text-align: right;
}

.staff-slider__controls {
    display: flex;
    gap: 8px;
}

.staff-slider__button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--staff-blue-dark);
    background: #e8f2f5;
    border: 1px solid var(--staff-line);
    border-radius: 12px;
    font-size: 20px;
    line-height: 1;
    transition: background .2s ease, color .2s ease;
}

.staff-slider__button:hover {
    color: #fff;
    background: var(--staff-blue);
}

.staff-slider__button.swiper-button-disabled {
    opacity: .45;
    pointer-events: none;
}

.staff-teachers-slider {
    overflow: hidden;
}

.staff-teachers-slider .swiper-wrapper {
    align-items: stretch;
}

.staff-teachers-slider .swiper-slide {
    height: auto;
}

.staff-teachers-slider .staff-card {
    height: auto;
    box-sizing: border-box;
}

.staff-instructors-slider .swiper-wrapper {
    align-items: stretch;
}

.staff-instructors-slider .swiper-slide {
    height: auto;
}

/* Резервная раскладка для локального просмотра, если Swiper ещё не успел инициализироваться. */
.staff-teachers-slider:not(.swiper-initialized) .swiper-wrapper,
.staff-instructors-slider:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 16px;
}

.staff-teachers-slider:not(.swiper-initialized) .swiper-slide,
.staff-instructors-slider:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc((100% - 32px) / 2.5);
}

.staff-instructors-slider .staff-card {
    height: auto;
    box-sizing: border-box;
}

.staff-grid {
    display: grid;
    gap: 16px;
}

.staff-grid--teachers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-grid--instructors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.staff-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--staff-line);
    border-radius: 14px;
    box-shadow: 0 5px 16px rgb(29 63 79 / 3%);
}

.staff-card--teacher {
    min-height: 320px;
}

.staff-card--instructor {
    min-height: 292px;
}

.staff-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.staff-card__topline:has(> .staff-card__role:only-child) {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.staff-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    color: var(--staff-blue);
    background: #e7f2f6;
    border-radius: 12px;
}

.staff-card__photo {
    display: block;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    object-fit: cover;
    object-position: center;
    border: 1px solid #d5e5ea;
    border-radius: 12px;
}

.staff-card__role {
    color: var(--staff-muted);
    font-size: 12px;
    line-height: 1.3;
    text-align: right;
}

.staff-card h3 {
    min-height: 2.3em;
    margin: 0;
    color: var(--staff-ink);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.staff-card__description {
    margin-top: 12px;
    color: var(--staff-muted);
    font-size: 13px;
    line-height: 1.4;
}

.staff-card__subject {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--staff-line);
}

.staff-card__subject span {
    display: block;
    margin-bottom: 6px;
    color: var(--staff-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.staff-card__subject p {
    color: var(--staff-muted);
    font-size: 13px;
    line-height: 1.45;
}

.staff-card__details {
    display: grid;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 16px;
}

.staff-card__detail {
    padding-top: 14px;
    border-top: 1px solid var(--staff-line);
}

.staff-card__detail span {
    display: block;
    margin-bottom: 6px;
    color: var(--staff-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.staff-card__detail p {
    color: var(--staff-muted);
    font-size: 13px;
    line-height: 1.45;
}

.staff-card__employment {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    align-self: flex-start;
    margin-top: auto;
    padding: 7px 10px;
    color: var(--staff-blue-dark);
    background: #eef7f9;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.1;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
    min-height: 33px;
}

.category-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 27px;
    padding: 4px 8px;
    color: var(--staff-blue-dark);
    background: #eef7f9;
    border: 1px solid #d5e9ef;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1;
}

.category-list--muted span {
    color: var(--staff-muted);
    background: #f5f8f9;
    border-color: var(--staff-line);
}

.staff-document-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--staff-line);
}

.staff-document-section--instructors {
    border-top-color: rgb(215 228 233 / 80%);
}

.staff-document-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
}

.staff-document-heading .eyebrow {
    margin-bottom: 10px;
}

.staff-document-heading h3 {
    color: var(--staff-ink);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.staff-document-heading > p {
    max-width: 420px;
    margin-bottom: 2px;
    color: var(--staff-muted);
    font-size: 14px;
    line-height: 1.45;
    text-align: right;
}

.staff-record-grid {
    display: grid;
    gap: 16px;
}

.staff-record-grid--teachers,
.staff-record-grid--instructors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-record {
    min-width: 0;
    padding: 22px 24px;
    background: var(--staff-mist);
    border: 1px solid var(--staff-line);
    border-radius: 14px;
}

.staff-document-section--instructors .staff-record {
    background: #fff;
}

.staff-record h4 {
    margin-bottom: 20px;
    color: var(--staff-ink);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.staff-record dl {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

.staff-record dl > div {
    display: grid;
    grid-template-columns: minmax(130px, .65fr) minmax(0, 1.35fr);
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--staff-line);
}

.staff-record dt {
    color: var(--staff-muted);
    font-size: 12px;
    line-height: 1.35;
}

.staff-record dd {
    margin: 0;
    color: var(--staff-ink);
    font-size: 13px;
    line-height: 1.45;
}

.staff-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 80px;
    margin-bottom: 80px;
    padding: 36px 40px;
    background: var(--staff-mist);
    border: 1px solid var(--staff-line);
    border-radius: 16px;
}

.staff-cta .eyebrow {
    margin-bottom: 10px;
}

.staff-cta h2 {
    color: var(--staff-ink);
    font-size: clamp(26px, 2.65vw, 38px);
}

.staff-cta p {
    margin-top: 12px;
    color: var(--staff-muted);
    font-size: 15px;
    line-height: 1.45;
}

.staff-cta__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.mock-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.mock-button--primary {
    color: #fff;
    background: var(--staff-blue);
    box-shadow: 0 6px 16px rgb(22 119 155 / 14%);
}

.staff-cta__phone {
    color: var(--staff-ink);
    font-size: 18px;
    white-space: nowrap;
}

.mock-footer {
    border-top: 1px solid var(--staff-line);
}

.mock-footer__main {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr);
    gap: 64px;
    padding-top: 48px;
    padding-bottom: 44px;
}

.mock-footer__brand p {
    max-width: 260px;
    margin-top: 18px;
    color: var(--staff-muted);
    font-size: 13px;
    line-height: 1.45;
}

.mock-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.mock-footer__nav div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.mock-footer__nav strong {
    color: var(--staff-muted);
    font-size: 13px;
    font-weight: 500;
}

.mock-footer__nav a,
.mock-footer__nav span {
    color: var(--staff-ink);
    font-size: 13px;
    line-height: 1.35;
}

.mock-footer__bottom {
    padding-top: 16px;
    padding-bottom: 18px;
    color: var(--staff-muted);
    background: var(--staff-mist);
    font-size: 12px;
}

@media (max-width: 1200px) {
    .mock-header__inner {
        grid-template-columns: 150px 130px minmax(260px, 1fr);
    }

    .mock-header__contacts {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-bottom: 12px;
    }

    .staff-grid--instructors {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .mock-header__inner {
        grid-template-columns: 1fr auto;
        gap: 12px 20px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .mock-header__city {
        justify-self: end;
    }

    .mock-header__nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .mock-header__contacts {
        display: none;
    }

    .staff-hero__inner,
    .staff-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .staff-section__side {
        align-items: flex-start;
        width: 100%;
    }

    .staff-section__side > p {
        max-width: 100%;
        text-align: left;
    }

    .staff-teachers-slider:not(.swiper-initialized) .swiper-slide,
    .staff-instructors-slider:not(.swiper-initialized) .swiper-slide {
        flex-basis: calc((100% - 16px) / 2);
    }

    .staff-hero__note,
    .staff-cta__actions {
        width: 100%;
    }

    .staff-cta__actions {
        justify-content: space-between;
    }

    .staff-grid--teachers,
    .staff-grid--instructors {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-document-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .staff-document-heading > p {
        max-width: 100%;
        text-align: left;
    }

    .staff-record-grid--teachers,
    .staff-record-grid--instructors {
        grid-template-columns: 1fr;
    }

    .mock-footer__main {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 600px) {
    .width-container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .mock-logo__name {
        font-size: 31px;
    }

    .mock-header__city {
        font-size: 13px;
    }

    .mock-header__nav-link {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 14px;
    }

    .staff-hero__inner {
        min-height: 0;
        padding-top: 48px;
        padding-bottom: 40px;
    }

    .staff-hero__copy p {
        font-size: 16px;
    }

    .staff-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 24px;
    }

    .section-heading > p {
        max-width: 100%;
        text-align: left;
    }

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

    .staff-teachers-slider:not(.swiper-initialized) .swiper-slide,
    .staff-instructors-slider:not(.swiper-initialized) .swiper-slide {
        flex-basis: 100%;
    }

    .staff-document-section {
        margin-top: 44px;
        padding-top: 32px;
    }

    .staff-document-heading h3 {
        font-size: 24px;
    }

    .staff-record {
        padding: 20px;
    }

    .staff-record dl > div {
        display: block;
    }

    .staff-record dt {
        margin-bottom: 5px;
    }

    .staff-card--teacher,
    .staff-card--instructor {
        min-height: 0;
    }

    .staff-card h3 {
        min-height: 0;
    }

    .staff-cta {
        margin-top: 56px;
        margin-bottom: 56px;
        padding: 28px 20px;
    }

    .staff-cta__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .mock-button {
        width: 100%;
    }

    .mock-footer__nav {
        grid-template-columns: 1fr 1fr;
    }

    .mock-footer__nav div:last-child {
        grid-column: 1 / -1;
    }
}
