@charset "UTF-8";

.doctors__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 2rem
}

.doctors__list .doctors__item {
    width: 24%;
    border-radius: 2rem;
    padding: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    background: -webkit-gradient(linear, left top, right top, from(#f6696f), to(#eb5350));
    background: -o-linear-gradient(left, #f6696f, #eb5350);
    background: linear-gradient(90deg, #f6696f, #eb5350);
    margin-bottom: 2rem
}

@media screen and (max-width:46.875rem) {
    .doctors__list .doctors__item {
        width: 100%;
        padding: .5rem;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row
    }
}

.doctors__list .doctors__item:hover .doctors__info .doctors__name,
.doctors__list .doctors__item:hover .doctors__info .doctors__name span,
.doctors__list .doctors__item:hover .doctors__info .doctors__prof p {
    color: #fff
}

.doctors__list .doctors__item:hover:after {
    opacity: 0
}

.doctors__list .doctors__item:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #edf6ff;
    opacity: 1;
    -webkit-transition: opacity .25s;
    -o-transition: opacity .25s;
    transition: opacity .25s;
    border-radius: 1.75rem;
    z-index: -1
}

.doctors__list .doctors__item .doctors__img {
    width: 100%
}

@media screen and (max-width:46.875rem) {
    .doctors__list .doctors__item .doctors__img {
        width: 35%
    }
}

.doctors__list .doctors__item .doctors__img .doctors__img-img {
    border-radius: 1.5rem;
    width: 100%
}

.doctors__list .doctors__item .doctors__info {
    width: 100%
}

@media screen and (max-width:46.875rem) {
    .doctors__list .doctors__item .doctors__info {
        width: 61%
    }
}

.doctors__list .doctors__item .doctors__info .doctors__name {
    font-weight: 400;
    font-size: calc(1rem + 4 * ((100vw - 20rem) / 1600));
    line-height: 1.5rem;
    text-align: center;
    color: #012037;
    margin: .75rem 0
}

@media (min-width:125rem) {
    .doctors__list .doctors__item .doctors__info .doctors__name {
        font-size: 1.25rem
    }
}

@media screen and (max-width:46.875rem) {
    .doctors__list .doctors__item .doctors__info .doctors__name {
        text-align: left
    }
}

.doctors__list .doctors__item .doctors__info .doctors__name span {
    font-weight: 700;
    font-size: calc(1rem + 4 * ((100vw - 20rem) / 1600));
    line-height: 1.5rem;
    text-align: center;
    color: #012037
}

@media (min-width:125rem) {
    .doctors__list .doctors__item .doctors__info .doctors__name span {
        font-size: 1.25rem
    }
}

@media screen and (max-width:46.875rem) {
    .doctors__list .doctors__item .doctors__info .doctors__name span {
        text-align: left
    }
}

.doctors__list .doctors__item .doctors__info .doctors__prof p {
    font-weight: 400;
    font-size: calc(.875rem + 2 * ((100vw - 20rem) / 1600));
    line-height: 1.125rem;
    text-align: center;
    color: #607788;
    margin: 0
}

@media (min-width:125rem) {
    .doctors__list .doctors__item .doctors__info .doctors__prof p {
        font-size: 1rem
    }
}

@media screen and (max-width:46.875rem) {
    .doctors__list .doctors__item .doctors__info .doctors__prof p {
        text-align: left
    }
}

.doctor {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 0 .9375rem
}

@media screen and (max-width:46.875rem) {
    .doctor {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column
    }
}

.doctor .doctor__left {
    width: 28%
}

@media screen and (max-width:46.875rem) {
    .doctor .doctor__left {
        width: 100%
    }
}

.doctor .doctor__left .doctor__img {
    background: #edf6ff;
    border-radius: 2rem;
    padding: 1rem;
    margin-bottom: 1rem
}

.doctor .doctor__left .doctor__img .doctor__img-img {
    width: 100%;
    border-radius: 2rem
}

.doctor .doctor__left .doctor__btn button {
    margin-bottom: 1rem;
    width: 100%
}

.doctor .doctor__left .doctor__btn a {
    display: block;
    width: 100%;
    text-align: center
}

.doctor .doctor__right {
    width: 70%;
    margin-top: 0;
    padding-top: 0;
    padding-left: 1.5rem;
    border-left: .125rem dashed #85b5df;
    border-top: none
}

@media screen and (max-width:46.875rem) {
    .doctor .doctor__right {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: .125rem dashed #85b5df;
        margin-top: 1rem;
        padding-top: 1rem
    }
}

.doctor .doctor__right .section__title {
    text-align: left
}

.doctor .doctor__right .doctor__info {
    margin-top: 1.375rem
}

.doctor .doctor__right .doctor__info p {
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.375rem;
    color: #607788
}

.doctor .doctor__right .doctor__info .doctor__experience,
.doctor .doctor__right .doctor__info .doctor__specialization {
    margin-bottom: 1.375rem
}

.doctor .doctor__right .doctor__info .doctor__about {
    background: #edf6ff;
    border-radius: .75rem;
    padding: 1.5rem
}

.doctor .doctor__right .doctor__info .doctor__about .doctor__title {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex
}

.doctor .doctor__right .doctor__info .doctor__about .doctor__title .pulse {
    width: 3.125rem
}

.doctor .doctor__right .doctor__info .doctor__about ul {
    padding-left: .3125rem;
    list-style: none
}

.doctor .doctor__right .doctor__info .doctor__about ul li {
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.375rem;
    color: #607788;
    margin-bottom: 1rem
}

.doctor .doctor__right .doctor__info .doctor__about ul li:before {
    font-weight: 400;
    color: #ec5553;
    content: "•";
    padding-right: .4375rem
}

.doctor .doctor__right .doctor__info .doctor__about ul li span {
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.375rem;
    color: #012037
}

.doctor .doctor__right .doctor__info .doctor__review {
    margin: 1.375rem 0 0
}

.doctor .doctor__right .doctor__info .doctor__review .doctor__review-title {
    font-weight: 900;
    font-size: calc(2rem + 12 * ((100vw - 20rem) / 1600));
    line-height: 2.75rem;
    color: #012037;
    margin-bottom: 1.375rem
}

@media (min-width:125rem) {
    .doctor .doctor__right .doctor__info .doctor__review .doctor__review-title {
        font-size: 2.75rem
    }
}

.doctor .doctor__right .doctor__info .doctor__review .doctor__review-item {
    background: #fff;
    -webkit-box-shadow: 0 .25rem 2rem rgba(141, 163, 179, .2);
    box-shadow: 0 .25rem 2rem rgba(141, 163, 179, .2);
    border-radius: .75rem;
    padding: 1.5rem;
    margin-bottom: 1.375rem
}

.doctor .doctor__right .doctor__info .doctor__review .doctor__review-item:last-child {
    margin-bottom: 0
}

.doctor .doctor__right .doctor__info .doctor__review .doctor__review-item .doctor__review-person {
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.875rem;
    color: #012037;
    margin-bottom: .75rem
}

.doctor .doctor__right .doctor__info .doctor__review .doctor__review-item .doctor__review-date {
    background: #edf6ff;
    border-radius: 3.625rem;
    padding: .5rem .25rem;
    width: 6.25rem;
    height: 1.75rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: .75rem
}

.doctor .doctor__right .doctor__info .doctor__review .doctor__review-item .doctor__review-date p {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.25rem;
    text-align: center;
    color: #012037;
    margin-bottom: 0
}

.doctor .doctor__title {
    font-weight: 900;
    font-size: calc(1.375rem + 6 * ((100vw - 20rem) / 1600));
    line-height: 1.875rem;
    color: #012037;
    margin-bottom: 0
}

@media (min-width:125rem) {
    .doctor .doctor__title {
        font-size: 1.75rem
    }
}








.accordion__question {
    margin-right: 1.5rem;
}

@media (max-width: 465px) {
    .s-faq .accordion .caret {
        right: 0px;
    }
}

@media (max-width: 768px) {

    #send_review,
    .profile-buttons .form__search-phone {
        display: none;
    }

    .profile-buttons {
        justify-content: center;
    }

    #open_popup {
        width: 300px !important;
        padding: 15px 30px !important;
        margin: 10px;
    }

    #map222 {
        width: 90vw !important;
    }

    #map222>ymaps {
        width: 89vw !important;
    }

    .right-sidebar .stars__container {
        display: none;
    }
}

