/* ═══════════════════════════════════════════
   NEWS.CSS — Новости: список, footer модалки
   ═══════════════════════════════════════════ */

.news-page {
    padding: 40px 0;
}

.news-header {
    margin-bottom: 48px;
    max-width: 700px;
}

.news-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
}

.news-header p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
    margin-bottom: 20px;
}

.news-card {
    display: flex;
    gap: 30px;
    background: var(--white);
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(93, 88, 245, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(93, 88, 245, 0.1);
}

.news-card__prev-img {
    width: 240px;
    height: 160px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.news-card__content {
    flex-grow: 1;
}

.news-card__date {
    font-size: 13px;
    font-weight: 700;
    color: var(--purple);
    display: block;
    margin-bottom: 8px;
}

.news-card__title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.news-card__text {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__more {
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
}

/* ── NEWS MODAL FOOTER ───────────────────── */
.news-modal__footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eeeffa;
}

.news-modal__footer p {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.news-modal__links {
    display: flex;
    gap: 12px;
}

.news-modal__links a {
    padding: 8px 18px;
    background: #f1f2fb;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--purple);
}

/* ── NEWS RESPONSIVE ─────────────────────── */
@media (max-width: 900px) {
    .news-card { flex-direction: column; }
    .news-card__prev-img { width: 100%; }
}

@media (max-width: 480px) {
    .news-page {
        padding: 20px 0;
    }

    .news-header {
        margin-bottom: 24px;
    }

    .news-header h2 {
        font-size: 24px;
    }

    .news-header p {
        font-size: 14px;
    }

    .news-card {
        padding: 16px;
        gap: 14px;
        border-radius: 16px;
    }

    .news-card:hover {
        transform: none;
    }

    .news-card__prev-img {
        height: 140px;
        border-radius: 12px;
    }

    .news-card__title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .news-card__text {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .news-card__date {
        font-size: 11px;
    }

    .news-modal__footer {
        margin-top: 24px;
        padding-top: 16px;
    }

    .news-modal__links {
        flex-wrap: wrap;
        gap: 8px;
    }
}
