.map-region__map-wrap.contacts-map { min-height: 400px; isolation: isolate; scroll-margin-top: 90px; }
a.js-contact-map:not(.button) { color: inherit; text-underline-offset: 3px; }
a.js-contact-map:not(.button):hover, a.js-contact-map:not(.button)[aria-current] { text-decoration: underline; }
a.js-contact-map:not(.button):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.map-region__panel .table-contacts + .table-contacts { border-top: 1px solid rgba(255,255,255,.3); margin-top: 16px; padding-top: 16px; }
.card-contact__address a { color: inherit; }
.finex-map-balloon { max-width: 300px; line-height: 1.5; }
.finex-map-balloon p { margin: 0 0 8px; }
.contacts-map__error { padding: 16px; }
@media (max-width: 767.98px) { .map-region__map-wrap.contacts-map { height: 400px; } }


/* FINEX native Yandex balloons. Keep changes inside our map canvases. */
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .ymaps-2-1-79-balloon__layout {
    box-sizing: border-box;
    max-width: min(350px, calc(100vw - 48px));
    border: 1px solid #8d7045;
    border-radius: 0;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
}
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .ymaps-2-1-79-balloon__content {
    box-sizing: border-box;
    width: 320px;
    max-width: calc(100vw - 64px);
    max-height: min(360px, calc(100vh - 96px));
    margin: 0;
    padding: 20px 18px 18px;
    overflow: auto;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
}
/* The API measures this direct wrapper and may put an oversized inline width on it. */
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .ymaps-2-1-79-balloon__content > ymaps {
    max-width: 100%;
    width: auto !important;
    height: auto !important;
}
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .ymaps-2-1-79-balloon-content__header {
    margin: 0 0 14px;
    padding: 0 28px 12px 0;
    border-bottom: 1px solid #e5e5e5;
    color: #8d7045;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 26px;
    overflow-wrap: anywhere;
}
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .finex-map-balloon {
    width: 100%;
    max-width: none;
    color: inherit;
    font: inherit;
}
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .finex-map-balloon .table-contacts {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: inherit;
    font: inherit;
    text-align: left;
}
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .finex-map-balloon th,
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .finex-map-balloon td {
    padding: 0 0 12px;
    vertical-align: top;
    font: inherit;
    line-height: 20px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .finex-map-balloon th {
    width: 92px;
    padding-right: 12px;
    color: #6f6f6f;
    font-weight: 400;
}
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .finex-map-balloon tr:first-child td {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
}
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .finex-map-balloon tr:last-child th,
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .finex-map-balloon tr:last-child td {
    padding-bottom: 0;
}
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .finex-map-balloon a:not(.button) {
    color: #8d7045;
    text-underline-offset: 3px;
}
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .finex-map-balloon a:not(.button):hover {
    color: #6b5534;
    text-decoration: underline;
}
:is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .finex-map-balloon a:not(.button):focus-visible {
    outline: 2px solid #8d7045;
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    :is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .ymaps-2-1-79-balloon__content {
        padding: 18px 16px 16px;
    }
    :is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .ymaps-2-1-79-balloon-content__header {
        margin-bottom: 12px;
        font-size: 18px;
        line-height: 24px;
    }
    :is(#map.contacts-map, .js-finex-yandex-popup.contacts-map) .finex-map-balloon th {
        width: 82px;
        padding-right: 10px;
    }
}