#showMoreReviews {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    gap: 10px;

    width: 190px;
    height: 48px;

    background: #24AAF3;
    border-radius: 6px;
}

#send_review2 {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    gap: 10px;

    width: 190px;
    height: 48px;

    background: #FFFFFF;
    border: 1px solid #24AAF3;
    border-radius: 6px;

}

#map222>ymaps {
    border-radius: 20px !important;
    overflow: hidden;
}

#open_popup3 {
    padding: 15px 92px;
}

.desktop-text {
    display: none;
}

.mobile-text {
    display: inline;
}

@media (min-width: 768px) {
    #open_popup3 {
        padding: 15px 20px;
        width: 342px;
        height: 48px;
    }

    .desktop-text {
        display: inline;
    }

    .mobile-text {
        display: none;
    }

}

.slot-btn {
    margin: 5px;
}

.rates {
    display: flex;
    width: 295px;
    gap: 10px;
    flex-direction: column;
}

@media (min-width: 768px) {
    .rates {
        flex-direction: row;
        margin-top: 10px;
    }

}

.anchor-nav.anchors a:hover {
    color: #24AAEB;
}

.s-reviews.inner .item .wrap {
    background-color: rgba(36, 170, 243, 0.05);
    box-shadow: none;
}

.metric-item {
    text-align: center;
}

