/* Кейсы лечения и интервью на странице врача */

.doctor-cases,
.doctor-interview {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
}

.doctor-cases__title,
.doctor-interview__title {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    font-weight: var(--md-font-weight-bold);
    text-transform: uppercase;
    color: var(--md-color-text-primary);
}

.doctor-cases__lead {
    margin: 0;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.5;
    font-weight: var(--md-font-weight-light);
    color: var(--md-color-surface-subtle);
}

.doctor-cases__list {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 56px);
}

.doctor-case {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 24px);
    padding: clamp(20px, 2.5vw, 32px);
    border-radius: var(--md-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.doctor-case__title {
    margin: 0;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.25;
    font-weight: var(--md-font-weight-bold);
    color: var(--md-color-text-primary);
}

.doctor-case__content {
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.6;
    font-weight: var(--md-font-weight-light);
    color: var(--md-color-surface-subtle);
}

.doctor-case__content > * + * {
    margin-top: 14px;
}

.doctor-case__content a {
    color: var(--md-color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.doctor-case__content a:hover {
    color: var(--md-color-text-primary);
}

.doctor-case__content ul,
.doctor-case__content ol {
    margin: 0;
    padding-left: 1.2em;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doctor-case__content li {
    margin: 0;
}

.doctor-case__content strong {
    color: var(--md-color-text-primary);
    font-weight: var(--md-font-weight-semibold);
}

.doctor-case__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.doctor-case__thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    cursor: zoom-in;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doctor-case__thumb:hover,
.doctor-case__thumb:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    outline: none;
}

.doctor-case__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doctor-case__thumb-icon {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.doctor-case__thumb:hover .doctor-case__thumb-icon {
    opacity: 1;
    transform: scale(1.05);
}

.doctor-case__source {
    margin-top: auto;
    padding-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--md-color-surface-subtle);
    opacity: 0.7;
}

.doctor-case__source a {
    color: var(--md-color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.doctor-case__source a:hover {
    color: var(--md-color-text-primary);
}

/* Интервью */

.doctor-interview__body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

.doctor-interview__video-wrap {
    position: relative;
    border-radius: var(--md-radius-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.doctor-interview__video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    background: #000;
}

.doctor-interview__description {
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.6;
    font-weight: var(--md-font-weight-light);
    color: var(--md-color-surface-subtle);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.doctor-interview__description > * + * {
    margin-top: 0;
}

.doctor-interview__source {
    margin-top: auto;
    padding-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--md-color-surface-subtle);
    opacity: 0.7;
}

.doctor-interview__source a {
    color: var(--md-color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.doctor-interview__source a:hover {
    color: var(--md-color-text-primary);
}

@media (max-width: 991px) {
    .doctor-interview__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .doctor-case__gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .doctor-case__thumb-icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .doctor-case__gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .doctor-case {
        padding: 18px;
    }
}
