/* ==========================================================================
   24GAMING — редизайн, демо-вёрстка
   Палитра сохранена: красный / чёрный / белый.
   ========================================================================== */

:root {
    /* Цвет */
    --ink: #0b0c0f;
    --ink-2: #101218;
    --panel: #16181f;
    --panel-2: #1d2029;
    --line: #262a34;
    --white: #ffffff;
    --text: #e9eaee;
    --muted: #8f95a3;
    --red: #e10600;
    --red-hot: #ff2d1f;
    --red-dim: rgba(225, 6, 0, .14);

    /* Шрифты */
    --display: 'Unbounded', 'Montserrat', system-ui, sans-serif;
    --body: 'Inter', 'Montserrat', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

    /* Ритм */
    --gap: 16px;
    --pad: 20px;
    --radius: 4px;
    --shell: 1320px;
    --head-h: 64px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    margin: 0;
}

p {
    margin: 0 0 1em;
}

:focus-visible {
    outline: 2px solid var(--red-hot);
    outline-offset: 3px;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 16px;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 16px;
    top: 8px;
    z-index: 99;
    background: var(--red);
    color: #fff;
    padding: 8px 14px;
}

/* --------------------------------------------------------------- Шапка -- */

.head {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(11, 12, 15, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.head__bar {
    height: var(--head-h);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: var(--display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.03em;
    white-space: nowrap;
}

.brand__24 {
    color: var(--red);
}

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

.nav__link {
    position: relative;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--muted);
    transition: color .15s ease;
}

.nav__link:hover {
    color: var(--white);
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
}

.nav__link:hover::after,
.nav__link[aria-current='page']::after {
    transform: scaleX(1);
}

.nav__link[aria-current='page'] {
    color: var(--white);
}

.head__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav + .head__actions {
    margin-left: 8px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.icon-btn:hover {
    border-color: var(--red);
    color: var(--red-hot);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

.head__tg {
    display: none;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius);
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s ease;
}

.head__tg:hover {
    background: var(--red-hot);
}

/* Мобильное меню */
.menu {
    display: none;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line);
}

.menu.is-open {
    display: block;
}

.menu__link {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
}

.menu__link:last-child {
    border-bottom: 0;
}

/* -------------------------------------------------------------- Реклама -- */

.ad {
    display: block;
    margin: 24px 0;
}

.ad__label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #5b6070;
}

.ad__slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Пунктирная рамка с размером — только для режима разработки (ad--preview) */
.ad--preview .ad__slot {
    border: 1px dashed #33384a;
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 255, 255, .012) 10px 20px),
        var(--ink-2);
    color: #545a6b;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
}

.ad--preview .ad__slot::after {
    content: attr(data-size) ' · ' attr(data-slot);
}

.ad--preview.ad--leader .ad__slot {
    height: 100px;
}

.ad--preview.ad--rect .ad__slot {
    height: 250px;
}

.ad--preview.ad--half .ad__slot {
    height: 600px;
}

.ad--preview.ad--tall .ad__slot {
    height: 400px;
}

.ad--preview.ad--infeed .ad__slot {
    height: 190px;
}

.ad--inpost {
    margin: 32px 0;
}

.ad--preview.ad--inpost .ad__slot {
    height: 250px;
}

/* Липкий мобильный баннер */
.sticky-ad {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 6px 12px 8px;
    background: rgba(11, 12, 15, .96);
    border-top: 1px solid var(--line);
}

.sticky-ad .ad {
    margin: 0;
}

.sticky-ad .ad__label {
    margin-bottom: 4px;
}

.ad--preview.ad--sticky .ad__slot {
    height: 84px;
}

