

/* ========================================================================= */
/* ГЛАВНЫЙ КОНТЕЙНЕР СЕКЦИИ "МАСТЕРА ПО УЛЫБКАМ"                              */
/* ========================================================================= */
#team.section {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 100vh !important;
    height: auto !important;
    width: 100% !important;
    padding-top: 45px !important;
    padding-bottom: 90px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    /*background-image: url('../images/about-bg.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important; /* Эффект параллакса */
}

/* Слой-вуаль: Глубокое стеклянное затемнение */
#team .team-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    background-color: rgba(11, 22, 25, 0.2) !important;
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
}

/* Вывод контента поверх вуали */
#team .container,
#team .container-fluid {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
}

#team .about-info {
    width: 100% !important;
    text-align: center !important;
}

#team h2 {
    color: #ffffff !important;
    text-align: center !important;
    font-size: 30px !important;
    font-weight: 360 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin: 0 auto !important;
    display: inline-block !important;
    width: 100% !important;
}

    /* Градиентная неоновая линия под заголовком */
    #team h2::after {
        content: "" !important;
        display: table !important;
        width: 465px !important;
        height: 4px !important;
        margin: 18px auto 0 auto !important;
        border-radius: 50px !important;
        background: linear-gradient(90deg, transparent 0%, #00e5ff 50%, #00e5ff 50%, transparent 100% ) !important;
        box-shadow: 0 2px 12px rgba(0, 229, 255, 0.45);
    }

#team .fp-tableCell,
#team .fp-scrollable {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    min-height: 100vh !important;
    width: 50% !important;
}


/* ========================================================================= */
/* КОНСТРУКЦИЯ 3D-КАРУСЕЛИ ДЛЯ ОДНОВРЕМЕННОГО ПОКАЗА 5 КАРТОЧЕК               */
/* ========================================================================= */

.carousel-container-team {
    position: relative !important;
    width: 100% !important;
    max-width: 1450px !important;
    margin: 40px auto 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    perspective: 1600px !important; /* Глубина резкости для 3D разворота */
}

.team-carousel-viewport {
    overflow: visible !important;
    width: 100% !important;
    padding: 10px 0 !important;
}

.team-carousel-track {
    position: relative !important;
    width: 100% !important;
    height: 590px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transform-style: preserve-3d !important;
}




/* На всякий случай очищаем базовый класс, если он где-то перебивает */
#team .team-thumb {
    background: rgba(255, 255, 255, 0.04) !important; /* Переводим в матовое стекло */
}


