.news-section {
    padding: 20px;
    text-align: center;
}

.news-section__title {
    font-size: 24px;
    color: #8b0000;
    margin: 16px 0;
}

/* Сетка: 1 колонка моб, 2 планшет, 5 десктоп */
.news-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Карточка */
.news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s;
}
.news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Без картинки */
.news-card--noimage {
    align-items: center;
    padding: 20px;
}

/* Контейнер для картинки: блок 16:9 + overflow */
.news-card__pic {
    width: 100%;
    padding-top: 56.25%; /* 9/16 */
    position: relative;
    overflow: hidden;
}

/* По умолчанию cover */
.news-card__pic img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-position: center center;
    object-fit: cover;
}

/* Для портретных — contain + центрирование */
.news-card__pic img.portrait {
    object-fit: contain;
}

/* Содержимое */
.news-card__info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.news-card__title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.2;
}

.news-card__text {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    flex-grow: 1;
}

/* Пагинация */
.news-pagination {
    margin: 16px 0;
    display: inline-block;
}

.news-pagination a {
    padding: 6px 10px;
    margin: 0 4px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
}

.news-pagination a:hover {
    background: #f5f5f5;
}

.news-pagination .current {
    background: #8b0000;
    color: #fff;
    border-color: #8b0000;
}
