/* ===== СТРАНИЦА ВРАЧА ===== */
.doctor-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #019934;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #017c2a;
    text-decoration: underline;
}

.breadcrumbs__separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumbs__current {
    color: #333;
    font-weight: 500;
}

.doctor-hero__content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}

.doctor-hero__image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    border: 1px solid #f0f0f0;
}

.doctor-hero__photo {
    width: 100%;
    height: auto;
    display: block;
}

.doctor-hero__experience {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(1, 153, 52, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    box-shadow: 0 5px 15px rgba(1, 153, 52, 0.3);
}

.doctor-hero__experience-years {
    font-size: 24px;
    font-weight: 700;
}

.doctor-hero__experience-text {
    font-size: 12px;
    opacity: 0.9;
}

.doctor-hero__name {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.doctor-hero__specialty {
    font-size: 20px;
    color: #019934;
    font-weight: 600;
    margin-bottom: 20px;
}

.doctor-hero__specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.doctor-hero__specialization-tag {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 30px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.doctor-hero__specialization-tag:hover {
    background: #019934;
    color: white;
}

.doctor-hero__actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Кнопки скопированы локально, чтобы не зависеть от pages.css */
.doctor-hero .btn-primary {
    background: #019934;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(1, 153, 52, 0.3);
}

.doctor-hero .btn-primary:hover {
    background: #017c2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 153, 52, 0.4);
}

.doctor-hero .btn-secondary {
    background: white;
    color: #019934;
    border: 2px solid #019934;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.doctor-hero .btn-secondary:hover {
    background: #019934;
    color: white;
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ===== КРАСИВЫЙ ЧЕКБОКС ===== */
.custom-checkbox-group {
    margin: 25px 0;
}

.custom-checkbox {
    display: flex !important;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    user-select: none;
    font-weight: normal !important;
}

/* Скрываем дефолтный чекбокс, но оставляем его для доступности */
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Рисуем свой квадратик */
.custom-checkbox .checkmark {
    position: relative;
    top: 1px;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* При наведении делаем рамку зеленой */
.custom-checkbox:hover input ~ .checkmark {
    border-color: #019934;
}

/* Когда галочка стоит - заливаем фон зеленым */
.custom-checkbox input:checked ~ .checkmark {
    background-color: #019934;
    border-color: #019934;
}

/* Рисуем саму галочку (белую) */
.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Показываем галочку при активации */
.custom-checkbox input:checked ~ .checkmark::after {
    display: block;
    animation: checkmarkAnimation 0.2s ease-in-out;
}

/* Анимация появления галочки */
@keyframes checkmarkAnimation {
    0% { transform: scale(0) rotate(45deg); }
    100% { transform: scale(1) rotate(45deg); }
}

/* Обводка при клике с клавиатуры (для доступности) */
.custom-checkbox input:focus-visible ~ .checkmark {
    outline: 2px solid #019934;
    outline-offset: 2px;
}

/* Стили для текста */
.custom-checkbox-text {
    padding-top: 2px;
}

.custom-checkbox-text a {
    color: #019934;
    text-decoration: underline;
    transition: color 0.2s;
}

.custom-checkbox-text a:hover {
    color: #017c2a;
}

/* Обработка ошибки: если браузер ругается, что галочка не стоит */
.custom-checkbox input:invalid:not(:placeholder-shown) ~ .checkmark {
    border-color: #dc3545;
}

/* Секция "О враче" */
.doctor-about {
    padding: 60px 0;
    background: #fff;
}

.doctor-about__grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.doctor-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.doctor-card:last-child {
    margin-bottom: 0;
}

.doctor-card__title {
    font-size: 22px;
    font-weight: 700;
    color: #019934;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.doctor-card__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #019934;
    border-radius: 2px;
}

.doctor-card__content {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

.doctor-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doctor-card__list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doctor-card__list li:last-child {
    border-bottom: none;
}

.doctor-card__list li::before {
    content: '•';
    color: #019934;
    font-size: 20px;
    font-weight: bold;
}

/* Сайдбар */
.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.sidebar-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-contact {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.sidebar-contact:last-child {
    margin-bottom: 0;
}

.sidebar-contact__icon {
    width: 24px;
    height: 24px;
    fill: #019934;
    flex-shrink: 0;
}

.sidebar-contact__info {
    flex: 1;
}

.sidebar-contact__label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.sidebar-contact__value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.sidebar-contact__value:hover {
    color: #019934;
    text-decoration: underline;
}

.sidebar-card__text {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sidebar-card__btn {
    width: 100%;
    padding: 14px;
    background: #019934;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar-card__btn:hover {
    background: #017c2a;
}

/* Отзывы */
.doctor-reviews {
    padding: 60px 0;
    background: #f8f9fa;
}

.doctor-reviews__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.doctor-reviews__title {
    font-size: 32px;
    color: #019934;
    margin: 0;
}

.doctor-reviews__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars .star {
    font-size: 20px;
    color: #ddd;
}

.rating-stars .star.filled {
    color: #ffc107;
}

.rating-value {
    font-size: 18px;
    font-weight: 700;
    color: #019934;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-card__patient strong {
    font-size: 18px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.review-card__date {
    font-size: 13px;
    color: #999;
}

.review-card__rating {
    display: flex;
    gap: 2px;
}

.review-card__rating .star {
    font-size: 18px;
    color: #ddd;
}

.review-card__rating .star.filled {
    color: #ffc107;
}

.review-card__content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    max-height: 120px;
    /* Скрываем длинный текст */
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.review-card__content.expanded {
    max-height: 2000px;
    /* Раскрываем при клике */
}

/* Градиент внизу текста */
.review-card__content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, white, transparent);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.review-card__content.expanded::after {
    opacity: 0;
}

/* Стили для кнопки "Читать полностью" */
.review-card__expand-btn {
    background: none;
    border: none;
    color: #019934;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    margin: 0 0 10px 0;
    text-align: left;
    display: inline-block;
    transition: color 0.3s;
}

.review-card__expand-btn:hover {
    color: #017c2a;
    text-decoration: underline;
}

.review-card__photos {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
}

.review-card__photos img {
    width: 100%;
    height: auto;
}

.review-card__verified {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.verified-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f5e9;
    color: #019934;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.reviews-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    margin-bottom: 30px;
}

.reviews-empty p {
    color: #666;
    margin-bottom: 10px;
    font-size: 16px;
}

.reviews-empty p:first-child {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* Форма отзыва */
.review-form-container {
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.review-form-title {
    font-size: 24px;
    color: #019934;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.review-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #019934;
    box-shadow: 0 0 0 3px rgba(1, 153, 52, 0.1);
}

.rating-input {
    display: flex;
    gap: 5px;
    margin: 5px 0;
}

.rating-star {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-star:hover,
.rating-star.active {
    color: #ffc107;
}

.submit-review-btn {
    padding: 14px 30px;
    font-size: 16px;
    border: none;
    background: #019934;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-review-btn:hover {
    background: #017c2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 153, 52, 0.3);
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background: #e8f5e9;
    color: #019934;
    border: 1px solid #019934;
}

.form-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

/* НОВЫЕ СТИЛИ ДЛЯ ГАЛОЧКИ */

/* Адаптивность */
@media (max-width: 1024px) {
    .doctor-hero__name {
        font-size: 36px;
    }

    .doctor-hero__content {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    .doctor-about__grid {
        grid-template-columns: 1fr;
    }

    .doctor-hero .btn-primary,
    .doctor-hero .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .doctor-hero {
        padding: 40px 0;
    }

    .doctor-hero__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .doctor-hero__image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }

    .doctor-hero__name,
    .doctor-hero__specialty,
    .doctor-hero__specializations,
    .doctor-hero__actions {
        justify-content: center;
        text-align: center;
    }

    .doctor-card__title {
        font-size: 20px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .doctor-reviews__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .doctor-reviews__title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .doctor-card {
        padding: 20px;
    }

    .review-card {
        padding: 20px;
    }
}