.branches-page, .branches-page p {
  font-family: 'Gotham Pro';
  color: var(--Black, #1E1E1E);
}
.branches-page .btn-1 {
    line-height: 24px;
}
.mb125{
    margin-bottom: 125px;
}
.fs44{
    font-size: 44px;
} 
.fs38{
    font-size: 38px;
}
.branches-page__list-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    
    margin-top: 24px;
    /*margin-bottom: 125px;*/
}
.branches-page__title {
    
    /*font-size: 44px;*/
    line-height: 100%;
    font-weight: 400;
    color: #1E1E1E;
    letter-spacing: -0.02em;
    margin: 0;
}
.branches-page__subtitle {
    /*font-family: 'Gotham Pro';*/
    font-size: 38px;
    line-height: 100%;
    font-weight: 400;
    color: #1E1E1E;
    letter-spacing: -0.02em;
    margin: 0;
}
.branches-page__list-header .branches-page__list-header-anons {
    font-size: 18px;
    line-height: 23px;
    font-weight: 400;
    color: #1E1E1E;
}

.branches-page__adv {
    display: flex;
    flex-direction: column;
    /*margin-bottom: 125px;*/
}

/* about & advantages  Стили для блока Почему выбирают МД*/
.analyzes-page__complex-container .complex-analyzes__about {
    display: flex;
    align-items: start;
    gap: 8px;
}
.analyzes-page__complex-container .complex-analyzes__about .complex-analyzes__about-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 50%;
}
.analyzes-page__complex-container .complex-analyzes__about .complex-analyzes__about-content-title {
    font-size: 32px;
    line-height: 100%;
    font-weight: 500;
    color: #1E1E1E;
}
.analyzes-page__complex-container .complex-analyzes__about .complex-analyzes__about-content-text {
    display: flex;
    flex-direction: column;
    gap: 32px;
    font-size: 18px;
    line-height: 130%;
    font-weight: 400;
    color: #1E1E1E;
    padding-right: 36px;
}
.analyzes-page__complex-container .complex-analyzes__about .complex-analyzes__about-preview {
    width: 50%;
}
.complex-analyzes__advantages-container .complex-analyzes__advantages-title {
    font-size: 38px;
    line-height: 100%;
    font-weight: 400;
    color: #1E1E1E;
    margin-bottom: 40px;
}
.complex-analyzes__advantages-slider {
    position: relative;
    overflow: hidden;
}
.complex-analyzes__advantages-slider-wrapper {
    position: relative;
}
.complex-analyzes__advantages-slider .complex-analyzes__advantages-slide {
    display: flex;
    align-items: start;
    gap: 8px;
    flex: 0 0 45%;
    background-color: #F8F8F8;
    border-radius: 20px;
    box-sizing: border-box;
    padding: 18px 16px;
    margin-right: 16px;
}
.complex-analyzes__advantages-slider .complex-analyzes__advantages-slide-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.complex-analyzes__advantages-slider .complex-analyzes__advantages-slide-title {
    font-size: 16px;
    line-height: 130%;
    font-weight: 500;
    color: #DC0D1D;
}
.complex-analyzes__advantages-slider .complex-analyzes__advantages-slide-text {
    font-size: 16px;
    line-height: 130%;
    font-weight: 300;
    color: #626262;
}
.complex-analyzes__advantages-slider-wrapper .embla__buttons .embla__button {
    position: absolute;
    top: 33%;
}
.complex-analyzes__advantages-slider-wrapper .embla__buttons .embla__button--prev {
    left: -62px;
}
.complex-analyzes__advantages-slider-wrapper .embla__buttons .embla__button--next {
    right: -62px;
}
.complex-analyzes__advantages-slider-wrapper .embla__dots {
    position: unset;
    margin-top: 16px;
}