.ad__close {
    position: absolute;
    top: 4px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

/* -------------------------------------------------------- Общие детали -- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--red);
}

.section {
    padding: 32px 0;
}

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

.section__title {
    font-size: clamp(20px, 4vw, 28px);
}

.section__more {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: color .15s ease;
}

.section__more:hover {
    color: var(--red-hot);
}

.tag {
    display: inline-block;
    padding: 4px 9px;
    background: var(--red);
    color: #fff;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tag--ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
}

.time {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font-family: var(--body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.btn:hover {
    border-color: var(--red);
    color: var(--white);
}

.btn--red {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.btn--red:hover {
    background: var(--red-hot);
    border-color: var(--red-hot);
}

.btn--wide {
    width: 100%;
}

/* ------------------------------------------------------------ Лид-блок -- */

.lead {
    display: grid;
    gap: 12px;
    padding-top: 20px;
}

.lead__main {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--panel);
}

.lead__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.lead__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.lead__main:hover .lead__media img {
    transform: scale(1.03);
}

.lead__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 12, 15, .95) 8%, rgba(11, 12, 15, .25) 55%, transparent 100%);
}

.lead__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.lead__body {
    position: relative;
    z-index: 2;
    padding: 14px 16px 18px;
}

.lead__title {
    font-size: clamp(21px, 3.2vw + 8px, 40px);
    text-wrap: balance;
}

.lead__main:hover .lead__title {
    color: #fff;
}

.lead__intro {
    display: none;
    margin: 12px 0 0;
    max-width: 62ch;
    color: var(--muted);
}

.lead__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.lead__side {
    display: grid;
    align-content: start;
    gap: 14px;
}

.side-card {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 12px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.side-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.side-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--panel);
}

.side-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-card__title {
    font-family: var(--body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    transition: color .15s ease;
}

.side-card:hover .side-card__title {
    color: var(--red-hot);
}

.side-card__meta {
    margin-top: 6px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ------------------------------------------- Лента новостей (сигнатура) -- */

.feed {
    position: relative;
    padding-left: 26px;
}

/* Красная «рельса» — вертикальная линия времени слева от ленты */
.feed::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--red) 0%, rgba(225, 6, 0, .35) 60%, transparent 100%);
}

.feed__day {
    position: relative;
    margin: 28px 0 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.feed__day:first-child {
    margin-top: 0;
}

.feed__day::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 11px;
    height: 11px;
    background: var(--red);
}

.feed__grid {
    display: grid;
    gap: 20px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    transition: border-color .18s ease, transform .18s ease;
}

.card:hover {
    border-color: #3a2020;
    transform: translateY(-2px);
}

/* Насечка на рельсе напротив каждой карточки */
.card::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 22px;
    width: 20px;
    height: 1px;
    background: var(--line);
}

.feed__grid .card::before {
    display: none;
}

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

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

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

.card__tag {
    position: absolute;
    top: 10px;
    left: 10px;
}

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
}

.card__title {
    font-family: var(--body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    transition: color .15s ease;
}

.card:hover .card__title {
    color: var(--red-hot);
}

.card__intro {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}

/* ------------------------------------------------------------- Колонки -- */

.layout {
    display: grid;
    gap: 32px;
    align-items: start;
}

.sidebar {
    display: grid;
    gap: 8px;
}

.sidebar__sticky {
    position: sticky;
    top: calc(var(--head-h) + 16px);
}

.panel {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 16px;
}

.panel__title {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    letter-spacing: .01em;
}

.rank {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rank;
}

.rank__item {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 14px;
    line-height: 1.35;
}

.rank__item::before {
    counter-increment: rank;
    content: counter(rank, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--red);
}

.rank__item a:hover {
    color: var(--red-hot);
}

/* ----------------------------------------------- Партнёрская покупка -- */

.buy {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #33202a;
    border-left: 3px solid var(--red);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(225, 6, 0, .10) 0%, transparent 60%),
        var(--panel);
}

.buy__cover {
    width: 96px;
    flex: none;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--panel-2);
}

.buy__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buy__top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.buy__title {
    margin: 8px 0 0;
    font-size: 19px;
}

.buy__platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.buy__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.buy__now {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}

.buy__old {
    color: var(--muted);
    font-size: 15px;
}

