/* ==========================================================================
   Star Conflict — сайт-заглушка
   ========================================================================== */

@font-face {
    font-family: Continuum;
    src: url('assets/fonts/continuummedium_2.woff') format('woff'),
         url('assets/fonts/continuummedium_2.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #06080b;
    --bg-2: #0a0e13;
    --surface: #0f151c;
    --surface-2: #151d26;
    --surface-3: #1b2531;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);

    --text: #e9eef3;
    --text-2: #aab5c0;
    --text-3: #75838f;

    --accent: #00bfa5;
    --accent-hi: #2de0c6;
    --accent-soft: rgba(0, 191, 165, .1);
    --blue: #65aaf2;
    --blue-soft: rgba(101, 170, 242, .08);
    --warn: #f2a93b;
    --warn-soft: rgba(242, 169, 59, .08);
    --steam: #c62828;
    --steam-hi: #e53935;
    --offline: #ff5d5d;

    --font-display: Continuum, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 68px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    min-height: 100vh;
    font: 16px/1.6 var(--font-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: rgba(0, 191, 165, .35);
}

/* Содержимое другого языка скрываем */
html[lang="ru"] [data-lang="en"],
html[lang="en"] [data-lang="ru"] {
    display: none !important;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--ext {
    width: 14px;
    height: 14px;
    opacity: .7;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: calc(800px + var(--gutter) * 2);
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #001a16;
    font-weight: 600;
    transform: translateY(-150%);
    transition: transform .2s var(--ease);
}

.skip-link:focus {
    transform: none;
}

#view:focus {
    outline: none;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: 17px/1 var(--font-display);
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

.btn--sm {
    min-height: 38px;
    padding: 0 16px;
    font-size: 15px;
}

.btn--lg {
    min-height: 56px;
    padding: 0 28px;
    font-size: 19px;
}

.btn--steam {
    background: linear-gradient(180deg, var(--steam-hi), var(--steam));
    color: #fff;
    box-shadow: 0 8px 24px -10px rgba(229, 57, 53, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn--steam:hover {
    background: linear-gradient(180deg, #ef5350, var(--steam-hi));
    box-shadow: 0 12px 32px -10px rgba(229, 57, 53, .95), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn--ghost {
    border-color: rgba(0, 191, 165, .45);
    background: var(--accent-soft);
    color: var(--accent-hi);
}

.btn--ghost:hover {
    border-color: var(--accent);
    background: rgba(0, 191, 165, .18);
}

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

.btn--text:hover {
    color: var(--text);
}

/* ---------- Шапка ---------- */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}

.header.is-solid,
.header.is-open {
    background: rgba(6, 8, 11, .78);
    border-bottom-color: var(--border);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
}

.header__logo img {
    width: auto;
    height: 38px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}

.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: var(--text-2);
    font: 17px/1 var(--font-display);
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: color .2s;
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .25s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--text);
}

.nav__link.is-active::after {
    transform: scaleX(1);
}

.nav__steam {
    display: none;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang {
    display: flex;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
}

.lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 10px;
    border-radius: 7px;
    color: var(--text-3);
    font: 14px/1 var(--font-display);
    letter-spacing: .04em;
    transition: background-color .2s, color .2s;
}

.lang__btn:hover {
    color: var(--text);
}

.lang__btn[aria-pressed="true"] {
    background: var(--surface-3);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.lang__flag {
    width: 20px;
    height: 13px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
}

.lang__btn:not([aria-pressed="true"]) .lang__flag {
    opacity: .6;
}

.burger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.burger span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .25s var(--ease), opacity .2s;
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.header.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(92svh, 800px);
    padding: calc(var(--header-h) + 40px) 0 72px;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(6, 8, 11, .55) 0%, rgba(6, 8, 11, .25) 35%, rgba(6, 8, 11, .7) 75%, var(--bg) 100%),
        radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(6, 8, 11, .6) 100%),
        url('assets/bg.webp') center 30% / cover no-repeat;
    animation: hero-zoom 30s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__logo img {
    width: clamp(260px, 52vw, 640px);
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .65));
}

.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 93, 93, .3);
    border-radius: 999px;
    background: rgba(20, 8, 10, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #ffd2d2;
    font-size: 14px;
    font-weight: 500;
}

.hero__dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--offline);
}

.hero__dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--offline);
    opacity: 0;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(.5); opacity: .8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.hero__lead {
    max-width: 640px;
    margin-top: 20px;
    color: #d3dbe2;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.6;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

/* ---------- Секции ---------- */
.section {
    padding: clamp(64px, 9vw, 112px) 0;
}

.section--tight {
    padding-top: 24px;
}

.hero + .section {
    padding-top: 16px;
}

.section--guide {
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(0, 191, 165, .06), transparent 70%),
        var(--bg-2);
    border-top: 1px solid var(--border);
}

