@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

@font-face {
    font-family: "Roboto Condensed";
    src: url("../fonts/roboto-condensed-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Roboto Condensed";
    src: url("../fonts/roboto-condensed-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

@font-face {
    font-family: "Source Serif 4";
    src: url("../fonts/source-serif-4-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Source Serif 4";
    src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

@font-face {
    font-family: "Source Serif 4";
    src: url("../fonts/source-serif-4-italic-cyrillic.woff2") format("woff2");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Source Serif 4";
    src: url("../fonts/source-serif-4-italic-latin.woff2") format("woff2");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/ibm-plex-sans-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

:root {
    color-scheme: light;
    --bg: #f5f3ee;
    --surface: #ffffff;
    --surface-2: #ece8df;
    --text: #171717;
    --muted: #67645d;
    --line: #ddd8cc;
    --brand: #fcbd01;
    --brand-soft: #fff2bd;
    --brand-2: #10100f;
    --green: #16a34a;
    --blue: #2563eb;
    --teal: #0f766e;
    --violet: #6d5bd0;
    --red: #dc2626;
    --radius: 8px;
    --shadow: 0 18px 50px rgba(18, 18, 18, 0.11);
    --shadow-soft: 0 10px 28px rgba(18, 18, 18, 0.08);
    --container: 1296px;
    --font-ui: "Inter", "Segoe UI", Arial, sans-serif;
    --font-headline: "Inter", "Segoe UI", Arial, sans-serif;
    --font-reading: "Source Serif 4", Georgia, serif;
    --font-data: "Inter", "Segoe UI", Arial, sans-serif;
    --font: var(--font-ui);
    --font-editorial: var(--font-headline);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

html {
    scrollbar-color: color-mix(in srgb, var(--brand) 72%, var(--muted)) var(--surface-2);
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--surface-2);
}

*::-webkit-scrollbar-thumb {
    border: 2px solid var(--surface-2);
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 72%, var(--muted));
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--brand);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #111111;
    --surface: #191919;
    --surface-2: #25231f;
    --text: #f4f1e8;
    --muted: #b7b2a7;
    --line: #333333;
    --brand: #fcbd01;
    --brand-soft: rgba(252, 189, 1, 0.15);
    --brand-2: #f4f1e8;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-synthesis: none;
    letter-spacing: 0;
    scroll-behavior: smooth;
}

body {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    margin: 0;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    animation: page-in 420ms var(--ease) both;
}

body.is-nav-open {
    overflow: hidden;
}

html.is-modal-open,
body.is-modal-open {
    overflow: hidden;
}

main {
    flex: 1 0 auto;
    min-width: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 180ms var(--ease), opacity 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease);
}

h1,
h2,
h3,
h4,
p,
strong {
    overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-editorial);
    font-weight: 700;
}

a:hover {
    color: var(--brand);
}

button,
input,
select,
textarea {
    max-width: 100%;
    font: inherit;
}

button {
    cursor: pointer;
    transition: transform 180ms var(--ease), color 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

button:active,
.solid-button:active {
    transform: translateY(1px);
}

.password-field {
    position: relative;
    display: block;
    width: 100%;
}

.password-field input {
    padding-right: 48px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    padding: 0;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: var(--text);
}

.password-toggle:active {
    transform: translateY(-50%);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle__eye-off {
    display: none;
}

.password-toggle.is-visible .password-toggle__eye {
    display: none;
}

.password-toggle.is-visible .password-toggle__eye-off {
    display: block;
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 72%, transparent);
    outline-offset: 3px;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.solid-button,
.text-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 700;
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}

.solid-button {
    padding: 0 18px;
    background: var(--brand);
    color: #111111;
    box-shadow: 0 10px 24px rgba(252, 189, 1, 0.24);
}

.solid-button:hover {
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(252, 189, 1, 0.32);
}

.text-button {
    color: var(--brand-2);
}

.news-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 4px;
    background: var(--badge-color, var(--brand));
    color: #ffffff;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.news-badge:hover,
.news-badge:focus-visible {
    background: color-mix(in srgb, var(--badge-color, var(--brand)) 84%, #111111);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.news-badge:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    padding-bottom: 12px;
}

.section-heading span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 2px 0 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.section-heading a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.news-card {
    position: relative;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease), background-color 220ms var(--ease);
}

.news-card:hover {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

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

.cover-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    overflow: hidden;
    background: #20201e;
    color: #fcbd01;
}

.cover-placeholder::before,
.cover-placeholder::after {
    position: absolute;
    content: "";
    background: rgb(255 255 255 / 7%);
}

.cover-placeholder::before {
    top: 18%;
    bottom: 18%;
    left: 50%;
    width: 1px;
}

.cover-placeholder::after {
    top: 50%;
    right: 12%;
    left: 12%;
    height: 1px;
}

.cover-placeholder__accent {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 4px;
    background: #fcbd01;
}

.cover-placeholder__mark {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 96px;
    padding: 14px 18px 12px;
    border: 1px solid rgb(252 189 1 / 55%);
    background: #171715;
    box-shadow: 8px 8px 0 rgb(252 189 1 / 12%);
    text-align: center;
}

.cover-placeholder__mark strong {
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0;
}

.cover-placeholder__mark small {
    margin-top: 5px;
    color: #f4f0e6;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
}

[data-cover-shell].is-cover-missing > .cover-placeholder {
    display: grid;
}

[data-cover-shell]:not(:has(> [data-cover-image])) > .cover-placeholder {
    display: grid;
}

.news-card__thumb {
    position: relative;
}

.news-card__thumb .cover-placeholder__mark {
    min-width: 58px;
    padding: 8px 10px 7px;
}

.news-card__thumb .cover-placeholder__mark strong {
    font-size: 15px;
}

.news-card__thumb .cover-placeholder__accent {
    top: 8px;
    left: 8px;
    width: 20px;
}

.news-card__image img,
.news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms var(--ease), filter 420ms var(--ease);
}

.news-card:hover .news-card__image img,
.news-card:hover .news-card__thumb img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.045);
}