.subtitle-text {

    font-family: 'Roboto';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;

    margin: 0px;




}


.subtitle-text2 {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    margin: 0px;

}

.review-info-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: baseline;
    vertical-align: text-top;
}

.review-name-date-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

@media (min-width: 992px) {
    .review-name-date-container {
        width: 40%;
    }
}

.review-name-date-container .date {
    font-size: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .review-info-container {
        flex-direction: row;

    }
}

.review-proof {
    display: flex;
    background: rgba(36, 170, 243, 1);
    border-radius: 5px;
    padding: 6px 10px;
    height: 28px;
    width: 230px;
}

.review-proof p {
    color: white;
    margin: 0px;
    font-size: 13px;
    line-height: 17px;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 992px) {
    .review-proof {
        width: 250px;
        padding: 6px 16px;
    }

    .review-proof p {
        font-size: 14px;
        line-height: 18px;
    }
}

.review-proof img {
    vertical-align: text-top;
}

.rate_star {
    margin: 3px;
    font-size: 25px;
    color: rgba(0, 147, 226, 1);
}

.rate_text {

    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 22px;
    color: rgba(21, 50, 83, 1);
    text-align: center;
}

.rate_square {
    display: flex;
    flex-direction: row;
    border-radius: 6px;
    border: 1px solid rgba(221, 221, 221, 1);
    align-items: center;
    justify-content: space-evenly;
}

@media (min-width: 768px) {
    .rate_square {
        flex-direction: column;
        padding: 16px 7px 16px 7px;
    }
}

.doc-img {
    border-radius: 20px;

    max-width: 400px;
    margin: 5px auto;
}

.articles-el {
    border: 1px solid rgba(36, 170, 243, 0.4);
    border-radius: 10px;
    padding: 20px;
    gap: 12px;

    margin-bottom: 5px;
}

.articles-text {

    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: rgba(21, 50, 83, 1);
    margin-bottom: 0px !important;
}

.articles-text:hover {
    color: rgba(36, 170, 243, 1);
}


.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 70px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 8px;


}

