/* Карта офиса: сохраняем фактическую высоту старого блока на всех экранах. */
.contacts-map.itw-map-wrap {
    height: 507px;
    isolation: isolate;
    background: #eef1eb;
}

.itw-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    font-family: 'Jost', sans-serif;
}

/* Официальный SVG содержит собственные поля, дополнительных отступов нет. */
.itw-map-yandex-logo {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1001;
    display: block;
    width: 88px;
    height: 48px;
}

.itw-map-yandex-logo img {
    display: block;
    width: 88px;
    height: 48px;
    max-width: none;
}

/* Фирменная метка без растровых изображений, чёткая в том числе на Retina. */
.itw-map-marker {
    background: transparent;
    border: 0;
}

.itw-map-marker-pin {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, #FA1919, #F5B91E);
    transform: rotate(-45deg);
    box-shadow: 0 3px 9px rgba(0, 0, 0, .25);
}

.itw-map-marker-pin::after {
    content: '';
    position: absolute;
    inset: 8px;
    background: #fff;
    border-radius: 50%;
}

.itw-map-canvas .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 5px 24px rgba(0, 0, 0, .15);
}

.itw-map-canvas .leaflet-popup-content {
    margin: 16px 22px 16px 16px;
    font: 15px/1.4 'Jost', sans-serif;
    color: #1f1f1f;
}

.itw-map-popup-title {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.itw-map-popup-address {
    margin: 0 0 12px;
}

.itw-map-canvas .itw-map-popup-route {
    color: #c71e1e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.itw-map-canvas .leaflet-control-zoom a {
    color: #1f1f1f;
}

.itw-map-canvas .leaflet-control-attribution {
    font: 10px/1.4 'Jost', sans-serif;
}

/* На телефоне до нажатия карта пропускает обычный вертикальный скролл. */
.itw-map-guard {
    position: absolute;
    inset: 0;
    z-index: 750;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px 12px 56px;
    border: 0;
    background: transparent;
    color: #1f1f1f;
    cursor: pointer;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.itw-map-guard[hidden] {
    display: none;
}

.itw-map-guard-text {
    padding: 10px 14px;
    background: rgba(255, 255, 255, .94);
    font: 13px/1.25 'Jost', sans-serif;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.itw-map-canvas:focus-visible,
.itw-map-yandex-logo:focus-visible {
    outline: 2px solid #FA1919;
    outline-offset: -2px;
}
