.cases-container {
    width: 100%;
    max-width: 1180px;
    padding: clamp(20px, 3vw, 40px);
    background: white;
    border-radius: clamp(20px, 3vw, 40px);
    justify-content: space-between;
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
    margin-top: clamp(24px, 3vw, 40px);
}

.cases-images {
    width: 100%;
    max-width: 480px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    display: inline-flex;
}

.cases-carousel {
    position: relative;
    width: 100%;
    align-self: stretch;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: #60724F;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

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

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 1);
}

.cases-text {
    width: 100%;
    max-width: 600px;
    flex: 1 1 450px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
    display: inline-flex;
}

.cases-title {
    align-self: stretch;
    color: black;
    font-size: clamp(24px, 3.5vw, 28px);
    font-weight: 700;
    line-height: 1.2;
}

.cases-details {
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    display: flex;
}

.table {
    align-self: stretch;
    padding: 20px;
    overflow: hidden;
    border-radius: 10px;
    outline: 1px #F0EBE6 solid;
    outline-offset: -1px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    display: flex;
}

.table-row {
    align-self: stretch;
    padding-bottom: 8px;
    border-bottom: 1px #F0EBE6 solid;
    justify-content: space-between;
    align-items: center;
    display: inline-flex;
}

.table-label {
    width: 100%;
    max-width: 200px;
    color: black;
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 400;
    line-height: 1.5;
}

.table-value {
    width: 100%;
    max-width: 390px;
    text-align: right;
    color: black;
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 700;
    line-height: 1.2;
}

.feedback {
    align-self: stretch;
    padding: 6px;
    overflow: hidden;
    border-radius: 10px;
    outline: 1px #F0EBE6 solid;
    outline-offset: -1px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
    display: flex;
}

.feedback-header {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    display: inline-flex;
}

.feedback-avatar {
    width: 28px;
    height: 28px;
    background: #D9D9D9;
    border-radius: 9999px;
}

.feedback-name {
    color: black;
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 600;
    line-height: 1.2;
}

.feedback-text {
    align-self: stretch;
    max-height: 72px;
    color: black;
    font-size: clamp(14px, 1.9vw, 16px);
    font-weight: 400;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: max-height 0.3s ease, -webkit-line-clamp 0.3s ease;
}

.feedback-text.expanded {
    max-height: none;
    display: block;
    -webkit-line-clamp: none;
    line-clamp: none;
    -webkit-box-orient: initial;
}

/* Медиа-запросы для cases */
@media (max-width: 1220px) {
    .cases-container {
        max-width: 100%;
        padding: clamp(20px, 3vw, 30px);
        justify-content: center;
    }
    
    .cases-images {
        width: 100%;
        max-width: 100%;
        align-items: center;
    }
    
    .cases-text {
        width: 100%;
        max-width: 100%;
        align-items: center;
    }
    
    .carousel-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .cases-container {
        flex-direction: column;
    }
    
    .cases-images,
    .cases-text {
        width: 100%;
        max-width: 100%;
    }
    
    .carousel-container {
        height: 320px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .carousel-dots {
        bottom: 10px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .table-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .table-label,
    .table-value {
        width: 100%;
        max-width: 100%;
        text-align: left;
    }
    
    .feedback {
        padding: 10px;
    }
}

.read-more {
    padding-bottom: 4px;
    border-bottom: 1px #60724F solid;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: inline-flex;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.read-more:hover {
    opacity: 0.7;
}

.read-more-text {
    color: #60724F;
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 700;
    line-height: clamp(15px, 2.2vw, 18px);
}