.year-container {
    position: absolute;
    left: -50px;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.year-container::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 2px;
    /* height: calc(100% + 16px); */
    /* gap + отступы */
    background-image: repeating-linear-gradient(to bottom,
            #333,
            #333 2px,
            transparent 2px,
            transparent 6px);
    z-index: 1;
}

.timeline-item:last-child .year-container::after {
    display: none !important;
}

.year-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: rgba(36, 170, 243, 1);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 14px 13px;
    gap: 10px;
}

.connector {
    width: 2px;
    background-image: repeating-linear-gradient(to bottom,
            #333,
            #333 2px,
            transparent 2px,
            transparent 6px);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 25px;
    /* Центр кружка (50px / 2) */
    z-index: 1;
}



.name {
    /* Section → Heading 1 → Наркологическая клиника в */

    width: 566px;
    height: 46px;

    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 130%;
    /* or 23px */

    color: #153253;



    align-self: stretch;


}


.description {

    /* Section → Heading 1 → Наркологическая клиника в */

    width: 566px;
    height: 21px;

    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    /* identical to box height, or 21px */

    color: rgba(21, 50, 83, 0.8);


    /* Inside auto layout */


    align-self: stretch;


}

@media screen and (max-width: 767px) {

    .name,
    .description {
        width: auto;
        font-size: 14px;
        font-weight: 18px;
    }
}

/* Липкая навигация */
.anchor-nav {
    position: sticky;
    top: 60px;
    border-radius: 20px;
    /* высота шапки — подстрой под свою */
    background: rgba(36, 170, 243, 0.05);
    padding: 0.5rem 1rem;
    z-index: 4;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    /* Firefox */
}

.anchor-nav::-webkit-scrollbar {
    display: none;
    /* Скрываем скроллбар в WebKit */
}

.anchor-nav ul {

    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
    margin: 0;
}


.anchor-nav a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1.75rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.anchor-nav a.active {
    background: #007bff;
    color: white;
}


/* Desktop: sidebar справа, остальное слева */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 335px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;

}

.profile-info .text {
    margin-top: 33px;
}

@media (min-width: 768px) {
    .profile-info .text {
        margin-top: 35px;
    }

    .doctor-info .flex-column {
        margin-right: 80px;
    }
}

@media (max-width: 768px) {
    .profile-header {
        grid-row: 1;
    }

    aside.right-sidebar {
        grid-row: 2;
    }
}

@media (max-width: 768px) {

    .profile-header,
    .profile-info,
    .profile-buttons,
    .anchor-nav,
    .education,
    .specialization {
        width: 100vw;
    }

    .specialization {
        width: 96vw;
    }

    .doctor-info .flex-column {
        margin-right: 0px;
    }
}

/* Все "основные" блоки — в левую колонку */
.profile-header,
.profile-info,
.profile-buttons,
.anchor-nav,
.education,
.specialization {
    grid-column: 1;
}

.doctor-buttons {
    gap: 10px;
}

/* Sidebar — в правую колонку и растягивается по всей высоте */
.right-sidebar {
    grid-column: 2;
    grid-row: 1 / span 10;
    /* занимает много строк */
    align-self: start;
}

/* Mobile: всё в один столбец, но в нужном порядке */
.articles-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    /* отступы между элементами */
}


.specialization-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    /* отступы между элементами */
}

