.news-page {
    background: #f4f6f8;
    color: #111;
}

.news-hero,
.news-channels,
.news-latest {
    padding: 54px max(18px, calc((100vw - var(--bkm-container)) / 2));
}

.news-hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    background:
        linear-gradient(120deg, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.64)),
        url("/static/images/photo1.jpg") center/cover no-repeat;
    color: #fff;
}

.news-hero::before,
.news-channels::before,
.news-latest::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    background: var(--sdg-spectrum);
}

.news-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 38px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 800;
}

.news-breadcrumb a {
    color: #fff;
}

.news-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.48fr);
    gap: 22px;
    align-items: stretch;
}

.news-hero__copy {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-kicker,
.news-feature__body > span,
.news-section-head > span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-hero h1 {
    max-width: 940px;
    margin: 18px 0 24px;
    color: #fff;
    font-size: clamp(3rem, 6vw, 6.6rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.news-hero__copy p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.05rem;
    line-height: 1.75;
}

.news-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 150px));
    gap: 10px;
    margin-top: 34px;
}

.news-hero__metrics div {
    min-height: 96px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.news-hero__metrics div:nth-child(1) { box-shadow: inset 0 5px 0 var(--sdg-4); }
.news-hero__metrics div:nth-child(2) { box-shadow: inset 0 5px 0 var(--sdg-14); }
.news-hero__metrics div:nth-child(3) { box-shadow: inset 0 5px 0 var(--sdg-7); }

.news-hero__metrics strong {
    display: block;
    font-size: 2rem;
    line-height: 0.9;
}

.news-hero__metrics small {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.news-feature {
    min-width: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.news-feature__media {
    position: relative;
    display: block;
    min-height: 340px;
    background: #202020;
    overflow: hidden;
}

.news-feature__media::before,
.news-card__media::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    height: 7px;
    background: var(--sdg-spectrum);
}

.news-feature__media img,
.news-card__media img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.news-feature:hover .news-feature__media img,
.news-card:hover .news-card__media img {
    transform: scale(1.04);
}

.news-feature__body {
    padding: 24px;
}

.news-feature__body time,
.news-card time {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.news-feature h2 {
    margin: 14px 0 12px;
    color: #fff;
    font-size: clamp(1.7rem, 2.7vw, 3.05rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.news-feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
}

.news-feature__body > a,
.news-card__body > a {
    width: fit-content;
    margin-top: 22px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-channels,
.news-latest {
    position: relative;
    background: #f4f6f8;
}

.news-section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 22px;
    align-items: end;
    margin-bottom: 26px;
}

.news-section-head > span {
    color: rgba(17, 17, 17, 0.45);
}

.news-section-head h2 {
    margin: 0;
    color: #111;
    font-size: clamp(2.4rem, 5vw, 5.8rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
}

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

.news-channel,
.news-card {
    min-width: 0;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.1);
    box-shadow: 0 22px 70px rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.news-channel {
    min-height: 260px;
    padding: 24px;
    color: #111;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-channel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: var(--sdg-4);
}

.news-channel--blue::before { background: var(--sdg-14); }
.news-channel--gold::before { background: var(--sdg-7); }

.news-channel i {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.news-channel strong {
    margin-top: 24px;
    color: #111;
    font-size: clamp(1.35rem, 2vw, 2.1rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.news-channel span {
    margin-top: 12px;
    color: rgba(17, 17, 17, 0.62);
    line-height: 1.6;
}

.news-channel em {
    margin-top: auto;
    padding-top: 22px;
    color: #111;
    font-style: normal;
    font-weight: 850;
}

.news-card {
    display: flex;
    flex-direction: column;
}

.news-card__media {
    position: relative;
    display: block;
    min-height: 260px;
    background: #202020;
    overflow: hidden;
}

.news-card__body {
    flex: 1;
    padding: 22px;
}

.news-card time {
    margin-top: 0;
    color: rgba(17, 17, 17, 0.45);
}

.news-card h3 {
    margin: 16px 0 10px;
    color: #111;
    font-size: clamp(1.3rem, 1.8vw, 2rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.news-card h3 a {
    color: inherit;
}

.news-card p {
    margin: 0;
    color: rgba(17, 17, 17, 0.62);
    line-height: 1.65;
}

.news-card__body > a {
    background: #111;
    color: #fff;
}

.news-hero--press {
    background:
        linear-gradient(120deg, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.62)),
        url("/static/images/photo2.jpg") center/cover no-repeat;
}

.newsletter-hero {
    background:
        linear-gradient(120deg, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.58)),
        url("/static/images/photo1.jpg") center/cover no-repeat;
}

.newsletter-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.5fr);
    gap: 22px;
    align-items: stretch;
}

.newsletter-form-card {
    min-width: 0;
    align-self: stretch;
    border-radius: 8px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-form-card > span {
    color: rgba(17, 17, 17, 0.48);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.newsletter-form-card h2 {
    margin: 14px 0 12px;
    color: #111;
    font-size: clamp(1.9rem, 3vw, 3.4rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.newsletter-form-card p {
    margin: 0 0 22px;
    color: rgba(17, 17, 17, 0.62);
    line-height: 1.65;
}

.newsletter-form-card form {
    display: grid;
    gap: 12px;
}

.newsletter-form-card label {
    display: grid;
    gap: 7px;
    color: rgba(17, 17, 17, 0.58);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.newsletter-form-card input {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    background: #fff;
    padding: 0 14px;
    color: #111;
    font: inherit;
    font-size: 15px;
    outline: none;
}

.newsletter-form-card input:focus {
    border-color: var(--sdg-14);
    box-shadow: 0 0 0 4px rgba(38, 189, 226, 0.16);
}

.newsletter-form-card button {
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font: inherit;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.newsletter-form-card small {
    display: block;
    margin-top: 18px;
    color: rgba(17, 17, 17, 0.54);
    line-height: 1.55;
}

.newsletter-flashes {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.newsletter-flash {
    padding: 12px 14px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-weight: 800;
}

.newsletter-flash--success {
    background: var(--sdg-3);
}

.newsletter-flash--error {
    background: var(--sdg-1);
}

.newsletter-updates {
    position: relative;
    padding: 54px max(18px, calc((100vw - var(--bkm-container)) / 2));
    background: #f4f6f8;
}

.newsletter-updates::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    background: var(--sdg-spectrum);
}

.news-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    border-radius: 8px;
    background: #fff;
    color: rgba(17, 17, 17, 0.62);
}

html[lang="ru"] .news-hero h1,
html[lang="ru"] .news-section-head h2,
html[lang="ru"] .news-feature h2,
html[lang="ru"] .news-card h3,
html[lang="ru"] .newsletter-form-card h2,
html[lang="kk"] .news-hero h1,
html[lang="kk"] .news-section-head h2,
html[lang="kk"] .news-feature h2,
html[lang="kk"] .news-card h3,
html[lang="kk"] .newsletter-form-card h2 {
    letter-spacing: 0;
    line-height: 1;
}

@media (max-width: 1100px) {
    .news-hero {
        min-height: auto;
    }

    .news-hero__grid,
    .newsletter-hero__grid,
    .news-section-head,
    .news-channel-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-hero__copy {
        min-height: 380px;
    }
}

@media (max-width: 640px) {
    .news-hero,
    .news-channels,
    .news-latest,
    .newsletter-updates {
        padding: 42px 16px;
    }

    .news-breadcrumb {
        margin-bottom: 28px;
    }

    .news-hero__copy {
        min-height: 0;
        justify-content: flex-start;
    }

    .news-hero h1 {
        font-size: clamp(2.45rem, 11vw, 3.7rem);
        line-height: 0.98;
        letter-spacing: -0.035em;
        overflow-wrap: anywhere;
    }

    .news-hero__copy p {
        font-size: 0.98rem;
    }

    .news-hero__metrics {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .news-feature__media,
    .news-card__media {
        min-height: 230px;
    }

    .news-section-head h2 {
        font-size: clamp(2.15rem, 11vw, 3.4rem);
    }

    .newsletter-form-card {
        padding: 22px;
    }
}

/* Light mode */
html[data-theme="light"] .news-hero {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 248, 0.96)),
        url("/static/images/photo1.jpg") center/cover no-repeat;
    color: #111827;
}

html[data-theme="light"] .news-breadcrumb,
html[data-theme="light"] .news-kicker,
html[data-theme="light"] .news-feature__body > span {
    color: rgba(17, 24, 39, 0.52);
}

html[data-theme="light"] .news-breadcrumb a,
html[data-theme="light"] .news-hero h1,
html[data-theme="light"] .news-feature h2 {
    color: #111827;
}

html[data-theme="light"] .news-hero__copy p,
html[data-theme="light"] .news-feature p {
    color: rgba(17, 24, 39, 0.66);
}

html[data-theme="light"] .news-hero__metrics div,
html[data-theme="light"] .news-feature,
html[data-theme="light"] .newsletter-form-card,
html[data-theme="light"] .newsletter-update-card {
    background: #fff;
    border-color: rgba(17, 24, 39, 0.1);
    color: #111827;
    box-shadow: 0 18px 54px rgba(17, 24, 39, 0.08);
}

html[data-theme="light"] .news-hero__metrics small,
html[data-theme="light"] .news-feature__body time {
    color: rgba(17, 24, 39, 0.58);
}

html[data-theme="light"] .news-feature__body > a {
    background: #111827;
    color: #fff;
}