.news-card__body {
    padding: 16px;
}

.news-card h3 {
    font-family: var(--font-editorial);
    font-weight: 700;
    margin: 10px 0 8px;
    font-size: 20px;
    line-height: 1.2;
}

.news-card p {
    margin: 0;
    color: var(--muted);
}

.news-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.article-author-link,
.article-author-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-author-link:hover {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reputation-badge {
    --badge-color: #1688f8;
    --badge-label-color: #0968c7;
    --badge-shadow: rgb(22 136 248 / 28%);
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: var(--badge-color);
    line-height: 1;
    vertical-align: middle;
}

.reputation-badge svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    overflow: visible;
    filter: drop-shadow(0 3px 5px var(--badge-shadow));
    transition: filter 160ms ease, transform 160ms ease;
}

.reputation-badge:hover svg {
    filter: drop-shadow(0 4px 7px var(--badge-shadow));
    transform: translateY(-1px) scale(1.04);
}

.reputation-badge__seal {
    fill: currentColor;
    stroke: color-mix(in srgb, currentColor 68%, #111111);
    stroke-width: 0.45;
}

.reputation-badge__ring {
    fill: rgb(255 255 255 / 7%);
    stroke: rgb(255 255 255 / 58%);
    stroke-width: .75;
}

.reputation-badge__check {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reputation-badge--bronze {
    --badge-color: #c6783f;
    --badge-label-color: #9a4f20;
    --badge-shadow: rgb(198 120 63 / 28%);
}

.reputation-badge--silver {
    --badge-color: #94a3b8;
    --badge-label-color: #64748b;
    --badge-shadow: rgb(100 116 139 / 25%);
}

.reputation-badge--gold {
    --badge-color: #f7c600;
    --badge-label-color: #936400;
    --badge-shadow: rgb(247 198 0 / 38%);
}

.reputation-badge--gold .reputation-badge__seal {
    stroke: #b77a00;
}

.reputation-badge--gold .reputation-badge__ring {
    fill: rgb(255 255 255 / 10%);
    stroke: #fff0a3;
}

.reputation-badge__label {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--badge-color) 30%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--badge-color) 11%, transparent);
    color: var(--badge-label-color);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .01em;
    white-space: nowrap;
}

[data-theme="dark"] .reputation-badge__label {
    color: color-mix(in srgb, var(--badge-color) 76%, #ffffff);
}

.news-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.news-card__tags a {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-2) 64%, transparent);
    color: var(--muted);
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
}