.service-info {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.s-faq.s-faq-price-narco .s-faq-price-narco-list-nn p {
    width: fit-content;
}

.s-faq.s-faq-price-narco .s-faq-price-narco-list-nn p.name {
    font-size: 18px;
    line-height: 24px;
    width: 327px;
}

@media (max-width: 950px) {
    .s-faq.s-faq-price-narco .s-faq-price-narco-list-nn button {
        float: none;
    }

    .s-faq.s-faq-price-narco .s-faq-price-narco-list-nn {
        align-items: flex-start;
    }

    .s-faq.s-faq-price-narco .s-faq-price-narco-list-nn p.name {
        font-size: 16px;
        line-height: 20px;
        width: 260px;
    }
}

@media (min-width: 1024px) {
    .service-info {
        flex-direction: row;

    }
}

.doctor-info {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
}

/* .doctor-info .flex-column {
            margin-right: 80px;
        } */

@media (max-width: 760px) {

    .articles-container {
        grid-template-columns: 1fr;
    }

    .specialization-container {
        grid-template-columns: 1fr;
    }

    .profile-container {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Все блоки — в одну колонку */
    .profile-header,
    .profile-info,
    .profile-buttons,
    .anchor-nav,
    .education,
    .right-sidebar,
    .specialization {
        grid-column: 1;
    }

    /* Порядок через grid-row или просто по разметке */
    /* Проще: просто оставить порядок в HTML как нужно на мобилке */
    .anchor-nav ul {
        flex-wrap: nowrap;
    }

    .timeline {
        padding-left: 60px;
    }

    .year-container {
        left: -40px;
    }

    .year-circle {
        /* Frame 12822 */

        /* Auto layout */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 14px 13px;
        gap: 10px;

        width: 50px;
        height: 50px;

        background: #24AAF3;
        border-radius: 50px;



    }

    .description {
        font-size: 14px;
        padding: 10px 12px;
    }

    .doctor-info {
        display: flex !important;
        flex-direction: column !important;
    }


}




.flex-row {
    display: flex;

    align-items: center;
    flex-direction: row;
}

.flex-column {
    display: flex;

    align-items: center;
    flex-direction: column;
}

.doctor-status-text1 {
    color: #15325399;
    font: normal 400 16px "Roboto";
}

.doctor-status-text2 {
    color: #153253;

    font: normal 400 16px "Roboto";

}

.btn.profile-buttons__btn {
    width: 190px;
    height: 48px;
    padding: 15px 20px;
    border-radius: 6px;
    margin-right: 10px;
}

.profile-buttons .btn.btn-white {
    border: 1px solid rgba(36, 170, 243, 1);
}

.profile-buttons a.btn.btn-white {
    width: 48px;
    height: 48px;
    padding: 15px;
    border-radius: 6px;
}

.profile-buttons a.btn.btn-white img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    object-position: -3px -3px;
}


/* Schedule */
#fakeSchedule {
    margin-top: 24px;
}

.schedule-day {
    margin-bottom: 24px;
}

.schedule-date {
    font-weight: bold;
    margin-bottom: 8px;
}

.schedule-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.slot-btn {
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(221, 221, 221, 1);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, font-weight 0.2s;
}


.day-selector-btn {
    background: rgba(255, 255, 255, 1);
    border: 2px solid rgba(36, 170, 243, 1);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, font-weight 0.2s;
}

.day-selector-btn:hover {
    background: #ddd;
}

.slot-btn:hover {
    background: #f0f8ff;
}


.specialization {
    background-color: rgba(36, 170, 243, 0.05);
    border: 1px solid rgba(36, 170, 243, 0.4);
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    box-sizing: border-box;

    /* Auto layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px;
    gap: 12px;
    margin: 8px 0;

    word-break: break-word;



    /* Специализация 2 */

    /* width: 132px;
        height: 21px; */

    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    /* identical to box height, or 21px */

    color: #153253 !important;





}

.specialization:hover {
    /* 13 */



    /* width: 377.5px;
height: 51px; */

    background: rgba(36, 170, 243, 0.05);
    border: 2px solid #24AAF3;
    border-radius: 10px;


}

@media (min-width: 768px) {
    .profile-info:nth-child(3) {
        display: none;
    }
}

@media (max-width: 768px) {
    .profile-info:nth-child(2) {
        display: none;
    }
}

.shadow-box {


    box-shadow: 0px 0px 20px rgba(36, 170, 243, 0.18);
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    display: block;
    margin: 8px 0;
    color: inherit;
    word-break: break-word;

}


.rating-block {
    align-items: flex-start;

}

