/* =========================================================
   STANKI-M — карточки офисов на общей странице контактов
   ========================================================= */

.stanki-offices-page,
.stanki-offices-page * {
    box-sizing: border-box;
}

.stanki-offices-page {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    color: #222;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.stanki-offices-map {
    width: 100%;
    margin: 0 0 28px;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 2px;
    background: #fff;
}

.stanki-offices-map iframe {
    display: block;
    width: 100%;
    min-height: 420px;
    border: 0;
}

.stanki-offices-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.stanki-office-item {
    width: 100%;
    min-width: 0;
}

.stanki-office-intro {
    margin: 0 0 26px;
}

.stanki-office-intro__title {
    margin: 0 0 18px !important;
    color: #222 !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;

}

.stanki-office-intro__title a {
    color: inherit !important;
    text-decoration: none !important;
}

.stanki-office-intro__title a:hover {
    color: #0066d6 !important;
}

.stanki-office-intro__description {
    margin: 0 !important;
    color: #000;
    font-size: 16px;
    line-height: 1.55;
}

.stanki-office-card {
    position: relative;
    display: grid;
    grid-template-columns: 340px minmax(270px, 1fr) 300px 185px;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: 215px;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    transition: box-shadow .25s ease;
}

.stanki-office-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

.stanki-office-card__photo {
    position: relative;
    display: block;
    width: 100%;
    height: 215px;
    min-height: 215px;
    overflow: hidden;
    background: #f1f2f4;
}

.stanki-office-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 215px;
    object-fit: cover;
    transition: transform .35s ease;
}

.stanki-office-card:hover .stanki-office-card__photo img {
    transform: scale(1.02);
}

.stanki-office-card__photo-placeholder {
    display: flex;
    width: 100%;
    height: 215px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    background: #f1f2f4;
    font-size: 14px;
    text-align: center;
}

.stanki-office-card__main {
    min-width: 0;
    padding: 26px 25px;
}

.stanki-office-card__address {
    display: block;
    margin: 0 0 12px;
    color: #222;
    font-size: 15px;
    line-height: 1.5;
}

.stanki-office-card__label {
    display: block;
    margin: 0 0 6px;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.stanki-office-card__map-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 13px;
    padding: 0;
    border: 0;
    color: #0066d6 !important;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none !important;
    transition: color .2s ease;
}

.stanki-office-card__map-button:hover {
    color: #ed1717 !important;
}

.stanki-office-card__map-arrow {
    display: inline-block;
    transition: transform .2s ease;
}

.stanki-office-card__map-button:hover .stanki-office-card__map-arrow {
    transform: translateX(3px);
}

.stanki-office-card__transport {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0 0 12px;
    color: #333;
    font-size: 13px;
    line-height: 1.45;
}

.stanki-office-card__payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.stanki-office-card__payment {
    display: flex;
    width: 52px;
    height: 28px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stanki-office-card__payment img {
    display: block;
    max-width: 100%;
    max-height: 28px;
    object-fit: contain;
}

.stanki-office-card__contacts {
    min-width: 0;
    padding: 26px 20px;
    border-left: 1px solid #e4e7ec;
}

.stanki-office-card__contact-group + .stanki-office-card__contact-group {
    margin-top: 15px;
}

.stanki-office-card__phone,
.stanki-office-card__email {
    display: block;
    margin: 5px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-decoration: none !important;
}

.stanki-office-card__phone {
    color: #333 !important;
}

.stanki-office-card__phone:hover {
    color: #0066d6 !important;
}

.stanki-office-card__email {
    color: #0066d6 !important;
}

.stanki-office-card__email:hover {
    color: #ed1717 !important;
}

.stanki-office-card__socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
}

.stanki-office-card__social {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: transform .2s ease;
}

.stanki-office-card__social:hover {
    transform: translateY(-2px);
}

.stanki-office-card__social img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.stanki-office-card__action {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 25px 24px;
    border-left: 1px solid #e4e7ec;
}

.stanki-office-card__schedule {
    order: 1;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
}

