/* Контейнер под слайдер */
.slider-section {
    max-width: 1200px;
    width: 100%;
    background: #ffffff;
    border-radius: 48px;
    padding: 3rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}

/* ===== КРУГОВОЙ СЛАЙДЕР ===== */
.carousel-container {
    position: relative;
    width: 100%;
    height: 250px;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;  /* скрываем всё за пределами видимой части */
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: pointer;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 220px;               /* ширина боковых карточек */
    margin: 0 -20px;             /* создаём перекрытие (эффект круга) */
    transition: all 0.4s ease;
    opacity: 0.5;
    filter: brightness(0.7) blur(1px);
    transform: scale(0.85);
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #eef2f6;
    pointer-events: none;  /* чтобы клик шёл по контейнеру, а не по картинке */
}

/* Активный (центральный) слайд */
.carousel-slide.active-slide {
    width: 340px;                /* крупнее боковых */
    transform: scale(1.1);
    opacity: 1;
    filter: brightness(1) blur(0);
    z-index: 10;
    margin: 0 -10px;              /* чуть перекрывает соседей для целостности */
    box-shadow: 0 20px 30px rgba(12,140,231,0.2);
    border: 3px solid #0C8CE7;
}

/* Боковые слайды (неактивные) */
.carousel-slide:not(.active-slide) {
    cursor: pointer;
}

.carousel-slide:not(.active-slide):hover {
    opacity: 0.8;
    filter: brightness(0.9);
}

/* МОДАЛЬНОЕ ОКНО (увеличенный скриншот) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 80vw;
    max-height: 85vh;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    cursor: default;
    border: 4px solid #0C8CE7;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* навигационные подсказки */
.hint {
    text-align: center;
    color: #5E6F7D;
    font-size: 0.95rem;
    margin-top: 2rem;
}

.hint span {
    background: #E6EDF4;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
}

/* адаптация под мобильные */
@media (max-width: 700px) {
    .carousel-slide {
        width: 140px;
        margin: 0 -15px;
    }
    .carousel-slide.active-slide {
        width: 240px;
        transform: scale(1.05);
    }
    .modal-content {
        max-width: 95vw;
    }
}