.rating-block {
    gap: 20px;
}

@media (min-width: 768px) {
    .rating-block {
        gap: 35px;
    }
}



.btn-read-more {
    background: none;
    border: none;
    color: #24aaf3;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    padding: 0;
    text-decoration: underline;
}

.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.review-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-modal {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.review-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.review-modal-header {
    margin-bottom: 16px;
}

.review-modal-header .name {
    font-weight: 700;
    font-size: 18px;
    color: #153253;
}

.review-modal-header .date {
    color: #666;
    font-size: 14px;
}

.review-modal-body {
    margin: 12px 0;
    line-height: 1.6;
}

.review-modal-footer {
    color: #333;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    margin-top: 12px;
}

.s-license__doc-list1 {
    width: 300px;
    overflow: hidden;
    border-radius: 20px;
}

@media (min-width: 768px) {
    .s-license__doc-list1 {
        width: 335px;
    }
}

@media (max-width: 768px) {
    p.rate_text {
        margin: 20px 0;
        display: flex;
        align-items: baseline;
    }

    .rate_square img.rate_img {
        width: 100px !important;
        height: 20px !important;
    }
}

p.rate_text {
    display: flex;
    align-items: center;
}

.rate_square img.rate_img {
    width: 70px;
    height: 12px;
    margin: 3px;
}

.s-license__doc-list__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-schedule__wrapper,
.doctor-contacts {
    display: grid;
    gap: 35px;
    order: 5;
}

.doctor-schedule__wrapper a {
    text-decoration: underline;
    color: #000;
}

.doctor-schedule__wrapper .flex-row.phone-number {
    font-weight: 700;
}

.doctor-schedule__wrapper .flex-row.phone-number a {
    text-decoration: none;
}

@media (min-width: 768px) {
    .doctor-schedule__wrapper {
        margin-top: 35px;
        padding: 20px;
        border: 1px #ddd solid;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        gap: 35px;
    }
}

.doctor-schedule {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgba(36, 170, 243, 0.05);
    border-radius: 15px;
    padding: 20px;
    gap: 20px;
    max-width: 295px;
    /* margin: 6px auto; */
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); */
    color: rgba(21, 50, 83, 0.9);
}

.doctor-schedule h3 {
    margin: 0 0 16px;
    font-weight: 600;
    font-size: 20px;
    color: #1a365d;
    text-align: center;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #cbd5e0;
}

.schedule-item:last-child {
    border-bottom: none;
}

.days {
    font-weight: 500;
}

.time {
    font-weight: 400;
    color: #4a5568;
}

#services h4 {
    font-size: 18px;
    line-height: 21px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    text-align: left;
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    #services h4 {
        font-size: 19px;
        line-height: 22px;
        white-space: nowrap;
    }


}

@media (min-width: 1024px) {
    #services h4 {
        font-size: 20px;
        line-height: 24px;
    }
}

#services .flex-row.rules a {
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    text-decoration: underline;
}

@media (min-width: 768px) {
    #services .flex-row.rules a {
        font-size: 15px;
        line-height: 24px;
    }
}

@media (min-width: 1024px) {
    #services .flex-row.rules a {
        font-size: 16px;
        line-height: 24px;
    }
}

#services .flex-row.rules {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

#services .flex-row.rules li {
    margin: 0;
    padding: 0;
}

@media (min-width: 576px) {
    #services .flex-row.rules {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    #services .flex-row.rules li:not(:last-child)::after {
        content: "•";
        margin-left: 15px;
        margin-right: 15px;
        color: #fff;
    }
}

#services .rules-container {
    align-items: flex-center;
    margin: 20px 0px 0px 0px;
    text-align: center;
}


