.news-page .news-section {
    width: var(--container);
    margin: 64px auto 0;
    padding-bottom: 96px;
}

.news-page .news-section .section-head {
    display: grid;
    grid-template-columns: 1fr 478px;
    gap: 48px;
    align-items: start;
    margin-bottom: 40px;
}

.news-page .news-section .section-head h2 {
    margin: 0;
    color: var(--black);
    font-size: 64px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
}

.news-page .news-section .section-head p {
    margin: 4px 0 0;
    color: var(--grey);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.03em;
}

.news-filters {
    margin-bottom: 48px;
}

.news-filters__title {
    display: block;
    margin-bottom: 14px;
    color: var(--grey);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.news-filters__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-filters__items a {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    color: var(--black);
    background: #fff;
    border: 1px solid var(--black);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.news-filters__items a:hover,
.news-filters__items a.is-active {
    color: #fff;
    background: var(--brand-gradient-action);
    border-color: transparent;
    box-shadow: var(--brand-shadow);
    transform: translateY(-1px);
}

.news-filters__items a:active {
    box-shadow: none;
    transform: translateY(1px);
}

.news-filters__items a:focus-visible {
    outline: 3px solid rgba(253, 91, 3, .42);
    outline-offset: 3px;
}

.news-filter-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 48px;
    background: #fff;
    border: 1px solid #f0ecf2;
    border-radius: 16px;
}

.news-filter-empty strong {
    color: var(--black);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.15;
}

.news-filter-empty p {
    margin: 14px 0 24px;
    color: var(--grey);
    font-size: 16px;
    line-height: 1.45;
}

.news-filter-empty a {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    color: #fff;
    background: var(--indigo);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: background .18s ease, transform .18s ease;
}

.news-filter-empty a:hover {
    background: #4d0db8;
    transform: translateY(-1px);
}

.news-page .news-section .news-grid article {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(24, 9, 29, .1);
    transform: none;
}

.news-page .news-section .news-grid article::after {
    opacity: 1;
}

.news-page .news-section .news-grid article:hover,
.news-page .news-section .news-grid article:focus-within {
    box-shadow: 0 20px 40px rgba(24, 9, 29, .1);
    transform: none;
}

.news-page .news-section .news-grid small,
.news-page .news-section .news-grid p {
    color: rgba(255, 255, 255, .78);
}

.news-detail {
    width: var(--container);
    margin: 64px auto 0;
    padding-bottom: 96px;
}

.news-page .news-detail > .crumbs {
    margin-bottom: 32px;
}

.news-detail__head {
    max-width: none;
    margin: 0;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.news-detail__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 24px;
    color: var(--grey);
    font-size: 14px;
    font-weight: 600;
}

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

.news-detail__meta small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    color: var(--black);
    background: rgba(127, 117, 130, .08);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.news-detail__meta small::before {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    content: "";
    background: var(--orange);
    border-radius: 50%;
}

.news-detail__meta time {
    color: var(--grey);
}

.news-detail h1 {
    width: min(1280px, 100%);
    max-width: 1280px;
    margin: 0 auto;
    color: var(--black);
    font-size: 56px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
    text-align: left;
}

.news-detail__image {
    width: 100%;
    max-width: none;
    margin: 56px auto 0;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
}

.news-detail__image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.news-detail__content {
    width: 100%;
    max-width: none;
    margin: 32px auto 0;
}

.news-detail__content.rich-content {
    padding: 46px 28px 28px;
}

.news-detail__content.rich-content > :first-child {
    margin-top: 0;
}

.news-detail__content.rich-content > :last-child {
    margin-bottom: 0;
}

/* Some legacy news texts contain another .news-detail wrapper. */
.news-detail__content.rich-content > .news-detail {
    width: 100%;
    margin: 0 !important;
    padding: 0;
}

.news-detail__content.rich-content > .news-detail > :first-child {
    margin-top: 0;
}

.news-detail__content.rich-content > .news-detail > :last-child {
    margin-bottom: 0;
}

.news-detail__content.rich-content > br:last-child {
    display: none;
}

.news-detail__content.rich-content h2 {
    margin-top: 28px;
}

@media (max-width: 900px) {
    .news-page .news-section {
        margin-top: 28px;
    }

    .news-page .news-section .section-head {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 24px;
        margin-bottom: 32px;
    }

    .news-page .news-section .section-head h2 {
        width: 100%;
        font-size: 38px;
        overflow-wrap: anywhere;
    }

    .news-page .news-section .section-head p {
        max-width: 560px;
    }

    .news-filters {
        margin-bottom: 40px;
    }

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

    .news-page .news-detail > .crumbs {
        margin-bottom: 24px;
    }

    .news-detail__head {
        padding-bottom: 28px;
    }

    .news-detail h1 {
        font-size: 40px;
    }

    .news-detail__content {
        max-width: none;
        width: 100%;
        margin-top: 28px;
    }

    .news-detail__content.rich-content {
        padding: 30px 24px 24px;
    }

    .news-detail__content.rich-content h2 {
        margin-top: 40px;
    }
}

@media (max-width: 640px) {
    .news-page .news-section {
        margin-top: 40px;
        padding-bottom: 64px;
    }

    .news-page .news-section .section-head {
        gap: 18px;
        margin-bottom: 24px;
    }

    .news-page .news-section .section-head h2 {
        font-size: 34px;
    }

    .news-page .news-section .section-head p {
        max-width: none;
    }

    .news-filters {
        margin-bottom: 32px;
    }

    .news-filters__title {
        margin-bottom: 10px;
    }

    .news-filters__items {
        gap: 6px;
    }

    .news-filters__items a {
        min-height: 44px;
        padding: 0 16px;
        border-radius: 10px;
        font-size: 13px;
    }

    .news-filter-empty {
        min-height: 240px;
        padding: 28px 20px;
        border-radius: 14px;
    }

    .news-filter-empty strong {
        font-size: 23px;
    }

    .news-detail {
        margin-top: 40px;
        padding-bottom: 64px;
    }

    .news-page .news-detail > .crumbs {
        margin-bottom: 20px;
    }

    .news-detail__head {
        padding-bottom: 24px;
    }

    .news-detail h1 {
        font-size: 34px;
        line-height: 1.04;
    }

    .news-detail__image {
        margin-top: 32px;
        border-radius: 14px;
    }

    .news-detail__image img {
        max-height: 320px;
    }

    .news-detail__content {
        margin-top: 24px;
    }

    .news-detail__content.rich-content {
        padding: 24px 16px 20px;
    }

    .news-detail__content.rich-content h2 {
        margin-top: 36px;
    }
}
