/* Заголовок сотрудников — по образцу блока документов */
.stm-emp-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px;
}
.stm-emp-heading__content { min-width: 0; }
.stm-emp-heading__title {
    margin: 0 0 8px;
    color: #001b72;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.2;
}
.stm-emp-heading__description {
    margin: 0;
    color: #68758f;
    font-size: 16px;
    line-height: 1.6;
}
.stm-emp-heading__link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid #001b72;
    border-radius: 8px;
    background: #fff;
    color: #001b72 !important;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.stm-emp-heading__link:hover {
    background: #001b72;
    color: #fff !important;
}

/* Фильтр городов */
.stm-emp-city-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}
.stm-emp-city-btn {
    padding: 9px 16px;
    border: 1px solid #d8e0f0;
    border-radius: 7px;
    background: #fff;
    color: #001b72;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.stm-emp-city-btn:hover,
.stm-emp-city-btn.is-active {
    border-color: #001b72;
    background: #001b72;
    color: #fff;
}

/* Существующий вид карточек */
.stm-emp-section { margin: 28px 0 38px; }
.stm-emp-section-title { font-size: 25px; margin: 0 0 20px; color: #061983; }
.stm-emp-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.stm-emp-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e5eaf5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,27,114,.07);
}
.stm-emp-photo {
    display: block;
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f2f5ff;
}
.stm-emp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}
.stm-emp-photo:hover img { transform: scale(1.035); }
.stm-emp-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,27,114,.60);
    opacity: 0;
    transition: opacity .2s;
}
.stm-emp-photo:hover .stm-emp-hover { opacity: 1; }
.stm-emp-hover span,
.stm-emp-more {
    display: inline-block;
    background: #061983;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.stm-emp-hover span { background: #fff; color: #061983 !important; }
.stm-emp-card-info { padding: 15px; }
.stm-emp-card-info h3 { font-size: 17px; line-height: 1.4; margin: 0 0 8px; }
.stm-emp-card-info h3 a { color: #061983; text-decoration: none; }
.stm-emp-card-info p { font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.stm-emp-more { font-size: 14px; }
.stm-emp-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6d7897;
}
.stm-emp-home-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 66px)/4);
    gap: 22px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 2px 15px;
}
.stm-emp-home-scroll .stm-emp-photo { height: 230px; }
.stm-emp-card[hidden] { display: none !important; }
.stm-emp-detail {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(280px,.8fr);
    gap: 32px;
    align-items: start;
}
.stm-emp-detail h1 { color: #061983; }
.stm-emp-detail-photo img { display: block; width: 100%; height: auto; border-radius: 12px; }
.stm-emp-contacts {
    background: #f2f5ff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    overflow-wrap: anywhere;
}
.stm-emp-contacts p { margin: 0 0 12px; }
.stm-emp-contacts p:last-child { margin-bottom: 0; }
.stm-emp-contact-button {
    display: inline-block;
    margin-top: 15px;
    background: #061983;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
}
@media (max-width: 1024px) {
    .stm-emp-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .stm-emp-home-scroll { grid-auto-columns: calc((100% - 22px)/2); }
}
@media (max-width: 600px) {
    .stm-emp-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .stm-emp-grid { grid-template-columns: 1fr; }
    .stm-emp-home-scroll { grid-auto-columns: 80%; }
    .stm-emp-detail { grid-template-columns: 1fr; }
    .stm-emp-photo { height: 260px; }
    .stm-emp-city-filter { gap: 8px; }
    .stm-emp-city-btn { padding: 8px 12px; }
}

/* Размер текста кнопки как у «Все документы» */
.stm-emp-heading__link {
    font-size: 16px;
}
