.team-section {
    background-color: #f7f3f2;
    color: #111111;
    padding: 100px 0;
    overflow: hidden;
}

.team-block-wrapper.pizza-style {
    display: flex;
    align-items: center;
    position: relative;
    height: 800px;
}

.team-wheel-half {
    width: 50%;
    height: 100%;
    position: relative;
}

.wheel-container {
    position: absolute;
    top: 50%;
    left: -400px;
    width: 1000px;
    height: 1000px;
    transform: translateY(-50%);
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.wheel-slice {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 50%;
    transform-origin: 0% 100%;
    clip-path: polygon(0 100%, 0 0, 100% 0);
    cursor: pointer;
    z-index: 2;
}

.slice-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 330px;
    height: 330px;
}

.slice-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: 50% 50%;
}

.wheel-slice.active img,
.wheel-slice:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.gap-line {
    position: absolute;
    top: 0;
    left: calc(50% - 4px);
    width: 8px;
    height: 50%;
    background: #f7f3f2;
    transform-origin: bottom center;
    z-index: 10;
}

.wheel-center-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%);
    background: #f7f3f2;
    border-radius: 50%;
    z-index: 20;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.wheel-center-text {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    z-index: 30;
    max-width: 300px;
}

.center-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.center-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
}

.team-info-half {
    width: 50%;
    padding-left: 80px;
}

.info-details h3 {
    font-size: 48px;
    margin-bottom: 12px;
    color: #111111;
}

.info-role {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--color-accent);
}

.info-desc {
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
    color: #444444;
}

.info-details.fade-out {
    opacity: 0;
    transform: translateX(20px);
}

.info-details.fade-in {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s ease;
}

.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .team-section {
        padding: 40px 0;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .mobile-team-header {
        text-align: center;
        margin-bottom: 20px;
        padding: 0 20px;
    }

    .mobile-team-header .center-title {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .mobile-team-header .center-desc {
        font-size: 15px;
        max-width: 100%;
        margin: 0 auto;
        line-height: 1.4;
    }

    .mobile-slider-container {
        position: relative;
        overflow: hidden;
        width: 100%;
    }

    .mobile-slider-track {
        display: flex;
        transition: transform 0.4s ease-out;
        will-change: transform;
    }

    .mobile-slide {
        flex: 0 0 100%;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .mobile-slide-photo {
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 16px;
        aspect-ratio: 1/1;
        max-height: 40vh;
    }

    .mobile-slide-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-slide-info h3 {
        font-size: 24px;
        color: #111111;
        margin-bottom: 6px;
    }

    .mobile-slide-info .info-role {
        font-size: 13px;
        margin-bottom: 12px;
    }

    /* Ограничение текста в 5 строк с автоматическими тремя точками (...) */
    .mobile-slide-info .info-desc {
        font-size: 14px;
        color: #444444;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .slider-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-top: 15px;
    }

    .slider-arrow {
        background: transparent;
        border: 1px solid var(--color-accent);
        color: var(--color-accent);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .slider-arrow:hover,
    .slider-arrow:active {
        background: var(--color-accent);
        color: #fff;
    }

    .slider-dots {
        display: flex;
        gap: 8px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ccc;
        cursor: pointer;
        transition: 0.3s;
    }

    .slider-dot.active {
        background: var(--color-accent);
        transform: scale(1.3);
    }
}