/* ========================================
   Общие стили блоков записи/обратного звонка
   ======================================== */

/* Обертка с красным фоном */
.callback-wrapper {
    background-color: #E01F26;
    border-radius: 15px;
    padding: 70px 80px 70px 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
    max-width: 930px;
    margin: auto;
}

/* Контент (левая часть) */
.callback-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Заголовок */
.callback-title {
    color: #FFFAFA;
    font-size: 34px;
    font-weight: 300;
    line-height: normal;
    margin: 0;
}

/* Кнопка */
.callback-btn {
    background-color: white;
    border: none;
    border-radius: 1000px;
    color: #E01F26;
    font-size: 17px;
    font-weight: 500;
    padding: 18px 45px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    align-self: flex-start;
}

.callback-btn:hover {
    opacity: 0.9;
}

/* Изображение справа */
.callback-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.callback-image-circle {
    position: relative;
    border-radius: 50%;
}

/* Круглая обводка на расстоянии 15px */
.callback-image-circle::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

.callback-image-circle img {
    max-width: 255px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Иконка телефона */
.callback-phone-icon {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 84px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid #E01F26;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 111;
}

.callback-phone-icon svg {
    width: 33px;
    height: 33px;
}

/* Подзаголовок */
.callback-subtitle {
    color: white;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    opacity: 0.6;
}

/* Телефон */
.callback-phone {
    color: white;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
}

.callback-phone-link {
    color: white;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.callback-phone-link:hover {
    opacity: 0.8;
}

/* Кнопка в секции callback */
.section-callback .callback-btn {
    font-weight: 400;
    padding: 18px 52px;
    margin-top: 15px;
}

/* Адаптивные стили для блоков записи/обратного звонка */
@media (max-width: 1000px) {
    .callback-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 0;
        text-align: center;
    }

    .callback-content {
        display: contents;
    }

    .callback-subtitle {
        order: 1;
        margin-bottom: 10px;
    }

    .callback-title {
        order: 2;
        font-size: 28px;
        max-width: 230px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
    }

    .callback-image {
        order: 3;
        margin-bottom: 30px;
    }

    .callback-image-circle img {
        max-width: 200px;
    }

    .callback-phone {
        order: 4;
        font-size: 0;
        margin-bottom: 25px;
    }

    .callback-phone-link {
        font-size: 26px;
        text-decoration: none;
        margin-top: 20px;
        display: inline-block;
    }

    .callback-btn {
        order: 5;
        width: 100%;
        padding: 15px 30px;
        align-self: center;
    }

    .section-callback .callback-btn {
        margin-top: 0;
    }

    /* Секция записи к врачу */
    .section-doctor-appointment .callback-title {
        order: 1;
        margin-bottom: 30px;
    }

    .section-doctor-appointment .callback-image {
        order: 2;
        margin-bottom: 30px;
    }

    .section-doctor-appointment .doctor-appointment-book-btn {
        order: 3;
        width: 100%;
        padding: 15px 30px;
    }
}