/* Хрустальная карточка (Glassmorphism) — полная изоляция текста от фона */
#team .team-card-slide {
    position: absolute !important;
    width: 490px !important;
    background: rgba(13, 27, 31, 0.65) !important; /* Темная стеклянная подложка гарантирует идеальную читаемость букв */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5) !important;
    pointer-events: none !important;
    opacity: 0 !important;
    /* Дорогая кинематографичная физика полета слайдов */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease, border-color 0.4s, background 0.4s, box-shadow 0.4s !important;
}

    /* Портрет доктора */
    #team .team-card-slide .team-thumb img {
        width: 100% !important;
        height: 350px !important;
        object-fit: cover !important;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease !important;
        filter: grayscale(50%) brightness(0.7); /* Приглушаем боковых, чтобы не рябило в глазах */
    }

    /* Блок текстовой информации */
    #team .team-card-slide .team-info {
        padding: 25px 25px 30px 25px !important;
        text-align: center !important;
        background: transparent !important; /* Позволяет стеклянному фону карточки работать насквозь */
    }

        /* ФИО Специалиста */
        #team .team-card-slide .team-info h3 {
            font-size: 20px !important;
            font-weight: 200 !important;
            color: #ffffff !important; /* Абсолютный белый контраст */
            margin: 0 0 10px 0 !important;
            line-height: 1.3 !important;
        }

        /* Капсульный неоново-бирюзовый бейдж специализации */
        #team .team-card-slide .team-info p {
            display: inline-block !important;
            font-size: 11px !important;
            font-weight: 700 !important;
            text-transform: uppercase !important;
            letter-spacing: 2px !important;
            background: rgba(0, 229, 255, 0.12) !important;
            padding: 5px 14px !important;
            border-radius: 50px !important;
            margin: 0 0 20px 0 !important;
            border: 1px solid rgba(0, 229, 255, 0.25) !important;
        }

    /* Разделительная линия над регалиями */
    #team .team-card-slide .team-contact-info {
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 18px !important;
        margin-bottom: 0 !important;
    }

        /* Читаемый платиновый текст достижений врача */
        #team .team-card-slide .team-contact-info p {
            font-size: 13.5px !important;
            color: #cbd5e1 !important; /* Светлый мягкий оттенок, превосходно читается на стекле */
            line-height: 1.5 !important;
            font-weight: 500 !important;
            background: none !important;
            border: none !important;
            padding: 0 !important;
            margin: 0 !important;
            text-transform: none !important;
            letter-spacing: 0 !important;
        }

    /* ========================================================================= */
    /* ТРЕХМЕРНАЯ МАТРИЦА ПОЛОЖЕНИЙ СЛАЙДОВ (3D COVERFLOW)                       */
    /* ========================================================================= */

    /* 1. Дальняя левая */
    #team .team-card-slide.far-prev {
        opacity: 0.42 !important;
        transform: translateX(-460px) translateZ(-320px) rotateY(38deg) scale(0.85) !important;
        z-index: 1 !important;
        pointer-events: auto !important;
        filter: blur(2px) !important;
    }

    /* 2. Ближняя левая */
    #team .team-card-slide.prev {
        opacity: 0.75 !important;
        transform: translateX(-250px) translateZ(-160px) rotateY(18deg) scale(0.95) !important;
        z-index: 5 !important;
        pointer-events: auto !important;
        filter: blur(0.5px) !important;
    }

    /* 4. БЛИЖНЯЯ ПРАВАЯ КАРТОЧКА (Средний слой веера) */
    #team .team-card-slide.next {
        opacity: 0.75 !important;
        /* Сдвиг +140px — центральная перекрывает ее, а она перекрывает дальнюю правую */
        transform: translateX(250px) translateZ(0px) rotateY(-18deg) scale(0.95) !important;
        z-index: 5 !important; /* Средний план */
        pointer-events: auto !important;
        filter: blur(0.5) !important;
    }

    /* 5. ДАЛЬНЯЯ ПРАВАЯ КАРТОЧКА (Нижний слой веера) */
    #team .team-card-slide.far-next {
        opacity: 0.42 !important;
        /* Сдвиг +280px и уход вглубь экрана на -100px */
        transform: translateX(460px) translateZ(-100px) rotateY(-25deg) scale(0.85) !important;
        z-index: 1 !important; /* Самый задний план */
        pointer-events: auto !important;
        filter: blur(0.2) !important;
    }

    /* 3. ЦЕНТРАЛЬНАЯ КАРТОЧКА (Максимальный фокус и сочность) */
    #team .team-card-slide.active {
        opacity: 1 !important;
        /* Выдвинута вперед на 100px, перекрывая обе ближние карточки */
        transform: translateX(0) translateZ(100px) rotateY(0deg) scale(1.05) !important;
        z-index: 10 !important; /* Самый передний план */
        pointer-events: auto !important;
        background: rgba(16, 35, 40, 0.85) !important;
        border-color: rgba(0, 229, 255, 0.4) !important;
        box-shadow: 0 35px 70px rgba(0, 229, 255, 0.4) !important;
    }

        #team .team-card-slide.active .team-thumb img {
            filter: grayscale(0%) brightness(1) !important; /* Доктор в центре полностью цветной */
        }

        /* Интерактивное парение при наведении мыши на центральную карту */
        #team .team-card-slide.active:hover {
            transform: translateX(0) translateZ(110px) translateY(-6px) rotateY(0deg) scale(1.04) !important;
            background: rgba(20, 43, 49, 0.85) !important;
            border-color: rgba(0, 229, 255, 0.5) !important;
            box-shadow: 0 35px 70px rgba(0, 229, 255, 0.45) !important;
        }

            #team .team-card-slide.active:hover .team-thumb img {
                transform: scale(1.03) !important;
            }


/* ========================================================================= */
/* СТИЛИ ЭЛЕМЕНТОВ УПРАВЛЕНИЯ                                                */
/* ========================================================================= */