/* Центрирование sidebar на мобильных и планшетах */
@media (max-width: 1023px) {
    .right-sidebar {
        justify-self: center;
        max-width: 300px;
        width: 100%;
        /* padding: 0 16px; */
        padding: 0 10px;
        box-sizing: border-box;
    }

    .right-sidebar>* {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .right-sidebar {
        padding: 0;
        max-width: 335px;
    }

}


.global-block {

    display: flex;
    flex-direction: row;
}

.global-block img1 {
    width: 50%;
    border-radius: 20px;
}

.metrics-container {
    display: flex;
}

.metrics-container .metric-item {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .global-block {
        flex-direction: column;
    }

    .global-block img1 {
        width: 100%;
        border-radius: 20px;
    }

    .metrics-container {
        flex-direction: column;
    }

    .metrics-container .metric-item {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
}




.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.popup-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: #000;
}

#reviewForm {
    display: flex;
    flex-direction: column;
}

#reviewForm input,
#reviewForm textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#reviewForm button {
    align-self: flex-end;
}

.thank-you-message {
    text-align: center;
    padding: 20px 0;
    color: green;
    font-size: 18px;
    font-weight: bold;
}


.contacts-input {
    /* width: 250px; */
    height: 50px;
    border-radius: 6px;
    border: 1px solid rgba(221, 221, 221, 1);
    padding: 16px 17px 16px 17px;
    gap: 10px;
}

textarea.contacts-input {
    height: 102px;
    width: 100%;
    resize: none;
}

.part-input1 {
    width: 48.5%;
    margin-right: 3%;
    margin-top: 3%;
    margin-bottom: 3%;
}

.part-input2 {
    width: 48.5%;
    margin-top: 3%;
    margin-bottom: 3%;
}

.contacts__form-content {
    padding: 0 10px;
}

.contacts__form-content textarea {
    width: 100%;
    margin-top: 10px;
}

.contacts__form-content input.contacts-input {
    width: 100%;
    margin-top: 10px;
}

.contacts__form-content__input-container {
    width: 100%;
    display: grid;
    gap: 10px;
}

.contacts__form-content .flex-row {
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .contacts__form-content {
        padding: 0;
    }

    .contacts__left {
        width: 100%;
    }

    .contacts__left .section__title {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .contacts__form {
        margin: 10px;
    }

    .contacts__left .section__title {
        margin-left: 21px;
    }

    .contacts__form-content__input-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "field1 field2"
            "field3 field3"
            "field4 field4";
    }

    .field:nth-child(1) {
        grid-area: field1;
    }

    .field:nth-child(2) {
        grid-area: field2;
    }

    .field:nth-child(3) {
        grid-area: field3;
    }

    .field:nth-child(4) {
        grid-area: field4;
    }

    .contacts__form-content .flex-row {
        flex-direction: row;
    }

    .contacts__form-content input.contacts-input {
        width: 252px;
        background: #FFFFFF;
        border: 1px solid #DDDDDD;
        box-shadow: inset 1px 0px 4px 1px rgba(0, 0, 0, 0.06), inset 0px 2px 4px 1px rgba(0, 0, 0, 0.06);
        border-radius: 6px;
    }

}







.selector {
    margin-top: 7px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 17px;
    gap: 10px;
    position: relative;

    height: 51px;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    box-shadow: inset 1px 0px 4px 1px rgba(0, 0, 0, 0.06), inset 0px 2px 4px 1px rgba(0, 0, 0, 0.06);
    border-radius: 6px;
}

.placeholder {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    gap: 179px;
    width: 481px;
    height: 19px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.placeholder .dropdown {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.main-text {
    width: 126.12px;
    height: 19px;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    display: flex;
    align-items: center;
    color: #313131;
    flex: none;
    order: 0;
    flex-grow: 0;
}

select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    box-shadow: inset 1px 0px 4px 1px rgba(0, 0, 0, 0.06), inset 0px 2px 4px 1px rgba(0, 0, 0, 0.06);
    border-radius: 6px;
}


.contacts-section {


    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 20px;
    padding: 50px;
    gap: 70px;
}

@media (max-width: 1023px) {
    .contacts-section {
        border: none;
        padding: 0;
        gap: 0;
    }
}