.section__head {
    margin-bottom: clamp(28px, 4vw, 44px);
}

.section__eyebrow {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section__title {
    font: clamp(30px, 4.4vw, 46px)/1.05 var(--font-display);
    letter-spacing: .01em;
    text-transform: uppercase;
}

.section__title--sm {
    margin-bottom: 20px;
    font-size: clamp(22px, 3vw, 28px);
}

/* ---------- Карточки новостей ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 24px;
}

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

@media (min-width: 601px) {
    .news-grid--single .card {
        flex-direction: row;
    }

    .news-grid--single .card__media {
        flex: 0 0 42%;
        aspect-ratio: auto;
        min-height: 220px;
    }

    .news-grid--single .card__media::after {
        background: linear-gradient(90deg, transparent 60%, rgba(15, 21, 28, .9));
    }
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 191, 165, .4);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 191, 165, .15);
}

.card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.card:hover .card__media img {
    transform: scale(1.04);
}

.card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 21, 28, .9));
}

.card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.card__badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 24px;
}

.card__date {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 500;
}

.card__title {
    font: 24px/1.15 var(--font-display);
    letter-spacing: .01em;
    transition: color .2s;
}

.card:hover .card__title {
    color: var(--accent-hi);
}

.card__text {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-2);
    font-size: 15px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.card__more .icon {
    width: 16px;
    height: 16px;
    transition: transform .25s var(--ease);
}

.card:hover .card__more .icon {
    transform: translateX(4px);
}

/* ---------- Инструкция ---------- */
.guide {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
    gap: 56px;
}

.toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.toc__summary {
    display: none;
}

.toc__title {
    margin-bottom: 12px;
    padding-left: 14px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.toc__list {
    counter-reset: toc;
    border-left: 1px solid var(--border);
}

.toc__link {
    counter-increment: toc;
    display: flex;
    gap: 10px;
    margin-left: -1px;
    padding: 8px 12px 8px 14px;
    border-left: 2px solid transparent;
    color: var(--text-3);
    font-size: 14px;
    line-height: 1.35;
    transition: color .2s, border-color .2s, background-color .2s;
}

.toc__link::before {
    content: counter(toc, decimal-leading-zero);
    flex: none;
    color: var(--text-3);
    font: 13px/1.5 var(--font-mono);
    opacity: .6;
}

.toc__link:hover {
    color: var(--text);
}

.toc__link.is-active {
    border-left-color: var(--accent);
    background: linear-gradient(90deg, var(--accent-soft), transparent);
    color: var(--text);
}

.toc__link.is-active::before {
    color: var(--accent);
    opacity: 1;
}

.guide__content {
    counter-reset: section;
    min-width: 0;
}

.g-section {
    counter-increment: section;
    padding: 8px 0 48px;
}

.g-section + .g-section {
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.g-title {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
    font: clamp(24px, 3vw, 32px)/1.15 var(--font-display);
    letter-spacing: .01em;
}

.g-title::before {
    content: counter(section, decimal-leading-zero);
    color: var(--accent);
    font: 15px/1 var(--font-mono);
    opacity: .85;
}

/* Быстрый старт и уведомление — карточками */
.g-section--quick,
.g-section--legal {
    margin: 8px 0;
    padding: clamp(22px, 3.5vw, 36px) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.g-section--quick {
    border-color: rgba(0, 191, 165, .35) !important;
    background:
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(0, 191, 165, .12), transparent 70%),
        var(--surface);
}

.g-section--quick + .g-section,
.g-section--legal + .g-section {
    border-top: 0;
}

.g-section--legal {
    border-color: rgba(255, 93, 93, .25) !important;
}

.g-section--legal .g-title::before {
    color: var(--offline);
}

.g-section--legal p,
.g-section--legal li {
    font-size: 14px;
}

/* ---------- Типографика контента ---------- */
.prose {
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.75;
}

.prose > * + *,
.prose .acc__body > * + *,
.prose .more__body > * + *,
.prose .callout > * + *,
.prose section > * + * {
    margin-top: 16px;
}

.prose p {
    overflow-wrap: break-word;
}

.prose strong {
    color: var(--text);
    font-weight: 600;
}

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

.prose h3 {
    margin-top: 32px !important;
    color: var(--text);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.prose h4 {
    margin-top: 28px !important;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
}

.prose h3 + *,
.prose h4 + * {
    margin-top: 10px !important;
}

.prose .hl,
.prose .hl strong {
    color: var(--accent-hi);
}

.prose .center {
    text-align: center;
}

.prose hr {
    height: 1px;
    margin: 32px 0;
    border: 0;
    background: var(--border);
}

.prose ul:not([class]),
.prose ol:not([class]) {
    display: grid;
    gap: 10px;
    padding-left: 4px;
}

.prose ul:not([class]) > li {
    position: relative;
    padding-left: 22px;
}

.prose ul:not([class]) > li::before {
    content: '';
    position: absolute;
    top: .7em;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
    transform: rotate(45deg);
}

.prose ol:not([class]) {
    counter-reset: ol;
}

.prose ol:not([class]) > li {
    counter-increment: ol;
    position: relative;
    padding-left: 34px;
}

.prose ol:not([class]) > li::before {
    content: counter(ol);
    position: absolute;
    top: .15em;
    left: 0;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0, 191, 165, .45);
    border-radius: 50%;
    color: var(--accent);
    font: 12px/1 var(--font-mono);
}

.prose code {
    padding: .12em .45em;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, .05);
    color: #9fe9dd;
    font: .86em/1.5 var(--font-mono);
    overflow-wrap: anywhere;
}

.prose kbd {
    padding: .1em .45em;
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--text);
    font: .85em var(--font-mono);
}

.prose pre {
    overflow-x: auto;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #070a0e;
}

.prose pre code {
    padding: 0;
    border: 0;
    background: none;
    font-size: 14px;
    white-space: pre;
    overflow-wrap: normal;
}

/* Шаги */
.steps {
    counter-reset: step;
    display: grid;
    gap: 10px;
}

.steps > li {
    counter-increment: step;
    position: relative;
    min-height: 62px;
    padding: 18px 18px 18px 66px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    color: var(--text);
    line-height: 1.5;
}

.steps > li::before {
    content: counter(step);
    position: absolute;
    top: 13px;
    left: 16px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent);
    color: #00211c;
    font: 18px/1 var(--font-display);
}