@media (max-width: 991px) {
    .analyzes-page__complex-container .complex-analyzes__about {
        flex-direction: column;
        gap: 16px;
    }
    .analyzes-page__complex-container .complex-analyzes__about .complex-analyzes__about-content {
        width: 100%;
        gap: 16px;
    }
    .analyzes-page__complex-container .complex-analyzes__about .complex-analyzes__about-content-title {
        font-size: 20px;
        line-height: 20px;
        font-weight: 700;
    }
    .analyzes-page__complex-container .complex-analyzes__about .complex-analyzes__about-content-text {
        gap: 16px;
        padding-right: 0;
    }
    .analyzes-page__complex-container .complex-analyzes__about .complex-analyzes__about-preview {
        width: 100%;
    }
    .complex-analyzes__advantages-container .complex-analyzes__advantages-title {
        font-size: 25px;
        line-height: 100%;
        font-weight: 400;
        margin-bottom: 22px;
    }
    .complex-analyzes__advantages-slider .complex-analyzes__advantages-slide {
        flex: 0 0 100%;
        padding: 16px;
        margin-right: 8px;
    }
    .complex-analyzes__advantages-slider .complex-analyzes__advantages-slide-content {
        gap: 8px;
    }
    .complex-analyzes__advantages-slider-wrapper .embla__dots {
        margin-top: 8px;
    }
}
/* about & advantages Стили для блока Почему выбирают МД*/

