/*Титл кейсов*/

.case-custom-title{
    font-size: 48px;
    line-height: 58px;
    margin-top: 20px;
    margin-bottom: 40px;
}


.case-custom-title span{
    background: linear-gradient(90deg, #F26DD4 0%, #9747FF 61.78%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*Преимущества кейсов*/

.case-custom__advantages{}
.case-custom__advantages-items{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.case-custom__advantages-item{
    display: flex;
    width: 270px;
    align-items: center;
    flex-direction: column;

    padding: 30px 20px;
    background: #F5F5F5;
    border-radius: 15px;
}
.case-custom__advantages-item img{
    display: block;
    width: 80px;
    height: 80px;
}
.case-custom__advantages-item-decr{
    text-align: center;
    margin-top: 35px;
}
.case-custom__advantages-item-decr h3{
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}

.case-custom__advantages-decr{
    margin-top: 50px;
}
.case-custom__advantages-decr p{
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
}

/*Кейсы*/

.case-custom__items{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 60px;
}
.case-custom__item{
    display: flex;
    flex-direction: column;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    background: #fff;
    box-shadow:
            inset 0 0 10px rgba(0,0,0,0.1),
            0 5px 15px rgba(0,0,0,0.2);
}
.case-custom__item-img {
    width: 100%;
    height: 230px;
    overflow: hidden;
    position: relative; /* Добавляем для позиционирования псевдоэлемента */
    background: #f0f0f0; /* Фон на случай, если изображение прозрачное */
}

.case-custom__item-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изменено с 'contain' на 'cover' */
    object-position: center;
}
.case-custom__item-title{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px 20px;
    text-align: center;
    height: 120px;
}

.case-custom__item-title h2{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Ограничиваем 3 строками */
    overflow: hidden;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    margin: 0;
}

.case-custom__item-desc{
    padding: 0px 20px;
}

.case-custom__item-desc b{
    font-weight: 500;
    color: #000;
}

.case-custom__item-desc p{
    font-weight: 600;
    line-height: 28px;
    font-size: 20px;
    color: #9748FF;
}


.case-custom__item-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9748FF;
    transition: 0.5s ease;
}

.case-custom__item-btn:hover{
    background: #7e3cd3;
}

.case-custom__item-btn h3{
    color: #fff;
    margin: 0;
    font-size: 18px;
    line-height: 28px;
    padding: 20px 20px;
}



.case-custom__items.loading {
    opacity: 0.7;
    position: relative;
}

.case-custom__items.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #2c3e50;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

