.cases {
    background: #f8f8f8;
}

.cases__upper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.cases__title {
    margin: 0;
}

.cases__item {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    height: 280px;
}

.swiper-case {
    width: 100%;
}

.swiper-case .swiper-wrapper {
    width: 100%;
}

.swiper-case .swiper-wrapper .swiper-slide{
    width: 100%;
}

.cases__left {
    height: 100%;
    width: 50%;
}

.case__item-text {
    color: #6E6E6E;
}

.cases__left img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    transition: all .3s ease;
    cursor: pointer;
}

.cases__left img:hover {
    opacity: .7;
}

.case__params {
    display: flex;
    flex-direction: column;
}

.case__param {
    padding: 5px 7px;
    border-radius: 3px;
}

.param--gray {
    background: #f7f7f7;
}

.cases__right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.case__item-title {
    font-weight: 500;
    font-size: 18px;
}

.case__item-price {
    padding: 5px;
    border-radius: 5px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
    width: fit-content;
}

.cases__galery {
    display: none;
}

.cases__grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    column-gap: 24px;
    row-gap: 24px;
}

@media (max-width:1300px) {
    .cases__item {
        flex-direction: column;
        gap: 15px;
        height: auto;
    }

    .cases__left {
        width: 100%;
    }

    .cases__right {
        width: 100%;
    }

    .cases__left img {
        height: 280px;
    }
}

@media (max-width:900px) {
    .cases__upper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cases__grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:580px) {
    .cases__grid {
        grid-template-columns: repeat(1,1fr);
    }
}
