/*----LISTING PAGE----*/
.doctors-hero{
    margin-bottom: 60px;
    padding: 25px;
    border-radius: 15px;
    width: 100%;
    background-color: #F7F8FA;
    box-shadow: 0px 2px 10px rgba(78, 127, 222, 0.2);
    display: flex;
    justify-content: center;
}
.doctors-hero__content{
    max-width: 1280px;
}
.doctors-list{
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.doctor-card{
    background: #fff;
    box-shadow: 0px 2px 10px rgba(78, 127, 222, 0.2);
    border-radius: 6px;
    padding: 30px 40px 38px 40px;
    position: relative;
    display: grid;
    grid-template-columns: 170px 1fr 370px;
    grid-gap: 30px 45px;
}
.doctor-card .doctor-card__name a{
    text-decoration: none;
    color: #172E17;
}
.doctor-card .doctor-card__image img{
    display: flex;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    border: 1px solid #EFF3F8;
    justify-content: center;
    align-items: center;
}
.doctor-card__price{
    position: relative;
    padding: 4px 0 11px 13px;
    font-size: 14px;
    line-height: 26px;
    font-weight: 600;
}
.doctor-card__price p{
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 26px;
    font-weight: 600;
    color: #465C79;
    margin: 0;
}
.doctor-card__price span{
    font-size: 24px;
    color: #172E17;
    line-height: 26px;
    font-weight: 600;
}
.doctor-card__price:before{
    content: '';
    display: block;
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: #D3A381;
    position: absolute;
    left: 0;
    top: 0;
}
.doctor-card__name{
    margin-bottom: 15px;
}
.doctor-card__position{
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 17px;
}
.doctor-card__info{
    margin-bottom: 35px;
}
.doctor-address__info{
    padding: 9px 42px 10px 11px;
    background: #fff;
    border-radius: 6px;
    border: 1px dashed #BFCEDF;
    width: 100%;
    cursor: pointer;
    position: relative;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}
.clinic-metro .closest-stations{
    margin-top: 6px;
}
.doctor-address__link{
    color: #172E17;
}
.clinic-address{
    font-size: 14px;
    line-height: 20px;
    color: #9199A3;
}
.doctor-card__phone{
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.doctor-card__phone a {
    font-weight: bold;
    font-size: 16px;
    color: inherit;
}
.doctor-card__phone p{
    color: #172E17;
    font-size: 14px;
    line-height: 1.45;
}

/* Адаптив для планшетов */
@media (max-width: 1024px) {
    .doctor-card {
        grid-template-columns: 150px 1fr 320px;
        grid-gap: 25px 35px;
        padding: 25px 30px 32px 30px;
    }

    .doctor-single-hero {
        grid-gap: 60px;
    }

    .doctor-single__header {
        grid-template-columns: 180px 1fr;
        grid-gap: 45px 30px;
    }

    .doctor-single__thumbnail {
        max-width: 180px;
    }
}

/* Переход на flexbox для мобильных устройств */
@media (max-width: 768px) {
    .doctors-hero {
        padding: 20px;
        margin-bottom: 40px;
    }

    .doctors-list {
        gap: 20px;
        margin: 30px 0;
    }

    .doctor-card {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .doctor-card__left {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .doctor-card__image img {
        max-width: 150px !important;
        max-height: 150px;
    }

    .doctor-card__middle {
        text-align: center;
    }

    .doctor-card__name {
        text-align: center;
    }

    .doctor-card__position {
        text-align: center;
    }

    .doctor-card__info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 25px;
    }

    .doctor-card__right {
        text-align: center;
    }

    .doctor-address__info {
        text-align: center;
    }

    .doctor-card__phone {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Single page адаптив */
    .doctor-single-hero {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 30px 0;
    }

    .doctor-single__header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .doctor-single__thumbnail {
        display: flex;
        justify-content: center;
        max-width: 200px;
    }

    .doctor-single__thumbnail img {
        max-width: 200px !important;
        max-height: 200px;
    }

    .doctor-single__title {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .title-doctor__bottom {
        justify-content: center;
        flex-wrap: wrap;
    }

    .doctor-single-info {
        text-align: center;
    }

    .card-address {
        text-align: center;
    }

    .card-work-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Дополнительная адаптивность для маленьких экранов */
@media (max-width: 480px) {
    .doctors-hero {
        padding: 15px;
        margin-bottom: 30px;
        border-radius: 10px;
    }

    .doctors-list {
        gap: 15px;
        margin: 20px 0;
    }

    .doctor-card {
        padding: 15px;
        gap: 15px;
        border-radius: 4px;
    }

    .doctor-card__image img {
        max-width: 120px !important;
        max-height: 120px;
    }

    .doctor-card__price {
        padding: 3px 0 8px 10px;
    }

    .doctor-card__price span {
        font-size: 20px;
    }

    .doctor-card__name {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .doctor-card__position {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .doctor-card__info {
        margin-bottom: 20px;
        gap: 8px;
    }

    .doctor-address__info {
        padding: 8px 15px;
    }

    .doctor-card__phone {
        flex-direction: column;
        gap: 3px;
    }

    .doctor-card__phone a {
        font-size: 15px;
    }

    /* Single page адаптив */
    .doctor-single-hero {
        padding: 20px 0;
        gap: 20px;
    }

    .doctor-single__header {
        gap: 20px;
    }

    .doctor-single__thumbnail {
        max-width: 150px;
    }

    .doctor-single__thumbnail img {
        max-width: 150px !important;
        max-height: 150px;
    }

    .doctor-single__title {
        font-size: 20px !important;
    }

    .title-doctor__bottom img {
        height: 36px;
        top: 6px;
    }

    .title-doctor__bottom {
        gap: 10px;
    }

    .doctor-single-info p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .single-dr__services {
        padding: 30px 0;
    }

    .review-item {
        padding: 16px;
        margin-bottom: 15px;
    }
}

/* Специфические адаптивные стили для рейтинга в карточках */
@media (max-width: 768px) {
    .doctor-card__rating {
        margin-top: 8px;
    }

    .doctor-card__rating .rating-block {
        flex-direction: column;
        gap: 4px;
    }

    .doctor-card__rating .block-value {
        font-size: 0.9rem;
    }

    .doctor-card__rating .reviews-count {
        font-size: 0.75rem;
    }
}

/* Адаптивность для пагинации */
@media (max-width: 768px) {
    .doctors-pagination .page-numbers {
        padding: 8px 12px;
        font-size: 14px;
        margin: 0 2px;
    }

    .doctors-pagination .prev,
    .doctors-pagination .next {
        padding: 8px 12px;
    }
}

/* Адаптивность для секций с текстом */
@media (max-width: 768px) {
    .section-clinic__text {
        margin: 30px 0;
        padding: 12px;
        border-radius: 8px;
    }

    .section-clinic__text h2 {
        font-size: 20px;
    }

    .section-clinic__text p {
        font-size: 14px;
    }
}

/* Адаптивность для отзывов */
@media (max-width: 768px) {
    .single-doctor__reviews {
        margin: 40px 0;
        padding: 30px 0;
    }

    .reviews-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .reviews-controls {
        justify-content: space-between;
    }

    .reviews-sort {
        min-width: 150px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .single-doctor__reviews {
        margin: 30px 0;
        padding: 20px 0;
    }

    .reviews-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .reviews-sort {
        min-width: auto;
    }

    .review-meta {
        flex-direction: column;
        gap: 8px;
    }
}
/*!!----LISTING PAGE----!!*/

/*----SINGLE PAGE----*/
.title-doctor__bottom h2{
    font-weight: 500 !important;
}
.doctor-single-hero{
    display: grid;
    grid-template-columns: 1fr 440px;
    grid-gap: 80px;
    padding: 50px 0;
}
.doctor-single__header{
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 220px 1fr;
    grid-template-columns: 220px 1fr;
    grid-gap: 55px 40px;
}
.doctor-single-hero .doctor-card__bottom{
    grid-column: 1 / -1;
}
.doctor-single__title{
    font-size: 22px !important;
    line-height: 1.3;
    font-weight: 600;
    color: #172E17;
    margin-bottom: 15px;
    max-width: 485px;
}
.doctor-single-info p{
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 17px;
}
.experience-single{
    color: #9199A3;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.experience-single strong{
    color: #172E17;
}
.doctor-single__thumbnail{
    max-width: 220px;
}
.doctor-single__thumbnail img{
    display: flex;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    border: 1px solid #EFF3F8;
    justify-content: center;
    align-items: center;
}
.clinic-name{
    color: #172E17;
}
.title-doctor__bottom{
    display: flex;
    align-items: baseline;
    gap: 15px;
}
.title-doctor__bottom img{
    max-height: 40px;
    object-fit: contain;
    height: 46px;
    position: relative;
    top: 8px;
}
.card-address{
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    color: #172E17;
    margin-bottom: 10px;
}
.card-address small {
    display: block;
    color: #9199A3;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}
.card-address span {
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    color: #172E17;

}
.single-dr__services{
    padding: 50px 0;
}

.review-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, transform 0.2s;
    animation: fadeInUp 0.5s
    ease-out;
}
.card-rating__dr .card-rating{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.doctor-card__middle p{
    font-size: 14px !important;
}
.doctor-position{
    color: #465C79;
    line-height: 1.5;
    margin-bottom: 17px;
}
.experience-single{
    color: #9199A3;
    margin-bottom: 5px;
}
.doctor-price__block{
    position: relative;
    padding: 4px 0 11px 13px;
    font-size: 14px;
    line-height: 26px;
    font-weight: 600;
}
.doctor-price__block:before{
    content: '';
    display: block;
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: #D3A381;
    position: absolute;
    left: 0;
    top: 0;
}
.doctor-price__block p{
    display: flex;
    flex-direction: column;
    margin: 0;
}
.dr-price{
    font-size: 24px;
    color: #172E17;
}

/*!!----SINGLE PAGE----!!*/


/*---- SINGLE DOCTOR PAGE ADAPTIVE ----*/

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .doctor-single-wrapper {
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }

    .doctor-single-hero {
        grid-template-columns: 1fr;
        grid-gap: 40px;
        padding: 30px 0;
    }

    .doctor-single__header {
        grid-template-columns: 180px 1fr;
        grid-gap: 35px 25px;
    }

    .doctor-single__thumbnail {
        max-width: 180px;
    }

    .doctor-single__title {
        font-size: 20px !important;
        max-width: 100%;
    }

    .single-dr__services {
        padding: 40px 0;
    }
}

/* Мобильные устройства (480px - 768px) */
@media (max-width: 768px) {
    .doctor-single-wrapper {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .doctor-single-hero {
        padding: 20px 0;
        grid-gap: 30px;
    }

    .doctor-single__header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        grid-gap: 0;
        gap: 25px;
    }

    .single-dr__card-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .doctor-single__thumbnail {
        max-width: 200px;
        margin-bottom: 20px;
    }

    .doctor-single__thumbnail img {
        max-width: 200px !important;
        max-height: 200px;
    }

    .card-rating__dr {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .doctor-card__middle {
        text-align: center;
        width: 100%;
    }

    .doctor-single__title {
        font-size: 18px !important;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .doctor-card__info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .doctor-price__block {
        display: flex;
        justify-content: center;
    }

    .doctor-card__bottom {
        text-align: center;
    }

    .clinic-tabs {
        margin-bottom: 20px;
    }

    .static-page-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .static-page-nav li {
        margin: 0;
    }

    .title-doctor__bottom {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
    }

    .title-doctor__bottom img {
        height: 36px;
        top: 6px;
    }

    .doctor-single-info {
        text-align: center;
    }

    .doctor-card__clinic {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .doctor-address__info {
        text-align: center;
        padding: 12px 20px;
    }

    .card-address {
        text-align: center;
    }

    .card-work-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .item {
        justify-content: center;
    }

    .card-subscribe {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    /* Секция услуг */
    .single-dr__services {
        padding: 30px 0;
    }

    .section-caption {
        text-align: center;
    }

    .sc-title {
        font-size: 20px;
    }

    /* Секция отзывов */
    .single-doctor__reviews {
        margin: 30px 0;
        padding: 20px 0;
    }

    .reviews-header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .reviews-stats {
        display: flex;
        justify-content: center;
    }

    .reviews-controls {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .reviews-sort {
        width: 100%;
        min-width: auto;
    }

    .doctor-review-btn {
        width: 100%;
    }

    /* Аккордеон */
    .ac-header {
        padding: 15px 20px;
    }

    .ac-caption {
        font-size: 16px;
    }


}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    .doctor-single-wrapper {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }

    .doctor-single-hero {
        padding: 15px 0;
        grid-gap: 20px;
    }

    .doctor-single__header {
        gap: 20px;
    }

    .doctor-single__thumbnail {
        max-width: 150px;
    }

    .doctor-single__thumbnail img {
        max-width: 150px !important;
        max-height: 150px;
    }

    .doctor-single__title {
        font-size: 16px !important;
    }

    .doctor-position {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .doctor-card__info p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .doctor-price__block {
        padding: 3px 0 8px 10px;
    }

    .dr-price {
        font-size: 20px;
    }

    .static-page-nav {
        align-items: center;
        gap: 10px;
    }

    .title-doctor__bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .title-doctor__bottom img {
        height: 32px;
        top: 0;
    }

    .title-doctor__bottom h2 {
        font-size: 18px;
    }

    .dr_detail-text {
        font-size: 14px;
        line-height: 1.4;
    }

    .doctor-address__info {
        padding: 10px 15px;
    }

    .clinic-name {
        font-size: 15px;
    }

    .clinic-address {
        font-size: 13px;
    }

    .card-address small {
        font-size: 13px;
    }

    .card-address span {
        font-size: 14px;
    }

    .closest-stations {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .metro-station {
        text-align: center;
        min-width: 100px;
    }

    .item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .item-icon {
        margin-right: 0;
        margin-bottom: 5px;
    }

    /* Секция услуг */
    .single-dr__services {
        padding: 20px 0;
    }

    .sc-title {
        font-size: 18px;
    }

    .ac-header {
        padding: 12px 15px;
    }

    .ac-caption {
        font-size: 15px;
    }

    .ac-content {
        font-size: 14px;
    }

    /* Секция отзывов */
    .single-doctor__reviews {
        margin: 20px 0;
        padding: 15px 0;
    }

    .reviews-average {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .average-rating {
        font-size: 20px;
    }

    .reviews-count {
        font-size: 14px;
    }

    .review-item {
        padding: 16px;
        margin-bottom: 15px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .review-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .review-stars {
        display: flex;
        gap: 2px;
    }

    .review-date {
        font-size: 13px;
    }

    .review-text p {
        font-size: 14px;
        line-height: 1.4;
    }

    .admin-response {
        padding: 12px;
        margin-top: 12px;
    }

    .admin-response strong {
        font-size: 14px;
    }

    .admin-response p {
        font-size: 13px;
        margin-top: 5px;
    }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .doctor-single__thumbnail {
        max-width: 130px;
    }

    .doctor-single__thumbnail img {
        max-width: 130px !important;
        max-height: 130px;
    }

    .doctor-single__title {
        font-size: 15px !important;
    }

    .static-page-nav li a {
        font-size: 13px;
        padding: 8px 12px;
    }

    .title-doctor__bottom h2 {
        font-size: 16px;
    }

    .doctor-address__info {
        padding: 8px 12px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .reviews-controls {
        gap: 10px;
    }

    .review-item {
        padding: 12px;
    }
}

/* Адаптивность для рейтинга */
@media (max-width: 768px) {
    .card-rating {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .rating-block {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .block-stars {
        display: flex;
        gap: 2px;
    }


    .block-value {
        font-size: 14px;
    }

    .reviews-link {
        font-size: 13px;
    }
}

/* Адаптивность для пагинации отзывов */
@media (max-width: 768px) {
    .reviews-pagination .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .reviews-pagination .page-link {
        padding: 8px 12px;
        font-size: 14px;
        margin: 0;
    }

    .reviews-pagination .prev,
    .reviews-pagination .next {
        padding: 8px 12px;
    }
}

/* Плавные переходы */
.doctor-single-hero,
.doctor-single__header,
.doctor-single-info {
    transition: all 0.3s ease;
}

/* Улучшение читаемости на маленьких экранах */
@media (max-width: 768px) {
    .doctor-single-wrapper * {
        max-width: 100%;
    }

    .doctor-single-hero > * {
        width: 100%;
    }
}

/* ДОРАБОТАННЫЕ СТИЛИ МОДАЛЬНОГО ОКНА ВРАЧЕЙ */

.doctors-modals-container {
    position: relative;
}

.doctor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(117 126 138 / 90%);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.doctor-modal[style*="display: flex"] {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.doctor-modal .modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.doctor-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.doctor-modal .modal-close:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

/* Заголовки */
.doctor-modal .modal-small-caption {
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: #D3A381;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Карточка врача */
.doctor-modal .modal-single-card {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.doctor-modal .card-top {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 0;
}

.doctor-modal .card-image {
    flex-shrink: 0;
}

.doctor-modal .card-image img {
    width: 100%;
    max-width: 80px;
    border-radius: 50%;
    border: 3px solid #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.doctor-modal .card-content {
    flex: 1;
}

.doctor-modal .card-caption.small {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.3;
    color: #172E17;
    margin-bottom: 8px;
    font-weight: 600;
}

.doctor-modal .doctor-position {
    font-size: 14px;
    line-height: 1.4;
    color: #465C79;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Форма */
.doctor-modal .modal-form {
    margin-bottom: 25px;
}

.doctor-modal-form {
    width: 100%;
}

.doctor-modal-form p {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
    width: 100%;
}

.doctor-modal-form span {
    width: 100%;
    display: block;
}

.doctor-modal-form .input-form {
    min-height: 56px;
    height: 56px;
    font-size: 16px;
    border-radius: 8px;
    width: 100%;
    padding: 0 20px;
    border: 1px solid #e1e5e9;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
}

.doctor-modal-form .input-form:focus {
    outline: none;
    border-color: #D3A381;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(211, 163, 129, 0.1);
}

.doctor-modal-form .input-form::placeholder {
    color: #9199A3;
    opacity: 0.8;
}

.doctor-modal-form .submit-form {
    min-height: 56px;
    background: #D3A381;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.doctor-modal-form .submit-form:hover {
    background: #ba8f6d;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(211, 163, 129, 0.3);
}

.doctor-modal-form .submit-form:active {
    transform: translateY(0);
}

/* Чекбокс согласия */
.doctor-modal .consent-checkbox {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

.doctor-modal .consent-checkbox p {
    display: block;
    margin-bottom: 15px;
    text-align: left;
}

.doctor-modal .wpcf7-list-item-label {
    font-size: 14px;
    color: #465C79;
    line-height: 1.4;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.doctor-modal .wpcf7-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.doctor-modal .wpcf7-list-item {
    margin: 0;
}

/* Ссылки в футере формы */
.doctor-modal .consent-checkbox a {
    color: #D3A381;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.doctor-modal .consent-checkbox a:hover {
    color: #ba8f6d;
    text-decoration: underline;
}

.doctor-modal .consent-checkbox > div {
    font-size: 12px;
    margin-top: 5px;
    color: #666;
    line-height: 1.4;
}

.doctor-modal .consent-checkbox > div p {
    margin: 0;
    font-size: inherit;
    color: inherit;
}

/* Примечание */
.doctor-modal .form-note {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #D3A381;
    margin-top: 20px;
}

.doctor-modal .form-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #465C79;
}

.doctor-modal .form-note strong {
    color: #172E17;
}

/* Скрытые поля */
.doctor-modal .wpcf7-hidden {
    display: none;
}

/* Состояния загрузки CF7 */
.doctor-modal .wpcf7-spinner {
    display: none;
    margin-left: 10px;
}

.doctor-modal .wpcf7 form.submitting .wpcf7-spinner {
    display: inline-block;
}

.doctor-modal .wpcf7 form.submitting .submit-form {
    opacity: 0.7;
    pointer-events: none;
}

/* Валидация форм */
.doctor-modal .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.doctor-modal .wpcf7 form.invalid .input-form,
.doctor-modal .wpcf7 form.failed .input-form {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.doctor-modal .wpcf7-response-output {
    border: none !important;
    padding: 15px !important;
    margin: 15px 0 0 !important;
    border-radius: 8px;
    font-size: 14px;
}

.doctor-modal .wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb !important;
}

.doctor-modal .wpcf7-validation-errors,
.doctor-modal .wpcf7-mail-sent-ng {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb !important;
}

/* Анимация закрытия */
.doctor-modal.closing {
    opacity: 0;
    visibility: hidden;
}

.doctor-modal.closing .modal-content {
    animation: modalSlideOut 0.3s ease-in;
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
}

/* АДАПТИВНОСТЬ */

@media (max-width: 768px) {
    .doctor-modal {
        padding: 15px;
    }

    .doctor-modal .modal-content {
        padding: 30px 25px;
        max-width: 100%;
        border-radius: 8px;
    }

    .doctor-modal .card-top {
        gap: 15px;
    }

    .doctor-modal .card-image img {
        max-width: 70px;
    }

    .doctor-modal .card-caption.small {
        font-size: 16px;
    }

    .doctor-modal .doctor-position {
        font-size: 13px;
    }

    .doctor-modal .modal-small-caption {
        font-size: 12px;
    }

    .doctor-modal-form .input-form {
        min-height: 52px;
        height: 52px;
        font-size: 15px;
        padding: 0 16px;
    }

    .doctor-modal-form .submit-form {
        min-height: 52px;
        font-size: 15px;
    }

    .doctor-modal .modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .doctor-modal .form-note {
        padding: 15px;
    }

    .doctor-modal .form-note p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .doctor-modal .modal-content {
        padding: 25px 20px;
    }

    .doctor-modal .card-top {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .doctor-modal .card-image {
        align-self: center;
    }

    .doctor-modal .card-image img {
        max-width: 80px;
    }

    .doctor-modal .card-content {
        text-align: center;
    }

    .doctor-modal .wpcf7-list-item-label {
        font-size: 13px;
    }

    .doctor-modal .consent-checkbox > div {
        font-size: 11px;
    }
}

/* Особые состояния для мобильных */
@media (max-width: 360px) {
    .doctor-modal {
        padding: 10px;
    }

    .doctor-modal .modal-content {
        padding: 20px 15px;
    }

    .doctor-modal .card-image img {
        max-width: 70px;
    }

    .doctor-modal .card-caption.small {
        font-size: 15px;
    }
}

/* Поддержка темной темы */
/*@media (prefers-color-scheme: dark) {*/
/*    .doctor-modal .modal-content {*/
/*        background: #2d3748;*/
/*        color: #e2e8f0;*/
/*    }*/

/*    .doctor-modal .card-caption.small {*/
/*        color: #e2e8f0;*/
/*    }*/

/*    .doctor-modal .doctor-position {*/
/*        color: #cbd5e0;*/
/*    }*/

/*    .doctor-modal-form .input-form {*/
/*        background: #4a5568;*/
/*        border-color: #4a5568;*/
/*        color: #e2e8f0;*/
/*    }*/

/*    .doctor-modal-form .input-form:focus {*/
/*        background: #4a5568;*/
/*        border-color: #D3A381;*/
/*    }*/

/*    .doctor-modal .form-note {*/
/*        background: #4a5568;*/
/*    }*/

/*    .doctor-modal .form-note p {*/
/*        color: #cbd5e0;*/
/*    }*/
/*}*/

/* СЕКЦИЯ ДРУГИЕ ВРАЧИ ПОБЛИЗОСТИ - УЛУЧШЕННАЯ ВЕРСИЯ */

.doctor-nearby {
    margin: 60px 0;
    padding: 50px 0;
    position: relative;
}

.doctor-nearby::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #D3A381 50%, transparent 100%);
}

.doctor-nearby .section-caption {
    margin-bottom: 40px;
}

.doctor-nearby .title-clinic__bottom {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 0;
}

.doctor-nearby .title-clinic__bottom img {
    max-height: 40px;
    object-fit: contain;
    height: 46px;
    position: relative;
    top: 8px;
    filter: brightness(0.9);
}

.doctor-nearby .sc-title {
    font-size: 28px;
    font-weight: 600;
    color: #172E17;
    margin: 0;
    background: linear-gradient(135deg, #172E17 0%, #465C79 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doctor-nearby-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px 30px;
    margin: 0 -10px;
    scroll-behavior: smooth;
}

/* Кастомный скроллбар */
.doctor-nearby-flex::-webkit-scrollbar {
    height: 6px;
}

.doctor-nearby-flex::-webkit-scrollbar-track {
    background: rgba(211, 163, 129, 0.1);
    border-radius: 10px;
    margin: 0 10px;
}

.doctor-nearby-flex::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #D3A381 0%, #ba8f6d 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.doctor-nearby-flex::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ba8f6d 0%, #a57a5a 100%);
}

/* Для Firefox */
.doctor-nearby-flex {
    scrollbar-width: thin;
    scrollbar-color: #D3A381 rgba(211, 163, 129, 0.1);
}

.doctor-card-nearby {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #FFFFFF 0%, #FBFCFE 100%);
    box-shadow:
            0px 4px 20px rgba(78, 127, 222, 0.15),
            0px 1px 4px rgba(0, 0, 0, 0.05);
    padding: 30px 25px;
    border-radius: 16px;
    border: 1px solid rgba(211, 163, 129, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex: 0 0 calc(25% - 30px);
    min-width: 280px;
    backdrop-filter: blur(10px);
}

.doctor-card-nearby::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #D3A381;
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-card-nearby:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
            0px 20px 40px rgba(78, 127, 222, 0.25),
            0px 8px 20px rgba(211, 163, 129, 0.15);
    border-color: rgba(211, 163, 129, 0.3);
}

.doctor-card-nearby:hover::before {
    opacity: 1;
}

.doctor-card-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.doctor-card-image::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #D3A381 50%, transparent 100%);
    border-radius: 3px;
    opacity: 0.5;
}

.doctor-card-image a {
    position: relative;
    max-width: 140px;
    display: block;
    width: 100%;
    z-index: 2;
    transition: all 0.4s ease;
    filter: grayscale(0.1);
}

.doctor-card-image a:hover {
    transform: scale(1.08) rotate(2deg);
    filter: grayscale(0);
}

.doctor-card-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.1),
            inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
}

.doctor-card-image a:hover img {
    box-shadow:
            0 12px 35px rgba(211, 163, 129, 0.3),
            inset 0 0 0 2px rgba(211, 163, 129, 0.3);
}
.doctor-card__rating{
    margin-top: 15px;
}
.doctor-card-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doctor-card-title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #172E17 0%, #465C79 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doctor-card-title a {
    color: transparent; /* Для градиентного текста */
    text-decoration: none;
    transition: all 0.3s ease;
}

.doctor-card-title a:hover {
    background: linear-gradient(135deg, #D3A381 0%, #ba8f6d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doctor-card-position {
    font-size: 15px;
    line-height: 1.4;
    color: #465C79;
    margin-bottom: 15px;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.doctor-card-position::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #D3A381 50%, transparent 100%);
}

/* Кнопка записи */
.doctor-card-nearby .card-subscribe {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.doctor-card-nearby .dr-btn-card {
    background: linear-gradient(135deg, #D3A381 0%, #ba8f6d 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.doctor-card-nearby .dr-btn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.doctor-card-nearby .dr-btn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 163, 129, 0.4);
}

.doctor-card-nearby .dr-btn-card:hover::before {
    left: 100%;
}

/* АДАПТИВНОСТЬ */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .doctor-nearby {
        margin: 50px 0;
        padding: 40px 0;
    }

    .doctor-nearby .sc-title {
        font-size: 24px;
    }

    .doctor-nearby-flex {
        gap: 25px;
        padding: 15px 10px 25px;
    }

    .doctor-card-nearby {
        flex: 0 0 calc(33.333% - 25px);
        min-width: 250px;
        padding: 25px 20px;
    }

    .doctor-card-image img {
        height: 120px;
    }
}

/* Мобильные устройства (480px - 768px) */
@media (max-width: 768px) {
    .doctor-nearby {
        margin: 40px 0;
        padding: 30px 0;
    }

    .doctor-nearby .section-caption {
        margin-bottom: 30px;
    }

    .doctor-nearby .title-clinic__bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .doctor-nearby .title-clinic__bottom img {
        height: 36px;
        top: 0;
    }

    .doctor-nearby .sc-title {
        font-size: 22px;
    }

    .doctor-nearby-flex {
        gap: 20px;
        padding: 10px 5px 20px;
        margin: 0 -5px;
    }

    .doctor-card-nearby {
        flex: 0 0 calc(50% - 20px);
        min-width: 220px;
        padding: 20px;
    }
    .doctor-card-image a{
        width: 100%;
        max-width: 120px !important;
    }
    .doctor-card-image img {
        height: 100%;
    }

    .doctor-card-title {
        font-size: 16px;
    }

    .doctor-card-position {
        font-size: 14px;
    }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    .doctor-nearby {
        margin: 30px 0;
        padding: 25px 0;
    }

    .doctor-nearby .sc-title {
        font-size: 20px;
    }

    .doctor-nearby-flex {
        gap: 15px;
        padding: 10px 5px 20px;
    }

    .doctor-card-nearby {
        flex: 0 0 280px;
        min-width: 280px;
        padding: 20px 15px;
    }

    .doctor-card-image img {
        height: 100%;
    }

    .doctor-card-title {
        font-size: 15px;
    }

    .doctor-card-position {
        font-size: 13px;
    }

    .doctor-card-nearby .dr-btn-card {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Анимация появления */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.doctor-card-nearby {
    animation: slideInFromRight 0.6s ease-out;
}

.doctor-card-nearby:nth-child(1) { animation-delay: 0.1s; }
.doctor-card-nearby:nth-child(2) { animation-delay: 0.2s; }
.doctor-card-nearby:nth-child(3) { animation-delay: 0.3s; }
.doctor-card-nearby:nth-child(4) { animation-delay: 0.4s; }

/* Индикатор скролла */
.doctor-nearby-flex::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, #F7F8FA);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-nearby-flex.scrollable::after {
    opacity: 1;
}
.ac-content ul li{
    list-style: none;
    margin-bottom: 5px;
}
.ac-content ul li:before{
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #D3A381;
    border-radius: 50%;
    margin-right: 10px;
}

.dr-rating{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.doctors-pagination{
    margin: 40px 0;
    text-align: center;
}
.doctors-pagination .page-numbers{
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    background-color: transparent;
}
.doctors-pagination .page-numbers .current {
    background: #D3A381;
    color: white;
    border-color: #D3A381;
}
.doctors-pagination .page-numbers a, .doctors-pagination .page-numbers span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s
    ease;
    min-width: 44px;
    text-align: center;
}
.doctors-pagination .page-numbers a:hover {
    background: #f5f5f5;
    border-color: #ccc;
}
.doctor-review-btn{
    width: 100%;
    max-width: 252px;
    box-shadow: 0px 2px 10px rgba(78, 127, 222, 0.2);
    background-color: #fff;
    font-weight: 600;
    color: #D3A381;
}