.map-contacts {
    --contacts-map-glass: #171717a6;
}

.contacts-map {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background: #e9e9ef;
}

.contacts-main .map-contacts {
    min-height: 380px;
}

.contacts-map .leaflet-control-attribution {
    font-size: 11px;
}

.contacts-map__pin {
    filter: drop-shadow(0 3px 4px #19191842);
}

.contacts-map .leaflet-control-zoom {
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid #ffffff38;
    border-radius: 24px;
    background: var(--contacts-map-glass);
    backdrop-filter: blur(8px);
}

.contacts-map .leaflet-control-zoom a {
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 0;
}

.contacts-map .leaflet-control-zoom a::before,
.contacts-map .leaflet-control-zoom-in::after {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 13px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: translate(-50%, -50%);
    content: '';
}

.contacts-map .leaflet-control-zoom-in::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.contacts-map .leaflet-control-zoom a:hover,
.contacts-map .leaflet-control-zoom a:focus-visible {
    background: #ffffff21;
    color: #ffd000;
}

.contacts-map .leaflet-control-zoom a:focus-visible {
    outline: 1px solid #ffd000;
    outline-offset: -2px;
}

.contacts-map .leaflet-control-zoom a.leaflet-disabled {
    background: transparent;
    color: #ffffff80;
}

.contacts-map .contacts-map__label {
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: var(--contacts-map-glass);
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(6px);
}

.contacts-map .contacts-map__label::before {
    display: none;
}

.contacts-map__status {
    position: absolute;
    z-index: 700;
    inset: 12px 0 auto;
    width: fit-content;
    max-width: 90%;
    margin-inline: auto;
    padding: 5px 10px;
    border-radius: 6px;
    background: #fff;
    color: #292a29;
    font-size: 13px;
    pointer-events: none;
}

.contacts-map__metro {
    position: absolute;
    z-index: 1;
    right: 0.8rem;
    bottom: 64px;
    width: max-content;
    max-width: calc(100% - 1.6rem);
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #ffffff38;
    border-radius: 12px;
    background: var(--contacts-map-glass);
    color: #fff;
    backdrop-filter: blur(8px);
}

.contacts-map__metro-title {
    margin: 0 0 9px;
    font-weight: 500;
}

.contacts-map__transit {
    max-width: 25ch;
    margin: 0;
}

.contacts-map__metro ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contacts-map__metro li {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) max-content;
    align-items: center;
    column-gap: 20px;
}

.contacts-map__metro li > span:first-child {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.contacts-map__metro li > span:first-child::before {
    flex: 0 0 13px;
    height: 10px;
    background: #fff;
    clip-path: polygon(0 100%, 19% 0, 50% 51%, 81% 0, 100% 100%, 80% 100%, 70% 53%, 50% 87%, 30% 53%, 20% 100%);
    content: '';
}

.contacts-map__metro li > span:last-child {
    color: #ffe05b;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.contacts-main .map-contacts > .drive-btn {
    position: absolute;
    z-index: 2;
    right: 0.8rem;
    bottom: 0.8rem;
    display: block;
}

@media (max-width: 380px) {
    .contacts-map__metro {
        padding-inline: 10px;
        font-size: 12px;
    }

    .contacts-map__metro li {
        column-gap: 12px;
    }
}
