/* ============================================
   SECTION DOCTORS - Команда врачей
   ============================================ */

/* ============================================
   DESKTOP
   ============================================ */
.doctors-section {
    padding: 70px 0 80px;
}

/* Header */
.doctors-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.doctors-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--color-text);
}

.doctors-subtitle {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 12px;
}

.doctors-subtitle:last-of-type {
    margin-bottom: 0;
}

/* Tabs */
.doctors-tabs {
    margin-bottom: 40px;
}

.doctors-tabs-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.doctors-tab-item {
    position: relative;
}

.doctors-tab-link {
    display: block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.doctors-tab-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.doctors-tab-link:hover {
    color: var(--color-text);
}

.doctors-tab-link.active {
    color: var(--color-text);
}

.doctors-tab-link.active::after {
    background-color: var(--color-text);
}

/* Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(16px, 1.2vw, 24px);
}

/* Card */
.doctor-card {
    text-align: left;
}

.doctor-photo {
    margin-bottom: 20px;
    overflow: hidden;
}

.doctor-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.25;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-photo img {
    transform: scale(1.03);
}

.doctor-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--color-text);
}

.doctor-desc {
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text-muted);
    letter-spacing: -0.01em;
}

/* Action button */
.doctors-action {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   RESPONSIVE - 1440px
   ============================================ */
@media (max-width: 1440px) {
    .doctors-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .doctors-title {
        font-size: 38px;
    }
}

/* ============================================
   RESPONSIVE - 1200px
   ============================================ */
@media (max-width: 1200px) {
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .doctors-title {
        font-size: 34px;
    }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 992px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
    
    .doctors-title {
        font-size: 30px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .doctors-section {
        padding: 50px 0 60px;
    }

    /* Header */
    .doctors-header {
        text-align: left;
        margin-bottom: 30px;
    }

    .doctors-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .doctors-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Tabs - Horizontal layout согласно дизайну */
    .doctors-tabs {
        margin-bottom: 24px;
    }

    .doctors-tabs-list {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
    }

    .doctors-tab-item {
        width: 100%;
        flex: 1;
    }

    .doctors-tab-link {
        display: block;
        width: 100%;
        padding: 12px 0;
        text-align: center;
        font-size: 12px;
        letter-spacing: 0.08em;
    }

    .doctors-tab-link::after {
        /* top: 0; */
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--color-text-light);
    }

    .doctors-tab-link.active::after {
        background-color: var(--color-text);
    }

    /* Grid - 2 columns */
    .doctors-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .doctors-grid .doctor-card:nth-child(n+5) {
        display: none;
    }

    .doctor-photo img {
        aspect-ratio: 1 / 1.3;
    }

    .doctor-name {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .doctor-desc {
        font-size: 11px;
        line-height: 1.4;
    }

    /* Action button */
    .doctors-action {
        text-align: left;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .doctors-title {
        font-size: 26px;
    }

    .doctor-name {
        font-size: 16px;
    }

    .doctor-desc {
        font-size: 11px;
    }
}
