.news-page {
    position: relative;
    padding: 34px;
    min-height: 100vh;
    color: #d8c8c0;
}

.news-hero {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    padding: 28px;

    background:
        radial-gradient(circle at 88% 20%, rgba(210, 0, 0, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(20, 20, 20, 0.94), rgba(4, 4, 4, 0.98));

    border: 1px solid rgba(180, 0, 0, 0.42);
    border-radius: 24px;
    box-shadow:
        0 0 34px rgba(180, 0, 0, 0.15),
        inset 0 0 24px rgba(255, 0, 0, 0.025);
    overflow: hidden;
}

.news-kicker {
    display: inline-block;
    margin-bottom: 10px;

    color: #ff4b4b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.news-hero h1 {
    margin: 0 0 10px;

    color: #f2ded7;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(255, 0, 0, 0.25);
}

.news-hero p {
    max-width: 760px;
    margin: 0;
    color: #a9968f;
    line-height: 1.6;
}

.news-hero-mark {
    width: 210px;
    height: 210px;
    justify-self: end;

    background:
        radial-gradient(circle, rgba(255, 0, 0, 0.22), transparent 58%),
        url("/static/img/icons/news.png") center / contain no-repeat;

    filter:
        drop-shadow(0 0 18px rgba(255, 0, 0, 0.4))
        brightness(0.95);
    opacity: 0.8;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.news-card {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    padding: 22px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    color: #d8c8c0;
    text-decoration: none;

    background:
        radial-gradient(circle at 94% 14%, rgba(190, 0, 0, 0.14), transparent 34%),
        linear-gradient(145deg, rgba(17, 17, 17, 0.94), rgba(4, 4, 4, 0.98));

    border: 1px solid rgba(150, 0, 0, 0.36);
    border-radius: 22px;

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.36),
        inset 0 0 18px rgba(255, 0, 0, 0.018);

    transition: 0.22s ease;
}

.news-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(90deg, rgba(255, 0, 0, 0.08), transparent 35%),
        radial-gradient(circle at top left, rgba(255, 0, 0, 0.11), transparent 32%);

    opacity: 0;
    transition: 0.22s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(230, 0, 0, 0.58);
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.48),
        0 0 24px rgba(180, 0, 0, 0.15);
}

.news-card:hover::before {
    opacity: 1;
}

.news-card-featured {
    grid-column: span 2;
    min-height: 300px;
}

.news-card-top,
.news-card-bottom {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;

    color: #968780;
    font-size: 12px;
}

.news-badge {
    padding: 5px 10px;

    color: #ffb8ad;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    background: rgba(120, 0, 0, 0.18);
    border: 1px solid rgba(255, 45, 45, 0.28);
    border-radius: 999px;
}

.news-card h2 {
    position: relative;
    z-index: 1;
    margin: 22px 0 12px;

    color: #ead8d0;
    font-size: 25px;
    line-height: 1.2;
}

.news-card-featured h2 {
    max-width: 760px;
    font-size: 34px;
}

.news-card p {
    position: relative;
    z-index: 1;
    margin: 0;

    max-width: 780px;
    color: #b7a6a0;
    line-height: 1.6;
}

.news-read-more {
    color: #ff7a6d;
    font-weight: 800;
}

.news-empty {
    grid-column: 1 / -1;
    padding: 28px;

    color: #a99790;
    text-align: center;

    background:
        linear-gradient(145deg, rgba(18, 18, 18, 0.9), rgba(4, 4, 4, 0.98));

    border: 1px dashed rgba(170, 0, 0, 0.42);
    border-radius: 20px;
}

/* Детальная страница */

.news-article {
    max-width: 980px;
    padding: 30px;

    background:
        radial-gradient(circle at top right, rgba(190, 0, 0, 0.14), transparent 35%),
        linear-gradient(145deg, rgba(16, 16, 16, 0.94), rgba(4, 4, 4, 0.98));

    border: 1px solid rgba(160, 0, 0, 0.38);
    border-radius: 24px;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.42),
        inset 0 0 22px rgba(255, 0, 0, 0.02);
}

.news-article h1 {
    margin: 18px 0;

    color: #f0ded8;
    font-size: 38px;
    line-height: 1.15;
}

.news-article-content {
    margin-top: 22px;

    color: #cbbab3;
    font-size: 16px;
    line-height: 1.75;
    white-space: normal;
}

.news-article-content br + br {
    display: none;
}

.news-back {
    display: inline-block;
    margin-top: 26px;

    color: #ff7a6d;
    text-decoration: none;
    font-weight: 800;
}

.news-back:hover {
    color: #ffd0c8;
}

@media (max-width: 1100px) {
    .news-hero {
        grid-template-columns: 1fr;
    }

    .news-hero-mark {
        display: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-featured {
        grid-column: span 1;
    }
}

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

    .news-hero h1,
    .news-article h1 {
        font-size: 30px;
    }
}

.admin-flags-field {
    display: flex;
    flex-direction: column;
    gap: 10px;

    color: #a99f96;
    font-size: 13px;
}

.news-inline-image {
    margin: 18px 0;
}

.news-inline-image img {
    display: block;
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(180, 0, 0, 0.38);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.42),
        0 0 22px rgba(160, 0, 0, 0.16);
}

.news-inline-image figcaption {
    margin-top: 8px;
    color: #8f817b;
    font-size: 13px;
    text-align: center;
}

.news-image-left {
    float: left;
    width: min(360px, 45%);
    margin: 8px 22px 14px 0;
}

.news-image-right {
    float: right;
    width: min(360px, 45%);
    margin: 8px 0 14px 22px;
}

.news-image-center {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.news-image-wide {
    width: 100%;
    clear: both;
}

.news-article-content::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 800px) {
    .news-image-left,
    .news-image-right {
        float: none;
        width: 100%;
        margin: 18px 0;
    }
}

.news-card-body {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
}

/* текст */
.news-card-content {
    flex: 1;
    min-width: 0;
}

/* картинка справа */
.news-card-cover {
    width: 180px;
    flex-shrink: 0;

    border-radius: 14px;
    overflow: hidden;

    border: 1px solid rgba(180, 0, 0, 0.35);
}

.news-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