.news-card__tags a:hover {
    border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
    color: var(--text);
}

.news-card--compact {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 12px 0;
}

.news-card--compact:hover {
    box-shadow: none;
    transform: translateX(3px);
}

.news-card--compact .news-card__thumb {
    width: 112px;
    aspect-ratio: 1 / 0.76;
    border-radius: var(--radius);
    background: var(--surface-2);
    overflow: hidden;
}

.news-card--compact h3 {
    margin: 6px 0 4px;
    font-size: 15px;
    line-height: 1.28;
}

.news-card--compact .news-card__meta {
    margin-top: 6px;
}

.news-card--overlay {
    min-height: 232px;
    border: 0;
    color: #ffffff;
}

.news-card--overlay:hover {
    box-shadow: var(--shadow);
}

.news-card--overlay .news-card__image {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

.news-card__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.78));
}

.news-card--overlay .news-card__body {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
}

.news-card--overlay h3 {
    color: #ffffff;
}

.news-card--overlay .news-card__meta {
    color: rgba(255, 255, 255, 0.78);
}

.card-grid,
.section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.section-list {
    display: grid;
    gap: 4px;
}

.empty-state {
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes page-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

@media (max-width: 980px) {
    .card-grid,
    .section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .card-grid,
    .section-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .section-heading h2 {
        font-size: 21px;
    }

    .section-heading a {
        max-width: 100%;
        white-space: normal;
    }

    .solid-button,
    .text-button {
        max-width: 100%;
    }

    .news-card__body {
        padding: 14px;
    }

    .news-card h3 {
        font-size: 18px;
    }

    .news-card p {
        font-size: 14px;
    }

    .news-card__meta {
        gap: 5px 9px;
    }

    .news-card--compact {
        grid-template-columns: 96px 1fr;
    }

    .news-card--compact .news-card__thumb {
        width: 96px;
    }
}


@media (max-width: 420px) {
    .container {
        width: min(100% - 20px, var(--container));
    }

    .news-card--compact {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 10px;
    }

    .news-card--compact .news-card__thumb {
        width: 84px;
    }

    .news-card--compact h3 {
        margin-top: 3px;
        font-size: 14px;
    }
}

.ui-select-control,
.ui-number-control {
    position: relative;
    display: inline-flex;
    width: 100%;
    min-width: 0;
}

.ui-select-control select {
    width: 100%;
    appearance: none;
    padding-right: 44px !important;
}

.ui-select-control__icon {
    position: absolute;
    top: 50%;
    right: 13px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: var(--muted);
    pointer-events: none;
    transform: translateY(-50%);
}

.ui-select-control__icon svg,
.ui-number-control__button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.ui-select-control:focus-within .ui-select-control__icon {
    color: var(--brand);
}

.ui-number-control input[type="number"] {
    width: 100%;
    appearance: textfield;
    padding-right: 44px !important;
}

.ui-number-control input[type="number"]::-webkit-inner-spin-button,
.ui-number-control input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.ui-number-control__buttons {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    display: grid;
    width: 36px;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border-left: 1px solid var(--line);
    border-radius: 0 7px 7px 0;
}

.ui-number-control__button {
    display: grid;
    min-width: 0;
    min-height: 0;
    place-items: center;
    border: 0;
    background: var(--surface-2);
    color: var(--muted);
    padding: 0;
    cursor: pointer;
}

.ui-number-control__button + .ui-number-control__button {
    border-top: 1px solid var(--line);
}

.ui-number-control__button:hover,
.ui-number-control__button:focus-visible {
    outline: 0;
    background: color-mix(in srgb, var(--brand) 16%, var(--surface-2));
    color: var(--text);
}

.ui-number-control:has(input:disabled) .ui-number-control__buttons,
.ui-number-control:has(input[readonly]) .ui-number-control__buttons {
    opacity: 0.45;
    pointer-events: none;
}

/* Shared safety net for user-generated and translated content. */
img,
video,
audio,
iframe,
svg {
    max-width: 100%;
}

pre,
code,
table {
    max-width: 100%;
}

@media (max-width: 640px) {
    input,
    select,
    textarea,
    button {
        min-width: 0;
    }

    input,
    select,
    textarea {
        max-width: 100%;
    }
}
