/* ===== NEWS PAGE ===== */
.news-page {
    padding: 60px 0;
    background: #f9f9f9;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 15px;
}

.page-description {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 18px;
}

/* Сетка карточек */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Карточка новости */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.news-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card__image {
    height: 220px;
    overflow: hidden;
}
.news-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.4em * 2); /* примерная высота двух строк */
}

.news-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card__image img {
    transform: scale(1.1);
}

.news-card__content {
    padding: 25px;
}

.news-card__date {
    display: inline-block;
    background: var(--purple);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #222;
}

.news-card__excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-card__more {
    color: var(--purple);
    font-weight: 600;
    font-size: 14px;
    transition: letter-spacing 0.3s;
}

.news-card:hover .news-card__more {
    letter-spacing: 1px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination .current {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}

.pagination a:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}

/* Адаптив */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .page-title {
        font-size: 32px;
    }
}