.buy__off {
    padding: 2px 8px;
    background: var(--red);
    color: #fff;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
}

.buy__note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

.buy__note b {
    color: #b9bec9;
    font-weight: 600;
}

.buy--inline {
    margin: 28px 0;
}

/* Компактный вариант для сайдбара */
.buy--mini {
    padding: 14px;
}

.buy--mini .buy__now {
    font-size: 22px;
}

.buy--mini .buy__cover {
    width: 72px;
}

/* ------------------------------------------------------------- Статья -- */

.article {
    max-width: 760px;
}

.article__head {
    padding: 24px 0 0;
}

.article__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.article__crumbs a:hover {
    color: var(--red-hot);
}

.article__title {
    margin: 14px 0 0;
    font-size: clamp(24px, 5.2vw, 40px);
    text-wrap: balance;
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.article__hero {
    margin: 20px 0;
}

.article__hero img {
    width: 100%;
}

.article__caption {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.prose {
    font-size: 17px;
    line-height: 1.75;
}

.prose p {
    margin: 0 0 1.15em;
}

.prose h2 {
    margin: 1.6em 0 .6em;
    font-size: 23px;
}

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

.prose blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 18px;
    border-left: 2px solid var(--red);
    font-size: 19px;
    line-height: 1.5;
    color: var(--white);
}

.prose ul {
    padding-left: 20px;
}

.tg-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.tg-cta__text {
    font-size: 14px;
    color: var(--muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0;
}

.tags a {
    padding: 6px 10px;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    transition: border-color .15s ease, color .15s ease;
}

.tags a:hover {
    border-color: var(--red);
    color: var(--white);
}

/* ---------------------------------------------------------- Игра / хаб -- */

.game-hero {
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
}

.game-hero__bg {
    position: absolute;
    inset: 0;
}

.game-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.7);
}

.game-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--ink) 4%, rgba(11, 12, 15, .78) 42%, rgba(11, 12, 15, .35) 100%);
}

.game-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 18px;
    padding: 26px 0 24px;
}

.game-hero__title {
    margin: 10px 0 0;
    font-size: clamp(26px, 6vw, 46px);
}

.game-hero__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.fact {
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: rgba(22, 24, 31, .7);
}

.fact__key {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.fact__val {
    font-size: 14px;
    font-weight: 600;
}

.score {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 6px 12px;
    background: var(--red);
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
}

.score span {
    font-size: 12px;
    opacity: .8;
}

.catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    transition: border-color .18s ease;
}

.game-card:hover {
    border-color: var(--red);
}

.game-card__media {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.game-card:hover .game-card__media img {
    transform: scale(1.05);
}

.game-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 14px 14px;
}

.game-card__title {
    font-family: var(--body);
    font-size: 15px;
    font-weight: 600;
    transition: color .15s ease;
}

.game-card__title a:hover {
    color: var(--red-hot);
}

/* Кнопка магазина партнёра прижата к низу карточки */
.game-card__buy {
    margin-top: auto;
    padding: 9px 12px;
    font-size: 13px;
}

.game-card__buy + .game-card__note,
.game-card__note {
    margin: 8px 0 0;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .04em;
    color: #5b6070;
}

.game-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 8px 0 12px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--white);
}

.game-card__price s {
    color: var(--muted);
    font-size: 12px;
}

/* ------------------------------------------------------------- Подвал -- */

.foot {
    margin-top: 40px;
    padding: 32px 0 96px;
    border-top: 1px solid var(--line);
    background: var(--ink-2);
}

.foot__grid {
    display: grid;
    gap: 24px;
}

.foot__title {
    margin-bottom: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.foot__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: 14px;
}

.foot__list a:hover {
    color: var(--red-hot);
}

.foot__note {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 28px 0 0;
}

.pager a,
.pager span {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
}

.pager a:hover {
    border-color: var(--red);
    color: var(--white);
}

