body {
    margin: 0;
    padding: 0px;
    font-family: Montserrat, sans-serif;
    height: 200vh;
    background-color: #f5f5f5;
    overflow-x: hidden;
}


:root {
    --max-container-width: 1620px;
    --min-container-width: 320px;
    --max-padding: 150px;
    --min-padding: 0px;
    --breakpoint-full: 1620px;
    --breakpoint-compact: 1024px;
    --breakpoint-mobile: 480px;
}

.container-wrapper {
    padding: 0 calc(
        clamp(
            var(--min-padding),
            var(--max-padding) * (100vw - var(--breakpoint-compact)) / (var(--breakpoint-full) - var(--breakpoint-compact)),
            var(--max-padding)
        )
    );
    max-width: var(--max-container-width);
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;  /* предотвращает "вылезание" контента */
}

.sliding-container {
    
    width: 100%;
    max-width: 1320px;
    height: 550px;
    min-height: 300px;
    border-radius: 16px;
    background: linear-gradient(135deg, #080808, #242124);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    transform: translateX(100%);
    opacity: 0;
    
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), 
                opacity 0.6s ease-out;
    /* расстояние между блоками   */
    margin: 20px auto; 
    position: relative;
    box-sizing: border-box;
    display: flex;
    overflow: hidden;
    /* Визуальные границы блока*/
    /* outline: 1px solid blue;  */
}

.sliding-container.active {
    transform: translateX(0);
    opacity: 1;
}
.participant {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*#f8f8ff, #c0c0c0, #dc143c*/
    color:white; 
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.participant:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.participant:hover {
    transform: scale(1.02);
    background-color: rgba(255, 255, 255, 0.1);
}

.participant-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 2px solid white; */
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.participant-img-price {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    
    /* border: 2px solid white; */
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.participant-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px; /* Увеличивает расстояние между буквами */
}

.participant-role {
    font-size: 12px;
    margin-top: 15px;    /* Отступ сверху */
    margin-bottom: 15px;
    opacity: 0.9;
    letter-spacing: 2px; /* Увеличивает расстояние между буквами */
    text-transform: uppercase; /* Преобразует текст в верхний регистр */
    max-width: 330px;
    letter-spacing: 2px; /* Увеличивает расстояние между буквами */
    /* text-align: left; */
}

/* .participant-role,
.participant-carousel-item .participant-role {
    font-size: 12px;
    margin-top: 15px;   

    
    
} */

.participant-desc {
    font-size: 16px;
    margin-top: 15px;    /* Отступ сверху */
    line-height: 1.5;
    max-width: 330px;
    opacity: 0.8;
    text-align: left;
    letter-spacing: 1.2px; /* Увеличивает расстояние между буквами */
}

.participant-price {
    font-size: 16px;
    margin-top: 15px;    /* Отступ сверху */
    line-height: 1.8;
    max-width: 300px;
    opacity: 0.8;
    text-align: left;
    /* color: #b22222; */
}

/* Стили для карусели (только для мобильных) */
.participants-carousel {
    display: none;
    width: 100% * itemCount;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-nav {
    display: none;
    justify-content: center;
    padding: 15px 0;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: white;
}

/* Дополнения для свайпа */
.participants-carousel {
    display: none;
    width: 100% * itemCount;
    height: 100%;
    transition: transform 0.5s ease;
    touch-action: pan-y; /* Разрешаем вертикальный скролл */
}

@media (max-width: 1024px) {
    .container-wrapper {
        padding: 0 10px !important;
    }
    .sliding-container {
        /* Вс*/
        /* display: flex; */
        /* Выравнивание по верхнему краю */
        /* align-items: flex-start;  */
        max-width: calc(100% - 40px);
    }
    .participant-role {
        font-size: 10px;
        margin-top: 15px;    /* Отступ сверху */
        margin-bottom: 15px;
        opacity: 0.9;
        letter-spacing: 2px; /* Увеличивает расстояние между буквами */
        text-transform: uppercase; /* Преобразует текст в верхний регистр */
        max-width: 260px;
    }
    .participant-desc {
        font-size: 14px;
        line-height: 1.5;
        max-width: 300px;
        opacity: 0.8;
        text-align: left;
    }
    .participant-price {
        font-size: 14px;
        line-height: 1.8;
        max-width: 300px;
        opacity: 0.8;
        text-align: left;
    }
    .participant-name {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 10px;
    }
}

@media (max-width: 812px) {
    .sliding-container {
        flex-direction: column;
        height: auto;
        overflow: hidden;
 
    }
    
    /* Прячем обычные элементы и показываем карусель */
    .participant {
        display: none;
    }
    
    .participants-carousel {
        display: flex;

    }
    
    .participant-carousel-item {
        width: 100% / itemCount;
        flex: 0 0 100%;
        /* внутренние отступы элемента */
        /* padding: 40px 20px; */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center;
        min-height: 500px;
        box-sizing: border-box;

    }
    .participant-desc {
        font-size: 18px;
        line-height: 1.5;
        max-width: 300px;
        opacity: 0.8;
        text-align: left;

    }

    .participant-price {
        font-size: 18px;
        line-height: 1.5;
        max-width: 300px;
        opacity: 0.8;
        text-align: left;
        /* color: #b22222; */
    }

    .carousel-nav {
        display: flex;

    }
    
    /* Убираем разделители */
    .participant:not(:last-child)::after,
    .participant:not(:last-child)::before {
        display: none;
    }
    
    .participants-carousel {
        display: flex;
        user-select: none; /* Запрещаем выделение текста при свайпе */
    }
    

}

@media (max-width: 480px) {
    .container-wrapper {
        padding: 8px !important;
        /* margin: 100px; */
    }
    
    .sliding-container {
        max-width: 100%;
        border-radius: 8;
        
    }
    
    .participant-price {
        font-size: 16px;
        line-height: 1.8;
        max-width: 270px;
        opacity: 0.8;
        text-align: left;
        margin-top: 0px;    /* Отступ сверху */
        letter-spacing: 0px; /* Увеличивает расстояние между буквами */
        /* color: #b22222; */
    }
    
    .participant-img,
    .participant-carousel-item .participant-img {
        width: 120px;
        height: 120px;
    }
    
    .participant-name,
    .participant-carousel-item .participant-name {
        font-size: 20px;
        margin-top: 15px;    /* Отступ сверху */
        letter-spacing: 2px; /* Увеличивает расстояние между буквами */
    }
    
    .participant-role,
    .participant-carousel-item .participant-role {
        font-size: 12px;
        margin-top: 15px;    /* Отступ сверху */
        letter-spacing: 2px; /* Увеличивает расстояние между буквами */
        max-width: 260px;
        text-transform: uppercase; /* Преобразует текст в верхний регистр */
    }
    
    .participant-desc,
    .participant-carousel-item .participant-desc {
        margin-top: 15px;    /* Отступ сверху */
        font-size: 18px;
        line-height: 1.4;
        max-width: 260px;
        opacity: 0.8;
        text-align: left;
        
    }

    .participants-carousel {
        display: flex;
        user-select: none; /* Запрещаем выделение текста при свайпе */
    }
}