/* AltynArna — компактные карточки новостей. Не затрагивает остальные карточки сайта. */
.news-section { padding-top: 12px; padding-bottom: 24px; }
.news-section__all, .news-detail__back { color: #000; text-decoration: none; font-weight: 600; }
.news-section__all:hover, .news-section__all:focus-visible,
.news-detail__back:hover, .news-detail__back:focus-visible {
    color: #D7B56D;
    text-decoration: underline;
}

/* Фиксированная сетка: 3 колонки даже при одной новости, 2 на планшете, 1 на телефоне. */
.news-page > .row,
.news-section > .row:last-of-type {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin: 0;
}
.news-page > .row > [class*="col-"],
.news-section > .row:last-of-type > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    min-width: 0;
    padding: 0;
    margin: 0 !important;
}

/* Компактная карточка: фото 16:9, две строки текста, аккуратная ссылка. */
.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf0f3;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(23, 42, 59, .035);
    transition: box-shadow .22s ease, transform .22s ease;
}
.news-card:hover {
    box-shadow: 0 14px 36px rgba(23, 42, 59, .10);
    transform: translateY(-3px);
}
.news-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #edf3f7;
}
.news-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.news-card:hover .news-card__image img { transform: scale(1.035); }
.news-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f0f5, #f5f7f9);
}
.news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 20px 21px 21px;
    align-items: stretch;
}
.news-card__date {
    display: block;
    margin: 0 0 9px;
    color: #7b8996;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .02em;
}
.news-card__title {
    margin: 0 0 10px;
    color: #1b2c3b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover, .news-card__title a:focus-visible { color: #D7B56D; }
.news-card__summary {
    color: #667482;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.news-card a:focus-visible { outline: 3px solid #64b0e7; outline-offset: 3px; border-radius: 3px; }

/* Страница всех новостей и отдельная новость: сохраняем существующее оформление. */
.news-page__heading { font-size: clamp(28px, 3vw, 42px); margin-bottom: 32px; }
.news-page__pagination { margin-top: 24px; display: flex; justify-content: center; }
.news-detail { max-width: 980px; }
.news-detail__back { display: inline-block; margin-bottom: 24px; }
.news-detail__title { font-size: clamp(28px, 3vw, 44px); line-height: 1.2; margin-bottom: 14px; }
.news-detail__date { display: block; color: #707d89; font-size: 13px; margin-bottom: 10px; }
.news-detail__image { margin: 25px 0; }
.news-detail__image img { display: block; width: 100%; max-height: 550px; object-fit: cover; border-radius: 10px; }
.news-detail__lead { font-size: 19px; font-weight: 500; line-height: 1.65; margin-bottom: 24px; }
.news-detail__text { font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.news-detail__text img { max-width: 100%; height: auto; }

@media (max-width: 991.98px) {
    .news-page > .row, .news-section > .row:last-of-type { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 575.98px) {
    .news-page > .row, .news-section > .row:last-of-type { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .news-card__body { padding: 17px 18px 19px; }
    .news-card__title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .news-card, .news-card__image img { transition: none; }
    .news-card:hover, .news-card:hover .news-card__image img { transform: none; }
}
