.news-page {
    --news-dark: var(--color-dark, #1e1e1e);
    --news-light: var(--color-light, #ffffff);
    --news-accent: var(--color-accent, #4586c5);
    --news-accent-alt: var(--color-accent-alt, #7f64ff);
    --news-muted: rgba(30, 30, 30, 0.66);
    --news-border: rgba(30, 30, 30, 0.12);
    --news-surface: #f5f7fb;
    --news-radius: var(--border-radius, 30px);
    --news-radius-small: var(--border-radius-small, 24px);

    width: 100%;
    color: var(--news-dark);
    font-family: var(--font-family-base, "Roboto Flex", sans-serif);
}

.news-hero {
    margin-bottom: 28px;
    padding: 34px 0 24px;
    border-bottom: 1px solid var(--news-border);
}

.news-kicker {
    margin: 0 0 10px;
    color: var(--news-accent);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.news-hero h1,
.news-article__header h1 {
    max-width: 900px;
    margin: 0;
    font-size: 48px;
    line-height: 1.08;
    font-weight: 760;
}

.news-hero p,
.news-hero__content,
.news-article__lead {
    max-width: 780px;
    margin: 16px 0 0;
    color: var(--news-muted);
    font-size: 20px;
    line-height: 1.5;
}

.news-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    max-width: 1120px;
    margin-bottom: 24px;
}

.news-search {
    width: min(100%, 560px);
}

.news-search__label {
    display: block;
    margin-bottom: 8px;
    color: var(--news-muted);
    font-size: 14px;
    font-weight: 650;
}

.news-search__field {
    position: relative;
}

.news-search__input {
    width: 100%;
    min-height: 52px;
    padding: 0 48px 0 18px;
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius-small);
    color: var(--news-dark);
    background: var(--news-light);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-search-input::-webkit-search-cancel-button,
.news-search-input::-webkit-search-decoration,
.news-search__input::-webkit-search-cancel-button,
.news-search__input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.news-search__input:focus {
    border-color: var(--news-accent);
    box-shadow: 0 0 0 4px rgba(69, 134, 197, 0.14);
}

.news-search-clear {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(32, 32, 32, 0.48);
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-size: 26px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.news-search-clear.is-visible {
    display: inline-flex;
}

.news-search-clear[hidden] {
    display: none !important;
}

.news-search-clear:hover,
.news-search-clear:focus-visible {
    color: rgba(32, 32, 32, 0.86);
    background: rgba(32, 32, 32, 0.06);
    outline: none;
}

.news-results {
    margin: 0 0 10px;
    color: var(--news-muted);
    font-size: 15px;
}

.news-feed {
    display: flex;
    max-width: 1120px;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.news-feed-item {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 32px;
    border: 1px solid rgba(32, 32, 32, 0.08);
    border-radius: 28px;
    background: var(--news-light);
    box-shadow: 0 18px 60px rgba(22, 24, 29, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-feed-item:hover {
    border-color: rgba(64, 139, 209, 0.22);
    box-shadow: 0 24px 70px rgba(22, 24, 29, 0.08);
    transform: translateY(-2px);
}

.news-feed-item__content {
    min-width: 0;
    width: 100%;
    max-width: none;
}

.news-feed-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: rgba(32, 32, 32, 0.58);
    font-size: 15px;
    line-height: 1.4;
}

.news-feed-item__meta > * {
    display: inline-flex;
    align-items: center;
}

.news-feed-item__meta > * + *::before {
    content: "·";
    margin-right: 8px;
    color: rgba(32, 32, 32, 0.35);
}

.news-feed-item__title {
    max-width: none;
    margin: 0 0 16px;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 760;
}

.news-feed-item__title a,
.news-back-link {
    color: var(--news-dark);
    text-decoration: none;
}

.news-feed-item__title a:hover,
.news-back-link:hover {
    color: var(--news-accent);
}

.news-feed-item__summary {
    max-width: none;
    margin: 0;
    color: rgba(32, 32, 32, 0.68);
    font-size: 18px;
    line-height: 1.55;
}

.news-feed-item__summary p {
    margin: 0 0 10px;
}

.news-feed-item__summary p:last-child {
    margin-bottom: 0;
}

.news-feed-item__summary h2,
.news-feed-item__summary h3 {
    margin: 10px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.news-feed-item__summary ul,
.news-feed-item__summary ol {
    margin: 10px 0 0;
    padding-left: 22px;
}

.news-feed-item__summary li + li {
    margin-top: 4px;
}

.news-feed-item__summary img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: 20px;
}

.news-feed-item__summary iframe {
    display: block;
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

.news-feed-item__summary .news-video {
    max-width: none;
    margin: 18px 0;
    border-radius: 20px;
}

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

.news-feed-item__tags {
    margin-top: 20px;
}

.news-feed-item__more {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 24px;
    padding: 0 20px;
    border-radius: 999px;
    color: var(--news-light);
    background: var(--news-dark);
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.news-feed-item__more::after {
    margin-left: 8px;
    content: "→";
}

.news-feed-item__more:hover {
    color: var(--news-light);
    background: var(--news-accent);
    transform: translateY(-1px);
}

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

.news-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius-small);
    background: var(--news-light);
    box-shadow: 0 16px 40px rgba(30, 30, 30, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.news-card:hover {
    border-color: rgba(69, 134, 197, 0.38);
    box-shadow: 0 18px 46px rgba(30, 30, 30, 0.1);
    transform: translateY(-2px);
}

.news-card__cover {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--news-surface);
}

.news-card__body {
    display: flex;
    min-height: 320px;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}

.news-meta,
.news-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--news-muted);
    font-size: 14px;
    line-height: 1.4;
}

.news-meta span,
.news-meta time,
.news-card__details span {
    display: inline-flex;
    align-items: center;
}

.news-card__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.18;
    font-weight: 760;
}

.news-card__title a,
.news-back-link {
    color: inherit;
    text-decoration: none;
}

.news-card__title a:hover,
.news-back-link:hover {
    color: var(--news-accent);
}

.news-card__summary {
    margin: 0;
    color: var(--news-muted);
    font-size: 16px;
    line-height: 1.55;
}

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

.news-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(69, 134, 197, 0.28);
    border-radius: 999px;
    color: var(--news-accent);
    background: rgba(69, 134, 197, 0.08);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.news-tag:hover {
    border-color: var(--news-accent);
    background: rgba(69, 134, 197, 0.14);
}

.news-card__link {
    display: inline-flex;
    width: fit-content;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--news-light);
    background: var(--news-dark);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.news-card__link:hover {
    background: var(--news-accent);
    transform: translateY(-1px);
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
}

.news-pagination__pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.news-pagination__link,
.news-pagination__page {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--news-border);
    border-radius: 999px;
    color: var(--news-dark);
    background: var(--news-light);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
}

.news-pagination__page--current,
.news-pagination__link:hover,
.news-pagination__page:hover {
    border-color: var(--news-dark);
    color: var(--news-light);
    background: var(--news-dark);
}

.news-pagination__link--disabled {
    opacity: 0.42;
}

.news-empty-message {
    max-width: 1120px;
    margin: 24px 0 0;
    padding: 24px;
    border: 1px solid var(--news-border);
    border-radius: 22px;
    background: var(--news-light);
    color: var(--news-muted);
    font-size: 18px;
}

.news-back-link {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--news-accent);
    font-size: 15px;
    font-weight: 700;
}

.news-article {
    max-width: 920px;
}

.news-article__header {
    margin-bottom: 24px;
}

.news-article__header h1 {
    max-width: 820px;
    font-size: 44px;
    line-height: 1.12;
}

.news-article__header .news-meta {
    margin-bottom: 16px;
}

.news-article__header .news-tags {
    margin-top: 20px;
}

.news-article__cover {
    overflow: hidden;
    max-width: 820px;
    margin: 28px 0;
    aspect-ratio: 16 / 10;
    border-radius: var(--news-radius-small);
    background: var(--news-surface);
}

.news-video {
    overflow: hidden;
    margin: 28px 0;
    aspect-ratio: 16 / 9;
    border-radius: var(--news-radius-small);
    background: #101522;
}

.news-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.news-content {
    max-width: 820px;
    color: var(--news-dark);
    font-size: 18px;
    line-height: 1.72;
}

.news-content h2,
.news-content h3,
.news-content h4 {
    margin: 34px 0 12px;
    line-height: 1.2;
}

.news-content h2 {
    font-size: 30px;
}

.news-content h3 {
    font-size: 24px;
}

.news-content p,
.news-content ul,
.news-content ol {
    margin: 14px 0;
}

.news-content ul,
.news-content ol {
    padding-left: 24px;
}

.news-content a {
    color: var(--news-accent);
    text-underline-offset: 3px;
}

.news-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px 0;
    border-radius: 24px;
}

.news-content blockquote {
    margin: 22px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--news-accent-alt);
    border-radius: 16px;
    background: rgba(127, 100, 255, 0.08);
}

.news-content pre {
    overflow: auto;
    margin: 18px 0;
    padding: 16px;
    border-radius: 16px;
    color: #edf2ff;
    background: #101522;
}

.news-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.news-content :not(pre) > code {
    padding: 0.15em 0.35em;
    border-radius: 6px;
    background: rgba(30, 30, 30, 0.07);
}

.news-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.news-tags-cloud__item {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid var(--news-border);
    border-radius: 999px;
    color: var(--news-dark);
    background: var(--news-light);
    font-weight: 700;
    text-decoration: none;
}

.news-tags-cloud__item span {
    color: var(--news-accent);
}

.news-actions-line {
    margin: 0 0 22px;
}

@media (max-width: 960px) {
    .news-feed-item {
        padding: 24px;
    }
}

@media (max-width: 760px) {
    .news-hero {
        padding-top: 18px;
    }

    .news-hero h1,
    .news-article__header h1 {
        font-size: 34px;
    }

    .news-hero p,
    .news-hero__content,
    .news-article__lead {
        font-size: 17px;
    }

    .news-toolbar,
    .news-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .news-results {
        margin-bottom: 0;
    }

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

    .news-feed {
        max-width: none;
    }

    .news-feed-item {
        gap: 20px;
        padding: 20px;
        border-radius: 22px;
    }

    .news-feed-item__title {
        font-size: 26px;
    }

    .news-feed-item__summary {
        font-size: 16px;
    }

    .news-card__body {
        min-height: 0;
        padding: 18px;
    }

    .news-card__title {
        font-size: 22px;
    }

    .news-content {
        font-size: 16px;
    }

    .news-content h2 {
        font-size: 26px;
    }
}
