/* ===== СЕКЦИЯ "ПОЛЕЗНАЯ ИНФОРМАЦИЯ" ===== */
.useful-section {
    background: #EFEFEE;
    padding: 60px 0;
    overflow: hidden;
}

.useful-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.useful-title {
    color: #3E1A3E;
    font-size: 36px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    text-align: center;
    margin: 0 0 40px 0;
    line-height: 1.2;
}

.useful-slider-wrapper {
    position: relative;
}

.useful-swiper {
    overflow: hidden;
}

.useful-swiper .swiper-wrapper {
    align-items: stretch;
}

.useful-swiper .swiper-slide {
    height: 450px;
    display: flex;
}

/* ===== КАРТОЧКА ===== */
.useful-card {
    width: 100%;
    background: #E4E3E0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.useful-card-image-wrapper {
    width: 100%;
    height: 200px;
    background: #FFFFFF;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.useful-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.useful-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: #D9D9D9;
}

.useful-card-content {
    padding: 24px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.useful-card-title {
    color: #313131;
    font-size: 18px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
}

.useful-card-text {
    color: rgba(49, 49, 49, 0.50);
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

/* ===== КНОПКА ===== */
.useful-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    width: 100%;
    background: linear-gradient(63deg, #3E1A3E 0%, #C200C2 100%);
    border-radius: 900px;
    color: #fff;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: auto;
}

.useful-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(194, 0, 194, 0.3);
    color: #fff;
    text-decoration: none;
}

/* ===== СТРЕЛКИ НАВИГАЦИИ ===== */
.useful-prev,
.useful-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 17px;
    height: 31px;
    transition: opacity 0.3s;
    outline: none;
    box-shadow: none;
}

.useful-prev {
    left: -45px;
}

.useful-next {
    right: -45px;
}

.useful-prev svg,
.useful-next svg {
    display: block;
    width: 100%;
    height: 100%;
}

.useful-prev:hover svg path,
.useful-next:hover svg path {
    fill-opacity: 0.5;
}

.useful-prev:focus,
.useful-next:focus {
    outline: none;
    box-shadow: none;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1280px) {
    .useful-prev {
        left: -25px;
    }
    .useful-next {
        right: -25px;
    }
}

@media (max-width: 767px) {
    .useful-section {
        padding: 40px 0;
    }
    
    .useful-container {
        padding: 0 12px;
    }
    
    .useful-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    /* Фиксированная высота слайда на мобильных */
    .useful-swiper .swiper-slide {
        height: 380px;
    }
    
    .useful-card-image-wrapper {
        height: 176px;
    }
    
    .useful-card-content {
        padding: 16px 16px 24px 16px;
        gap: 16px;
    }
    
    .useful-card-title {
        font-size: 13px;
        /* Ограничение заголовка в 2 строки */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .useful-card-text {
        font-size: 12px;
        /* Ограничение описания в 4 строки */
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .useful-card-btn {
        height: 48px;
        font-size: 13px;
    }
    
    /* Скрываем стрелки на мобильных */
    .useful-prev,
    .useful-next {
        display: none;
    }
}