/*Медицинские центры*/
.medical-center-title {
    /*font-size: 38px;*/
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 38px */
    letter-spacing: -0.76px;
    margin-bottom: 64px;
    color: var(--Black, #1E1E1E);
}
.medical-center_item {
    display: flex;
    column-gap: 40px;
    margin-bottom: 100px;
    color: var(--Black, #1E1E1E);
    .center-title {
        display: block;
        /*font-size: 38px;*/
        line-height: 100%; /* 38px */
        letter-spacing: -0.76px;
        font-style: normal;
        font-weight: 400;
        margin-bottom: 16px;
        text-decoration: none;
        color: var(--Black, #1E1E1E);
    }
    .medical-center_address{
        display: flex;
        width: max-content;
        padding: 10px 12px;
        align-items: center;
        gap: 8px;
        border-radius: 8px;
        background: #F8F8F8;
        font-size: 18px;
        line-height: 23px; /* 127.778% */
        font-style: normal;
        font-weight: 400;
        margin-bottom: 35px;
    }
    .center-text {
        margin-bottom: 24px;
    }
    .center-text,
    .center-text p
    {
        font-size: 18px;
        line-height: 22px; /* 122.222% */
    }
    .center-text p:not(:last-child){
        margin-bottom: 16px;
    }
}

.reverse {
    flex-direction: row-reverse;
}
.medical-center_item .item_content {
    width: calc(50% - 20px);
}
/*Медицинские центры*/
/*галерея в центрах*/
.gallery {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.row-item {
    display: flex;
    gap: 20px;
}

.full-width {
    width: 100%;
}

.image-container {
    position: relative;
    overflow: hidden;0px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.image-container a {
    display: flex;
    flex: 1; /* равномерное распределение ширины */
  height: 100%; /* занимает всю высоту контейнера */
  min-width: 0; /* предотвращает переполнение */
}
 .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 10px;
}
  /* Первый ряд - одно изображение на всю ширину */
.first-row {
    height: 280px;
}

  /* Второй ряд - три изображения */
.second-row .image-container {
    display: flex;
    flex: 1;
    column-gap: 8px;
    height: 177px;
    stretch: auto;
    
}
.second-row .image-container a{
    height: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .row-item {
        flex-direction: column;
    }
    
    .first-row, .second-row .image-container {
        height: 250px;

    }
    .second-row .image-container {
        height: 120px !important;
    }
    .second-row .image-container {
        align-items: stretch;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Обязательно для iOS */
         scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE и Edge */
        
        
        
    }
    .second-row .image-container::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }
    .second-row .image-container a{
            height: auto;
            min-width: 120px;
            min-height: 120px;
           /* width: 100%;
            height: 100%;
            min-height: 120px;
            min-width: 120px;*/
            
    }
    .second-row .image-container a img{
                max-width: 100%;
                height: auto;
            min-height: 120px;
            min-width: 120px;
        }
     
}
/*галерея в центрах*/
/*блок записи*/
.block_recording {
    padding: 40px 0;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px; /* 125% */
    border-top: 1px solid #DEDEDE;
    border-bottom: 1px solid #DEDEDE;
    /*margin-bottom: 125px;*/
}
.block_recording a {
    margin-top: 32px;
}
/*блок записи*/
@media (max-width: 992px) {
    .mb80{
        margin-bottom: 80px;
    }
    .fs27{
        font-size: 27px;
    } 
    .fs25{
        font-size: 25px;
    }
    .row-item {
        flex-direction: column;
    }
    /*.branches-page__title {
        font-size: 27px;
    }*/
    .medical-center-title {
        margin-bottom: 32px;;
    }
    .first-row, .second-row .image-container {
        height: 250px;
    }
    .medical-center_item {
        flex-direction: column-reverse;
        column-gap: 0px;
        row-gap: 30px;
        margin-bottom: 60px;
        .center-title{
            font-size: 25px;
        }    
    }
    /* .reverse {
        flex-direction: column-reverse;
    } */
    .medical-center_item .item_content {
        width: 100%
    }
    
}
@media(max-width:550px){
    .medical-center_item {
            .medical-center_address {
                width: 100%;
            }
        }
}

/*Детальная карточка филиала*/
.mt40{
    margin-top: 40px;
}
.mb40{
    margin-bottom: 40px;
}
.branches-page-detail, .branches-page-detail p {
    font-family: 'Gotham Pro';
    color: var(--Black, #1E1E1E);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}
.branches-page-detail .btn-1 {
    line-height: 24px;
}
/* .branches-page-detail {
    line-height: 23px;
} */
.branches-page__about {
    display: flex;
    column-gap: 20px;
    .branches-page__about-item {
        flex: 1 1 0%; /* базовый размер 0%, растягивается равномерно */
        min-width: 0; /* важно для корректного сжатия */
        width: calc(50% - 10px);
    }
    .branches-page__about-text,  .branches-page__about-text p{
        line-height: 23px;
        /*font-size: 18px;
        font-style: normal;
        font-weight: 400;*/
    }
    .branches-page__about-text p:not(:last-child) {
        margin-bottom: 16px;
    }
    .branches-page__about-text iframe {
        margin-top: 0px;
        height: 50px;
        max-width: 388px;
        width: 100%;
    }
    .about__video{
        display: block;
        height: 320px;
        border-radius: 20px;
        position: relative;
        overflow: hidden;
    }
    .about__video::before{
        content: "";
        --sizeIcon: 48px;
        width: var(--sizeIcon);
        height: var(--sizeIcon);
        min-width: var(--sizeIcon);
        min-height: var(--sizeIcon);
        /*top: calc(50% - var(--sizeIcon) / 2);
        left: calc(50% - var(--sizeIcon) / 2);*/
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: .2 ease-in-out;
        background-image: url(../assets/images/play-icons.svg);
        background-repeat: no-repeat;
        background-size: contain;
        display: block;
        position: absolute;
    }
    .about__video:hover::before{
        opacity: .9;
    }
    .about__video img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
.branches-page__team {
    display: flex;
    column-gap: 40px;
    .item_content {
        flex: 1 1 0%; /* базовый размер 0%, растягивается равномерно */
        min-width: 0; /* важно для корректного сжатия */
        width: calc(50% - 20px);
    }
    .center-text{
        margin-bottom: 24px;
    }
    .center-text, .center-text p {
        /*font-size: 18px;*/
        line-height: 22px;
    }
    .image-container {
        height: 330px;
    }
}
.branches-page__contacts {
    display: flex;
    column-gap: 28px;
    .contacts_item {
        position: relative;
        background-color: #F8F8F8;
        background-repeat: no-repeat;
        background-position: bottom right;
        border-radius: 20px;
        flex: 1 1 0%; /* базовый размер 0%, растягивается равномерно */
        min-width: 0; /* важно для корректного сжатия */
        width: calc(50% - 14px);
        padding: 30px 19px 26px 24px;
        overflow: hidden;
    }
    .contacts_item-title{
        font-size: 24px;
        line-height: 23px;
        margin-bottom: 18px;
    }
    .contacts_item-desc{
        line-height: 23px;
    }
    .contacts_item-desc, .address_item .btn-1--arrow {
        color: var(--Gray, #53575E);  
    }
    .address_item{
            background-image: url(../assets/images/place.png);
    }
    .address_item .btn-1--arrow {
        margin-top: 18px;
        border-color: var(--Gray, #53575E);  
    }
    .address_item .btn-1--arrow:hover{
        color: var(--white);
        border-color: var(--accent);
        background: var(--accent);
    }
    .schedule_item {
         background-image: url(../assets/images/icon-park-outline_time.png);
    }
    .contacts_item-desc p:not(:last-child) {
        margin-bottom: 16px;
    }
}
.branches-page__directions{
    .section-1__title {
        color: #1E1E1E;
        font-weight: 400;
    }
}
.branches-page__directions__container {
    overflow: hidden;
    a:hover{
        text-decoration: none;
    }
    .directions__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        display: grid;
    }
    .directions__card{
        transition: .2s ease-in-out;
        border: 1px solid var(--gray-3);
        border-radius: 20px;
        flex-direction: column;
        gap: 16px;
        /*padding: 24px;*/
        padding: 24px 16px 5px 24px;
        display: flex;
        height: 450px;
        overflow: hidden;
    }  
    .directions__card-title {
        border-bottom: 1px solid var(--gray-3);
        padding-bottom: 16px;
        font-size: 20px;
        font-weight: 500;
        line-height: 100%;
        color: #DC0D1D;
    }
    .directions__card-title a {
        display: flex;
         color: #DC0D1D;
    }
    
    .directions__card-list {
        color: var(--gray-1);
        flex-direction: column;
        gap: 14px;
        font-size: 18px;
        font-weight: 300;
        line-height: 120%;
        display: flex;
        overflow: auto;
    }
    .directions__card-list a {
        color: inherit;
    }
   
    .directions__card-list::-webkit-scrollbar {
        width: 2px;
        height: 2px;
    }
    .directions__card-list::-webkit-scrollbar-track{
         background-color: #DEDEDE !important;
    }
    .directions__card-list::-webkit-scrollbar-thumb {
        border: 2px solid #AFAFAF !important;
        background: #DEDEDE;
        border-radius: 1px;
        /*background-color: #DEDEDE !important;*/
    }

    @media(max-width:992px){
        .directions__list {
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }
    }
    @media(max-width:576px){
        .directions__list {
           padding: 0 0 3px;
           display: flex;
           overflow: auto;
        }
        .directions__card{
            flex: 0 0 290px;
            padding: 16px 16px 5px;
        }  
    }
}
.branches-page__promotional{
    position: relative;
    border-radius: 16px;
    background: #F8F8F8;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right, bottom right 17%;
    background-image: url(../assets/images/promotion_vector.png),url(../assets/images/promotion.png);
    padding: 76px 0 76px 67px;
    .text{
        font-size: 24px;
        line-height: 34px;
        width: 50%;
    }
    a {
        color:#DC0D1D;
    }
}
@media(max-width:992px){
    .branches-page__about {
        flex-direction: column;
        gap: 40px;
            .branches-page__about-item {
                width: 100%;
            }
    }  
    .branches-page__team{
        flex-direction: column;
        gap: 40px;
        .item_content{
            width: 100%;
        }
    } 
    .branches-page__contacts{
         flex-direction: column;
         gap: 40px;
         .contacts_item{
            width: 100%;
         }
    } 
    .branches-page__promotional{
        padding: 24px;
        background-position: bottom right, bottom right;
        background-size: cover, 
        contain;
        .text{
            font-size: 16px;
            line-height: 18px;
            width: 60%;
        }
    }
}
@media(max-width:550px){
    .branches-page__promotional{
        background-size: cover, 
        55%;
    }
    
}
@media(max-width:400px){
    .branches-page__promotional{
        background-size: cover, 
        0%;
         .text{
            width: 100%;
        }
    }
    
}
/*Детальная карточка филиала*/