/* Неоновые стрелочки */
#team .team-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(11, 22, 25, 0.5) !important;
    border: 1px solid rgba(0, 229, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    cursor: pointer !important;
    z-index: 30 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    backdrop-filter: blur(5px) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

    #team .team-btn:hover {
        border-color: #00e5ff !important;
        color: #00e5ff !important;
        background: rgba(0, 229, 255, 0.1) !important;
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.4) !important;
    }

    #team .team-btn:active {
        transform: translateY(-50%) scale(0.9) !important;
    }

#team .team-btn-prev {
    left: -30px !important;
}

#team .team-btn-next {
    right: -30px !important;
}

/* Линия прогресса */
#team .team-progress-container {
    width: 150px !important;
    height: 2px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    margin: 30px auto 0 auto !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 10px !important;
}

#team .team-progress-bar {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    width: 0% !important;
    background: #00e5ff !important;
    box-shadow: 0 0 8px #00e5ff !important;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* ========================================================================= */
/* АДАПТИВНОСТЬ ДЛЯ ЭКРАНОВ И МОБИЛЬНЫХ УСТРОЙСТВ                            */
/* ========================================================================= */
@media (max-width: 1250px) {
    #team .team-card-slide.far-prev {
        transform: translateX(-360px) translateZ(-250px) rotateY(30deg) scale(0.82) !important;
    }

    #team .team-card-slide.far-next {
        transform: translateX(360px) translateZ(-250px) rotateY(-30deg) scale(0.82) !important;
    }
}

@media (max-width: 991px) {
    #team.section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    #team .fp-tableCell {
        display: block !important;
        height: auto !important;
    }

    #team .about-info {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    #team .carousel-container-team {
        max-width: 1000px !important;
    }
    /* 1. ДАЛЬНЯЯ ЛЕВАЯ КАРТОЧКА (Нижний слой веера) */
    #team .team-card-slide.far-prev {
        opacity: 0.5 !important;
        /* Сдвиг -280px и уход вглубь экрана на -100px создают нижний слой */
        transform: translateX(-280px) translateZ(-100px) rotateY(25deg) scale(0.8) !important;
        z-index: 1 !important; /* Самый задний план */
        pointer-events: auto !important;
        filter: brightness(0.6) !important; /* Слегка затемняем задний план для объема */
    }
    /* 2. БЛИЖНЯЯ ЛЕВАЯ КАРТОЧКА (Средний слой веера) */
    #team .team-card-slide.prev {
        opacity: 0.8 !important;
        /* Сдвиг -140px — карточка наполовину перекрывает дальнюю левую */
        transform: translateX(-140px) translateZ(0px) rotateY(12deg) scale(0.9) !important;
        z-index: 3 !important; /* Средний план — над дальней левой */
        pointer-events: auto !important;
        filter: brightness(0.8) !important;
    }
    /* 4. БЛИЖНЯЯ ПРАВАЯ КАРТОЧКА (Средний слой веера) */
    #team .team-card-slide.next {
        opacity: 0.8 !important;
        /* Сдвиг +140px — центральная перекрывает ее, а она перекрывает дальнюю правую */
        transform: translateX(140px) translateZ(0px) rotateY(-12deg) scale(0.9) !important;
        z-index: 5 !important; /* Средний план */
        pointer-events: auto !important;
        filter: blur(0.8) !important;
    }
    /* 5. ДАЛЬНЯЯ ПРАВАЯ КАРТОЧКА (Нижний слой веера) */
    #team .team-card-slide.far-next {
        opacity: 0.5 !important;
        /* Сдвиг +280px и уход вглубь экрана на -100px */
        transform: translateX(-280px) translateZ(-100px) rotateY(-25deg) scale(0.8) !important;
        z-index: 1 !important; /* Самый задний план */
        pointer-events: auto !important;
        filter: blur(0.6) !important;
    }

    #team .team-carousel-track {
        height: 530px !important;
    }

    #team .team-card-slide {
        width: 290px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

        #team .team-card-slide .team-thumb img {
            height: 310px !important;
        }



    #team .team-btn {
        width: 44px !important;
        height: 44px !important;
        background: rgba(11, 22, 25, 0.75) !important;
        border-color: rgba(0, 229, 255, 0.3) !important;
        color: #ffffff !important;
    }

    #team .team-btn-prev {
        left: 0px !important;
    }

    #team .team-btn-next {
        right: 0px !important;
    }
}