.pager .is-current {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ------------------------------------------------------- Адаптивность -- */

@media (min-width: 560px) {
    .feed__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .buy {
        padding: 22px;
    }

    .game-hero__facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .shell {
        padding: 0 24px;
    }

    .nav {
        display: flex;
    }

    .head__tg {
        display: inline-flex;
    }

    .icon-btn--burger {
        display: none;
    }

    .lead {
        grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
        gap: 24px;
        padding-top: 28px;
    }

    .lead__body {
        margin-top: -96px;
        padding: 0 24px 22px;
    }

    .lead__intro {
        display: block;
    }

    .layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 36px;
    }

    .section {
        padding: 44px 0;
    }

    .sticky-ad {
        display: none;
    }

    .foot {
        padding-bottom: 40px;
    }

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

    .buy {
        grid-template-columns: minmax(0, 1fr) 260px;
        align-items: center;
    }

    .buy--mini {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .game-hero__inner {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: end;
        padding: 40px 0 32px;
    }
}

@media (min-width: 1200px) {
    .feed__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feed__grid--wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* ==========================================================================
   Дополнения для боевого сайта: контент из парсера, пагинация, каталог,
   партнёрские материалы, служебные страницы.
   ========================================================================== */

/* Контент статьи приходит из парсера — размечаем то, что реально приходит */
.prose img,
.prose iframe,
.prose video {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.prose iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

.prose figure {
    margin: 20px 0;
}

.prose figcaption {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.prose th,
.prose td {
    padding: 8px 10px;
    border: 1px solid var(--line);
    text-align: left;
}

.prose h3 {
    margin: 1.4em 0 .5em;
    font-size: 19px;
}

.prose li {
    margin-bottom: .4em;
}

.table-scroll {
    overflow-x: auto;
}

/* Видео на странице игры */
.video-block iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

/* Пагинация Laravel */
.pager__gap {
    color: #4d5262;
}

.pager__label {
    width: 100%;
    text-align: center;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    border: 0;
    height: auto;
    margin-bottom: 4px;
}

/* Каталог игр по буквам */
.letters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.letters a {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    transition: border-color .15s ease, color .15s ease;
}

.letters a:hover {
    border-color: var(--red);
    color: var(--white);
}

.letter-group {
    margin-bottom: 32px;
    scroll-margin-top: calc(var(--head-h) + 16px);
}

.letter-group__title {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .2em;
    color: var(--red);
}

.letter-group__list {
    display: grid;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.letter-group__list a {
    display: inline-block;
    padding: 4px 0;
    font-size: 15px;
    transition: color .15s ease;
}

.letter-group__list a:hover {
    color: var(--red-hot);
}

/* Короткая ссылка в магазин партнёра рядом с названием игры */
.buy-link {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border: 1px solid #3a2020;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--red-hot);
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.buy-link:hover {
    background: var(--red);
    color: #fff;
}

.letter-group__list .buy-link:hover {
    color: #fff;
}

@media (min-width: 560px) {
    .letter-group__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .letter-group__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Заголовок раздела с картинкой */
.page-head {
    position: relative;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    background: var(--ink-2);
}

.page-head__title {
    margin: 10px 0 0;
    font-size: clamp(24px, 3.2vw + 8px, 38px);
}

.page-head__sub {
    margin: 10px 0 0;
    color: var(--muted);
}

/* Блок ссылок Sape */
.sape-links {
    padding: 10px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.sape-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sape-links a {
    color: #5b6070;
}

/* Пустое состояние */
.empty {
    padding: 40px 0;
    text-align: center;
    color: var(--muted);
}

/* Партнёрские материалы (внешний фид) */
.partner-feed {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
    .partner-feed {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Служебные страницы (авторизация и т.п.) */
.plate {
    max-width: 520px;
    margin: 40px auto;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.plate label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--muted);
}

.plate input {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--ink);
    color: var(--text);
    font: inherit;
}

.plate input:focus {
    border-color: var(--red);
    outline: none;
}
