/* Раздел новостей: лента, карточка новости и блок новостей на странице продукта. */

.news-page {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
    padding-bottom: 92px;
}

.news-hero {
    padding: 58px 0 34px;
}

.news-kicker {
    margin: 0 0 18px;
    color: var(--orange);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-hero h1 {
    max-width: 900px;
    margin: 0 0 20px;
    font-size: clamp(38px, 4.4vw, 68px);
    line-height: 1.04;
    font-weight: 900;
}

.news-hero p {
    max-width: 880px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(18px, 1.25vw, 21px);
    line-height: 1.6;
}

/* Фильтр по продуктам */

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.news-filter {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: #dbe7f7;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.news-filter:hover,
.news-filter:focus-visible {
    color: white;
    border-color: rgba(255, 149, 0, 0.55);
    background: rgba(255, 149, 0, 0.12);
    outline: none;
}

.news-filter-active {
    border-color: rgba(255, 149, 0, 0.65);
    background: rgba(255, 149, 0, 0.16);
    color: white;
}

/* Лента */

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.82);
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.2);
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 15px;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid rgba(82, 168, 255, 0.4);
    border-radius: 999px;
    background: rgba(31, 122, 224, 0.14);
    color: #bcd9ff;
    font-size: 14px;
    font-weight: 700;
}

a.news-badge:hover,
a.news-badge:focus-visible {
    border-color: rgba(255, 149, 0, 0.55);
    background: rgba(255, 149, 0, 0.14);
    color: #f6d9b3;
    outline: none;
}

.news-card h2 {
    margin: 0;
    font-size: clamp(22px, 1.7vw, 28px);
    line-height: 1.2;
    font-weight: 900;
}

.news-card h2 a:hover,
.news-card h2 a:focus-visible {
    color: var(--orange);
    outline: none;
}

.news-card p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.news-more {
    margin-top: auto;
    color: var(--blue-light);
    font-weight: 700;
}

.news-more:hover,
.news-more:focus-visible {
    color: var(--orange);
    outline: none;
}

.news-empty {
    padding: 34px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.82);
    color: var(--muted);
    font-size: 18px;
}

.news-empty p {
    margin: 0;
}

.news-pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
}

.news-pagination-status {
    color: var(--muted);
    font-size: 16px;
}

/* Страница одной новости */

.news-detail {
    max-width: 900px;
    margin: 58px 0 0;
}

.news-detail h1 {
    margin: 18px 0 20px;
    font-size: clamp(34px, 3.8vw, 58px);
    line-height: 1.06;
    font-weight: 900;
}

.news-detail-summary {
    margin: 0 0 26px;
    color: var(--text);
    font-size: clamp(20px, 1.6vw, 25px);
    line-height: 1.45;
    font-weight: 800;
}

.news-detail-body p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: clamp(18px, 1.2vw, 20px);
    line-height: 1.68;
}

.news-detail-body p:last-child {
    margin-bottom: 0;
}

.news-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

/* Блок новостей на странице продукта и в конце новости */

.product-news {
    margin-top: 34px;
    padding: 38px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.82);
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.2);
}

.product-news > h2 {
    margin: 0 0 24px;
    color: var(--text);
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.06;
    font-weight: 900;
}

.product-news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.product-news-item {
    padding: 22px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: rgba(7, 17, 31, 0.42);
}

.product-news-item time {
    color: var(--muted);
    font-size: 15px;
}

.product-news-item h3 {
    margin: 10px 0 10px;
    font-size: 21px;
    line-height: 1.25;
}

.product-news-item h3 a:hover,
.product-news-item h3 a:focus-visible {
    color: var(--orange);
    outline: none;
}

.product-news-item p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.product-news-all {
    display: inline-block;
    margin-top: 24px;
    color: var(--blue-light);
    font-weight: 700;
}

.product-news-all:hover,
.product-news-all:focus-visible {
    color: var(--orange);
    outline: none;
}

@media (max-width: 980px) {
    .news-page {
        width: min(100% - 32px, 1280px);
    }

    .product-news {
        padding: 26px;
    }
}

@media (max-width: 620px) {
    .news-hero {
        padding: 42px 0 26px;
    }

    .news-card {
        padding: 22px;
    }

    .news-detail {
        margin-top: 42px;
    }
}
