.map {
    margin-bottom: 80px;
}
.map h2 {
    font-weight: bold;
    font-size: 56px;
    line-height: 64px;
    margin-bottom: 0;
}
.map__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.map__yandex {
    height: 660px;
}
.map__checkbox {
    align-items: center;
    display: none;
}
.map__checkbox._active {
    display: flex;
}
.map__checkbox img {
    display: block;
    margin-right: 12px;
}
.map__checkbox-text {
    font-size: 15px;
    line-height: 24px;
}
.map__checkbox input[type=checkbox] {
    display: none;
    order: 3;
}
.map__checkbox label {
    position: relative;
    padding-right: 40px;
    cursor: pointer;
}
.map__checkbox label::before {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid #F18D18;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}
.map__checkbox label::after {
    content: "\2714";
    font-size: 16px;
    color: white;
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity .3s ease;
}
.map__checkbox input:checked ~ label::before {
    background-color: #F18D18;
}
.map__checkbox input:checked ~ label::after {
    opacity: 1;
}
.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 .map-item__phone {
    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__tabs {
    display: flex;
    align-items: center;
    gap: 0 12px;
    margin-bottom: 20px;
}
.map_tab {
    position: relative;
    box-shadow: 0 2px 6px 0 rgba(0, 67, 139, .1);
    font-weight: 400;
    border-radius: 12px;
    padding: 8px 16px 8px 64px;
    background-color: #FFFFFF;
    color: #21272A;
    text-align: center;
    font-size: 17px;
    line-height: 28px;
    transition: all .3s;
    letter-spacing: .2px;
    cursor: pointer;
    border: none;
}
.map_tab._active {
    background-color: #077EDC;
    color: white;
}
.map_tab::before {
    content: "";
    width: 24px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    left: 16px;
}
.map_tab[data-type="map"]::before {
    background-image: url("images/map.svg");
}
.map_tab._active[data-type="map"]::before {
    background-image: url("images/map_active.svg");
}
.map_tab[data-type="list"]::before {
    background-image: url("images/list.svg");
}
.map_tab._active[data-type="list"]::before {
    background-image: url("images/list_active.svg");
}
.map__iframe,
.map__list {
    display: none;
}
.map__iframe._active {
    display: block;
}
.map__list._active {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
.map__list-item {
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px 0;
    box-shadow: 0 4px 12px 0 rgba(0, 67, 139, .08);
}
.map__list-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px 0px;
}
.map__list-item-header-block {
    display: flex;
    flex-direction: column;
    gap: 4px 0px;
}
.map__list-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px 0px;
}
.map__list-item-header {
    display: flex;
    align-items: center;
    gap: 0px 8px;
}
.text_gray {
    color: #4D5358;
}
.map__list-item-metro {
    border-radius: 50%;
    width: 10px;
    height: 10px;
}
.title_h4 {
    font-size: 21px;
    line-height: 28px;
    font-weight: 600;
}
.title_h5 {
    font-size: 17px;
    line-height: 24px;
    font-weight: 600;
}
.text_small {
    font-size: 13px;
    line-height: 18px;
    letter-spacing: .4px;
}
.link_arrow {
    position: relative;
    display: inline-block;
    padding-right: 20px;
    font-weight: 600;
    color: #077EDC;
}
.link_arrow::after {
    content: "";
    background-image: url("images/link_arrow.svg");
    width: 16px;
    height: 16px;
    top: 50%;
    transform: translate(0, -50%);
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    right: 0px;
}

@media screen and (max-width: 1200px) {
    .map__list._active {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 800px) {
    .map__list._active {
        grid-template-columns: 1fr;
    }
    .map {
        margin-bottom: 24px;
    }
    .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;
    }
    .map__checkbox {
        width: 100%;
    }
}