
.gorynych-staff-directory {
    --gstaff-blue: #0798d0;
    --gstaff-blue-dark: #087fab;
    --gstaff-border: #e1e5e9;
    --gstaff-card: #f8f8f8;
    --gstaff-muted: #68727c;
    width: 100%;
    max-width: 960px;
    box-sizing: border-box;
}

.gorynych-staff-directory *,
.gorynych-staff-directory *::before,
.gorynych-staff-directory *::after {
    box-sizing: border-box;
}

.gorynych-staff-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    max-width: 870px;
    margin: 0 0 14px;
}

.gorynych-staff-search {
    min-width: 0;
}

.gorynych-staff-search-input {
    width: 100%;
    min-height: 46px;
    padding: 9px 14px;
    border: 1px solid #c7cdd3;
    border-radius: 3px;
    background: #fff;
    color: #2d3339;
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.gorynych-staff-search-input:focus {
    border-color: var(--gstaff-blue);
    box-shadow: 0 0 0 2px rgba(7, 152, 208, .12);
}

.gorynych-staff-reset {
    appearance: none;
    align-self: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d5dbe0;
    border-radius: 4px;
    background: #fff;
    color: #4d5963;
    cursor: pointer;
}

.gorynych-staff-count {
    grid-column: 1 / -1;
    color: var(--gstaff-muted);
    font-size: 12px;
}

.gorynych-staff-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 16px;
    align-items: stretch;
    max-width: 920px;
}

.gorynych-staff-scroll {
    position: relative;
    height: var(--gstaff-scroll-height, 694px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 8px 0 0;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b8c2ca transparent;
}

.gorynych-staff-scroll::-webkit-scrollbar {
    width: 8px;
}

.gorynych-staff-scroll::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #b8c2ca;
}

.gorynych-staff-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.gorynych-staff-group {
    margin: 0 0 10px;
}

.gorynych-staff-letter-heading {
    margin: 0 0 7px !important;
    padding: 0 2px !important;
    border: 0 !important;
    color: var(--gstaff-blue);
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1.25;
}

.gorynych-staff-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gorynych-staff-item {
    display: flex;
    align-items: center;
    min-height: 59px;
    padding: 9px 12px;
    border: 1px solid var(--gstaff-border);
    border-radius: 4px;
    background: var(--gstaff-card);
    box-shadow: 0 1px 3px rgba(28, 39, 49, .035);
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.gorynych-staff-item:hover {
    background: #fff;
    border-color: #cfd8df;
    transform: translateY(-1px);
}

.gorynych-staff-main {
    min-width: 0;
}

.gorynych-staff-name {
    display: block;
    overflow: hidden;
    color: #30363b !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gorynych-staff-name:hover,
.gorynych-staff-name:focus {
    color: var(--gstaff-blue-dark) !important;
}

.gorynych-staff-position {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    color: #555f68;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gorynych-staff-alphabet {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: var(--gstaff-scroll-height, 694px);
    padding: 6px 5px;
    overflow-y: auto;
    border-radius: 5px;
    background: var(--gstaff-blue);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .07);
    scrollbar-width: none;
}

.gorynych-staff-alphabet::-webkit-scrollbar {
    display: none;
}

.gorynych-staff-letter-link {
    appearance: none;
    flex: 1 0 30px;
    min-height: 30px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.gorynych-staff-letter-link:hover,
.gorynych-staff-letter-link:focus,
.gorynych-staff-letter-link.is-active {
    background: #fff;
    color: var(--gstaff-blue-dark);
    outline: none;
}

.gorynych-staff-no-results,
.gorynych-staff-empty {
    padding: 18px;
    border: 1px solid var(--gstaff-border);
    border-radius: 5px;
    background: #fafbfc;
    color: var(--gstaff-muted);
}

[hidden] {
    display: none !important;
}

/* Individual teacher page: summary card injected by Gorynych Staff */
.gorynych-teacher-summary {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid #e0e5e9;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbfd 100%);
    box-shadow: 0 7px 24px rgba(22, 49, 69, .07);
}

.gorynych-teacher-photo,
.gorynych-teacher-initials {
    width: 118px;
    height: 118px;
    border-radius: 10px;
}

.gorynych-teacher-photo {
    display: block;
    object-fit: cover;
    background: #edf2f5;
}

.gorynych-teacher-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf6fb;
    color: var(--gstaff-blue, #0798d0);
    font-size: 34px;
    font-weight: 700;
}

.gorynych-teacher-summary-name {
    margin: 0 0 7px !important;
    color: #25313a !important;
    font-size: 27px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
}

.gorynych-teacher-summary-position {
    color: #087fab;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.gorynych-teacher-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 9px;
    color: #65717a;
    font-size: 13px;
}

.gorynych-original-teacher-title {
    display: none !important;
}

.gorynych-teacher-info-row {
    margin: 0 !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #edf0f2;
}

.gorynych-teacher-info-row h4,
.gorynych-teacher-info-title {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    color: #5f6c75 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.gorynych-teacher-info-row > *:last-child {
    color: #29343c;
    font-size: 15px;
    line-height: 1.58;
}

@media (min-width: 800px) {
    .gorynych-teacher-info-row.row {
        display: grid !important;
        grid-template-columns: minmax(210px, 28%) minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }
}

@media (max-width: 760px) {
    .gorynych-staff-toolbar,
    .gorynych-staff-layout {
        max-width: 100%;
    }

    .gorynych-staff-layout {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .gorynych-staff-alphabet {
        order: -1;
        flex-direction: row;
        width: 100%;
        height: 44px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 5px;
    }

    .gorynych-staff-letter-link {
        flex: 0 0 34px;
        min-height: 34px;
    }

    .gorynych-staff-scroll {
        height: min(var(--gstaff-scroll-height, 694px), 72vh);
        padding-right: 4px;
    }

    .gorynych-staff-name {
        white-space: normal;
    }

    .gorynych-teacher-summary {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .gorynych-teacher-photo,
    .gorynych-teacher-initials {
        width: 82px;
        height: 82px;
    }

    .gorynych-teacher-summary-name {
        font-size: 21px !important;
    }
}


/* 0.12.1 — центрирование каталога */
.gorynych-staff-directory {
    margin-left: auto;
    margin-right: auto;
}

.gorynych-staff-toolbar {
    width: 100%;
    max-width: 920px;
    margin: 0 auto 14px;
}

.gorynych-staff-layout {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.gorynych-staff-count,
.gorynych-staff-count--standalone {
    display: none !important;
}
