/* Страница новостей BIPfR */
.news-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: calc(var(--site-header-bottom, 58px) + 32px) 18px 60px;
}

.news-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 26px 28px;
    background:
        radial-gradient(500px 220px at 0 0, rgba(76, 194, 255, .1), transparent 65%),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, .2);
}

.news-page-eyebrow {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.news-page-head h1 {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    letter-spacing: -.03em;
}

.news-page-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.news-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-head-actions .btn { padding: 7px 12px; font-size: .78rem; }
.news-page-head .news-count { color: var(--accent); background: rgba(76, 194, 255, .1); border: 1px solid rgba(76, 194, 255, .2); border-radius: 999px; padding: 5px 10px; font-size: .72rem; font-weight: 800; }
.news-back-link { color: #7dd3fc; font-size: .82rem; font-weight: 800; text-decoration: none; }
.news-back-link:hover { color: #fff; }

.news-page-list { display: flex; flex-direction: column; gap: 12px; }

.news-page-card {
    padding: 0;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    transition: .16s ease;
}

.news-page-card:first-child { border-color: rgba(76, 194, 255, .2); background: linear-gradient(145deg, rgba(76, 194, 255, .06), transparent 55%), var(--panel); }
.news-page-card:hover { background: rgba(18, 28, 46, .9); border-color: rgba(76, 194, 255, .2); transform: translateY(-1px); }

.news-page-card-link {
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 20px 22px;
    color: inherit;
    text-decoration: none;
}

.news-page-card-link:focus-visible,
.news-detail-more-item:focus-visible,
.news-pagination a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.news-page-date {
    flex: 0 0 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 10px 8px;
    color: var(--accent);
    background: rgba(76, 194, 255, .08);
    border: 1px solid rgba(76, 194, 255, .15);
    border-radius: 11px;
    font-weight: 800;
}

.news-page-date b { font-size: 1.35rem; line-height: 1; color: #fff; }
.news-page-date span { margin-top: 4px; font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; }
.news-page-body { min-width: 0; }
.news-page-body h2 { margin: 0 0 8px; color: #f3f7ff; font-size: 1.05rem; line-height: 1.4; overflow-wrap: anywhere; }
.news-page-body p { margin: 0; color: #aebbd0; font-size: .88rem; line-height: 1.68; overflow-wrap: anywhere; }
.news-page-more { display: inline-flex; margin-top: 9px; color: var(--accent); font-size: .76rem; font-weight: 800; }

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
    color: var(--muted);
    font-size: .82rem;
}

.news-detail {
    margin-top: 16px;
    padding: clamp(22px, 4vw, 36px);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.news-detail-head h1 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.news-detail-date { color: var(--accent); font-size: .78rem; font-weight: 800; }
.news-detail-edit { margin-top: 14px; }
.news-detail-body { margin-top: 24px; color: #c3d0e2; font-size: .98rem; line-height: 1.8; overflow-wrap: anywhere; }
.news-detail-body p { margin: 0 0 1em; }
.news-detail-body p:last-child { margin-bottom: 0; }

.news-detail-more {
    margin-top: 28px;
    padding: 20px 22px;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
}

.news-detail-more h2 { margin: 0 0 12px; color: #fff; font-size: 1.05rem; }
.news-detail-more-item { display: flex; gap: 12px; padding: 9px 0; color: #dbe7f7; text-decoration: none; border-top: 1px solid var(--line-soft); }
.news-detail-more-item time { flex: 0 0 auto; color: var(--muted); font-size: .76rem; }
.news-detail-more-item:hover { color: var(--accent); }

.news-page-empty { padding: 70px 20px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: 16px; }
.news-page-empty .svg-icon { width: 38px; height: 38px; margin-bottom: 12px; color: var(--accent); }
.news-page-empty h2 { margin: 0 0 7px; color: #fff; font-size: 1.15rem; }
.news-page-empty p { margin: 0 0 16px; font-size: .86rem; }

@media (max-width: 980px) { .news-page { padding-top: 124px; } }
@media (max-width: 640px) {
    .news-page { padding: 116px 12px 44px; }
    .news-page-head { padding: 22px 18px; }
    .news-page-card-link { flex-direction: column; gap: 12px; padding: 17px; }
    .news-page-date { flex-direction: row; gap: 7px; align-self: flex-start; padding: 5px 9px; }
    .news-page-date b { font-size: 1rem; }
    .news-page-date span { margin: 0; }
    .news-detail { padding: 20px 17px; }
    .news-detail-more { padding: 17px 18px; }
}
@media (prefers-reduced-motion: reduce) { .news-page-card { transition: none; } }
