/* Основные стили для сетки */
.content-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.block_case_library-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    justify-items: center;
}

.case-item {
    width: 100%;
    max-width: 250px;
}

.card {
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.card-hover img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.card:hover .card-hover img {
    transform: scale(1.05);
}

.block_case_name {
    text-align: center;
    margin: 50px 0 20px 0;
    font-size: 24px;
    font-weight: bold;
    color: #3a57e8;
    position: relative;
    padding-top: 15px;
}

.block_title{
    font-size: 18px;
    line-height: 18px;
    padding-left: 10px;
    color: #3a57e8;
    color: #fff;
     font-weight: 600;
}

.block_price{
    width: max-content;
    margin-top: 2px;
    order: 1;
    color: #fff;
    font-size: 16PX;
    padding-left: 10px;
    justify-self: center;
}

/* Адаптивная верстка */
@media (max-width: 479px) {
    .block_case_library-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .case-item {
        max-width: 280px;
    }
}

@media (min-width: 480px) and (max-width: 639px) {
    .block_case_library-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    .block_case_library-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .block_case_library-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .block_case_library-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .block_case_library-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1440px) {
    .block_case_library-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 25px;
    }
    
    .case-item {
        max-width: 280px;
    }
}

/* Дополнительные стили */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.p-3 {
    padding: 1rem;
}

.rounded {
    border-radius: 0.375rem;
}

.text-white {
    color: white;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}
.block_case_name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #3a57e8, 
        #3a57e8, 
        transparent
    );
}
.noresult-text{
    text-align: center;
    margin-top: 12px;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    justify-self: center;
    color: rgb(138, 146, 166);
}