/**
 * Specialists Section Styles
 * Секция "Специалисты нашей клиники"
 * BEM Methodology + Figma Design
 */

/* Specialists Section - Swiper.js Implementation */
.specialists {
    padding: 80px 0;
    position: relative;
    margin-bottom: 0 !important;
}

.specialists__container {
    display: flex;
    max-width: 1320px;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.specialists__container .specialists__slider-container .specialists__slider.swiper {
    padding: 16px 0;
}

/* Header Section */
.specialists__header {
    display: flex;
    text-align: center;
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.specialists__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.specialists__badge-icon {
    width: 30px;
    height: 27px;
    flex-shrink: 0;
}

.specialists__badge-text {
    font-family: var(--accent-text-font-family);
    font-size: 20px;
}

.specialists__title {
    margin: 0;
    color: var(--berloga-text);
}

/* Swiper Container */
.specialists__slider-container {
    position: relative;
    margin: 0 auto;
    max-width: 1320px;
    width: 100%;
}

.specialists__slider {
    overflow: visible; /* Важно для теней */
    padding: 40px 0; /* Пространство для теней и hover эффектов */
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    
    width: 300px;
    height: auto;
    display: flex !important;
    justify-content: center;
}

/* Specialist Card */
.specialists__card {
    display: flex;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.specialists__card:hover {
    transform: translateY(-10px);
}

.specialist-card {
    background: var(--berloga-white);
    border-radius: 150px;
    width: 300px;
    height: 500px;
    box-shadow: var(--ten-kartochki-box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 50px;
    padding: 0;
    transition: box-shadow 0.3s ease;
}

.specialist-card:hover {
    box-shadow: 0px 10px 20px 0px rgba(19, 19, 19, 0.15);
}

/* Photo Section */
.specialist-card-photo {
    width: auto;
    height: auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.specialist-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.specialists__card:hover .specialist-card-img {
    transform: scale(1.05);
}

/* Icon Section - Positioned between photo and content */
.specialist-card-icon {
    position: absolute;
    top: 270px; /* Между фото (300px) и контентом */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
}

.specialist-card-icon svg {
    transition: all 0.3s ease;
}

.specialists__card:hover .specialist-card-icon svg circle {
    fill: var(--berloga-magenta);
}

/* Content Section */
.specialist-card-content {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 36px;
}

.specialist-card-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

/* Фамилия (первая строка) */
.specialist-card-surname {
    font-weight: 800;
    font-size: 20px;
}

/* Имя и отчество (вторая строка) */
.specialist-card-fullname {
    font-weight: 600;
    font-size: 16px;
    opacity: 0.9;
}

.specialists__card .specialist-card-content .specialist-card-speciality {
    font-size: 12px;
    text-align: center !important;
    margin: 0;
}

.specialists .specialists__card .specialist-card-content .specialist-card-speciality {
    text-align: center;
}

/* Swiper Navigation */
.specialists__nav--prev,
.specialists__nav--next {
    width: 50px !important;
    height: 50px !important;
    background: var(--berloga-blue) !important;
    border-radius: 50% !important;
    color: var(--berloga-white) !important;
    transition: all 0.3s ease !important;
}

.specialists__nav--prev:hover,
.specialists__nav--next:hover {
    background: var(--berloga-magenta) !important;
}

.specialists__nav--prev::after,
.specialists__nav--next::after {
    font-size: 18px !important;
    font-weight: bold !important;
}

.swiper-button-next, .swiper-button-prev {
    top: 90% !important;
    margin: 0 !important;
}

/* Empty State */
.specialists__empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--berloga-text);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .specialist-card{
        width: 280px;
        height: 460px;
    }
}

@media (max-width: 900px) {
    .specialist-card{
        width: 230px;
        height: 420px;
    }
    .specialist-card-icon{
        top: 200px;
    }
    .specialist-card-content{
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .specialists {
        padding: 60px 0;
    }
    
    .specialists__container {
        padding: 0 20px;
    }
    

    
    .specialists__badge {
        padding: 10px 20px;
        gap: 10px;
    }
    
    .specialists__badge-text {
        font-size: 16px;
    }
    
    .specialist-card-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .specialist-card-name {
        font-size: 20px;
    }
    
    .specialist-card-surname {
        font-size: 18px;
    }
    
    .specialist-card-fullname {
        font-size: 14px;
    }
    
    .specialist-card-speciality {
        font-size: 14px;
    }
    
    .specialists__nav--prev,
    .specialists__nav--next {
        width: 40px !important;
        height: 40px !important;
        margin-top: -20px !important;
    }
    
    .specialists__nav--prev::after,
    .specialists__nav--next::after {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .specialists__container{
        gap: 40px;
    }
}
    