.stanki-office-card__button {
    order: 2;
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    color: #fff !important;
    background: #1baa1d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

.stanki-office-card__button:hover {
    color: #fff !important;
    background: #169a18;
    transform: translateY(-1px);
}

.stanki-office-card__requisites {
    order: 3;
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border-radius: 4px;
    color: #001b72 !important;
    background: #f5f5f5;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;
    transition: background .2s ease;
}

.stanki-office-card__requisites:hover {
    color: #001b72 !important;
    background: #eceff3;
}

.stanki-offices-empty {
    padding: 28px;
    border: 1px solid #e4e7ec;
    border-radius: 2px;
    color: #666;
    background: #fff;
    text-align: center;
}

.stanki-office-card[data-office-url]:focus-visible {
    outline: 2px solid #0066d6;
    outline-offset: 3px;
}

/* Планшеты */
@media (max-width: 1150px) {
    .stanki-office-card {
        grid-template-columns: 300px minmax(250px, 1fr) 250px 175px;
    }

    .stanki-office-card__main {
        padding: 23px 20px;
    }

    .stanki-office-card__contacts {
        padding: 23px 17px;
    }

    .stanki-office-card__action {
        padding: 22px 17px;
    }
}

/* Компактная двухколоночная компоновка */
@media (max-width: 900px) {
    .stanki-office-card {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .stanki-office-card__photo {
        grid-column: 1;
        grid-row: 1 / span 2;
        height: 100%;
        min-height: 260px;
    }

    .stanki-office-card__photo img {
        min-height: 260px;
    }

    .stanki-office-card__main {
        grid-column: 2;
        grid-row: 1;
        padding: 22px;
    }

    .stanki-office-card__contacts {
        grid-column: 2;
        grid-row: 2;
        padding: 18px 22px;
        border-top: 1px solid #e4e7ec;
        border-left: 0;
    }

    .stanki-office-card__action {
        grid-column: 1 / -1;
        grid-row: 3;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(150px, 200px) minmax(140px, 180px);
        align-items: center;
        gap: 14px;
        padding: 18px 22px;
        border-top: 1px solid #e4e7ec;
        border-left: 0;
    }

    .stanki-office-card__schedule {
        order: 1;
    }

    .stanki-office-card__button {
        order: 2;
    }

    .stanki-office-card__requisites {
        order: 3;
    }
}

/* Мобильные устройства */
@media (max-width: 650px) {
    .stanki-offices-map iframe {
        min-height: 300px;
    }

    .stanki-office-card {
        display: flex;
        flex-direction: column;
    }

    .stanki-office-card__photo {
        width: 100%;
        height: 210px;
        min-height: 210px;
    }

    .stanki-office-card__photo img {
        height: 210px;
        min-height: 210px;
    }

    .stanki-office-card__main {
        padding: 23px 20px;
    }

    .stanki-office-card__contacts {
        padding: 0 20px 22px;
        border-top: 0;
        border-bottom: 1px solid #e4e7ec;
    }

    .stanki-office-card__action {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 18px 20px;
        border-top: 0;
    }

    .stanki-office-card__schedule {
        order: 1;
    }

    .stanki-office-card__button {
        order: 2;
    }

    .stanki-office-card__requisites {
        order: 3;
    }

    .stanki-office-card__payments {
        gap: 6px;
    }

    .stanki-office-card__payment {
        width: 46px;
        height: 26px;
    }

    .stanki-office-card__payment img {
        max-height: 26px;
    }

    .stanki-office-intro__title {
        font-size: 21px !important;
    }
}

@media (max-width: 400px) {
    .stanki-office-card__main {
        padding: 20px 17px;
    }

    .stanki-office-card__contacts {
        padding: 0 17px 20px;
    }

    .stanki-office-card__action {
        padding: 17px;
    }
}


/* =========================================================
   Дополнительные настройки общей страницы контактов
   ========================================================= */

\n/* Уменьшенный отступ перед картой на общей странице */
.stanki-offices-map {
    margin-top: -15px;
}

.stanki-offices-map {
    position: relative;
    height: 400px;
    min-height: 400px;
}

.stanki-offices-map .stanki-map-view {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 400px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
    transition: opacity .2s ease;
}

.stanki-offices-map .stanki-map-view.active {
    visibility: visible;
    opacity: 1;
    z-index: 2;
}

.stanki-offices-map .stanki-map-view iframe {
    display: block;
    width: 100% !important;
    height: 400px !important;
    min-height: 400px !important;
    border: 0;
}

.stanki-offices-map .stanki-map-view script {
    display: block;
}

.stanki-office-card__map-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.stanki-office-card__location-icon {
    display: block;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stanki-office-card__transport {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
}

.stanki-office-card__transport img {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
}

.stanki-office-card__transport span {
    color: #333;
}

.stanki-office-card__action {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stanki-office-card__button {
    order: 1;
    background: #001b72 !important;
}

.stanki-office-card__requisites {
    order: 2;
}

.stanki-office-card__schedule {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
    color: #222;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .stanki-office-card__action {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .stanki-office-card__button {
        order: 1;
    }

    .stanki-office-card__requisites {
        order: 2;
    }

    .stanki-office-card__schedule {
        order: 3;
    }
}

@media (max-width: 650px) {
    .stanki-offices-map {
        height: 300px;
        min-height: 300px;
    }

    .stanki-offices-map .stanki-map-view,
    .stanki-offices-map .stanki-map-view iframe {
        height: 300px !important;
        min-height: 300px !important;
    }
}

/* Детальная страница офиса */
.stm-office-details{max-width:1425px;margin:40px auto;padding:30px;background:#f3f6ff;border:1px solid #e1e8ff}
.stm-office-details h2{margin:0 0 24px;color:#001b72;font-size:28px}
.stm-office-details__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.stm-office-details__item{min-width:0;color:#26334f;font-size:16px;line-height:1.65}
.stm-office-details__label{display:block;margin-bottom:6px;color:#001b72;font-weight:700}
.stm-office-details a{color:#315cff;text-decoration:none}
.stm-office-details a:hover{text-decoration:underline}
.stm-office-details__socials{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.stm-office-details__socials a,.stm-office-details__map a{display:inline-block;padding:10px 18px;background:#fff;border:1px solid #dce5ff}
.stm-office-details__map{margin:20px 0 0}
@media(max-width:650px){.stm-office-details{padding:20px}.stm-office-details h2{font-size:23px}.stm-office-details__grid{grid-template-columns:1fr}}

/* =========================================================
   STANKI-M — детальная страница офиса
   Верхняя карточка и график по макету Балашихи
========================================================= */

.single-stm_office .stm-single > .wp-post-image {
    display: none !important;
}

.stanki-balashikha-page,
.stanki-balashikha-page * {
    box-sizing: border-box;
}

.stanki-balashikha-page {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0;
    background: #fff;
    color: #222;
    font-family: Arial, sans-serif;
}

.stanki-balashikha-main-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(480px, .95fr);
    width: 100%;
    margin: 0 0 42px;
    overflow: hidden;
    border: 1px solid #e2e6ec;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0,27,114,.06);
}

.stanki-balashikha-main-photo {
    position: relative;
    min-width: 0;
    min-height: 460px;
    height: 460px;
    overflow: hidden;
    background: #f3f6ff;
}

.stanki-balashikha-main-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.stanki-balashikha-main-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 34px 34px 0;
}

.stanki-balashikha-info-top {
    margin-bottom: 20px;
}

.stanki-balashikha-office-title {
    color: #222;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.35;
}

.stanki-balashikha-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}

.stanki-balashikha-contact-block {
    min-width: 0;
    padding: 17px 0;
    border-top: 1px solid #edf0f4;
    color: #222;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.stanki-balashikha-contact-label {
    display: block;
    margin-bottom: 9px;
    color: #7a8492;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .55px;
    line-height: 1.3;
    text-transform: uppercase;
}

.stanki-balashikha-transport {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stanki-balashikha-transport img {
    display: block;
    width: 19px;
    height: 19px;
    object-fit: contain;
    flex: 0 0 19px;
}

.stanki-balashikha-phones {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stanki-balashikha-page a {
    text-decoration: none;
}

.stanki-balashikha-phones a {
    color: #222;
}

.stanki-balashikha-phones a:hover {
    color: #315cff;
}

.stanki-balashikha-email {
    color: #0066d6;
}

.stanki-balashikha-email:hover {
    text-decoration: underline;
}

.stanki-balashikha-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.stanki-balashikha-socials a {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
}

.stanki-balashikha-socials img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.stanki-balashikha-payments {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
}

.stanki-balashikha-payment {
    display: flex;
    min-width: 0;
    height: 32px;
    align-items: center;
    justify-content: flex-start;
}

.stanki-balashikha-payment img {
    display: block;
    max-width: 52px;
    max-height: 28px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.stanki-balashikha-schedule-block {
    grid-column: 1 / -1;
    padding: 20px 34px 0;
    border-top: 1px solid #edf0f4;
}

.stanki-balashikha-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
}

.stanki-balashikha-day {
    display: flex;
    min-width: 0;
    min-height: 62px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 4px;
    border: 1px solid #e5e9ef;
    background: #f8f9fb;
    text-align: center;
}

.stanki-balashikha-day-name {
    color: #7a8492;
    font-size: 11px;
    font-weight: 700;
}

.stanki-balashikha-day-time {
    color: #222;
    font-size: 12px;
    line-height: 1.25;
}

.stanki-balashikha-day[data-day="0"],
.stanki-balashikha-day[data-day="6"] {
    border-color: #f0b5b5;
    background: #fff3f3;
    box-shadow: 0 0 9px rgba(211, 75, 75, 0.22);
}

.stanki-balashikha-day[data-day="0"] .stanki-balashikha-day-name,
.stanki-balashikha-day[data-day="6"] .stanki-balashikha-day-name {
    color: #d34b4b;
}

.stanki-balashikha-day.current {
    border-color: #001b72;
    background: #f0f3ff;
    box-shadow: 0 0 12px rgba(0, 27, 114, 0.30);
}

.stanki-balashikha-day.current .stanki-balashikha-day-name,
.stanki-balashikha-day.current .stanki-balashikha-day-time {
    color: #001b72;
    font-weight: 700;
}

.stanki-balashikha-schedule-fallback {
    color: #222;
    font-size: 14px;
    line-height: 1.7;
}

.stanki-balashikha-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 34px 32px;
}

.stanki-balashikha-requisites-btn,
.stanki-balashikha-actions .btn-new {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
}

.stanki-balashikha-requisites-btn {
    background: #eef1f5;
    color: #26334f !important;
}

.stanki-balashikha-requisites-btn:hover {
    background: #e2e7ee;
}

.stanki-balashikha-actions .btn-new {
    background: #001b72;
    color: #fff !important;
}

.stanki-balashikha-actions .btn-new:hover {
    background: #0a2499;
}

@media (min-width: 1101px) {
    .stanki-balashikha-schedule-block {
        margin-bottom: 18px;
    }
}

@media (max-width: 1100px) {
    .stanki-balashikha-main-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .stanki-balashikha-main-photo {
        height: 360px;
        min-height: 360px;
    }

    .stanki-balashikha-main-info {
        padding: 28px 28px 0;
    }
}

@media (max-width: 700px) {
    .stanki-balashikha-main-card {
        display: block;
        margin-bottom: 30px;
    }

    .stanki-balashikha-main-photo {
        height: 230px;
        min-height: 230px;
    }

    .stanki-balashikha-main-info {
        padding: 24px 20px 25px;
    }

    .stanki-balashikha-office-title {
        font-size: 21px;
    }

    .stanki-balashikha-contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stanki-balashikha-schedule-block {
        padding: 20px 20px 0;
    }

    .stanki-balashikha-week {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .stanki-balashikha-actions {
        padding: 20px;
    }

    .stanki-balashikha-requisites-btn,
    .stanki-balashikha-actions .btn-new {
        width: 100%;
    }
}

.stanki-office-detail__employees {
    width: 100%;
    max-width: none;
    margin: 48px 0 35px;
}

.stanki-office-detail .stm-office-employees__title {
    margin: 0 0 24px;
    color: #001b72;
    font-size: 28px;
    line-height: 1.25;
}

.stanki-balashikha-page .stm-office-employees__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 22px) / 2);
    gap: 22px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 2px 15px;
    cursor: grab;
    user-select: none;
}

.stanki-balashikha-page .stm-office-employees__track:active {
    cursor: grabbing;
}

.stanki-balashikha-page .stm-office-employees__track .stm-emp-card-home {
    min-width: 0;
    overflow: hidden;
}

.stanki-balashikha-page .stm-office-employees__track .stm-emp-photo {
    display: block;
    height: 230px;
    overflow: hidden;
}

.stanki-balashikha-page .stm-office-employees__track .stm-emp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stanki-office-detail__map-frame {
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    background: #f3f6ff;
}

.stanki-office-detail__map-frame iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

.stanki-office-detail__map-frame script {
    max-width: 100%;
}

@media (max-width: 1024px) {
    .stanki-office-detail__main {
        grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
        gap: 24px;
        padding: 22px;
    }

    .stanki-balashikha-page .stm-office-employees__track {
        grid-auto-columns: calc((100% - 22px) / 2);
    }
}

@media (max-width: 700px) {
    .stanki-office-detail {
        margin-top: 16px;
    }

    .stanki-office-detail__main {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 16px;
    }

    .stanki-office-detail__photo,
    .stanki-office-detail__image {
        min-height: 220px;
        max-height: 320px;
    }

    .stanki-office-detail__contacts {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .stanki-office-detail__item--address {
        grid-column: auto;
    }

    .stanki-office-detail__schedule {
        padding: 20px;
    }

    .stanki-office-detail__schedule h2,
    .stanki-office-detail__map h2 {
        font-size: 22px;
    }

    .stanki-office-detail .stm-office-employees__title {
        font-size: 23px;
    }

    .stanki-balashikha-page .stm-office-employees__track {
        grid-auto-columns: 82%;
        gap: 16px;
    }

    .stanki-office-detail__map-frame iframe {
        height: 400px;
    }
}

/* Черный цвет подписей и неактивных дней */
.stanki-balashikha-contact-label {
    color: #000 !important;
}

.stanki-balashikha-day-name,
.stanki-balashikha-day-time {
    color: #000 !important;
}

/* Сегодняшний день остается синим */
.stanki-balashikha-day.current .stanki-balashikha-day-name,
.stanki-balashikha-day.current .stanki-balashikha-day-time {
    color: #001b72 !important;
}


/* =========================================================
   КАРТОЧКИ СОТРУДНИКОВ — ТОЛЬКО ДЕТАЛЬНЫЕ СТРАНИЦЫ ОФИСОВ
========================================================= */

.stanki-balashikha-page .stm-office-employees__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 22px) / 2);
    gap: 22px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 16px;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    touch-action: pan-x pan-y;
}

.stanki-balashikha-page .stm-office-employees__track.is-dragging {
    cursor: grabbing;
}

.stanki-balashikha-page .stm-office-employee-card {
    min-width: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f5;
    box-shadow: 0 5px 20px rgba(0, 27, 114, .07);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stanki-balashikha-page .stm-office-employee-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.stanki-balashikha-page .stm-office-employee-card__photo {
    width: 82px;
    height: 82px;
    min-width: 82px;
    overflow: hidden;
    border-radius: 50%;
    background: #f3f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001b72;
    font-size: 28px;
    font-weight: 700;
}

.stanki-balashikha-page .stm-office-employee-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stanki-balashikha-page .stm-office-employee-card__identity {
    min-width: 0;
}

.stanki-balashikha-page .stm-office-employee-card__identity h3 {
    margin: 0 0 7px;
    color: #001b72;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.stanki-balashikha-page .stm-office-employee-card__position {
    color: #4d5b78;
    font-size: 14px;
    line-height: 1.45;
}

.stanki-balashikha-page .stm-office-employee-card__contacts {
    display: grid;
    gap: 11px;
    padding: 15px 0;
    border-top: 1px solid #e8edf7;
    border-bottom: 1px solid #e8edf7;
}

.stanki-balashikha-page .stm-office-employee-card__contact {
    min-width: 0;
    color: #171717;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.stanki-balashikha-page .stm-office-employee-card__contact > span {
    display: block;
    margin-bottom: 3px;
    color: #68738a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stanki-balashikha-page .stm-office-employee-card__contact a {
    color: #001b72;
    text-decoration: none;
}

.stanki-balashikha-page .stm-office-employee-card__contact a:hover {
    text-decoration: underline;
}

.stanki-balashikha-page .stm-office-employee-card__description {
    color: #252525;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.stanki-balashikha-page .stm-office-employee-card__description p {
    margin: 0 0 10px;
}

.stanki-balashikha-page .stm-office-employee-card__description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .stanki-balashikha-page .stm-office-employees__track {
        grid-auto-columns: 88%;
        gap: 16px;
    }

    .stanki-balashikha-page .stm-office-employee-card {
        padding: 18px;
    }

    .stanki-balashikha-page .stm-office-employee-card__photo {
        width: 68px;
        height: 68px;
        min-width: 68px;
    }

    .stanki-balashikha-page .stm-office-employee-card__identity h3 {
        font-size: 18px;
    }
}

/* Обновлённая компоновка карточек сотрудников офиса */
.stanki-balashikha-page .stm-office-employees__track {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stanki-balashikha-page .stm-office-employees__track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.stanki-balashikha-page .stm-office-employee-card--with-description {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 22px;
}

.stanki-balashikha-page .stm-office-employee-card__main {
    min-width: 0;
}

.stanki-balashikha-page .stm-office-employee-card--with-description .stm-office-employee-card__contacts {
    margin-top: 18px;
}

.stanki-balashikha-page .stm-office-employee-card--with-description .stm-office-employee-card__description {
    min-width: 0;
    padding-left: 20px;
    border-left: 1px solid #e8edf7;
}

@media (max-width: 700px) {
    .stanki-balashikha-page .stm-office-employee-card--with-description {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .stanki-balashikha-page .stm-office-employee-card--with-description .stm-office-employee-card__description {
        padding: 16px 0 0;
        border-left: 0;
        border-top: 1px solid #e8edf7;
    }
}

/* Квадратное фото, имя и должность под фотографией */
.stanki-balashikha-page .stm-office-employee-card__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.stanki-balashikha-page .stm-office-employee-card__photo {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 0;
    overflow: hidden;
}

.stanki-balashikha-page .stm-office-employee-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stanki-balashikha-page .stm-office-employee-card__identity {
    width: 100%;
}

@media (max-width: 700px) {
    .stanki-balashikha-page .stm-office-employee-card__photo {
        width: 110px;
        height: 110px;
        min-width: 110px;
    }
}

/* Фото сотрудника на всю ширину первой колонки */
.stanki-balashikha-page .stm-office-employee-card__photo {
    width: 100%;
    height: 220px;
    min-width: 0;
    border-radius: 0;
}

.stanki-balashikha-page .stm-office-employee-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 700px) {
    .stanki-balashikha-page .stm-office-employee-card__photo {
        height: 200px;
    }
}

/* Правая колонка описания шире левой в 1,5 раза */
.stanki-balashikha-page .stm-office-employee-card--with-description {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

/* Итоговая ширина колонок: левая 55%, правая 45% */
.stanki-balashikha-page .stm-office-employee-card--with-description {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
}

/* Равная ширина колонок карточки сотрудника */
.stanki-balashikha-page .stm-office-employee-card--with-description {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Мобильная версия: описание под контактами и городом офиса */
@media (max-width: 700px) {
    .stanki-balashikha-page .stm-office-employee-card--with-description {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .stanki-balashikha-page .stm-office-employee-card__main {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .stanki-balashikha-page .stm-office-employee-card--with-description .stm-office-employee-card__contacts {
        margin-top: 18px;
    }

    .stanki-balashikha-page .stm-office-employee-card--with-description .stm-office-employee-card__description {
        width: 100%;
        padding: 16px 0 0;
        margin: 0;
        border-left: 0;
        border-top: 1px solid #e8edf7;
    }
}

/* Мобильная версия: описание открывается нажатием на фото */
@media (max-width: 700px) {
    .stanki-balashikha-page .stm-office-employee-card--with-description .stm-office-employee-card__description {
        display: none;
    }

    .stanki-balashikha-page .stm-office-employee-card--with-description.is-description-open .stm-office-employee-card__description {
        display: block;
    }

    .stanki-balashikha-page .stm-office-employee-card__photo {
        cursor: pointer;
    }

    .stanki-balashikha-page .stm-office-employee-card__photo:focus-visible {
        outline: 2px solid #315cff;
        outline-offset: 3px;
    }
}

/* Мобильные карточки сотрудников: не растягивать по высоте соседней карточки */
@media (max-width: 700px) {
    .stanki-balashikha-page .stm-office-employees__track {
        align-items: start;
    }
}




/* ОФОРМЛЕНИЕ КАРТОЧЕК СОТРУДНИКОВ НА ГЛАВНОЙ СТРАНИЦЕ */
/* =========================================================
   КАРТОЧКИ СОТРУДНИКОВ — ТОЛЬКО ДЕТАЛЬНЫЕ СТРАНИЦЫ ОФИСОВ
========================================================= */

.stm-home-employees .stm-office-employees__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 22px) / 2);
    gap: 22px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 16px;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    touch-action: pan-x pan-y;
}

.stm-home-employees .stm-office-employees__track.is-dragging {
    cursor: grabbing;
}

.stm-home-employees .stm-office-employee-card {
    min-width: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f5;
    box-shadow: 0 5px 20px rgba(0, 27, 114, .07);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stm-home-employees .stm-office-employee-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.stm-home-employees .stm-office-employee-card__photo {
    width: 82px;
    height: 82px;
    min-width: 82px;
    overflow: hidden;
    border-radius: 50%;
    background: #f3f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001b72;
    font-size: 28px;
    font-weight: 700;
}

.stm-home-employees .stm-office-employee-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stm-home-employees .stm-office-employee-card__identity {
    min-width: 0;
}

.stm-home-employees .stm-office-employee-card__identity h3 {
    margin: 0 0 7px;
    color: #001b72;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.stm-home-employees .stm-office-employee-card__position {
    color: #4d5b78;
    font-size: 14px;
    line-height: 1.45;
}

.stm-home-employees .stm-office-employee-card__contacts {
    display: grid;
    gap: 11px;
    padding: 15px 0;
    border-top: 1px solid #e8edf7;
    border-bottom: 1px solid #e8edf7;
}

.stm-home-employees .stm-office-employee-card__contact {
    min-width: 0;
    color: #171717;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.stm-home-employees .stm-office-employee-card__contact > span {
    display: block;
    margin-bottom: 3px;
    color: #68738a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stm-home-employees .stm-office-employee-card__contact a {
    color: #001b72;
    text-decoration: none;
}

.stm-home-employees .stm-office-employee-card__contact a:hover {
    text-decoration: underline;
}

.stm-home-employees .stm-office-employee-card__description {
    color: #252525;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.stm-home-employees .stm-office-employee-card__description p {
    margin: 0 0 10px;
}

.stm-home-employees .stm-office-employee-card__description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .stm-home-employees .stm-office-employees__track {
        grid-auto-columns: 88%;
        gap: 16px;
    }

    .stm-home-employees .stm-office-employee-card {
        padding: 18px;
    }

    .stm-home-employees .stm-office-employee-card__photo {
        width: 68px;
        height: 68px;
        min-width: 68px;
    }

    .stm-home-employees .stm-office-employee-card__identity h3 {
        font-size: 18px;
    }
}

/* Обновлённая компоновка карточек сотрудников офиса */
.stm-home-employees .stm-office-employees__track {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stm-home-employees .stm-office-employees__track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.stm-home-employees .stm-office-employee-card--with-description {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 22px;
}

.stm-home-employees .stm-office-employee-card__main {
    min-width: 0;
}

.stm-home-employees .stm-office-employee-card--with-description .stm-office-employee-card__contacts {
    margin-top: 18px;
}

.stm-home-employees .stm-office-employee-card--with-description .stm-office-employee-card__description {
    min-width: 0;
    padding-left: 20px;
    border-left: 1px solid #e8edf7;
}

@media (max-width: 700px) {
    .stm-home-employees .stm-office-employee-card--with-description {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .stm-home-employees .stm-office-employee-card--with-description .stm-office-employee-card__description {
        padding: 16px 0 0;
        border-left: 0;
        border-top: 1px solid #e8edf7;
    }
}

/* Квадратное фото, имя и должность под фотографией */
.stm-home-employees .stm-office-employee-card__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.stm-home-employees .stm-office-employee-card__photo {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 0;
    overflow: hidden;
}

.stm-home-employees .stm-office-employee-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stm-home-employees .stm-office-employee-card__identity {
    width: 100%;
}

@media (max-width: 700px) {
    .stm-home-employees .stm-office-employee-card__photo {
        width: 110px;
        height: 110px;
        min-width: 110px;
    }
}

/* Фото сотрудника на всю ширину первой колонки */
.stm-home-employees .stm-office-employee-card__photo {
    width: 100%;
    height: 220px;
    min-width: 0;
    border-radius: 0;
}

.stm-home-employees .stm-office-employee-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 700px) {
    .stm-home-employees .stm-office-employee-card__photo {
        height: 200px;
    }
}

/* Правая колонка описания шире левой в 1,5 раза */
.stm-home-employees .stm-office-employee-card--with-description {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

/* Итоговая ширина колонок: левая 55%, правая 45% */
.stm-home-employees .stm-office-employee-card--with-description {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
}

/* Равная ширина колонок карточки сотрудника */
.stm-home-employees .stm-office-employee-card--with-description {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Мобильная версия: описание под контактами и городом офиса */
@media (max-width: 700px) {
    .stm-home-employees .stm-office-employee-card--with-description {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .stm-home-employees .stm-office-employee-card__main {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .stm-home-employees .stm-office-employee-card--with-description .stm-office-employee-card__contacts {
        margin-top: 18px;
    }

    .stm-home-employees .stm-office-employee-card--with-description .stm-office-employee-card__description {
        width: 100%;
        padding: 16px 0 0;
        margin: 0;
        border-left: 0;
        border-top: 1px solid #e8edf7;
    }
}

/* Мобильная версия: описание открывается нажатием на фото */
@media (max-width: 700px) {
    .stm-home-employees .stm-office-employee-card--with-description .stm-office-employee-card__description {
        display: none;
    }

    .stm-home-employees .stm-office-employee-card--with-description.is-description-open .stm-office-employee-card__description {
        display: block;
    }

    .stm-home-employees .stm-office-employee-card__photo {
        cursor: pointer;
    }

    .stm-home-employees .stm-office-employee-card__photo:focus-visible {
        outline: 2px solid #315cff;
        outline-offset: 3px;
    }
}

/* Мобильные карточки сотрудников: не растягивать по высоте соседней карточки */
@media (max-width: 700px) {
    .stm-home-employees .stm-office-employees__track {
        align-items: start;
    }
}



/* Главная: скрытие карточек при фильтрации по городу */
.stm-home-employees .stm-emp-card-home[hidden] {
    display: none !important;
}

/* Уменьшенный отступ описания перед картой контактов */
.entry-content:has(.stanki-offices-page) > .stm-description {
    margin-bottom: 10px !important;
}

/* Отступ под картой на общей странице контактов */
.stanki-offices-page .stanki-offices-map {
    margin-bottom: 58px !important;
}