/* Выделенные блоки */
.callout {
    position: relative;
    padding: 18px 20px 18px 56px;
    border: 1px solid rgba(101, 170, 242, .22);
    border-radius: 12px;
    background: var(--blue-soft);
    color: #c5d3e0;
}

.callout::before {
    content: 'i';
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--blue);
    color: #04121f;
    font: 700 14px/1 Georgia, serif;
}

.callout--warn {
    border-color: rgba(242, 169, 59, .3);
    background: var(--warn-soft);
    color: #ead9be;
}

.callout--warn::before {
    content: '!';
    background: var(--warn);
    color: #241500;
    font-family: var(--font-body);
}

.callout .sub {
    margin-top: 0 !important;
}

/* Аккордеоны */
.acc {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color .2s, background-color .2s;
}

.acc + .acc {
    margin-top: 10px !important;
}

.acc[open] {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.acc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.acc__summary::-webkit-details-marker,
.toc__summary::-webkit-details-marker,
.more > summary::-webkit-details-marker {
    display: none;
}

.acc__summary::after,
.toc__summary::after {
    content: '';
    flex: none;
    width: 10px;
    height: 10px;
    margin-top: -4px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform .25s var(--ease), margin .25s;
}

.acc[open] > .acc__summary::after,
.toc[open] > .toc__summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.acc__summary:hover {
    color: var(--accent-hi);
}

.acc__body {
    padding: 0 20px 20px;
    font-size: 15px;
}

.acc__body > :first-child {
    margin-top: 0;
}

/* Список «Название — описание» */
.defs {
    border-top: 1px solid var(--border);
}

.defs > li {
    display: grid;
    grid-template-columns: minmax(150px, 210px) 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}

.defs strong {
    color: var(--accent-hi) !important;
    font: 500 14px/1.6 var(--font-mono) !important;
}

/* Таблица режимов */
.kv {
    display: grid;
    grid-template-columns: max-content 1fr;
    border-top: 1px solid var(--border);
}

.kv dt,
.kv dd {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.kv dt {
    padding-right: 24px;
}

.kv dd {
    color: var(--text);
}

/* Языки */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chips code {
    display: inline-block;
    padding: 6px 10px;
}

/* «Показать полный текст» */
.more > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.more > summary::after {
    content: '';
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s var(--ease), margin .25s;
}

.more[open] > summary::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.more[open] > summary {
    margin-bottom: 8px;
}

.prose .legal-h,
.prose .legal-title {
    color: var(--text);
    font-size: 14px;
    letter-spacing: .04em;
}

/* ---------- Страница новости ---------- */
.article {
    position: relative;
    padding: calc(var(--header-h) + 40px) 0 24px;
    isolation: isolate;
}

.article__hero {
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 520px;
    background:
        linear-gradient(180deg, rgba(6, 8, 11, .55), var(--bg) 92%),
        url('assets/bg.webp') center 30% / cover no-repeat;
    opacity: .9;
}

.article__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 8px 14px 8px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(6, 8, 11, .5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s, border-color .2s;
}

.article__back:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.article__back .icon {
    width: 16px;
    height: 16px;
}

.article__date {
    display: block;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.article__title {
    margin-top: 10px;
    font: clamp(30px, 5.2vw, 52px)/1.08 var(--font-display);
    letter-spacing: .005em;
    text-wrap: balance;
}

.article__media {
    margin-top: 32px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #000;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}

.article__media:empty {
    display: none;
}

.article__video,
.article__img {
    width: 100%;
    height: auto;
    aspect-ratio: 975 / 548;
    object-fit: cover;
    background: #000;
}

.article__body {
    margin-top: 36px;
    font-size: 17px;
}

.article__body > p:first-child {
    color: var(--text);
    font-size: 19px;
}

.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    margin-top: 48px;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(0, 191, 165, .25);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(100deg, rgba(10, 14, 19, .96) 30%, rgba(10, 14, 19, .7)),
        url('assets/news-art.jpg') right center / cover no-repeat;
}

.cta-band__title {
    font: 26px/1.1 var(--font-display);
    text-transform: uppercase;
}

.cta-band__text {
    max-width: 440px;
    margin-top: 8px;
    color: var(--text-2);
    font-size: 15px;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Футер ---------- */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
    background: #040507;
    color: var(--text-2);
    font-size: 15px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.footer__logo {
    width: 210px;
    height: auto;
}

.footer__heading {
    margin-bottom: 16px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.footer__col ul {
    display: grid;
    gap: 10px;
}

.footer__col a {
    transition: color .2s;
}

.footer__col a:hover {
    color: var(--accent);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.footer__partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
}

.partner {
    display: block;
    opacity: .75;
    transition: opacity .2s;
}

.partner:hover {
    opacity: 1;
}

/* Логотипы из спрайта оригинального сайта (800×634), масштаб 0.6 */
.partner--gaijin {
    width: 116px;
    height: 58px;
    background: url('assets/icons_png.png') no-repeat -154.8px -102px / 480px 380.4px;
}

.partner--stargem {
    width: 168px;
    height: 24px;
    background: url('assets/icons_png.png') no-repeat 0 -144px / 640px 507.2px;
}

.rating {
    width: auto;
    height: 40px;
}

.pegi {
    display: flex;
    gap: 6px;
}

.pegi img {
    width: auto;
    height: 44px;
}

.footer__copy {
    max-width: 520px;
    color: var(--text-3);
    font-size: 12px;
    line-height: 1.6;
}

/* ---------- Кнопка «наверх» ---------- */
.to-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: rgba(21, 29, 38, .85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s var(--ease), border-color .2s;
}

.to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.to-top:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1080px) {
    .guide {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .toc {
        position: static;
        max-height: none;
        overflow: visible;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface);
    }

    .toc__summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        color: var(--text);
        font-weight: 600;
        list-style: none;
        cursor: pointer;
    }

    .toc__title {
        display: none;
    }

    .toc__nav {
        padding: 0 12px 12px;
    }

    .toc__list {
        border-left: 0;
    }

    .toc__link {
        border-left: 0;
        border-radius: 8px;
        padding: 10px 12px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 60px;
    }

    .header__inner {
        gap: 12px;
    }

    .header__logo {
        margin-right: auto;
    }

    .header__logo img {
        height: 32px;
    }

    .header__steam {
        display: none;
    }

    .burger {
        display: block;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px var(--gutter) 24px;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        border-bottom: 1px solid var(--border);
        background: var(--bg);
        box-shadow: 0 24px 48px rgba(0, 0, 0, .6);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    }

    .header.is-open {
        background: var(--bg);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .header.is-open .nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav__link {
        padding: 18px 4px;
        border-bottom: 1px solid var(--border);
        font-size: 20px;
    }

    .nav__link::after {
        display: none;
    }

    .nav__link.is-active {
        color: var(--accent);
    }

    .nav__steam {
        display: inline-flex;
        margin-top: 20px;
    }

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

    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .hero {
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero__actions {
        flex-direction: column;
        align-self: stretch;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .card__body {
        padding: 18px 18px 20px;
    }

    .card__title {
        font-size: 21px;
    }

    .prose {
        font-size: 15px;
    }

    .article__body {
        font-size: 16px;
    }

    .article__body > p:first-child {
        font-size: 17px;
    }

    .steps > li {
        padding: 14px 14px 14px 60px;
    }

    .steps > li::before {
        top: 11px;
        left: 14px;
    }

    .callout {
        padding: 16px 16px 16px 50px;
    }

    .callout::before {
        left: 14px;
    }

    .acc__summary {
        padding: 14px 16px;
    }

    .acc__body {
        padding: 0 16px 16px;
    }

    .defs > li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .cta-band__actions,
    .cta-band__actions .btn {
        width: 100%;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lang__btn span {
        display: none;
    }

    .lang__btn {
        padding: 0 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
