.map {
    margin-bottom: 80px;
}
.map h2 {
    font-weight: bold;
    font-size: 56px;
    line-height: 64px;
    margin-bottom: 0;
    margin-right: 40px;
    color: #646565;
}
.map__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}
.map__yandex {
    height: 660px;
}
.map .ymaps-2-1-79-balloon__layout {
    border-radius: 24px;
}
.map .map-item__flex {
    display: flex;
}
.map .map-item__preview {
    margin-right: 24px;
}
.map .map-item__info {
    display: flex;
    flex-direction: column;
}
.map .map-item__preview img {
    display: block;
    width: 156px;
    height: 156px;
    object-fit: cover;
    border-radius: 16px;
}
.map .map-item__row {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 18px;
}
.map .map-item__row--title {
    margin-bottom: 4px;
}
.map .map-item__row:last-child {
    margin-top: auto;
}
.map .map-item__metro-name {
    font-size: 17px;
    line-height: 24px;
    font-weight: 600;
    margin-right: 8px;
}
.map .contacts-clinics__list__item__metro-marker {
    margin-left: 0;
    margin-right: 4px;
}
.map .map-item__link-to-appointment {
    font-size: 17px;
    line-height: 24px;
    font-weight: 500;
    color: #077EDC;
    position: relative;
}
.ymaps-2-1-79-balloon {
    border-radius: 24px;
}
.map__clinic-info {
    display: none;
    margin-top: 20px;
    padding: 10px;
}
.map__clinic-l {
    max-width: 1300px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-left: auto;
}
.map__clinic-li {
    font-size: 17px;
    line-height: 28px;
    color: #21272A;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 6px 0 rgba(0, 67, 139, .1);
    margin-right: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
}
.map__clinic-li.act {
    color: white;
    background-color: var(--main-page-color);
    padding-left: 40px;
}
.map__clinic-li.act::before {
    content: "";
    width: 14px;
    height: 10px;
    background-image: url("images/icon-check.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}
.map__clinic-li .day-night {
    font-size: 13px;
    line-height: 18px;
    background-color: #EB4343;
    padding: 3px 8px;
    border-radius: 12px;
    color: white;
}

@media screen and (max-width: 800px) {
    .map {
        margin-bottom: 40px;
    }
    .map__clinic-info {
        display: block;
        padding: 0;
    }
    .map .map-item__preview {
        margin-right: 12px;
    }
    .map .map-item__flex {
        flex-direction: column-reverse;
    }
    .ymaps-2-1-79-balloon-pane {
        display: none;
    }
    .map h2 {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 16px;
    }
    .map__header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
    }
    .map .map-item__preview img {
        width: 80px;
        height: 80px;
    }
    .map__yandex {
        margin-left: -15px;
        margin-right: -15px;
    }
}