/* Cases Carousel Section */
.cases-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.cases-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
}

.cases-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cases-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.cases-carousel {
    display: flex;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.case-slide {
    min-width: 100%;
    flex-shrink: 0;
    transition: transform 0.5s ease;
    padding: 20px;
}

.case-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    height: 100%;
}

.case-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

/* Навигация карусели */
.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: all;
}

.carousel-prev {
    margin-left: -25px;
}

.carousel-next {
    margin-right: -25px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-dots {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.carousel-counter {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.case-actions {
	display:flex;
	gap:10px
}
/* Стили для внутренней галереи изображений (остаются прежними) */
.case-media {
    border-radius: 12px;
    overflow: hidden;
    background: #1f2937;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.case-image-container {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.case-gallery-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}

.gallery-prev,
.gallery-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.gallery-counter {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 12px;
    border-radius: 20px;
    min-width: 50px;
    text-align: center;
}

/* Правая часть - информация */
.case-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.case-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a202c;
    line-height: 1.3;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.case-task,
.case-solution {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.case-task:hover,
.case-solution:hover {
    transform: translateY(-2px);
}

.case-info-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-info-icon {
    font-size: 1.3rem;
}

.case-info-content {
    color: #4a5568;
    line-height: 1.6;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.case-slide.active {
    animation: fadeIn 0.5s ease;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .cases-carousel-container {
        padding: 0 40px;
    }

    .carousel-prev,
    .carousel-next {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .carousel-prev {
        margin-left: -20px;
    }

    .carousel-next {
        margin-right: -20px;
    }
}

@media (max-width: 768px) {
    .cases-section {
        padding: 60px 0;
    }

    .cases-title {
        font-size: 2rem;
    }

    .cases-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .cases-carousel-container {
        padding: 0 20px;
    }

    .case-slide {
        padding: 10px;
    }

    .case-card {
        padding: 25px;
    }

    .case-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .case-title {
        font-size: 1.4rem;
    }

    .case-image-container {
        height: 300px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        margin-left: -15px;
    }

    .carousel-next {
        margin-right: -15px;
    }
}

@media (max-width: 480px) {
    .cases-carousel-container {
        padding: 0 10px;
    }

    .case-card {
        padding: 20px;
    }

    .case-title {
        font-size: 1.3rem;
    }

    .case-image-container {
        height: 250px;
    }

    .case-task,
    .case-solution {
        padding: 15px;
    }

    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .carousel-dots {
        bottom: -50px;
    }

    .carousel-counter {
        bottom: -70px;
        font-size: 0.8rem;
    }
}

/* Автопрокрутка индикатор */
.carousel-autoplay {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 0.8rem;
}

.autoplay-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #2563eb;
    font-size: 1.2rem;
}