/*
 * Посадочная страница «Грани Историй».
 *
 * Палитра взята из самой игры: угольный фон и тлеющий янтарь. Задача страницы —
 * чтобы переход «сайт → игра» не выглядел переходом в другой продукт.
 *
 * Анимации завязаны на прокрутку и появление в кадре; при
 * prefers-reduced-motion всё останавливается — движение здесь украшение,
 * а не способ что-то сообщить.
 */

:root {
    --bg:        #080706;
    --bg-soft:   #0d0b09;
    --panel:     rgba(255, 243, 224, .045);
    --panel-2:   rgba(255, 243, 224, .075);
    --line:      rgba(255, 243, 224, .10);
    --line-soft: rgba(255, 243, 224, .055);
    --ink:       #f7f0e5;
    --muted:     #bdb1a0;
    --faint:     #8b8173;
    --ember:     #eb5c21;
    --ember-2:   #ffa047;
    --gold:      #ffde94;
    --violet:    #8b6cf0;
    --cyan:      #4fd3d0;
    --good:      #74de8f;
    --danger:    #e56149;

    --shell:     min(1200px, 100% - 44px);
    --radius:    22px;
    --radius-sm: 14px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Плёночное зерно поверх всего: без него большие тёмные заливки выглядят
   пластиковыми и на градиентах видны полосы. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.shell { width: var(--shell); margin: 0 auto; }

/* ── Полоса прокрутки ───────────────────────────────────────────────────── */

html { scrollbar-width: thin; scrollbar-color: rgba(235, 92, 33, .5) rgba(255, 243, 224, .05); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: rgba(255, 243, 224, .04); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ember-2), var(--ember));
    border: 3px solid var(--bg);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--gold), var(--ember-2)); }
::-webkit-scrollbar-corner { background: transparent; }

::selection { background: rgba(235, 92, 33, .32); color: #fff; }

/* Полоса прочитанного вверху страницы: сколько лендинга позади. */
#scrollProgress {
    position: fixed;
    top: 0; left: 0;
    z-index: 120;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--ember));
    box-shadow: 0 0 14px rgba(255, 160, 71, .7);
    pointer-events: none;
}

/* ── Свой курсор ────────────────────────────────────────────────────────────
 * Точка следует за мышью мгновенно, кольцо догоняет с задержкой — от этого
 * движение кажется живым. Включается только там, где мышь есть на самом деле:
 * на тачскрине курсора нет, и прятать системный указатель нельзя.
 */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor input, .has-cursor label { cursor: none; }

#cursorDot, #cursorRing {
    position: fixed;
    top: 0; left: 0;
    /* Выше окна справки: настоящий курсор на странице скрыт, и под окном
       человек оставался вообще без курсора. */
    z-index: 400;
    pointer-events: none;
    border-radius: 50%;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.has-cursor #cursorDot, .has-cursor #cursorRing { opacity: 1; }

#cursorDot {
    width: 7px; height: 7px;
    margin: -3.5px 0 0 -3.5px;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(255, 222, 148, .9);
}
#cursorRing {
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1.5px solid rgba(255, 160, 71, .55);
    transition: width .28s var(--ease), height .28s var(--ease), margin .28s var(--ease),
                border-color .28s var(--ease), background .28s var(--ease), opacity .3s var(--ease);
}
#cursorRing.is-hot {
    width: 58px; height: 58px;
    margin: -29px 0 0 -29px;
    border-color: rgba(255, 222, 148, .85);
    background: rgba(255, 160, 71, .09);
}
#cursorRing.is-down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }

/* ── Типографика ────────────────────────────────────────────────────────── */

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }

/* Кегли намеренно сдержаннее «журнального» максимума: на широком экране
   заголовок в сто пикселей вытесняет всё остальное за пределы первого экрана. */
.h-display { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; }
.h-section { font-size: clamp(25px, 3.1vw, 38px); }
.h-card    { font-size: clamp(18px, 1.7vw, 21px); letter-spacing: -.01em; }

.grad {
    background: linear-gradient(104deg, var(--gold) 6%, #ffb765 42%, var(--ember) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    margin-bottom: 22px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(255, 222, 148, .07);
    border: 1px solid rgba(255, 222, 148, .22);
    border-radius: 999px;
}
.eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ember-2);
    box-shadow: 0 0 12px var(--ember-2);
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .35; transform: scale(.7); }
}

/* ── Кнопки ─────────────────────────────────────────────────────────────── */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #200f04;
    background: linear-gradient(180deg, var(--ember-2), var(--ember));
    border: none;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .3s var(--ease);
    box-shadow: 0 10px 34px -12px rgba(235, 92, 33, .85);
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(235, 92, 33, .95); }
.btn:active { transform: translateY(0); }

/* Блик, пробегающий по кнопке — только на наведении, чтобы не мельтешил. */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .45) 50%, transparent 62%);
    transform: translateX(-120%);
}
.btn:hover::after { transition: transform .75s var(--ease); transform: translateX(120%); }

.btn--ghost {
    color: var(--ink);
    background: rgba(255, 243, 224, .06);
    border: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255, 243, 224, .1); box-shadow: none; }

.btn--wide { width: 100%; }
.btn--sm { padding: 11px 20px; font-size: 14.5px; }

/* ── Шапка ──────────────────────────────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.is-stuck {
    padding: 10px 0;
    background: rgba(8, 7, 6, .82);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line-soft);
}
.nav__row { display: flex; align-items: center; gap: 22px; }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; flex: none; }
/* Свой логотип из настроек. Ширину не задаём: у одних он квадратный,
   у других вытянутый, и обрезать чужой знак мы не вправе.
   Знак рядом с текстом — 44 пикселя: в прежних 34 он выглядел значком
   от приложения, а не логотипом. */
.logo__img { height: 44px; width: auto; max-width: 220px; object-fit: contain; flex: none; display: block; }
/* Логотип целиком, вместе с названием: ему нужно больше места, потому что
   надпись внутри картинки должна читаться так же, как читался бы текст. */
.logo--lockup .logo__img { height: 56px; max-width: 300px; }
.logo--lockup .logo__text { align-self: end; padding-bottom: 3px; }
@media (max-width: 900px) {
    .logo__img { height: 38px; }
    .logo--lockup .logo__img { height: 44px; }
}
/* Подпись под названием: человек с поиска должен понять, куда попал,
   не читая первый экран. */
.logo__text { display: grid; line-height: 1.15; }
.logo__text b { font-weight: 800; }
.logo__text small { font-size: 11px; font-weight: 500; letter-spacing: .01em; color: rgba(255,255,255,.5); }
@media (max-width: 900px) { .logo__text small { display: none; } }

.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); font-weight: 600; }
.nav__links a { position: relative; padding: 4px 0; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1.5px;
    background: linear-gradient(90deg, var(--ember-2), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; gap: 10px; align-items: center; }
.nav__burger { display: none; }

/* ── Первый экран ───────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 140px 0 70px;
    overflow: hidden;
}
#emberCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: .85;
}
.hero__glow {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.hero__glow--a { top: -18%; left: 44%; width: 62vw; height: 62vw; background: radial-gradient(circle, rgba(235, 92, 33, .32), transparent 66%); }
.hero__glow--b { bottom: -28%; left: -14%; width: 52vw; height: 52vw; background: radial-gradient(circle, rgba(139, 108, 240, .20), transparent 66%); }

/* Первый экран занимает всю ширину макета: разделов четыре, и в прежние
   880 пикселей они в один ряд не влезали — четвёртая карточка уезжала вниз
   одна. Заголовок и текст при этом остаются узкими: строка во весь экран
   читается плохо, сколько бы места ни было. */
.hero__inner { position: relative; z-index: 2; max-width: 100%; }
.hero h1 { margin-bottom: 24px; max-width: 880px; }
.hero .lead { max-width: 620px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-bottom: 46px; }

.age-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--danger);
    border: 1.5px solid rgba(229, 97, 73, .45);
    border-radius: 999px;
    background: rgba(229, 97, 73, .08);
}

/* Живые цифры под первым экраном */
.pulse-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.pulse {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 20px;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-size: 14.5px;
    color: var(--muted);
}
.pulse b { color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.pulse__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 0 rgba(116, 222, 143, .6);
    animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
    0%   { box-shadow: 0 0 0 0 rgba(116, 222, 143, .55); }
    70%  { box-shadow: 0 0 0 11px rgba(116, 222, 143, 0); }
    100% { box-shadow: 0 0 0 0 rgba(116, 222, 143, 0); }
}

/* Под первым экраном — с запасом: когда в нём полоса игрового центра, прежние
   26 пикселей от низа ложились прямо на плашки «читателей» и «историй». */
.hero { padding-bottom: 112px; }
.scroll-hint {
    position: absolute;
    bottom: 22px; left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--faint);
    animation: float 2.6s var(--ease) infinite;
}
@keyframes float {
    0%, 100% { transform: translate(-50%, 0); opacity: .5; }
    50%      { transform: translate(-50%, 9px); opacity: 1; }
}

/* ── Секции ─────────────────────────────────────────────────────────────── */

.section { position: relative; padding: clamp(72px, 11vw, 140px) 0; }
.section__head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 64px); }
.section__head .lead { margin-top: 18px; }
.section--soft { background: linear-gradient(180deg, transparent, var(--bg-soft) 22%, var(--bg-soft) 78%, transparent); }

.hr-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 222, 148, .28), transparent);
}

/* Появление при прокрутке.
 *
 * Прятать содержимое умеет только сам скрипт: он ставит на <html> класс
 * reveal-on прямо перед тем, как начать следить за блоками. Если скрипт не
 * дошёл до этого места — не загрузился, упал, отключён — страница остаётся
 * полностью читаемой. Раньше правило висело безусловно, и любая заминка в JS
 * превращала лендинг в пустой экран. */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.reveal-on .reveal { opacity: 0; transform: translateY(28px); }
html.reveal-on .reveal.is-in { opacity: 1; transform: none; }

/* Заголовок, собирающийся по словам. Слова размечает landing.js классом .w —
   искать по «любому span внутри» нельзя: в заголовках есть свои span-ы
   с градиентом, и они попали бы под ту же анимацию. */
.words .w {
    display: inline-block;
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}
html.reveal-on .words .w { opacity: 0; transform: translateY(.5em) rotate(2deg); }
html.reveal-on .words.is-in .w { opacity: 1; transform: none; }

/* Слои, уезжающие медленнее страницы. Сдвиг проставляет landing.js. */
.parallax { will-change: transform; }

/* Кнопка, тянущаяся к курсору. */
.magnet { will-change: transform; transition: transform .35s var(--ease); }

/* Бегущая строка с рубриками — заполняет паузу между экранами. */
.ticker {
    overflow: hidden;
    padding: 22px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 243, 224, .02);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__row { display: flex; width: max-content; animation: slide 34s linear infinite; }
.ticker:hover .ticker__row { animation-play-state: paused; }
.ticker__item {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 0 26px;
    font-size: clamp(19px, 2.4vw, 27px);
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
    color: rgba(247, 240, 229, .22);
    transition: color .3s var(--ease);
}
.ticker__item::after {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ember);
    opacity: .55;
}
.ticker:hover .ticker__item { color: rgba(247, 240, 229, .4); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Цифры ──────────────────────────────────────────────────────────────── */

.numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
}
.number {
    padding: 34px 26px;
    background: var(--bg);
    text-align: center;
    transition: background .3s var(--ease);
}
.number:hover { background: var(--bg-soft); }
.number__val {
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 9px;
}
.number__label { font-size: 14px; color: var(--faint); }

/* ── Карточки преимуществ ───────────────────────────────────────────────── */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
    gap: 18px;
}
.card {
    position: relative;
    padding: 32px 28px;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 222, 148, .24); background: var(--panel-2); }

/* Тёплый отблеск, следующий за курсором: координаты пишет landing.js. */
.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    opacity: 0;
    transition: opacity .35s var(--ease);
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 160, 71, .13), transparent 62%);
    pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 20px;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255, 160, 71, .18), rgba(235, 92, 33, .08));
    border: 1px solid rgba(255, 160, 71, .22);
    color: var(--gold);
}
.card__icon svg { width: 25px; height: 25px; }
.card h3 { margin-bottom: 11px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ── Истории ────────────────────────────────────────────────────────────── */

/* Сетка вместо карусели: горизонтальную ленту неудобно листать мышью,
   а обложки — это то, ради чего сюда приходят, и прятать их за прокруткой глупо. */
.grid-stories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
    gap: 18px;
}

/* Фильтр по рубрикам */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.filter {
    padding: 9px 17px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    cursor: pointer;
    transition: color .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}
.filter:hover { color: var(--ink); border-color: rgba(255, 222, 148, .26); }
.filter.is-active {
    color: #200f04;
    background: linear-gradient(180deg, var(--gold), #e0a13d);
    border-color: transparent;
}
.filter span { opacity: .6; font-weight: 500; }

.story {
    position: relative;
    aspect-ratio: 3 / 4.2;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: var(--bg-soft);
    transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), opacity .3s var(--ease);
}
.story:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 222, 148, .3);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .95), 0 0 42px -18px rgba(235, 92, 33, .5);
}
.story.is-hidden { display: none; }

/* Наклон вслед за курсором: углы считает landing.js и кладёт в переменные. */
.story.is-tilting {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
    transition: transform .12s linear, border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.story img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    background:#090807;
    /* Масштаба при наведении нет намеренно: обложка обрезалась по краям,
       а на ней часто и название, и лица. */
    transition: filter .5s var(--ease);
}
.story:hover img { filter: saturate(1.1) brightness(1.04); }
.story__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 7, 6, .12) 26%, rgba(8, 7, 6, .72) 62%, rgba(8, 7, 6, .96));
}
.story__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 18px; }
.story__title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.story__desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .45s var(--ease), opacity .35s var(--ease), margin .45s var(--ease);
}
.story:hover .story__desc { max-height: 108px; opacity: 1; margin-top: 4px; }
.story__meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tag {
    padding: 4px 11px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--gold);
    background: rgba(255, 222, 148, .11);
    border: 1px solid rgba(255, 222, 148, .18);
    border-radius: 999px;
}
.tag--soon { color: var(--cyan); background: rgba(79, 211, 208, .1); border-color: rgba(79, 211, 208, .22); }

/* ── Блок ИИ ────────────────────────────────────────────────────────────── */

.ai {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(760px 520px at 82% 18%, rgba(139, 108, 240, .17), transparent 62%),
        radial-gradient(680px 480px at 8% 88%, rgba(79, 211, 208, .10), transparent 62%),
        var(--bg-soft);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.ai__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(34px, 5vw, 68px);
    align-items: center;
}
.ai .eyebrow { color: #c9b8ff; background: rgba(139, 108, 240, .1); border-color: rgba(139, 108, 240, .3); }
.ai .eyebrow::before { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.ai .grad { background: linear-gradient(104deg, #d8ccff 4%, var(--violet) 52%, var(--cyan) 96%); -webkit-background-clip: text; background-clip: text; }

.ai__list { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; gap: 14px; }
.ai__list li { display: flex; gap: 13px; align-items: flex-start; color: var(--muted); font-size: 16px; }
.ai__list svg { flex: none; width: 21px; height: 21px; margin-top: 2px; color: var(--violet); }

/* Переписка-мокап */
.chat {
    position: relative;
    padding: 24px 22px;
    background: rgba(10, 9, 12, .72);
    border: 1px solid rgba(139, 108, 240, .22);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    box-shadow: 0 34px 80px -34px rgba(139, 108, 240, .5);
}
.chat__top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 17px;
    margin-bottom: 19px;
    border-bottom: 1px solid var(--line-soft);
}
.chat__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--violet), var(--cyan));
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    color: #0b0913;
}
.chat__who { font-weight: 700; font-size: 15px; }
.chat__state { font-size: 12.5px; color: var(--good); }

.chat__log { display: grid; gap: 12px; min-height: 264px; align-content: start; }
.bubble {
    max-width: 84%;
    padding: 12px 16px;
    font-size: 14.5px;
    line-height: 1.5;
    border-radius: 16px;
    opacity: 0;
    transform: translateY(10px);
    animation: bubbleIn .5s var(--ease) forwards;
}
.bubble--them {
    justify-self: start;
    color: #e8e2f5;
    background: rgba(139, 108, 240, .16);
    border: 1px solid rgba(139, 108, 240, .26);
    border-bottom-left-radius: 6px;
}
.bubble--me {
    justify-self: end;
    color: #f7f0e5;
    background: rgba(255, 243, 224, .07);
    border: 1px solid var(--line);
    border-bottom-right-radius: 6px;
}
@keyframes bubbleIn { to { opacity: 1; transform: none; } }

.typing { display: inline-flex; gap: 5px; align-items: center; padding: 3px 0; }
.typing i {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--violet);
    animation: typing 1.25s var(--ease) infinite;
}
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes typing {
    0%, 60%, 100% { opacity: .28; transform: translateY(0); }
    30%           { opacity: 1;   transform: translateY(-4px); }
}

.chat__note { margin-top: 18px; font-size: 12.5px; color: var(--faint); text-align: center; }

/* ── Шаги ───────────────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 30px 26px 26px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.step::before {
    counter-increment: s;
    content: '0' counter(s);
    display: block;
    margin-bottom: 15px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.04em;
    background: linear-gradient(180deg, var(--gold), rgba(235, 92, 33, .35));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.step h3 { margin-bottom: 9px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Форма входа ────────────────────────────────────────────────────────── */

.join { position: relative; }
.join__grid { display: grid; grid-template-columns: 1fr minmax(340px, 440px); gap: clamp(32px, 5vw, 68px); align-items: center; }

.form-card {
    padding: 32px 30px;
    background: linear-gradient(180deg, rgba(255, 243, 224, .065), rgba(255, 243, 224, .025));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    box-shadow: 0 34px 90px -40px rgba(0, 0, 0, .9);
}
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 22px;
    background: rgba(0, 0, 0, .32);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
}
.tabs button {
    flex: 1;
    padding: 11px;
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.tabs button.is-active { color: #200f04; background: linear-gradient(180deg, var(--gold), #e0a13d); }

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.input {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    background: rgba(0, 0, 0, .34);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: rgba(255, 160, 71, .55); box-shadow: 0 0 0 3px rgba(235, 92, 33, .15); }
.input::placeholder { color: var(--faint); }

.check {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
    background: rgba(0, 0, 0, .2);
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    cursor: pointer;
}
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ember); cursor: pointer; }
.check a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

.msg { padding: 12px 15px; margin-bottom: 16px; font-size: 14px; border-radius: 12px; border: 1px solid; }
.msg--error { color: #ffc9be; background: rgba(229, 97, 73, .13); border-color: rgba(229, 97, 73, .4); }
.msg--ok    { color: #c7f3d4; background: rgba(116, 222, 143, .11); border-color: rgba(116, 222, 143, .35); }

.sep { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.sep::before, .sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.oauth-row { display: grid; gap: 10px; }
.btn--yandex { color: #fff; background: #fc3f1d; box-shadow: 0 10px 30px -14px rgba(252, 63, 29, .8); }
.btn--vk     { color: #fff; background: #0077ff; box-shadow: 0 10px 30px -14px rgba(0, 119, 255, .8); }
.btn__ic { width: 19px; height: 19px; flex: none; }

.form-note { margin-top: 16px; font-size: 12.5px; color: var(--faint); text-align: center; }
.form-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ── Вопросы ────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 10px; }
.faq details {
    padding: 20px 24px;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq details[open] { border-color: rgba(255, 222, 148, .22); background: var(--panel-2); }
.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    font-weight: 700;
    font-size: 16.5px;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    flex: none;
    font-size: 22px;
    font-weight: 400;
    color: var(--gold);
    transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; }

/* ── Приглашение зарегистрироваться ─────────────────────────────────────── */

.promo {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(4, 3, 3, .78);
    backdrop-filter: blur(9px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .32s var(--ease);
}
.promo.is-open { opacity: 1; pointer-events: auto; }

.promo__box {
    position: relative;
    width: min(470px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    padding: 34px 30px 28px;
    text-align: center;
    background: linear-gradient(180deg, #171310, #100d0b);
    border: 1px solid rgba(255, 222, 148, .22);
    border-radius: 24px;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95), 0 0 70px -30px rgba(235, 92, 33, .55);
    transform: translateY(22px) scale(.97);
    transition: transform .38s var(--ease);
}
.promo.is-open .promo__box { transform: none; }

.promo__close {
    position: absolute;
    top: 12px; right: 12px;
    width: 34px; height: 34px;
    font: inherit;
    font-size: 20px;
    line-height: 1;
    color: var(--faint);
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: color .2s, background .2s;
}
.promo__close:hover { color: var(--ink); background: rgba(255, 243, 224, .07); }

.promo__coins {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    font-size: clamp(38px, 8vw, 54px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}
.promo__coins small { font-size: 18px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.promo__box h3 { margin: 10px 0 8px; font-size: 21px; }
.promo__box p { margin: 0 0 22px; font-size: 15px; color: var(--muted); }
.promo__note { margin-top: 14px; font-size: 12.5px; color: var(--faint); }
.promo__note a { color: var(--muted); text-decoration: underline; }

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

.footer { padding: 60px 0 44px; border-top: 1px solid var(--line-soft); background: var(--bg-soft); }
.footer__row { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__small { margin-top: 30px; font-size: 13px; color: var(--faint); line-height: 1.7; }

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

@media (max-width: 900px) {
    :root { --shell: min(1200px, 100% - 32px); }
    .nav__links { display: none; }
    .ai__grid, .join__grid { grid-template-columns: 1fr; }
    .join__grid > :first-child { order: 2; }
    .hero { min-height: auto; padding: 118px 0 64px; }
    .chat__log { min-height: 0; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .nav__actions .btn--ghost { display: none; }
    .btn { padding: 14px 24px; }
    .card, .form-card, .step { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    /* Селекторы с html.reveal-on весомее — повторяем их, иначе при
       отключённой анимации содержимое так и осталось бы скрытым. */
    .reveal, html.reveal-on .reveal { opacity: 1; transform: none; }
    .words .w, html.reveal-on .words .w { opacity: 1; transform: none; }
    #emberCanvas, #cursorDot, #cursorRing { display: none; }
    .has-cursor, .has-cursor a, .has-cursor button { cursor: auto; }
    .ticker__row { animation: none; }
}


/* ── Переход в раздел игр для компании ───────────────────────────────── */
.party-landing-card { display:block; color:inherit; text-decoration:none; min-height:220px; }
.party-landing-card .card__icon { font-size:24px; }
.party-landing-actions { display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin-top:30px; }
.party-landing-actions span { color:var(--faint); font-size:14px; }
@media (max-width:640px) {
    .party-landing-actions .btn { width:100%; justify-content:center; }
    .party-landing-actions span { width:100%; text-align:center; }
}

/* ── Шапка: три продукта ─────────────────────────────────────────────────
   Раньше в навигации вперемешку стояли якоря на разделы этой же страницы и
   ссылка на отдельный раздел сайта — понять, где рассказ, а где сама игра,
   было нельзя. Теперь только три адреса, у каждого подпись. */
.nav__links--products { gap: 4px; }
.nav__links--products a {
    display: flex; flex-direction: column; gap: 1px;
    padding: 7px 13px; border-radius: 12px; line-height: 1.15;
}
.nav__links--products a:hover { background: rgba(255,255,255,.06); }
.nav__links--products b { font-size: 14px; font-weight: 700; }
.nav__links--products small { font-size: 11px; opacity: .55; font-weight: 500; }

@media (max-width: 960px) {
    .nav__links--products small { display: none; }
}

/* ── Первый экран: три раздела ────────────────────────────────────────────
   Раньше здесь была одна кнопка «Играть бесплатно», и она перетягивала весь
   экран: человек уходил в игру, не узнав про переписку и игры для компании.
   Теперь три равные карточки — ни одна не крупнее и не ярче остальных. */
.lead--hero { max-width: 60ch; }

.hero__products {
    display: grid; gap: 14px; margin: clamp(26px, 3.4vw, 40px) 0 18px;
    /* Разделов бывает три или четыре — под жёсткие три четвёртая карточка
       уезжала на второй ряд одна и выглядела как ошибка. */
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.hero-card {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 7px;
    padding: 24px 22px 20px;
    border: 1px solid rgba(255,255,255,.11); border-radius: 22px;
    background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.014));
    color: inherit; text-decoration: none;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
/* Свечение у каждого своё — чтобы разделы отличались и на глаз, а не только
   текстом. Цвет повторяет тот, которым раздел живёт у себя на странице. */
/* Свечение из угла — на всю карточку с мягким затуханием. Раньше это был
   круг в прямоугольнике поменьше, и на телефоне (карточки короче) у заливки
   появлялся резкий нижний край. */
.hero-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(140% 90% at 0% 0%, rgba(235,92,33,.26), transparent 62%);
    opacity: .85; pointer-events: none; transition: opacity .25s;
}
.hero-card--ai::before    { background: radial-gradient(140% 90% at 0% 0%, rgba(178,154,255,.26), transparent 62%); }
.hero-card--party::before { background: radial-gradient(140% 90% at 0% 0%, rgba(112,183,255,.22), transparent 62%); }
/* Мини-игры — зелёная грань: раздел бесплатный, и цвет это подсказывает. */
.hero-card--mini::before  { background: radial-gradient(140% 90% at 0% 0%, rgba(113,217,148,.22), transparent 62%); }
.hero-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.22); box-shadow: 0 26px 60px rgba(0,0,0,.45); }
.hero-card:hover::before { opacity: 1; }

.hero-card > * { position: relative; }
.hero-card__mark { font-size: 24px; line-height: 1; color: #ffb05d; }
.hero-card--ai .hero-card__mark    { color: #c9b6ff; }
.hero-card--party .hero-card__mark { color: #9ccbff; }
.hero-card--mini .hero-card__mark  { color: #8fe0ae; }
.hero-card h2 { margin: 3px 0 0; font-size: clamp(20px, 2.1vw, 25px); line-height: 1.15; }
.hero-card__lead { margin: 0; color: #ffde94; font-size: 13.5px; font-weight: 600; }
.hero-card--ai .hero-card__lead    { color: #d8caff; }
.hero-card--party .hero-card__lead { color: #b7dbff; }
.hero-card--mini .hero-card__lead  { color: #a9e8c3; }
.hero-card__text { margin: 4px 0 0; color: #bbaf9d; font-size: 14.5px; line-height: 1.5; }
.hero-card__meta { margin-top: 6px; color: #7d7a75; font-size: 12px; }
.hero-card__go {
    margin-top: auto; padding-top: 14px;
    display: inline-flex; align-items: center; gap: 7px;
    color: #ff9a4d; font-weight: 700; font-size: 15px;
}
.hero-card--ai .hero-card__go    { color: #c9b6ff; }
.hero-card--party .hero-card__go { color: #9ccbff; }
.hero-card--mini .hero-card__go  { color: #8fe0ae; }
.hero-card:hover .hero-card__go svg { transform: translateX(3px); }
.hero-card__go svg { transition: transform .2s; }

@media (max-width: 1080px) {
    .hero__products { gap: 12px; }
    .hero-card { padding: 20px 18px 18px; }
    .hero-card__text { display: none; }
}

/* На узких ноутбуках и планшетах — два ряда по две: четыре колонки там
   становятся слишком тесными, а один длинный столбец уводит остальные
   разделы за нижний край экрана. */
@media (min-width: 641px) and (max-width: 1080px) {
}

/* ── Видеообложка истории ────────────────────────────────────────────────
   Ролик лежит поверх статичной картинки и появляется, только когда загрузился
   и пошёл. Пока этого не случилось — видна обычная обложка, и карточка не
   мигает пустотой. Адрес проставляет скрипт по наведению: ролики весят по
   десять мегабайт, и грузить их все сразу нельзя. */
.story__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: contain; background:#090807;
    opacity: 0; transition: opacity .35s ease;
    pointer-events: none;
}
.story__video.is-playing { opacity: 1; }

/* Переход в игру сразу после витрины историй. */
.stories-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(28px, 4vw, 44px); text-align: center; }
.stories-cta__note { color: #7d7a75; font-size: 13.5px; }

/* Плашка 18+ стоит в одном ряду со счётчиками и раньше сливалась с ними:
   те же скругления, тот же размер. Делаем её заметно другой — контрастная
   рамка и отступ, отделяющий её от цифр. */
.pulse-row .age-chip {
    margin-right: 6px;
    padding: 9px 16px;
    border-width: 2px;
    border-color: rgba(229, 97, 73, .75);
    background: rgba(229, 97, 73, .16);
    color: #ff9c8a;
    letter-spacing: .02em;
}

/* Витрина историй идёт сразу за рассказом о разделе, одним блоком —
   поэтому у неё нет своего верхнего отступа. */
.section--tight { padding-top: 0; }

/* ── Пример комнаты ───────────────────────────────────────────────────────
   Про раздел трудно рассказать словами: «создайте комнату, отправьте ссылку»
   звучит как инструкция к роутеру. Показанный раунд объясняет всё сразу. */
.room-demo {
    max-width: 620px;
    margin: clamp(26px, 4vw, 40px) auto 0;
    padding: clamp(18px, 2.6vw, 26px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    box-shadow: 0 26px 70px rgba(0,0,0,.4);
}
.room-demo__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #7d7a75; }
.room-demo__code b { color: #ffb05d; letter-spacing: .18em; }
.room-demo__round { color: #ffde94; }
.room-demo__scene { margin: 14px 0 18px; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.45; color: #f6eee2; }

.room-demo__players { display: grid; gap: 8px; }
.room-demo__player {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    padding: 10px 13px;
    border: 1px solid rgba(255,255,255,.09); border-radius: 13px;
    background: rgba(255,255,255,.025);
    font-weight: 700; font-size: 14px;
}
.room-demo__player em { font-style: normal; font-weight: 500; color: #bbaf9d; font-size: 13.5px; }
/* ИИ помечен цветом, а не подписью «бот»: в комнате он играет наравне. */
.room-demo__player--ai { border-color: rgba(178,154,255,.34); background: rgba(178,154,255,.09); }
.room-demo__player--ai em { color: #d8caff; }
.room-demo__player--wait { opacity: .5; }

.room-demo__result { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.10); font-size: 14.5px; color: #bbaf9d; }
.room-demo__result b { color: #ffde94; }
.room-demo__hint { margin-top: 10px; font-size: 12.5px; color: #7d7a75; }

@media (max-width: 560px) {
    .room-demo__player { flex-direction: column; gap: 3px; }
}

/* 1.3.0 — короткая главная и единый выбор продукта. */
.landing-wallet{display:inline-flex;align-items:center;gap:5px;padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.045);color:var(--muted);font-size:11px;text-decoration:none;white-space:nowrap}
.landing-wallet b{color:var(--ink);font-size:12px}.landing-wallet b.is-gold{color:var(--gold)}.landing-wallet i{opacity:.35;font-style:normal}
.play-chooser[hidden]{display:none}.play-chooser{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(12px)}
.play-chooser__card{position:relative;width:min(900px,100%);padding:clamp(24px,4vw,40px);border:1px solid var(--line);border-radius:28px;background:linear-gradient(145deg,rgba(255,176,93,.08),rgba(178,154,255,.08)),#11100e;box-shadow:0 35px 100px rgba(0,0,0,.55)}
.play-chooser__card h2{margin:8px 0 22px;font-size:clamp(28px,4vw,42px)}.play-chooser__close{position:absolute;right:18px;top:16px;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:rgba(255,255,255,.05);color:var(--ink);font-size:25px;cursor:pointer}
.play-chooser__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.play-chooser__grid>a{display:grid;gap:10px;min-height:190px;padding:22px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.035);color:inherit;text-decoration:none;transition:.2s}.play-chooser__grid>a:hover{transform:translateY(-3px);border-color:rgba(255,176,93,.35);background:rgba(255,255,255,.065)}.play-chooser__grid b{font-size:17px}.play-chooser__grid span{color:var(--muted);font-size:13px;line-height:1.5}.play-chooser__grid small{margin-top:auto;color:var(--gold);font-weight:800}.play-chooser__account{margin:18px 0 0;color:var(--faint);font-size:13px}.play-chooser__account a{color:var(--gold)}
.landing-more-control{padding:28px 0 0}.landing-more-button{width:100%;padding:18px 22px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.035);color:var(--muted);font:inherit;font-weight:700;cursor:pointer}.landing-more-button:hover{color:var(--ink);background:rgba(255,255,255,.06)}
.landing-longread[hidden]{display:none!important}
@media(max-width:900px){.play-chooser__grid{grid-template-columns:1fr}.play-chooser__grid>a{min-height:0}.landing-wallet{display:none}}
@media(max-width:560px){.nav__actions{gap:6px}.nav__actions .nav-profile{display:inline-flex!important;padding:10px 13px;font-size:12px}.nav__actions .btn--sm{padding:10px 14px;font-size:12px}.play-chooser{padding:12px}.play-chooser__card{padding:24px 16px 18px;border-radius:22px}.play-chooser__grid>a{padding:16px}.play-chooser__card h2{padding-right:44px}.hero{padding-top:104px}}

/* 1.4.0: продолжение незавершённой ИИ-истории поверх выбора продукта */
.play-chooser__continue{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0;padding:18px 20px;border:1px solid rgba(246,148,63,.38);border-radius:18px;background:linear-gradient(120deg,rgba(246,148,63,.16),rgba(255,95,31,.08));text-decoration:none;color:inherit}
.play-chooser__continue span{display:grid;gap:4px}.play-chooser__continue b{font-size:17px}.play-chooser__continue small{color:var(--muted)}.play-chooser__continue strong{color:var(--gold);white-space:nowrap}
@media(max-width:640px){.play-chooser__continue{align-items:flex-start;flex-direction:column;gap:10px}.play-chooser__continue strong{font-size:14px}}

/* ── Витрина «Во что поиграть» ────────────────────────────────────────────
   Один блок вместо трёх разнесённых секций: вкладки разделов, рубрики
   внутри и подгрузка по восемь карточек. */
.showcase__tabs {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin: 26px 0 20px;
}
.showcase__tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .68); font: inherit; font-size: 16px; font-weight: 600;
    transition: color .18s, background .18s, border-color .18s;
}
.showcase__tab span {
    font-size: 13px; font-weight: 500; opacity: .7;
    padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08);
}
.showcase__tab:hover { color: #fff; border-color: rgba(255, 255, 255, .24); }
.showcase__tab.is-active {
    color: #120e0a; border-color: transparent;
    background: linear-gradient(180deg, #f0c069, #d9a441);
}
.showcase__tab.is-active span { background: rgba(0, 0, 0, .16); opacity: .85; }

.showcase__subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.showcase__subtab {
    padding: 8px 16px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14px;
    border: 1px solid rgba(255, 255, 255, .1); background: transparent; color: rgba(255, 255, 255, .6);
}
.showcase__subtab span { opacity: .55; font-size: 12px; margin-left: 4px; }
.showcase__subtab.is-on { color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }

.showcase__filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.showcase__chip {
    padding: 7px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px;
    border: 1px solid rgba(255, 255, 255, .1); background: transparent; color: rgba(255, 255, 255, .55);
    transition: color .15s, border-color .15s;
}
.showcase__chip span { opacity: .5; margin-left: 3px; }
.showcase__chip:hover { color: rgba(255, 255, 255, .85); }
.showcase__chip.is-on { color: #f0c069; border-color: rgba(240, 192, 105, .45); background: rgba(240, 192, 105, .08); }
.showcase__chip--adult { border-color: rgba(229, 97, 73, .35); }

.showcase__grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.showcase__grid--heroes { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.pcard {
    display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px;
    background: rgba(255, 255, 255, .025); color: inherit;
    transition: transform .18s, border-color .18s, background .18s;
}
.pcard:hover { transform: translateY(-3px); border-color: rgba(240, 192, 105, .35); background: rgba(255, 255, 255, .05); }
.pcard__img {
    position: relative; display: flex; align-items: center; justify-content: center;
    aspect-ratio: 3 / 2; background-size: cover; background-position: center;
    background-color: rgba(255, 255, 255, .04);
}
.pcard__img--face { aspect-ratio: 1 / 1; background-position: center 22%; }
.pcard__img i { font-size: 30px; font-style: normal; opacity: .35; }
.pcard__age {
    position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 11px; font-weight: 700;
    padding: 3px 7px; border-radius: 6px; background: rgba(20, 12, 8, .78); color: #f0a08a;
}
.pcard__body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.pcard__body b { font-size: 15px; line-height: 1.25; }
.pcard__text { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .55); }
.pcard__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.pcard__meta i {
    font-style: normal; font-size: 11px; padding: 3px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .6);
}

.showcase__foot { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.btn--more { background: transparent; border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .8); }
.btn--more:hover { border-color: rgba(240, 192, 105, .5); color: #f0c069; }
.showcase__about { margin-top: 30px; font-size: 14px; }
.showcase__about a { color: rgba(255, 255, 255, .5); }
.showcase__about a:hover { color: #f0c069; }

/* ── Свой персонаж прямо на витрине ───────────────────────────────────── */
.hero-maker {
    margin-top: 28px; padding: 22px; border-radius: 18px;
    border: 1px solid rgba(240, 192, 105, .22); background: rgba(240, 192, 105, .05);
}
.hero-maker__head h3 { margin: 0 0 6px; font-size: 19px; }
.hero-maker__head p { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.hero-maker__form { display: grid; gap: 12px; }
.hero-maker__form label { display: grid; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.hero-maker__form input[type="text"],
.hero-maker__form input:not([type]),
.hero-maker__form textarea {
    width: 100%; padding: 11px 13px; border-radius: 10px; font: inherit; font-size: 15px;
    border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .25); color: #fff;
    resize: vertical;
}
.hero-maker__form input:focus, .hero-maker__form textarea:focus { outline: none; border-color: rgba(240, 192, 105, .6); }
.hero-maker__row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-maker__check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
.hero-maker__note { font-size: 12px; color: rgba(255, 255, 255, .45); line-height: 1.45; }

@media (max-width: 640px) {
    .showcase__tab { padding: 10px 16px; font-size: 15px; }
    .showcase__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .showcase__grid--heroes { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .pcard__body { padding: 10px 11px 12px; }
    .pcard__body b { font-size: 14px; }
    .pcard__text { font-size: 12px; }
}

/* Видеообложка внутри карточки витрины: та же механика, что в старом блоке историй. */
.pcard__img .story__video { border-radius: inherit; object-fit: cover; }

/* ── Истории: вертикальные карточки ───────────────────────────────────────
   Обложки историй нарисованы вертикальными — в широком кадре 3:2 они
   обрезались сверху и снизу, теряя половину картинки. */
.showcase__grid--tall { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pcard--tall .pcard__img { aspect-ratio: 2 / 3; }
.pcard--tall .pcard__body { padding: 13px 15px 16px; }

/* Описание истории занимает ровно пять строк.
   Тексты у историй разной длины, и без этого карточки в ряду разъезжались по
   высоте, а рубрика внизу гуляла. Обрезку по словам делает PHP; клип здесь —
   на случай узкого экрана, где те же символы занимают больше строк. */
.pcard--tall .pcard__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
    min-height: calc(5 * 1.4em);
}

@media (max-width: 640px) {
    .showcase__grid--tall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    /* Карточка вдвое уже — те же строки складываются вдвое длиннее.
       Четырёх хватает, чтобы описание не заслонило саму обложку. */
    .pcard--tall .pcard__text { -webkit-line-clamp: 4; line-clamp: 4; min-height: calc(4 * 1.4em); }
}

/* Подвкладка 18+ на витрине: заметная, но не кричащая. */
.showcase__subtab--adult { border-color: rgba(229, 97, 73, .4); color: #f0a08a; }
.showcase__subtab--adult.is-on { background: rgba(229, 97, 73, .14); border-color: rgba(229, 97, 73, .6); color: #ffb9a4; }
.showcase__adult-note { margin: 0 0 16px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .5); }

/* Закрытая витрина 18+: показываем, что раздел есть, но не его содержимое. */
.adult-gate {
    display: grid; gap: 12px; justify-items: start; max-width: 620px;
    padding: 26px; border-radius: 18px;
    border: 1px solid rgba(229, 97, 73, .3); background: rgba(229, 97, 73, .06);
}
.adult-gate__mark {
    padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800;
    background: rgba(229, 97, 73, .18); color: #ffb9a4; letter-spacing: .04em;
}
.adult-gate h3 { margin: 0; font-size: 21px; }
.adult-gate p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .68); }
.adult-gate__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.adult-gate small { font-size: 12.5px; color: rgba(255, 255, 255, .42); }

/* Возврат к незаконченной партии — первое, что видит вернувшийся. */
.resume-bar {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin: 22px 0 6px; padding: 14px 18px; border-radius: 16px; text-decoration: none;
    border: 1px solid rgba(240, 192, 105, .32); background: rgba(240, 192, 105, .07);
    transition: border-color .18s, background .18s;
}
.resume-bar:hover { border-color: rgba(240, 192, 105, .55); background: rgba(240, 192, 105, .11); }
.resume-bar__icon {
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 42px; height: 42px; border-radius: 12px; font-size: 20px;
    background: rgba(240, 192, 105, .16);
}
.resume-bar__text { flex: 1 1 240px; display: grid; gap: 2px; color: #fff; }
.resume-bar__text small { font-size: 13px; color: rgba(255, 255, 255, .55); }
.resume-bar__go { flex: 0 0 auto; color: #f0c069; font-weight: 600; font-size: 14px; }

.showcase__pulse { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.showcase__pulse b { color: rgba(255, 255, 255, .85); }
.showcase__pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #6ec98b; box-shadow: 0 0 0 4px rgba(110, 201, 139, .16); }

/* Подпись под фильтром: сколько карточек осталось после отбора. */
.showcase__note { margin: -6px 0 14px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ── Скрытие через атрибут hidden ─────────────────────────────────────────
   Браузер прячет [hidden] правилом display:none из своих стилей, но любое
   наше правило с display перебивает его по весу. У карточек стоит
   display:flex — из-за этого фильтры, вкладки и «Показать ещё» помечали
   элементы скрытыми, а те оставались на экране. */
.showcase [hidden],
.pcard[hidden],
.showcase__pane[hidden],
[data-subpane][hidden] { display: none !important; }

/* ── Цены ────────────────────────────────────────────────────────────────
   Раньше наборы валюты рисовались теми же большими карточками, что и разделы
   сайта: четыре набора занимали два ряда, четвёртый висел один, а сама цифра
   тонула в пустоте. Здесь карточка ровно такая, какой должна быть — сколько,
   почём и на что этого хватит. */
.price-what { max-width: 68ch; margin: -6px 0 26px; }

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.price-card {
    padding: 20px 20px 18px;
    border: 1px solid var(--line, rgba(255,255,255,.09));
    border-radius: 18px;
    background: rgba(255,255,255,.022);
    transition: border-color .2s, transform .2s;
}
.price-card:hover { border-color: rgba(255,215,150,.3); transform: translateY(-2px); }

.price-card__amount { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.72); letter-spacing: .01em; }
.price-card__rub    { font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1.1; margin: 6px 0 10px; }
.price-card__turns  { font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.45; }
.price-card__turns b { color: rgba(255,255,255,.86); }
.price-card__note   { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.4); }

@media (max-width: 560px) {
    .price-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .price-card { padding: 16px 14px 14px; }
    .price-card__rub { font-size: 24px; }
}

/* Подпись над группой карточек: объясняет, по какому признаку они собраны. */
.party-group-title {
    margin: 30px 0 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    color: rgba(255,255,255,.5);
}
.party-group-title--demo {
    max-width: 62ch;
    margin-top: 40px;
    font-weight: 500;
    line-height: 1.55;
}

/* Карточка 18+ до входа: показываем, что есть, но открыть нельзя.
   Это не ссылка, поэтому и вести себя должна не как ссылка. */
.pcard--locked { cursor: default; }
.pcard--locked .pcard__img { filter: saturate(.75) brightness(.82); }
.pcard--locked:hover { transform: none; }
.showcase__grid--locked { margin-top: 22px; }

/* ── Блок регистрации: та же форма, но вдвое ниже ────────────────────────
   Четыре обязательных согласия по закону никуда не денутся, но каждое из них
   занимало строку в полтора сантиметра, и карточка уезжала за экран целиком.
   Ужимаем поля и согласия, а не выкидываем их. */
.join .section__head, .join__grid { align-items: start; }
.join { padding-top: clamp(52px, 7vw, 88px); padding-bottom: clamp(52px, 7vw, 88px); }
.join .form-card { padding: 22px 22px 20px; }
.join .tabs { margin-bottom: 16px; }
.join .field { margin-bottom: 10px; }
.join .field label { margin-bottom: 4px; font-size: 12px; }
.join .input { padding: 11px 14px; font-size: 15px; }
.join .check { padding: 7px 10px; margin-bottom: 5px; gap: 9px; font-size: 12.5px; line-height: 1.35; }
.join .sep { margin: 14px 0 12px; }
.join .form-note { font-size: 11.5px; line-height: 1.45; }
.join .btn--wide { padding: 13px 18px; }

/* ── Игры для компании: то же строение, что у блока персонажей ───────────
   Слева — что это и чем полезно, справа — как это выглядит. Прежние шесть
   карточек в два ряда делали блок похожим на отдельный сайт: он выбивался
   из ритма страницы и заставлял читать список дважды. */
.party-block__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(34px, 5vw, 68px);
    align-items: center;
}
.party-block .ai__list svg { color: var(--info, #70b7ff); }

.party-block__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.party-block__actions span { color: var(--faint); font-size: 14px; }

/* Разделы каталога строкой: это переходы, а не самостоятельные карточки. */
.party-block__links {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.9;
    color: var(--faint);
}
.party-block__links a { color: var(--muted); }
.party-block__links a:hover { color: var(--ink); }

.party-block .room-demo { margin: 0; }

@media (max-width: 900px) {
    .party-block__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Приглашение попробовать без регистрации: заметнее обычной подписи,
   но не кнопка — нажимать надо на карточку персонажа, а не на текст. */
.showcase__note--demo {
    padding: 11px 15px;
    margin: -2px 0 16px;
    color: rgba(255,255,255,.72);
    background: rgba(178,154,255,.09);
    border: 1px solid rgba(178,154,255,.26);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}
.showcase__note--demo b { color: #d8caff; }

/* Список незаконченного. Раньше строка была одна — и показывала не то, что
   человек бросил последним: в выборку попадали только сцены и игры. */
.resume-list { display: grid; gap: 8px; margin: 22px 0 14px; }
.resume-list .resume-bar { margin: 0; }
.resume-all {
    justify-self: start;
    padding: 2px 0;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.resume-all:hover { color: #f0c069; border-bottom-color: rgba(240, 192, 105, .55); }

/* Закрытый раздел стоит среди вкладок ссылкой, а не кнопкой: содержимое у него
   на главной не показывается. Внешне не должен от них отличаться. */
a.showcase__subtab { text-decoration: none; display: inline-flex; align-items: center; }

/* Истории — по четыре в ряд. auto-fill растягивал их на пять-шесть колонок на
   широком экране, и обложки мельчали до нечитаемых. Историй немного, ряд из
   четырёх для них правильнее. */
@media (min-width: 900px) {
    .showcase__grid--tall { grid-template-columns: repeat(4, 1fr); }
}

/* Описание истории целиком. Обрезка в пять строк рассчитана на короткие
   подписи из сборки; новые описания писались под карточку, и клип съедал у них
   последнюю фразу — ту самую, ради которой описание и переписывали. */
.pcard--tall .pcard__text--full {
    -webkit-line-clamp: none;
    line-clamp: none;
    overflow: visible;
}


/* ── MMORPG «Грани: Разлом» ───────────────────────────────────────────── */
.hero-card--rift .hero-card__mark { color: #7fd4c1; }
.rift-block__grid {
    display: grid; gap: 40px; align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
.rift-art {
    position: relative; border-radius: 22px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12); background: #0d171c;
}
.rift-art img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.rift-art__stats {
    position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px;
    padding: 16px; background: linear-gradient(180deg, transparent, rgba(6, 12, 15, .92));
}
.rift-art__stats span {
    flex: 1; display: flex; flex-direction: column; gap: 2px;
    font-size: 12px; color: #a9bdb8; letter-spacing: .04em;
}
.rift-art__stats b { font-size: 24px; color: #f3eee5; letter-spacing: 0; }
@media (max-width: 900px) {
    .rift-block__grid { grid-template-columns: 1fr; gap: 26px; }
}

.rift-worlds { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px; }
.rift-worlds span {
    display: inline-flex; flex-direction: column; gap: 2px;
    padding: 9px 14px; border: 1px solid rgba(127, 212, 193, .28); border-radius: 12px;
    background: rgba(13, 23, 28, .55); font-size: 13px; color: #e7eeec;
}
.rift-worlds small { font-size: 11px; color: #8fb3ab; letter-spacing: .04em; }

/* Пятая карточка раздела не должна висеть в ряду одна: растягиваем её на всю
   ширину и раскладываем содержимое в строку. */
.hero-card--rift { grid-column: 1 / -1; }
/* Список возможностей игры: он собирается из контента, поэтому растёт сам. */
.rift-feats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px 16px; margin: 4px 0 0; padding: 0; list-style: none;
}
.rift-feats li {
    display: flex; flex-direction: column; gap: 1px;
    padding: 9px 12px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03);
}
.rift-feats b { font-size: 14px; }
.rift-feats span { font-size: 12px; color: var(--faint, #8d887f); line-height: 1.35; }




/* ── Главная: два больших блока и три поменьше ───────────────────────────
   Раньше все разделы были одинаковыми карточками в один ряд, и «Истории» с
   MMORPG — то, ради чего сюда приходят — ничем не выделялись. */
.hero__products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hero-card--big { grid-column: span 3; min-height: 300px; }
.hero-card--sm  { grid-column: span 2; }

/* Нарисованная в админке картинка живёт фоном карточки. */
.hero-card__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; }
.hero-card__art img {
    width: 100%; height: 100%; object-fit: cover; opacity: .34;
    transform: scale(1.04); transition: transform .7s cubic-bezier(.2, .7, .3, 1), opacity .35s;
}
.hero-card__art::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(175deg, rgba(10, 9, 8, .3) 0%, rgba(10, 9, 8, .78) 58%, rgba(10, 9, 8, .94) 100%);
}
.hero-card:hover .hero-card__art img { transform: scale(1.1); opacity: .46; }
.hero-card > *:not(.hero-card__art) { position: relative; z-index: 2; }

/* Плитки возможностей игры: оживают под курсором. */
.rift-feats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px; margin: 10px 0 0; padding: 0; list-style: none;
}
.rift-feats li {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 2px;
    padding: 11px 13px; border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .035);
    transition: transform .25s cubic-bezier(.2, .7, .3, 1), border-color .25s, background .25s, box-shadow .25s;
}
.rift-feats li::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
    background: radial-gradient(120% 90% at 20% 0%, rgba(255, 217, 154, .22), transparent 65%);
    transition: opacity .25s;
}
.rift-feats li:hover {
    transform: translateY(-4px); border-color: rgba(255, 217, 154, .42);
    background: rgba(255, 217, 154, .07); box-shadow: 0 14px 30px rgba(0, 0, 0, .38);
}
.rift-feats li:hover::after { opacity: 1; }
.rift-feats b { font-size: 14px; }
.rift-feats span { font-size: 12px; color: var(--faint, #8d887f); line-height: 1.35; }

/* Фон первого экрана: нарисованная картинка, уходящая в темноту. */
.hero__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.hero__art::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(120% 80% at 50% 10%, rgba(10, 9, 8, .25), rgba(10, 9, 8, .92) 70%);
}

/* Метка закрытой истории в витрине. */
.pcard__lock {
    position: absolute; left: 8px; top: 8px; z-index: 2;
    padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800;
    background: rgba(10, 9, 8, .82); color: #ffd99a; border: 1px solid rgba(255, 217, 154, .35);
}

@media (max-width: 1080px) {
    .hero__products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .hero-card--big { grid-column: span 6; min-height: 0; }
    .hero-card--sm  { grid-column: span 2; }
}
@media (max-width: 720px) {
    .hero-card--big, .hero-card--sm { grid-column: span 6; }
}


/* ── Первый экран: подпись, подсказка и полоса прокрутки ──────────────── */
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px;
    padding: 7px 14px 7px 11px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
    color: #cbbfae; font-size: 13px; letter-spacing: .01em;
}
.hero__dot {
    width: 8px; height: 8px; border-radius: 50%; background: #ffb05d;
    box-shadow: 0 0 0 0 rgba(255, 176, 93, .6); animation: heroPulse 2.4s ease-out infinite;
}
@keyframes heroPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 176, 93, .55); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 176, 93, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 176, 93, 0); }
}

.hero__cue {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
    color: #8d887f; font-size: 13px; text-decoration: none;
}
.hero__cue svg { animation: heroCue 2.2s ease-in-out infinite; }
.hero__cue:hover { color: #ffd99a; }
@keyframes heroCue {
    0%, 100% { transform: translateY(0); opacity: .55; }
    50%      { transform: translateY(5px); opacity: 1; }
}

/* Тонкая полоса сверху: видно, сколько страницы позади. */
.scroll-progress {
    position: fixed; left: 0; top: 0; height: 2px; width: 0; z-index: 90;
    background: linear-gradient(90deg, #f47735, #ffd99a);
    transition: width .12s linear; pointer-events: none;
}

/* Карточки приезжают лесенкой. */
.hero__products .reveal { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
    .hero__dot, .hero__cue svg { animation: none; }
    .scroll-progress { display: none; }
}


/* ── MMORPG на главной: картинка держится, миры листаются ─────────────── */
.rift-head { max-width: 760px; }
.rift-head .lead { margin-top: 16px; }
.rift-numbers { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; }
.rift-numbers span { display: flex; align-items: baseline; gap: 8px; color: var(--faint, #8d887f); font-size: 13px; }
.rift-numbers b { font-size: 30px; color: var(--gold, #ffd99a); font-variant-numeric: tabular-nums; }
.hero__eyebrow b { color: #ffd99a; font-variant-numeric: tabular-nums; }

.rift-scroll { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; margin-top: 38px; }
.rift-scroll__art {
    position: sticky; top: 92px; align-self: start; aspect-ratio: 4 / 3;
    border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: #12100e;
}
.rift-scroll__art img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.2s cubic-bezier(.2, .7, .3, 1);
}
.rift-scroll__art img.is-on { opacity: 1; transform: scale(1); }
.rift-scroll__caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 18px;
    background: linear-gradient(180deg, transparent, rgba(10, 9, 8, .92));
}
.rift-scroll__caption b { display: block; font-size: 22px; }
.rift-scroll__caption span { color: var(--faint, #8d887f); font-size: 13px; }

.rift-scroll__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rift-scroll__list li {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start;
    padding: 16px 18px; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .02);
    opacity: .5; transition: opacity .35s, border-color .35s, background .35s, transform .35s;
}
.rift-scroll__list li.is-on {
    opacity: 1; border-color: rgba(255, 217, 154, .34); background: rgba(255, 217, 154, .06);
    transform: translateX(4px);
}
.rift-step__no { font-size: 17px; font-weight: 800; color: var(--gold, #ffd99a); font-variant-numeric: tabular-nums; }
.rift-scroll__list b { font-size: 17px; }
.rift-scroll__list small { display: block; margin-top: 1px; color: var(--gold, #ffd99a); font-size: 12px; }
.rift-scroll__list p { margin: 7px 0 0; color: var(--muted, #bbaf9d); font-size: 13.5px; line-height: 1.55; }
.rift-block__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 34px; }
.rift-block__actions span { color: var(--faint, #8d887f); font-size: 13px; }

@media (max-width: 900px) {
    .rift-scroll { grid-template-columns: 1fr; gap: 20px; }
    .rift-scroll__art { position: relative; top: 0; aspect-ratio: 16 / 10; }
    .rift-scroll__list li { opacity: 1; }
    .rift-numbers { gap: 18px; }
    .rift-numbers b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .rift-scroll__art img { transition: none; }
}


/* ── Первый экран: коротко и с живыми цифрами ────────────────────────── */
.hero-counts { display: flex; flex-wrap: wrap; gap: 30px; margin: 22px 0 4px; }
.hero-counts span { display: flex; flex-direction: column; gap: 1px; }
.hero-counts b {
    font-size: clamp(26px, 3vw, 36px); line-height: 1; color: var(--gold, #ffd99a);
    font-variant-numeric: tabular-nums;
}
.hero-counts small { color: var(--faint, #8d887f); font-size: 12.5px; }

/* Кнопка «ещё истории» и мягкое появление подгруженных карточек. */
.showcase__more {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
    padding: 12px 20px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04);
    color: inherit; font: inherit; font-weight: 600; transition: border-color .2s, background .2s, transform .2s;
}
.showcase__more:hover { border-color: rgba(255, 217, 154, .45); background: rgba(255, 217, 154, .08); transform: translateY(-2px); }
.pcard.is-more { animation: cardIn .5s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(var(--d, 0) * 55ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
    .hero-counts { gap: 18px; }
    .hero-counts b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .pcard.is-more { animation: none; } }

/* ── «Во что играем?»: пять карточек с картинками в один ряд ─────────── */
.play-chooser__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.play-chooser__grid > a {
    display: grid; gap: 10px; min-height: 0; padding: 10px; text-align: center;
    align-content: start; transition: transform .2s, border-color .2s, background .2s;
}
.play-chooser__img {
    display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
    background: linear-gradient(160deg, #241a12, #0a0908) center/cover no-repeat;
    transition: transform .4s cubic-bezier(.2, .7, .3, 1);
}
.play-chooser__grid > a:hover .play-chooser__img { transform: scale(1.05); }
.play-chooser__grid b { font-size: 14px; }
.play-chooser__continue + .play-chooser__grid { margin-top: 12px; }
@media (max-width: 900px) {
    .play-chooser__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .play-chooser__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .play-chooser__grid b { font-size: 13px; }
}


/* ── Пять разделов карточками: куда пойти дальше ──────────────────────── */
.pick-row {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 22px;
}
.pick {
    display: grid; gap: 9px; padding: 12px; border-radius: 18px; text-align: left;
    border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .025);
    color: inherit; text-decoration: none;
    transition: transform .28s cubic-bezier(.2, .7, .3, 1), border-color .28s, background .28s, box-shadow .28s;
}
.pick:hover {
    transform: translateY(-6px); border-color: rgba(255, 176, 93, .4);
    background: rgba(255, 176, 93, .06); box-shadow: 0 22px 44px rgba(0, 0, 0, .45);
}
.pick__img {
    display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
    background: linear-gradient(160deg, #2a1d12, #0a0908) center/cover no-repeat;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.pick:hover .pick__img { transform: scale(1.06); }
.pick b { font-size: 15px; }
.pick small { color: var(--faint, #8d887f); font-size: 12.5px; }

@media (max-width: 900px) { .pick-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ── Появление блоков заметнее ─────────────────────────────────────────
   Селектор с html — у исходного правила выше вес, иначе оно перебивало это. */
html.reveal-on .reveal { opacity: 0; transform: translateY(38px) scale(.985); }
html.reveal-on .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .85s cubic-bezier(.2, .7, .3, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
}
html.reveal-on .section__head.reveal { transform: translateY(26px); }

/* Заголовок собирается по словам — делаем движение заметным. */
html.reveal-on .words .w { opacity: 0; transform: translateY(.62em) rotate(3deg); }
html.reveal-on .words.is-in .w { transition: opacity .55s var(--ease), transform .7s cubic-bezier(.2, .7, .3, 1); }

/* Карточки историй на телефоне — одна в ряд, как в каталоге. */
@media (max-width: 640px) {
    .showcase__grid--tall { grid-template-columns: minmax(0, 1fr) !important; }
}


/* ── Цифры первого экрана ─────────────────────────────────────────────── */
.hero-counts { gap: 26px 34px; }
.hero-counts__live { position: relative; padding-left: 18px; }
.hero-counts__live i {
    position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%;
    background: #67d98a; box-shadow: 0 0 0 0 rgba(103, 217, 138, .6); animation: liveDot 2.2s ease-out infinite;
}
.hero-counts__live b { color: #8fe0ae; }
@keyframes liveDot {
    0%   { box-shadow: 0 0 0 0 rgba(103, 217, 138, .55); }
    70%  { box-shadow: 0 0 0 11px rgba(103, 217, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(103, 217, 138, 0); }
}

/* ── Кнопка «Открыть миры» ────────────────────────────────────────────── */
.btn-glow {
    position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden;
    padding: 16px 30px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 16px;
    color: #140d06; background: linear-gradient(135deg, #ffb05d, #f47735 55%, #ffd99a);
    box-shadow: 0 14px 34px rgba(244, 119, 53, .34);
    transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s;
}
.btn-glow::after {
    content: ''; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
    animation: btnShine 3.4s ease-in-out infinite;
}
.btn-glow:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 44px rgba(244, 119, 53, .5); }
.btn-glow svg { position: relative; transition: transform .25s; }
.btn-glow:hover svg { transform: translateX(4px); }
@keyframes btnShine {
    0%, 62% { transform: translateX(-120%); }
    82%     { transform: translateX(120%); }
    100%    { transform: translateX(120%); }
}

/* ── «Продолжить»: карточки начатого ──────────────────────────────────── */
.resume-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.resume-card {
    position: relative; display: grid; gap: 8px; padding: 12px; border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .025);
    color: inherit; text-decoration: none;
    transition: transform .28s cubic-bezier(.2, .7, .3, 1), border-color .28s, background .28s, box-shadow .28s;
}
.resume-card:hover {
    transform: translateY(-6px); border-color: rgba(255, 176, 93, .45);
    background: rgba(255, 176, 93, .06); box-shadow: 0 22px 44px rgba(0, 0, 0, .45);
}
.resume-card__art {
    display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
    background: linear-gradient(160deg, #2a1d12, #0a0908) center/cover no-repeat;
}
.resume-card__icon { font-size: 26px; opacity: .85; }
.resume-card__art[style] .resume-card__icon { display: none; }
.resume-card b { font-size: 15px; line-height: 1.25; }
.resume-card small { color: var(--faint, #8d887f); font-size: 12.5px; }
.resume-card__go { color: var(--gold, #ffd99a); font-size: 13px; font-weight: 700; }
.resume-all { display: inline-block; margin-top: 16px; color: var(--gold, #ffd99a); font-size: 13.5px; }
@media (max-width: 900px) { .resume-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .resume-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ── Телефон: миры листаются вбок вместе с картинкой ──────────────────── */
.rift-step__art { display: none; }
.rift-swipe { display: none; }
@media (max-width: 900px) {
    .rift-scroll__art { display: none; }
    .rift-swipe {
        display: block; margin: 0 0 10px; color: var(--faint, #8d887f); font-size: 12.5px;
    }
    .rift-scroll__list {
        /* flex-direction обязателен: в базовом правиле колонка, и без него
           слайды оставались друг под другом, а не листались вбок. */
        display: flex; flex-direction: row; gap: 12px; margin: 0 -14px; padding: 2px 14px 12px;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .rift-scroll__list::-webkit-scrollbar { display: none; }
    .rift-scroll__list li {
        flex: 0 0 82%; display: block; scroll-snap-align: center; opacity: 1;
        padding: 0 0 14px; overflow: hidden;
    }
    .rift-step__art {
        display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
        border-radius: 16px 16px 0 0;
    }
    .rift-scroll__list li > div { padding: 0 14px; }
    .rift-step__no {
        position: absolute; top: 10px; left: 14px; padding: 3px 9px; border-radius: 999px;
        background: rgba(10, 9, 8, .78); font-size: 13px;
    }
    .rift-scroll__list li { position: relative; }
}


/* ══ Кнопки ═══════════════════════════════════════════════════════════════
   Раньше это была плоская заливка со слабой тенью. Теперь объём: тёплый
   градиент, внутренняя подсветка сверху, мягкое свечение под кнопкой и блик
   на наведении. Стиль один на весь сайт — вторичные кнопки от него же. */
.btn {
    padding: 15px 28px; border-radius: 16px; font-weight: 800; letter-spacing: .01em;
    background: linear-gradient(140deg, #ffc98a 0%, #f98c3f 46%, #ef6b21 100%);
    box-shadow: 0 12px 30px -10px rgba(239, 107, 33, .75),
                inset 0 1px 0 rgba(255, 255, 255, .45),
                inset 0 -2px 0 rgba(120, 44, 6, .25);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px -12px rgba(239, 107, 33, .85),
                inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn svg { transition: transform .22s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--lg { padding: 18px 34px; font-size: 17px; border-radius: 18px; }
.btn--ghost {
    background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.btn--ghost:hover {
    border-color: rgba(255, 176, 93, .55); background: rgba(255, 176, 93, .1);
    box-shadow: 0 14px 30px -18px rgba(244, 119, 53, .9);
}

/* ══ Цифры первого экрана — плитками ═════════════════════════════════════ */
.hero-counts--tiles {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
    gap: 10px; margin: 24px 0 6px;
}
.hero-counts--tiles span {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px;
    padding: 14px 16px 13px; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.hero-counts--tiles span::after {
    content: ''; position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(120% 90% at 15% 0%, rgba(255, 176, 93, .22), transparent 62%);
    transition: opacity .25s;
}
.hero-counts--tiles span:hover { transform: translateY(-4px); border-color: rgba(255, 176, 93, .32); }
.hero-counts--tiles span:hover::after { opacity: 1; }
.hero-counts--tiles b { position: relative; font-size: clamp(22px, 2.3vw, 30px); }
.hero-counts--tiles small { position: relative; font-size: 12px; }
.hero-counts--tiles .hero-counts__live { padding-left: 16px; border-color: rgba(103, 217, 138, .26); }
.hero-counts--tiles .hero-counts__live i { left: 14px; top: 19px; }
.hero-counts--tiles .hero-counts__live b { padding-left: 16px; }

/* ══ «Продолжить» ════════════════════════════════════════════════════════ */
.resume-section { padding-bottom: 8px; }
.resume-section .shell {
    padding: 26px 26px 22px; border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .07);
    background: linear-gradient(170deg, rgba(255, 176, 93, .07), rgba(255, 255, 255, .012) 45%);
}
.resume-section .section__head { margin-bottom: 16px; }
.resume-card {
    padding: 0; overflow: hidden; border-radius: 20px; gap: 0;
    background: rgba(12, 10, 9, .55);
}
.resume-card__art {
    aspect-ratio: 1 / 1; border-radius: 0; position: relative;
}
.resume-card__art::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(10, 9, 8, .85));
}
.resume-card b { padding: 12px 14px 0; }
.resume-card small { padding: 2px 14px 0; }
.resume-card__go { padding: 10px 14px 14px; }
.resume-all { margin-top: 18px; }

/* ══ Фоны и разделители секций ═══════════════════════════════════════════ */
.section { position: relative; }
.section--soft {
    background:
        radial-gradient(70% 55% at 12% 0%, rgba(244, 119, 53, .075), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, 0) 60%);
    border-top: 1px solid rgba(255, 255, 255, .05);
}
.showcase, .resume-section {
    background: radial-gradient(60% 45% at 85% 0%, rgba(178, 154, 255, .06), transparent 60%);
}
.ai { background: radial-gradient(65% 50% at 80% 5%, rgba(178, 154, 255, .09), transparent 62%); }
.party-block { background: radial-gradient(65% 50% at 15% 5%, rgba(112, 183, 255, .08), transparent 62%); }
.rift-block {
    background:
        radial-gradient(75% 60% at 85% 0%, rgba(255, 217, 154, .09), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 55%);
}

/* Подпись раздела — аккуратная плашка, а не просто мелкий текст. */
.section__head .eyebrow, .rift-head .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 13px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
}

/* Между «Продолжить» и каталогом не нужен полный отступ секции: это один
   смысловой блок — что продолжить и во что играть дальше. */
.resume-section + .showcase { padding-top: 46px; }
@media (max-width: 640px) { .resume-section + .showcase { padding-top: 30px; } }


/* ══ Кнопки: плотный тёплый цвет вместо пастели ══════════════════════════
   Светлый верх градиента размывал надпись и делал кнопку «конфетной».
   Ниже — один тон для всех кнопок сайта. */
.btn {
    color: #1b0e04;
    background: linear-gradient(180deg, #ff9f4c 0%, #f2711f 52%, #d9590f 100%);
    box-shadow: 0 10px 26px -10px rgba(217, 89, 15, .85),
                inset 0 1px 0 rgba(255, 255, 255, .32),
                inset 0 -2px 0 rgba(120, 44, 6, .3);
}
.btn:hover {
    box-shadow: 0 18px 40px -12px rgba(217, 89, 15, .95), inset 0 1px 0 rgba(255, 255, 255, .38);
}
/* Кнопки входа через сервисы остаются фирменными: мой градиент их перекрывал. */
.btn.btn--yandex { color: #fff; background: #fc3f1d; box-shadow: 0 10px 30px -14px rgba(252, 63, 29, .8); }
.btn.btn--vk     { color: #fff; background: #0077ff; box-shadow: 0 10px 30px -14px rgba(0, 119, 255, .8); }
.btn.btn--yandex:hover { box-shadow: 0 16px 36px -14px rgba(252, 63, 29, .95); }
.btn.btn--vk:hover     { box-shadow: 0 16px 36px -14px rgba(0, 119, 255, .95); }
.btn.btn--more { color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .04); box-shadow: none; }
.btn.btn--more:hover { border-color: rgba(255, 176, 93, .5); color: #ffd99a; background: rgba(255, 176, 93, .08); }

/* ══ «Продолжить»: заголовок не перекрывается карточками ═════════════════ */
.resume-section .section__head { margin-bottom: 22px; }
.resume-section .section__head .h-section { margin: 0; }
.resume-cards { align-items: start; }
.resume-card__art { aspect-ratio: 4 / 5; }
/* Лицо обычно в верхней части кадра — квадратная обрезка резала его пополам. */
.resume-card__art[style] { background-position: center 22%; background-size: cover; }
.resume-all { align-self: start; }


/* ══ Кнопки: светлое золото со стеклом вместо плотного оранжевого ════════
   Оранжевая заливка спорила со всем остальным оформлением — оно построено на
   тёплом золоте и полупрозрачных поверхностях. Кнопки теперь из того же теста. */
.btn {
    color: #221603; font-weight: 800;
    background: linear-gradient(180deg, rgba(255, 229, 176, .96), rgba(250, 205, 130, .92));
    border: 1px solid rgba(255, 233, 187, .55);
    box-shadow: 0 10px 26px -14px rgba(255, 206, 128, .85), inset 0 1px 0 rgba(255, 255, 255, .6);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(255, 238, 199, 1), rgba(255, 215, 146, .96));
    box-shadow: 0 16px 34px -14px rgba(255, 206, 128, .95), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.btn::after { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%); }
.btn--ghost {
    color: #ffe7bd; background: rgba(255, 221, 160, .07);
    border: 1px solid rgba(255, 221, 160, .28); box-shadow: none; backdrop-filter: blur(8px);
}
.btn--ghost:hover {
    color: #fff3da; background: rgba(255, 221, 160, .14);
    border-color: rgba(255, 221, 160, .5); box-shadow: 0 12px 26px -18px rgba(255, 206, 128, .9);
}
/* Кнопки сервисов остаются фирменными. */
.btn.btn--yandex { color: #fff; background: #fc3f1d; border-color: transparent; }
.btn.btn--vk     { color: #fff; background: #0077ff; border-color: transparent; }

/* ══ Фоны секций — заметные, а не «на грани различимости» ════════════════ */
.section--soft {
    background:
        radial-gradient(62% 48% at 12% 0%, rgba(255, 186, 110, .16), transparent 64%),
        radial-gradient(52% 44% at 92% 22%, rgba(255, 221, 160, .09), transparent 66%),
        linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 55%);
    border-top: 1px solid rgba(255, 221, 160, .1);
}
.showcase {
    background:
        radial-gradient(58% 44% at 88% 2%, rgba(255, 186, 110, .13), transparent 62%),
        radial-gradient(46% 38% at 6% 40%, rgba(178, 154, 255, .08), transparent 64%);
}
.resume-section {
    background: radial-gradient(60% 50% at 20% 0%, rgba(255, 186, 110, .14), transparent 64%);
}
.ai {
    background:
        radial-gradient(60% 48% at 84% 4%, rgba(168, 140, 255, .2), transparent 64%),
        radial-gradient(48% 40% at 8% 60%, rgba(168, 140, 255, .09), transparent 66%);
    border-top: 1px solid rgba(168, 140, 255, .14);
}
.party-block {
    background:
        radial-gradient(60% 48% at 12% 4%, rgba(104, 171, 255, .18), transparent 64%),
        radial-gradient(46% 40% at 92% 55%, rgba(104, 171, 255, .08), transparent 66%);
    border-top: 1px solid rgba(104, 171, 255, .14);
}
.rift-block {
    background:
        radial-gradient(64% 52% at 86% 0%, rgba(255, 217, 154, .18), transparent 62%),
        radial-gradient(50% 42% at 10% 55%, rgba(120, 205, 190, .1), transparent 66%),
        linear-gradient(180deg, rgba(255, 255, 255, .045), transparent 55%);
    border-top: 1px solid rgba(255, 217, 154, .16);
}
.join { background: radial-gradient(60% 50% at 50% 0%, rgba(255, 186, 110, .14), transparent 66%); }

/* ══ «Продолжить»: карточка — это обложка ════════════════════════════════ */
.resume-section .shell {
    padding: 28px 28px 26px; border-radius: 28px;
    border: 1px solid rgba(255, 221, 160, .14);
    background: linear-gradient(170deg, rgba(255, 221, 160, .08), rgba(255, 255, 255, .015) 55%);
}
.resume-head {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    flex-wrap: wrap; margin-bottom: 20px;
}
.resume-head .h-section { margin: 0; }
.resume-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.resume-card {
    position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4;
    padding: 0; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .08);
    background: #14100c; color: inherit; text-decoration: none;
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.resume-card:hover {
    transform: translateY(-6px); border-color: rgba(255, 221, 160, .42);
    box-shadow: 0 26px 50px -20px rgba(0, 0, 0, .9);
}
.resume-card__art {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: linear-gradient(160deg, #2a1d12, #0a0908) center 20% / cover no-repeat;
    transition: transform .6s var(--ease);
}
.resume-card:hover .resume-card__art { transform: scale(1.06); }
.resume-card__icon { font-size: 30px; opacity: .7; }
.resume-card__in {
    position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px;
    padding: 34px 14px 14px;
    background: linear-gradient(180deg, transparent, rgba(8, 7, 6, .82) 42%, rgba(8, 7, 6, .96));
}
.resume-card__in b { font-size: 15px; line-height: 1.2; }
.resume-card__in small { color: #b9b0a2; font-size: 12px; }
.resume-card__when { color: #8d867b !important; }
.resume-card__go {
    margin-top: 8px; color: #ffe1a8; font-size: 13px; font-weight: 700;
    opacity: .75; transition: opacity .25s, transform .25s;
}
.resume-card:hover .resume-card__go { opacity: 1; transform: translateX(3px); }

@media (max-width: 900px) { .resume-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .resume-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .resume-section .shell { padding: 18px 16px 16px; border-radius: 22px; }
}

/* «Продолжить»: картинка целиком. Обложки бывают горизонтальные (игры, главы с
   названием на кадре) и портреты героев — в вертикальной карточке во весь рост
   у одних резались бока с надписью, у других голова. Теперь квадратный кадр сверху:
   сама картинка вписана без обрезки, поля закрывает её размытая копия; текст —
   под кадром, а не поверх него. */
.resume-cards { align-items: stretch; }
.resume-card { aspect-ratio: auto; display: flex; flex-direction: column; }
.resume-card__art {
    position: relative; inset: auto; flex: none; aspect-ratio: 1 / 1; overflow: hidden;
    background: linear-gradient(160deg, #2a1d12, #0a0908);
}
.resume-card__art::after { content: none; }
.resume-card__blur, .resume-card__pic { position: absolute; inset: 0; background-repeat: no-repeat; }
.resume-card__blur {
    background-size: cover; background-position: center;
    filter: blur(14px) brightness(.55) saturate(1.1); transform: scale(1.15);
}
.resume-card__pic { background-size: contain; background-position: center; }
.resume-card__in {
    position: static; flex: 1; padding: 12px 14px 14px; background: none;
}
.resume-card__in .resume-card__go { margin-top: auto; padding-top: 8px; }


/* ══ Кнопки как плитки цифр в первом экране ══════════════════════════════
   Никакой заливки и жирности: почти прозрачная поверхность, тонкая рамка,
   золотая надпись обычного веса. Оранжевого на сайте больше нет. */
.btn, .btn:hover {
    color: #ffdca6;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    box-shadow: none;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn { transition: transform .22s var(--ease), border-color .22s, background .22s, color .22s; }
.btn:hover {
    transform: translateY(-2px);
    color: #fff0cf;
    border-color: rgba(255, 220, 166, .4);
    background: linear-gradient(160deg, rgba(255, 220, 166, .16), rgba(255, 220, 166, .05));
}
.btn::after { content: none; }
.btn--ghost, .btn--ghost:hover { color: #e8dfd2; }
.btn--ghost { border-color: rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .035); }
.btn--ghost:hover { color: #ffdca6; border-color: rgba(255, 220, 166, .32); background: rgba(255, 220, 166, .09); }
.btn--lg { padding: 17px 30px; font-size: 16px; }
/* Кнопки сервисов остаются фирменными и заметными. */
.btn.btn--yandex, .btn.btn--yandex:hover { color: #fff; background: #fc3f1d; border-color: transparent; }
.btn.btn--vk, .btn.btn--vk:hover { color: #fff; background: #0077ff; border-color: transparent; }

/* ══ Фоны секций видны по всей высоте ════════════════════════════════════
   Раньше это были только пятна света у верхнего края: в высоком блоке
   (тринадцать миров!) ниже первого экрана оставалась чернота. Теперь у каждой
   секции есть ровная подложка, а пятна света — сверху и снизу. */
.section--soft {
    background:
        radial-gradient(58% 34% at 12% 0%, rgba(255, 186, 110, .15), transparent 62%),
        radial-gradient(52% 30% at 92% 100%, rgba(255, 221, 160, .1), transparent 64%),
        linear-gradient(180deg, rgba(255, 200, 130, .055), rgba(255, 200, 130, .022) 55%, rgba(255, 200, 130, .05));
    border-top: 1px solid rgba(255, 221, 160, .12);
}
.showcase {
    background:
        radial-gradient(56% 32% at 88% 2%, rgba(255, 186, 110, .13), transparent 62%),
        radial-gradient(48% 30% at 4% 98%, rgba(178, 154, 255, .1), transparent 64%),
        linear-gradient(180deg, rgba(255, 200, 130, .045), rgba(255, 200, 130, .02) 50%, rgba(178, 154, 255, .035));
}
.resume-section {
    background:
        radial-gradient(56% 40% at 20% 0%, rgba(255, 186, 110, .14), transparent 64%),
        linear-gradient(180deg, rgba(255, 200, 130, .05), rgba(255, 200, 130, .02));
}
.ai {
    background:
        radial-gradient(56% 34% at 84% 2%, rgba(168, 140, 255, .2), transparent 62%),
        radial-gradient(48% 30% at 8% 98%, rgba(168, 140, 255, .12), transparent 64%),
        linear-gradient(180deg, rgba(150, 125, 255, .07), rgba(150, 125, 255, .03) 55%, rgba(150, 125, 255, .06));
    border-top: 1px solid rgba(168, 140, 255, .16);
}
.party-block {
    background:
        radial-gradient(56% 34% at 12% 2%, rgba(104, 171, 255, .18), transparent 62%),
        radial-gradient(48% 30% at 92% 98%, rgba(104, 171, 255, .11), transparent 64%),
        linear-gradient(180deg, rgba(104, 171, 255, .07), rgba(104, 171, 255, .03) 55%, rgba(104, 171, 255, .06));
    border-top: 1px solid rgba(104, 171, 255, .16);
}
.rift-block {
    background:
        radial-gradient(60% 34% at 86% 0%, rgba(255, 217, 154, .17), transparent 60%),
        radial-gradient(52% 30% at 8% 100%, rgba(120, 205, 190, .13), transparent 62%),
        linear-gradient(180deg, rgba(255, 217, 154, .07), rgba(120, 205, 190, .035) 50%, rgba(255, 217, 154, .06));
    border-top: 1px solid rgba(255, 217, 154, .18);
}
.join {
    background:
        radial-gradient(56% 40% at 50% 0%, rgba(255, 186, 110, .14), transparent 66%),
        linear-gradient(180deg, rgba(255, 200, 130, .05), rgba(255, 200, 130, .02));
}


/* ══ Фоны секций: подложка + настоящее свечение ══════════════════════════
   Прошлые градиенты были прозрачнее, чем разница между чёрным и чёрным:
   в коде они есть, глазом не видно. Теперь у секции своя подложка чуть светлее
   страницы, а поверх — размытое пятно света, как в первом экране. */
.section { position: relative; isolation: isolate; }
.section > * { position: relative; z-index: 1; }
.section::before, .section::after { content: ''; position: absolute; pointer-events: none; z-index: 0; }
.section::before {
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .022) 55%, rgba(255, 255, 255, .05));
}
.section::after {
    left: -8%; top: -12%; width: 62%; height: 78%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(244, 119, 53, .3), transparent 72%);
    filter: blur(60px); opacity: .85;
}
.hero::before, .hero::after { content: none; }

/* Цвет свечения у каждой секции свой — так границы блоков читаются сразу. */
.showcase::after   { background: radial-gradient(closest-side, rgba(255, 176, 93, .3), transparent 72%); left: auto; right: -8%; }
.resume-section::after { background: radial-gradient(closest-side, rgba(255, 186, 110, .32), transparent 72%); }
.ai::after         { background: radial-gradient(closest-side, rgba(168, 140, 255, .42), transparent 72%); left: auto; right: -6%; }
.party-block::after{ background: radial-gradient(closest-side, rgba(104, 171, 255, .4), transparent 72%); }
.rift-block::after { background: radial-gradient(closest-side, rgba(255, 217, 154, .38), transparent 72%); left: auto; right: -6%; }
.join::after       { background: radial-gradient(closest-side, rgba(255, 186, 110, .32), transparent 72%); left: 20%; }

/* Второе пятно снизу — чтобы высокие блоки не уходили в черноту. */
.ai::before, .party-block::before, .rift-block::before, .showcase::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02) 55%, rgba(255, 255, 255, .055)),
        radial-gradient(60% 34% at 12% 100%, rgba(255, 255, 255, .05), transparent 68%);
}
.ai::before { background-color: rgba(120, 96, 220, .07); }
.party-block::before { background-color: rgba(70, 130, 210, .07); }
.rift-block::before { background-color: rgba(200, 160, 90, .07); }
.showcase::before, .resume-section::before { background-color: rgba(200, 150, 90, .05); }

/* Прежние фоны-«пятна» больше не нужны: их перекрывает подложка. */
.section--soft, .showcase, .resume-section, .ai, .party-block, .rift-block, .join { background: none; }
.section--soft { border-top: 1px solid rgba(255, 221, 160, .12); }
.ai { border-top: 1px solid rgba(168, 140, 255, .18); }
.party-block { border-top: 1px solid rgba(104, 171, 255, .18); }
.rift-block { border-top: 1px solid rgba(255, 217, 154, .2); }

/* ══ Заголовок «Продолжить» — спокойнее ══════════════════════════════════ */
.resume-head .h-section { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.01em; }

/* ══ Шапка в две строки больше не наезжает на текст ══════════════════════
   Когда разделы не помещаются в строку, шапка становится выше — первый экран
   теперь отступает ровно на её высоту, а сама она перестаёт быть прозрачной. */
.hero { padding-top: calc(var(--gh-h, 96px) + 44px); }
.gh.gh--float.gh--stack {
    background: rgba(8, 7, 6, .92); border-bottom-color: var(--gh-line);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}


/* ══ Картинка-подложка блока ═════════════════════════════════════════════
   Раньше блоки жили на одном свечении. Теперь у каждого может быть своя
   нарисованная картинка (админка → «Картинки сайта»): она лежит фоном,
   притушена и закрыта градиентом, чтобы текст оставался читаемым. */
.section__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.section__art img {
    width: 100%; height: 100%; object-fit: cover; opacity: .3;
    transform: scale(1.02); transition: opacity .6s var(--ease);
}
.section__art::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(75% 60% at 50% 45%, rgba(10, 9, 8, .62), rgba(10, 9, 8, .88) 70%),
        linear-gradient(180deg, rgba(10, 9, 8, .75), rgba(10, 9, 8, .35) 35%, rgba(10, 9, 8, .8));
}
/* Где есть картинка, свечение приглушаем — иначе получается каша. */
.section:has(.section__art)::after { opacity: .35; }
.section:has(.section__art)::before { opacity: .55; }


/* ══ Ничего не торчит за правый край ═════════════════════════════════════
   overflow-x: hidden на body iOS выполняет не всегда, а hidden на html
   сломал бы position: sticky (на нём держится блок MMORPG). clip обрезает
   так же, но не создаёт область прокрутки — sticky продолжает работать. */
@supports (overflow: clip) {
    html, body { overflow-x: clip; }
}
html, body { max-width: 100%; }

/* Модальное окно «Об игре» тоже фиксированное: если страница уезжала вбок,
   оно уезжало вместе с ней. Ширину задаём явно. */
.info-modal { width: 100%; max-width: 100%; }


/* ══ Полоса сезона в блоке MMORPG ════════════════════════════════════════ */
.rift-season {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px;
    margin-top: 22px; padding: 14px 18px;
    border: 1px solid rgba(255, 221, 160, .22); border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 221, 160, .09), rgba(255, 255, 255, .02));
}
.rift-season__tag {
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: #ffdca6;
}
.rift-season > b { font-size: 19px; font-weight: 700; }
.rift-season__when { font-size: 13.5px; color: var(--ink-3, #b9ada0); }
@media (max-width: 640px) {
    .rift-season { padding: 13px 14px; gap: 6px 10px; }
    .rift-season > b { font-size: 17px; }
    .rift-season__when { font-size: 12.5px; flex-basis: 100%; }
}

/* ══ Набор основателей ═══════════════════════════════════════════════════
   Дата окончания настоящая и лежит в настройках: таймер, который у каждого
   посетителя начинается заново, — обман, и человек это замечает на второй визит. */
.founder-strip {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    margin: 0 auto; padding: 18px 22px; max-width: 1180px;
    border: 1px solid rgba(255, 221, 160, .26); border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 221, 160, .1), rgba(255, 255, 255, .02));
}
.founder-strip__mark { font-size: 24px; color: #ffdca6; line-height: 1; }
.founder-strip__text { flex: 1 1 320px; min-width: 0; }
.founder-strip__text b { display: block; font-size: 18px; }
.founder-strip__text span { display: block; margin-top: 5px; font-size: 13.5px; color: var(--ink-3, #b9ada0); }
.founder-strip__swatches { display: flex; gap: 6px; }
.founder-strip__swatches i { width: 18px; height: 18px; border-radius: 50%; display: block; }
@media (max-width: 640px) {
    .founder-strip { padding: 16px; gap: 12px; }
    .founder-strip__text b { font-size: 16px; }
    .founder-strip .btn { width: 100%; }
}

/* ══ Карточка основателя в профиле ═══════════════════════════════════════ */
.founder-card h2 { display: flex; align-items: center; gap: 10px; }
.founder-mark { color: #ffdca6; }
.founder-colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.founder-color {
    display: grid; grid-template-columns: 14px 1fr; grid-template-rows: auto auto;
    column-gap: 10px; row-gap: 2px; align-items: center;
    padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: left;
    border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
    font: inherit; transition: border-color .2s, background .2s;
}
.founder-color i { grid-row: span 2; width: 14px; height: 14px; border-radius: 50%; background: var(--c, #6b6257); }
.founder-color b { font-size: 15px; color: var(--c, #e9e1d6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.founder-color small { font-size: 11.5px; color: var(--ink-3, #b9ada0); }
.founder-color:hover { border-color: rgba(255, 221, 160, .4); background: rgba(255, 255, 255, .06); }
.founder-color.is-on { border-color: rgba(255, 221, 160, .7); background: rgba(255, 221, 160, .1); }
.founder-color--off b { color: #e9e1d6; }
.founder-name { font-weight: inherit; }

/* ── Испытание дня ────────────────────────────────────────────────────── */
.daily-section { padding-top: 0; padding-bottom: 0; }
.daily-strip {
    display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center;
    padding: 12px 18px 12px 12px; border-radius: 18px; color: inherit; text-decoration: none;
    border: 1px solid rgba(255, 176, 93, .35);
    background: linear-gradient(100deg, rgba(255, 176, 93, .12), rgba(255, 255, 255, .02));
    transition: transform .28s cubic-bezier(.2, .7, .3, 1), border-color .28s, box-shadow .28s;
}
.daily-strip:hover { transform: translateY(-3px); border-color: rgba(255, 176, 93, .6); box-shadow: 0 18px 36px rgba(0, 0, 0, .4); }
.daily-strip.is-done { border-color: rgba(113, 217, 148, .35); background: linear-gradient(100deg, rgba(113, 217, 148, .1), rgba(255, 255, 255, .02)); }
.daily-strip__art { aspect-ratio: 16 / 10; border-radius: 12px; background: linear-gradient(160deg, #2a1d12, #0a0908) center/cover no-repeat; }
.daily-strip__in { display: grid; gap: 3px; min-width: 0; }
.daily-strip__in small { color: var(--gold, #ffd99a); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.daily-strip__in b { font-size: 18px; }
.daily-strip__in span { color: var(--muted, #b9b2a6); font-size: 14px; line-height: 1.45; }
.daily-strip__go { color: var(--gold, #ffd99a); font-weight: 700; font-size: 14px; white-space: nowrap; }
@media (max-width: 560px) {
    .daily-strip { grid-template-columns: 84px 1fr; padding-right: 12px; }
    .daily-strip__go { grid-column: 1 / -1; justify-self: end; }
}

/* ── «Продолжить» и испытание дня (2.16.1) ────────────────────────────────
   Отдельная секция полосы рисовала свою подложку — получалась светлая полоса
   поперёк страницы. Теперь испытание внутри блока «Продолжить», а отступы
   сверху и снизу у блока одинаковые. */
.resume-section { padding: clamp(36px, 4.5vw, 56px) 0; }
.resume-section + .showcase { padding-top: clamp(16px, 2vw, 28px); }
.resume-daily { margin-top: 16px; }
.resume-daily .daily-strip { background: rgba(255, 221, 160, .05); border-color: rgba(255, 221, 160, .16); }
.resume-daily .daily-strip:hover { border-color: rgba(255, 176, 93, .45); }
.daily-section { padding: clamp(28px, 4vw, 48px) 0 0; }
.daily-section::before, .daily-section::after { content: none; }
.daily-section + .showcase { padding-top: clamp(36px, 4.5vw, 56px); }
@media (max-width: 560px) {
    .resume-daily .daily-strip { grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 12px 10px 10px; }
    .resume-daily .daily-strip__in small { font-size: 10.5px; }
    .resume-daily .daily-strip__in b { font-size: 16px; }
    .resume-daily .daily-strip__in span { font-size: 13px; }
}
/* Наведение: увеличивается сама картинка внутри кадра, кадр не наезжает на текст. */
.resume-card:hover .resume-card__art { transform: none; }
.resume-card__pic { transition: transform .6s var(--ease); }
.resume-card:hover .resume-card__pic { transform: scale(1.04); }

/* Стартовый набор полосой на главной — тем же видом, что испытание дня, но золотом. */
.daily-strip--starter, .resume-daily .daily-strip--starter {
    border-color: rgba(242, 189, 102, .5);
    background: linear-gradient(100deg, rgba(242, 189, 102, .16), rgba(244, 119, 53, .06));
}
.daily-strip__badge {
    display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #ffd99a;
    background: radial-gradient(circle at 30% 25%, rgba(255, 221, 160, .28), rgba(42, 29, 18, .9));
}
@media (max-width: 640px) { .resume-daily .daily-strip__badge { font-size: 22px; } }

/* ══ Первый экран для людей с рекламы (php/ad_hero_view.php) ═════════════
   Классы — с «lp-», не с «ad-»: блокировщики рекламы (и встроенные в Opera и
   Яндекс Браузер) прячут всё, что называется ad-hero / ad-cover, — экран пропадал целиком.
   Человек из рекламы решает за 3–5 секунд. Сразу видно: что это (истории,
   где ты выбираешь), как начать (одна кнопка — и ты в первой сцене), что
   ещё есть (обложки, «Разлом»). Без счётчиков, которые растут от нуля. */
.lp-hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding: calc(var(--gh-h, 72px) + 28px) 0 clamp(36px, 5vw, 64px);
}
.lp-hero__bg { position: absolute; inset: 0; z-index: -1; }
.lp-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.lp-hero__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 8, 7, .55), rgba(10, 8, 7, .82) 55%, var(--bg, #0a0807));
}
.lp-hero__inner {
    display: grid; gap: 22px 40px;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
    grid-template-areas: "text shelf" "rift shelf" "more shelf";
    align-items: start;
}
.lp-hero__text { grid-area: text; }
.lp-hero__kicker {
    margin: 0 0 12px; color: var(--gold, #ffd99a); font-size: 13px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
}
.lp-hero__title { font-size: clamp(32px, 4vw, 54px); line-height: 1.04; }
.lp-hero__lead { margin: 16px 0 0; color: var(--muted, #b9b2a6); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; max-width: 34em; }
.lp-hero__cta {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
    padding: 16px 28px; border-radius: 16px; font-size: 18px; font-weight: 800; color: #221603;
    background: linear-gradient(104deg, #ffe2a8, #ffb765 55%, #f48a45);
    box-shadow: 0 18px 40px -16px rgba(255, 160, 80, .75);
    transition: transform .25s, box-shadow .25s;
}
.lp-hero__cta:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -16px rgba(255, 160, 80, .9); }
.lp-hero__hint { margin: 10px 0 0; color: var(--faint, #8d887f); font-size: 13.5px; }

.lp-hero__covers {
    display: grid; gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lp-cover {
    position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 3;
    border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); background: #14100c;
    transition: transform .3s, border-color .3s;
}
.lp-cover:hover { transform: translateY(-4px); border-color: rgba(255, 221, 160, .45); }
.lp-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-cover__in {
    position: absolute; inset: auto 0 0 0; display: grid; gap: 2px; padding: 30px 12px 12px;
    background: linear-gradient(180deg, transparent, rgba(8, 7, 6, .9) 55%);
}
.lp-cover__in b { font-size: 15px; line-height: 1.2; color: #fff; }
.lp-cover__in small { color: #d8c9ad; font-size: 12px; }
.lp-cover--all {
    display: grid; place-items: center; text-align: center;
    background: linear-gradient(160deg, rgba(255, 221, 160, .12), rgba(255, 255, 255, .02));
}
.lp-cover--all .lp-cover__in { position: static; background: none; padding: 12px; }
.lp-cover--all b { color: var(--gold, #ffd99a); }
/* На широком экране — ряд из четырёх обложек, «Все истории» — ссылкой ниже. */
@media (min-width: 901px) {
    .lp-cover--all { display: none; }
    .lp-hero__inner { align-items: center; }
    .lp-hero__more { align-self: start; }
}
@media (max-width: 900px) { .lp-hero__more-all { display: none; } }

.lp-rift {
    grid-area: rift; position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr);
    align-items: center; gap: 4px 14px; padding: 10px 16px 10px 10px; overflow: hidden;
    border-radius: 18px; border: 1px solid rgba(120, 200, 255, .28);
    background: linear-gradient(100deg, rgba(80, 160, 255, .14), rgba(255, 255, 255, .02));
    transition: transform .25s, border-color .25s;
}
.lp-rift:hover { transform: translateY(-3px); border-color: rgba(120, 200, 255, .55); }
.lp-rift__art { grid-row: span 2; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: #0d1520; }
.lp-rift__art img { width: 100%; height: 100%; object-fit: cover; }
.lp-rift__in { display: grid; gap: 2px; min-width: 0; }
.lp-rift__in small { color: #9fd3ff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lp-rift__in b { font-size: 18px; color: #fff; }
.lp-rift__in span { color: var(--muted, #b9b2a6); font-size: 13.5px; line-height: 1.4; }
.lp-rift__go { color: #9fd3ff; font-weight: 700; font-size: 14px; justify-self: start; }

.lp-hero__more { grid-area: more; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-hero__more a {
    padding: 10px 16px; border-radius: 999px; font-size: 14px; color: #e9dfcf;
    border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
}
.lp-hero__more a:hover { border-color: rgba(255, 221, 160, .45); color: #ffd99a; }
.lp-hero__more span { color: var(--gold, #ffd99a); margin-right: 4px; }

/* Телефон: текст и кнопка, под ними обложки лентой (видно, что их больше), «Разлом» — следом. */
@media (max-width: 900px) {
    .lp-hero { padding-top: calc(var(--gh-h, 64px) + 18px); }
    .lp-hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "covers" "rift" "ai" "more"; gap: 18px; }
    /* На телефоне полки расходятся: истории — сразу под кнопкой, «Разлом» — следом, персонажи — ниже. */
    .lp-hero__shelf { display: contents; }
    .lp-hero__label { display: none; }
    .lp-hero__covers { grid-area: covers; }
    .lp-hero__covers--ai { grid-area: ai; }
    .lp-hero__lead { margin-top: 12px; }
    .lp-hero__cta { display: flex; justify-content: center; width: 100%; margin-top: 18px; }
    .lp-hero__hint { text-align: center; }
    .lp-hero__covers {
        display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
        /* Лента уходит за правый край экрана (видно, что обложек больше), слева — по краю текста. */
        margin-right: calc(50% - 50vw); padding-right: 16px; scrollbar-width: none;
    }
    .lp-hero__covers::-webkit-scrollbar { display: none; }
    .lp-cover { flex: 0 0 38%; max-width: 170px; scroll-snap-align: start; }
    .lp-cover--all { aspect-ratio: 2 / 3; }
    .lp-rift { grid-template-columns: 96px minmax(0, 1fr); }
    .lp-rift__in span { font-size: 13px; }
}
@media (max-width: 380px) { .lp-hero__title { font-size: 30px; } .lp-cover { flex-basis: 42%; } }

/* Полки первого экрана: истории и ИИ-персонажи, обе — случайные при каждом заходе. */
.lp-hero__shelf { grid-area: shelf; display: grid; gap: 10px; }
.lp-hero__label { margin: 0; color: var(--gold, #ffd99a); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lp-hero__label--ai { margin-top: 10px; color: #c9b8ff; }
.lp-cover--face img { object-position: center 18%; }
.lp-hero__covers--ai .lp-cover { border-color: rgba(180, 160, 255, .22); }
.lp-hero__covers--ai .lp-cover:hover { border-color: rgba(200, 180, 255, .55); }
.lp-hero__covers--ai .lp-cover--all b { color: #d9ccff; }
@media (min-width: 901px) {
    .lp-hero__shelf .lp-cover { aspect-ratio: 3 / 4; }
}
/* Название на обложках историй — вверху кадра: в укороченной карточке режем низ (он под подписью), а не заголовок. */
.lp-cover:not(.lp-cover--face) img { object-position: center top; }
/* Телефон: полки расходятся по сетке первого экрана (правило выше задаёт им общую область). */
@media (max-width: 900px) {
    .lp-hero__shelf { display: contents; }
    .lp-hero__label { display: none; }
    .lp-hero__covers { grid-area: covers; }
    .lp-hero__covers--ai { grid-area: ai; }
}
.news-ask-home { padding-top: 6px; }

/* Подарок читателю в блоке Разлома на главной (мостик «истории → Разлом»). */
.rift-gift { display: inline-block; margin: 4px 0 18px; padding: 10px 16px; border-radius: 14px; font-size: 15px; line-height: 1.45;
    color: #f2d49b; background: rgba(242, 189, 102, .1); border: 1px solid rgba(242, 189, 102, .35); max-width: 640px; }

/* ── Главная: «Друзья» — широкая карточка с портретами (21.10.2026) ─────── */
.hero-card--friends { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; }
.hero-card--friends::before { background: radial-gradient(120% 120% at 0% 0%, rgba(255,128,170,.26), transparent 60%), radial-gradient(80% 120% at 100% 100%, rgba(255,128,170,.12), transparent 60%); }
.hero-card--friends .hero-card__mark { color: #ff8fb0; }
.hero-card--friends .hero-card__lead { color: #ffc2d4; }
.hero-card--friends .hero-card__go { color: #ff9fbd; }
.hero-card__friends-text { display: flex; flex-direction: column; gap: 7px; flex: 1 1 340px; min-width: 0; }
.hero-card--friends .hero-card__text, .hero-card--friends .hero-card__meta, .hero-card--friends .hero-card__lead { display: block; }
.hero-friends { display: flex; gap: 14px; flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; }
.hero-friends__one { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 96px; text-align: center; }
.hero-friends__ava { position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: visible; background: rgba(255,143,176,.12); }
.hero-friends__ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,143,176,.45); transition: transform .25s; }
.hero-card--friends:hover .hero-friends__ava img { transform: translateY(-3px); }
.hero-friends__ava i { position: absolute; right: 3px; bottom: 3px; width: 15px; height: 15px; border-radius: 50%; border: 3px solid #17110f; background: #7a7571; }
.hero-friends__ava i.is-free { background: #4fd18b; }
.hero-friends__ava i.is-busy, .hero-friends__ava i.is-away { background: #ffb347; }
.hero-friends__one b { font-size: 13.5px; margin-top: 4px; }
.hero-friends__one small { font-size: 11.5px; color: #a79c8d; line-height: 1.25; }
@media (max-width: 1080px) { .hero-card--friends .hero-card__text { display: block; } }
@media (max-width: 720px) {
    .hero-card--friends { flex-direction: column; align-items: stretch; gap: 16px; }
    .hero-friends { justify-content: flex-start; gap: 10px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .hero-friends__one { width: 76px; flex: none; }
    .hero-friends__ava { width: 64px; height: 64px; }
}

/* ── Главная, 21.10.2026 (владелец): разделы по две в ряд, без заголовка, цифры под карточками ── */
.hero__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero { padding-top: calc(var(--gh-h, 96px) + 22px); padding-bottom: 56px; }
.hero__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 0; }
.hero__products .hero-card--big, .hero__products .hero-card--sm, .hero__products .hero-card--rift, .hero__products .hero-card--friends { grid-column: auto; min-height: 0; }
.hero__products .hero-card { padding: 18px 22px 16px; gap: 5px; }
.hero__products .hero-card__text { font-size: 14px; line-height: 1.45; }
.hero__products .hero-card__go { padding-top: 8px; }
.hero__products + .hero-counts--tiles { margin-top: 24px; }
.hero-card--friends { flex-direction: column; align-items: stretch; }
.hero-card--friends .hero-card__text { display: none; }
.hero-card__friends-text { gap: 5px; flex: 1 1 auto; }
.hero-friends { display: flex; justify-content: flex-start; flex-wrap: nowrap; gap: 8px; margin-top: 8px; overflow: hidden; }
.hero-friends__one { width: 70px; flex: none; }
.hero-friends__ava { width: 54px; height: 54px; }
.hero-friends__ava i { width: 13px; height: 13px; right: 1px; bottom: 1px; }
.hero-friends__one b { font-size: 12.5px; margin-top: 2px; }
.hero-friends__one small { font-size: 11px; }
@media (max-width: 720px) {
    .hero__products { grid-template-columns: 1fr; }
    .hero-friends { overflow-x: auto; }
}
/* Невысокие экраны: сначала прячем мелкие подписи, потом описания — все шесть разделов на первом экране. */
@media (min-width: 721px) {
    .hero__products .hero-card__mark { font-size: 20px; }
    .hero__products .hero-card h2 { font-size: clamp(19px, 1.8vw, 23px); }
}
@media (min-width: 721px) and (max-height: 1000px) {
    .hero { padding-top: calc(var(--gh-h, 96px) + 10px); }
    .hero__products { gap: 12px; }
    .hero__products .hero-card { padding: 15px 20px 14px; }
    .hero__products .hero-card:not(.hero-card--friends) .hero-card__meta { display: none; }
    .hero-friends { margin-top: 4px; }
    .hero-friends__ava { width: 46px; height: 46px; }
    .hero-friends__one small { display: none; }
}
@media (min-width: 721px) and (max-height: 820px) {
    .hero__products .hero-card__text { display: none; }
    .hero-card--friends .hero-card__meta { display: none; }
}

/* ── Главная: живые карточки (21.10.2026) ── */
.hero__products .hero-card { transform-style: preserve-3d; will-change: transform; }
.hero__products .hero-card.is-tilt {
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
    transition: transform .08s linear, border-color .2s, box-shadow .2s;
}
.hero__products .hero-card::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; opacity: 0;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .11), transparent 60%);
    transition: opacity .3s;
}
.hero__products .hero-card:hover::after { opacity: 1; }
.hero__products .hero-card__mark { display: inline-block; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.hero__products .hero-card:hover .hero-card__mark { transform: scale(1.25) rotate(-10deg); }
.hero-card--friends:hover .hero-card__mark { animation: hfBeat .9s ease-in-out infinite; }
@keyframes hfBeat { 0%, 100% { transform: scale(1.15); } 30% { transform: scale(1.4); } 60% { transform: scale(1.1); } }
.hero-friends__ava i.is-free { animation: hfPulse 2.2s ease-out infinite; }
@keyframes hfPulse { 0% { box-shadow: 0 0 0 0 rgba(79, 209, 139, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(79, 209, 139, 0); } }
.hero-friends__one { transition: transform .3s; }
.hero-friends__one.is-talking { transform: translateY(-3px); }
.hero-friends__one.is-talking .hero-friends__ava img { border-color: #ff8fb0; box-shadow: 0 0 0 3px rgba(255, 143, 176, .25); }
.hero-friends__bubble {
    align-self: flex-start; min-height: 26px; margin-top: 6px; padding: 4px 11px; border-radius: 13px 13px 13px 4px;
    background: rgba(255, 143, 176, .14); border: 1px solid rgba(255, 143, 176, .3); color: #ffd6e2; font-size: 12.5px;
    opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.hero-friends__bubble.is-on { opacity: 1; transform: none; }
.hero-friends__bubble .dots i { display: inline-block; width: 4px; height: 4px; margin: 0 1px; border-radius: 50%; background: currentColor; animation: hfDots 1s infinite; }
.hero-friends__bubble .dots i:nth-child(2) { animation-delay: .15s; } .hero-friends__bubble .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hfDots { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
    .hero-friends__ava i.is-free, .hero-card--friends:hover .hero-card__mark, .hero-friends__bubble .dots i { animation: none; }
}
/* Колонки не распираются рядом портретов (на телефоне карточки вылезали за край). */
.hero__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero__products > .hero-card { min-width: 0; }
.hero-friends__one small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .hero__products { grid-template-columns: minmax(0, 1fr); } }

/* ════ Первый экран по макету владельца (22.10.2026), php/home_hero.php ════
   Слева — «Грани Историй», справа — нарисованный мир, ниже шесть разделов неровными
   осколками: рамка-трещина цвета раздела (clip-path), свечение — drop-shadow у ссылки
   (у неё нет clip-path, поэтому свет идёт по контуру осколка). */
.hero.hw { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; gap: 18px;
    min-height: 100svh; padding: calc(var(--gh-h, 96px) + 10px) 0 26px; --px: 0; --py: 0; }
.hw-world { position: absolute; z-index: 0; top: 0; right: 0; width: min(78%, 1500px); height: 82%; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%), linear-gradient(180deg, #000 62%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 34%), linear-gradient(180deg, #000 62%, transparent 100%); mask-composite: intersect; }
.hw-world img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: .92;
    transform: translate3d(calc(var(--px) * -22px), calc(var(--py) * -14px), 0) scale(1.07); transition: transform .5s cubic-bezier(.2, .7, .3, 1);
    animation: hwBreath 14s ease-in-out infinite alternate; }
@keyframes hwBreath { from { filter: saturate(1) brightness(.95); } to { filter: saturate(1.15) brightness(1.05); } }
.hw-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(60% 50% at 18% 30%, rgba(235, 120, 40, .16), transparent 70%), radial-gradient(50% 40% at 85% 90%, rgba(150, 100, 255, .14), transparent 70%); }
.hw-inner { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; }
.hw-text { max-width: 600px; transform: translate3d(calc(var(--px) * 8px), calc(var(--py) * 5px), 0); transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.hw-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #ffb05d; animation: hwIn .8s .1s both; }
.hw-title { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 800; font-size: clamp(54px, 7.4vw, 118px); line-height: .92; letter-spacing: -.01em;
    background: linear-gradient(100deg, #fff3d6 0%, #ffd99a 22%, #e8a14c 42%, #fff6e2 50%, #e8a14c 58%, #c97a2e 78%, #ffd99a 100%);
    background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 6px 26px rgba(255, 140, 50, .25)); animation: hwIn .9s .2s both, hwShine 7s 1.2s ease-in-out infinite; }
.hw-title:not(.hw-title--img) span { display: block; }
.hw-title:not(.hw-title--img) span + span { padding-left: .06em; }
@keyframes hwShine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hw-lead { max-width: 520px; margin: 18px 0 22px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: #e9dfcf; animation: hwIn .9s .35s both; }
.hw-cta { display: flex; flex-wrap: wrap; gap: 12px; animation: hwIn .9s .45s both; }
.hw-btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 28px; border-radius: 99px; font-weight: 800; font-size: 16px; text-decoration: none; transition: transform .2s, box-shadow .25s, background .25s; }
.hw-btn--main { color: #2a1406; background: linear-gradient(180deg, #ffd38a, #f19a3e); box-shadow: 0 10px 34px rgba(241, 154, 62, .38), inset 0 1px 0 rgba(255, 255, 255, .5); }
.hw-btn--main:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(241, 154, 62, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
.hw-btn--main span { transition: transform .2s; } .hw-btn--main:hover span { transform: translateX(4px); }
.hw-btn--ghost { color: #ffe0ea; border: 1px solid rgba(255, 143, 176, .45); background: rgba(255, 143, 176, .08); backdrop-filter: blur(6px); }
.hw-btn--ghost:hover { background: rgba(255, 143, 176, .18); transform: translateY(-2px); }
.hw-btn--ghost span { color: #ff8fb0; }
.hw-social { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; font-size: 14px; color: #d8cdbd; line-height: 1.35; animation: hwIn .9s .55s both; }
.hw-social small { color: #9d9384; font-size: 12.5px; }
.hw-live { color: #6fe39b; }
.hw-faces { display: flex; } .hw-faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #1a1310; margin-left: -10px; }
.hw-faces img:first-child { margin-left: 0; }
@keyframes hwIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Осколки-разделы */
.hw-tiles { position: relative; z-index: 3; width: min(1640px, 100% - 40px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: end; }
.hw-tile { --c: #ffb05d; position: relative; display: block; height: clamp(250px, 39vh, 380px); color: #fff; text-decoration: none;
    filter: drop-shadow(0 0 5px color-mix(in srgb, var(--c) 55%, transparent)) drop-shadow(0 18px 30px rgba(0, 0, 0, .55));
    transform: translateY(var(--off, 0px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s;
    animation: hwTileIn .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 90ms + 350ms); }
@keyframes hwTileIn { from { opacity: 0; transform: translateY(60px) scale(.96); } }
.hw-tile:nth-child(even) { --off: 16px; }
.hw-tile:hover { filter: drop-shadow(0 0 12px var(--c)) drop-shadow(0 26px 40px rgba(0, 0, 0, .6)); transform: translateY(calc(var(--off, 0px) - 10px)); z-index: 4; }
.hw-tile.is-tilt { transform: perspective(900px) translateY(calc(var(--off, 0px) - 10px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .08s linear, filter .35s; }
.hw-tile__frame, .hw-tile__body { position: absolute; clip-path: var(--shard); }
.hw-tile__frame { inset: 0; background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 40%, #000) 55%, var(--c)); }
.hw-tile__body { inset: 2px; background: #0e0b12; overflow: hidden; }
.hw-tile__body img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.04); transition: transform .8s cubic-bezier(.2, .7, .3, 1), filter .4s; filter: saturate(1.05); }
.hw-tile:hover .hw-tile__body img { transform: scale(1.13); filter: saturate(1.25) brightness(1.08); }
.hw-tile__body::before { content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(8, 6, 10, .05) 0%, rgba(8, 6, 10, .25) 38%, rgba(8, 6, 10, .9) 70%, rgba(8, 6, 10, .97) 100%); }
.hw-tile__body::after { content: ''; position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .3s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .16), transparent 60%); }
.hw-tile:hover .hw-tile__body::after { opacity: 1; }
.hw-tile__crack { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hw-tile__crack polyline { fill: none; stroke: var(--c); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: bevel;
    filter: drop-shadow(0 0 3px var(--c)); opacity: .75; animation: hwCrack 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.hw-tile:hover .hw-tile__crack polyline { opacity: 1; animation-duration: 1.2s; }
@keyframes hwCrack { 0%, 100% { opacity: .35; } 45% { opacity: .95; } 50% { opacity: .5; } 55% { opacity: 1; } }
.hw-tile__content { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 0 18px 20px 20px; }
.hw-tile__icon { font-style: normal; font-size: 24px; line-height: 1; color: var(--c); filter: drop-shadow(0 0 8px var(--c)); margin-bottom: 4px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.hw-tile:hover .hw-tile__icon { transform: scale(1.25) rotate(-8deg); }
.hw-tile__title { font-size: clamp(16px, 1.25vw, 21px); line-height: 1.12; font-weight: 800; }
.hw-tile__lead { font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--c) 75%, #fff); }
.hw-tile__text { font-size: 13px; line-height: 1.42; color: #cfc4b4; margin-top: 2px; }
.hw-tile__go { align-self: flex-start; margin-top: 8px; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 800;
    border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 12%, rgba(10, 8, 12, .6)); transition: background .25s, transform .25s; }
.hw-tile:hover .hw-tile__go { background: color-mix(in srgb, var(--c) 30%, rgba(10, 8, 12, .6)); }
.hw-tile:hover .hw-tile__go span { display: inline-block; transform: translateX(3px); }
.hw-friends { display: flex; gap: 6px; margin-top: 6px; }
.hw-friends__one { position: relative; width: 34px; height: 34px; transition: transform .3s; }
.hw-friends__one img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid color-mix(in srgb, var(--c) 60%, transparent); }
.hw-friends__one i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #120d10; background: #7a7571; }
.hw-friends__one i.is-free { background: #4fd18b; animation: hfPulse 2.2s ease-out infinite; }
.hw-friends__one i.is-busy, .hw-friends__one i.is-away { background: #ffb347; }
.hw-friends__one.is-talking { transform: translateY(-4px); } .hw-friends__one.is-talking img { border-color: #ff8fb0; box-shadow: 0 0 0 3px rgba(255, 143, 176, .3); }
.hw-tile .hero-friends__bubble { margin-top: 6px; font-size: 12px; min-height: 22px; padding: 3px 9px; }

/* Цвет и форма осколка у каждого раздела */
.hw-tile--stories { --c: #ffad55; --shard: polygon(4% 3%, 30% 0, 58% 4%, 86% 1%, 100% 6%, 97% 30%, 100% 55%, 96% 80%, 100% 100%, 64% 97%, 36% 100%, 8% 97%, 0 100%, 3% 70%, 0 42%, 3% 18%); }
.hw-tile--rift { --c: #5fd4ff; --shard: polygon(0 6%, 22% 0, 47% 5%, 74% 0, 100% 4%, 96% 26%, 100% 49%, 97% 74%, 100% 97%, 76% 100%, 50% 96%, 25% 100%, 2% 97%, 4% 73%, 0 48%, 4% 25%); }
.hw-tile--ai { --c: #b48cff; --shard: polygon(6% 0, 34% 5%, 62% 0, 92% 4%, 100% 0, 97% 24%, 100% 46%, 95% 72%, 99% 100%, 70% 96%, 42% 100%, 14% 97%, 0 100%, 4% 76%, 0 52%, 5% 28%); }
.hw-tile--friends { --c: #ff7fa8; --shard: polygon(0 3%, 27% 0, 52% 6%, 79% 1%, 100% 5%, 96% 31%, 100% 57%, 97% 82%, 100% 100%, 72% 96%, 46% 100%, 20% 96%, 0 99%, 3% 75%, 0 50%, 3% 24%); }
.hw-tile--party { --c: #63d6c6; --shard: polygon(5% 4%, 31% 0, 57% 4%, 83% 0, 100% 3%, 97% 28%, 100% 52%, 96% 77%, 100% 98%, 74% 100%, 48% 96%, 22% 100%, 3% 96%, 0 72%, 4% 47%, 0 22%); }
.hw-tile--mini { --c: #6fe39b; --shard: polygon(0 4%, 25% 1%, 50% 6%, 77% 0, 98% 4%, 100% 29%, 96% 54%, 100% 79%, 97% 100%, 71% 97%, 45% 100%, 19% 96%, 0 100%, 4% 74%, 0 49%, 4% 23%); }

@media (max-width: 1499px) { .hw-tile__text { display: none; } }
@media (max-width: 1180px) {
    .hw-world { width: 100%; opacity: .55; }
    .hw-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hw-tile { height: 230px; } .hw-tile:nth-child(even) { --off: 0px; }
}
@media (max-width: 720px) {
    .hero.hw { min-height: auto; padding-top: calc(var(--gh-h, 72px) + 8px); gap: 10px; }
    .hw-world { height: 60%; opacity: .5; }
    .hw-title { font-size: clamp(46px, 14vw, 64px); }
    .hw-lead { font-size: 15.5px; margin: 12px 0 16px; }
    .hw-btn { padding: 13px 20px; font-size: 15px; }
    .hw-tiles { width: 100%; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%; overflow-x: auto; padding: 18px 16px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .hw-tiles::-webkit-scrollbar { display: none; }
    .hw-tile { height: 300px; scroll-snap-align: start; } .hw-tile__text { display: block; }
}
@media (min-width: 721px) and (max-height: 780px) { .hw-tile { height: 220px; } .hw-lead { margin: 10px 0 14px; } .hw-social { margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) {
    .hw-world img, .hw-title, .hw-tile, .hw-tile__crack polyline, .hw-eyebrow, .hw-lead, .hw-cta, .hw-social { animation: none !important; }
}

/* Подгонка (22.10.2026): шапка читается поверх мира, всё помещается на 1440×900 и ниже. */
.hw-world { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%), linear-gradient(180deg, transparent 0, #000 16%, #000 62%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 34%), linear-gradient(180deg, transparent 0, #000 16%, #000 62%, transparent 100%); }
.hw-title { font-size: clamp(48px, min(7.4vw, 12.5vh), 118px); }
.hw-tile { height: clamp(230px, 35vh, 380px); }
@media (min-width: 721px) and (max-height: 960px) {
    .hw-eyebrow { margin-bottom: 6px; }
    .hw-lead { margin: 12px 0 16px; font-size: 16px; }
    .hw-btn { padding: 13px 24px; }
    .hw-social { margin-top: 14px; }
    .hero.hw { gap: 12px; padding-bottom: 18px; }
}

@media (min-width: 721px) and (max-height: 820px) {
    .hw-title { font-size: clamp(44px, min(7vw, 10.5vh), 100px); }
    .hw-social small { display: none; }
    .hw-tile { height: 208px; }
    .hw-tile__content { padding-bottom: 16px; }
    .hw-tile .hero-friends__bubble { display: none; }
}

/* Хвосты букв («й») не обрезаются градиентной заливкой текста; на телефоне кнопки в ряд. */
.hw-title { padding-bottom: .1em; margin-bottom: -.06em; }
@media (max-width: 720px) {
    .hw-cta { flex-wrap: nowrap; gap: 8px; }
    .hw-btn { padding: 12px 16px; font-size: 14.5px; white-space: nowrap; }
    .hw-social { margin-top: 14px; font-size: 13px; }
}

/* ── Правки 22.10.2026: заголовок-металл, текст у левого края, ровное свечение осколков ── */
.hw-inner { width: min(1640px, 100% - 40px); padding-left: 6px; }
.hw-title { font-weight: 900; font-size: clamp(56px, min(8vw, 14vh), 132px); line-height: .9; letter-spacing: -.015em; padding-bottom: .12em; margin-bottom: -.05em;
    background: linear-gradient(180deg, #fff6df 0%, #ffe3a8 24%, #f2b766 46%, #c9782f 63%, #f6c47c 74%, #8a4a1c 100%);
    background-size: 100% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-stroke: 1px rgba(255, 226, 170, .22);
    filter: drop-shadow(0 2px 0 #4a230b) drop-shadow(0 4px 2px rgba(0, 0, 0, .55)) drop-shadow(0 0 28px rgba(255, 150, 60, .28));
    animation: hwIn .9s .2s both; position: relative; }
.hw-title:not(.hw-title--img) span { position: relative; }
/* Блик идёт по буквам поверх металла (та же форма текста, только светлая полоса). */
.hw-title:not(.hw-title--img) span::after { content: attr(data-t); position: absolute; left: 0; top: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 0 40%, rgba(255, 255, 255, .85) 48%, transparent 56% 100%); background-size: 260% 100%; background-position: 130% 0;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0; animation: hwGlint 6.5s 1.5s ease-in-out infinite; }
.hw-title:not(.hw-title--img) span + span::after { left: .06em; animation-delay: 1.75s; }
@keyframes hwGlint { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }
.hw-lead { margin-bottom: 0; }

/* Свечение — отдельный размытый слой ровно цвета раздела: при наведении только разгорается, цвет не перетекает. */
.hw-tile, .hw-tile:hover { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.hw-tile { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.hw-tile.is-tilt { transition: transform .08s linear; }
.hw-tile__glow { position: absolute; inset: -5px; filter: blur(9px); opacity: .45; transition: opacity .35s ease; pointer-events: none; }
.hw-tile__glow span { position: absolute; inset: 0; clip-path: var(--shard); background: var(--c); }
.hw-tile:hover .hw-tile__glow { opacity: 1; }
.hw-tile__frame { background: var(--c); }
.hw-tile__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .35), transparent 35%, rgba(0, 0, 0, .35) 70%, rgba(255, 255, 255, .15)); }
@media (max-width: 720px) { .hw-inner { width: auto; } .hw-title { font-size: clamp(50px, 15vw, 68px); } }
@media (prefers-reduced-motion: reduce) { .hw-title:not(.hw-title--img) span::after { animation: none; display: none; } }

/* Металл — на каждой строке отдельно (иначе верх светлый, низ тёмный на весь заголовок). */
.hw-title { background: none; -webkit-text-stroke: 0; color: #f2b766; }
.hw-title:not(.hw-title--img) > span { display: block; width: fit-content; padding-bottom: .08em;
    background: linear-gradient(180deg, #fff6df 0%, #ffe3a8 22%, #f2b766 45%, #c9782f 62%, #f6c47c 74%, #8a4a1c 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px rgba(255, 226, 170, .22); }

/* ── Правки 22.10.2026 (2): медальоны-иконки, надпись картинкой, свечение на телефоне ── */
.hw-tile__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 50%; font-size: 0;
    color: var(--c); border: 1.5px solid color-mix(in srgb, var(--c) 70%, transparent);
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 30%, transparent), rgba(10, 8, 14, .85) 70%);
    box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent), inset 0 0 10px color-mix(in srgb, var(--c) 25%, transparent);
    filter: none; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .35s; }
.hw-tile__icon svg { width: 22px; height: 22px; filter: drop-shadow(0 0 4px var(--c)); }
.hw-tile:hover .hw-tile__icon { transform: scale(1.12) rotate(-6deg); box-shadow: 0 0 22px var(--c), inset 0 0 12px color-mix(in srgb, var(--c) 35%, transparent); }
/* Нарисованная надпись: фон картинки прозрачный (яркость → непрозрачность, делается на сервере). */
.hw-title--img { background: none; filter: none; padding: 0; margin: -2% 0 -1% -1.5%; line-height: 0; animation: hwIn .9s .2s both; }
.hw-title--img img { display: block; width: clamp(300px, 36vw, 620px); height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)) drop-shadow(0 0 26px rgba(255, 150, 60, .2)); }
@media (max-width: 720px) {
    .hw-tiles { padding: 30px 22px 30px; margin: -12px 0; scroll-padding-left: 22px; }
    .hw-tile, .hw-tile:hover, .hw-tile.is-tilt { transform: none; }
    .hw-tile__glow { inset: -3px; filter: blur(7px); }
    .hw-title--img img { width: min(100%, 420px); }
}

/* ── Правки 22.10.2026 (3): надпись по центру с искрами, цифры, искра по контуру ── */
.hw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hw-text { margin: 0 auto 0 0; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 680px; }
.hw-title--img { position: relative; margin: 0 auto; }
.hw-title--img img { margin: 0 auto; animation: hwFloat 6s ease-in-out infinite; }
@keyframes hwFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* Блик по золоту: светлая полоса, вырезанная по форме букв (маска — сама надпись). */
.hw-glint { position: absolute; inset: 0; pointer-events: none; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
    background: linear-gradient(105deg, transparent 0 42%, rgba(255, 250, 230, .95) 50%, transparent 58% 100%); background-size: 300% 100%; background-position: 140% 0;
    mix-blend-mode: overlay; animation: hwGlint2 5.5s 1.2s ease-in-out infinite, hwFloat 6s ease-in-out infinite; }
@keyframes hwGlint2 { 0%, 50% { background-position: 140% 0; } 80%, 100% { background-position: -40% 0; } }
/* Искры над буквами: вспыхивают и поднимаются. */
.hw-sparks { position: absolute; inset: -6% -4%; pointer-events: none; }
.hw-sparks i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
    background: #fff3c4; box-shadow: 0 0 6px 2px rgba(255, 190, 90, .9), 0 0 14px 4px rgba(255, 140, 40, .45); opacity: 0;
    animation: hwSpark var(--t) var(--d) ease-out infinite; }
@keyframes hwSpark { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: 1; transform: translate(2px, -6px) scale(1); }
    60% { opacity: .7; } 100% { opacity: 0; transform: translate(-4px, -38px) scale(.3); } }
/* Цифры — как раньше: компактные плитки в два ряда. */
.hw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 620px; margin-top: 14px; animation: hwIn .9s .45s both; }
.hw-stats span { display: grid; gap: 1px; padding: 9px 10px; border-radius: 14px; border: 1px solid rgba(255, 217, 154, .14); background: rgba(14, 10, 8, .55); backdrop-filter: blur(6px); text-align: center; }
.hw-stats b { font-size: clamp(17px, 1.5vw, 23px); font-weight: 800; color: #ffe0a6; }
.hw-stats small { font-size: 11.5px; color: #a89c8a; }
.hw-stats__live { position: relative; border-color: rgba(103, 217, 138, .3) !important; }
.hw-stats__live b { color: #7fe3a3; }
.hw-stats__live i { position: absolute; top: 9px; left: 9px; width: 7px; height: 7px; border-radius: 50%; background: #4fd18b; animation: hfPulse 2.2s ease-out infinite; }
/* Искра бежит по контуру осколка: яркая голова и светящийся хвост цвета раздела. */
.hw-tile__run { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hw-tile__run polygon { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; animation: hwRun 7s linear infinite; animation-delay: calc(var(--i) * -1.15s); }
.hw-run__trail { stroke: var(--c); stroke-width: 3; stroke-dasharray: 9 91; opacity: .85; filter: drop-shadow(0 0 4px var(--c)) drop-shadow(0 0 8px var(--c)); }
.hw-run__spark { stroke: #fff; stroke-width: 2.5; stroke-dasharray: 1.4 98.6; stroke-dashoffset: -7.6; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px var(--c)); }
@keyframes hwRun { to { stroke-dashoffset: -100; } }
.hw-run__spark { animation-name: hwRunHead; }
@keyframes hwRunHead { from { stroke-dashoffset: -7.6; } to { stroke-dashoffset: -107.6; } }
.hw-tile:hover .hw-tile__run polygon { animation-duration: 2.6s; }
@media (max-width: 720px) {
    .hw-text { margin: 0 auto; }
    .hw-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .hw-stats span { padding: 7px 4px; } .hw-stats b { font-size: 16px; } .hw-stats small { font-size: 10.5px; }
}
@media (min-width: 721px) and (max-height: 820px) { .hw-stats { margin-top: 8px; } .hw-stats span { padding: 6px 8px; } }
@media (prefers-reduced-motion: reduce) { .hw-sparks, .hw-glint, .hw-tile__run { display: none; } .hw-title--img img { animation: none; } }

/* Цифры — в один ряд, надпись — по высоте экрана: карточки остаются на первом экране. */
@media (min-width: 721px) {
    .hw-title--img img { width: min(36vw, 600px, 52vh); }
    .hw-text { max-width: 760px; }
    .hw-stats { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); max-width: 760px; gap: 6px; }
    .hw-stats span { padding: 7px 4px; border-radius: 12px; }
    .hw-stats b { font-size: clamp(16px, 1.25vw, 20px); }
    .hw-stats small { font-size: 10.5px; line-height: 1.2; }
}

/* ── Правки 22.10.2026 (4): живая надпись и цифры ── */
/* Надпись: дышащий тёплый свет позади, плавное парение с лёгким креном, за мышью — наклон. */
.hw-title--img { perspective: 900px; cursor: default; }
.hw-title--img::before { content: ''; position: absolute; inset: 8% 4%; z-index: -1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 160, 60, .42), rgba(255, 110, 30, .14) 55%, transparent);
    filter: blur(18px); animation: hwLogoBreath 4.2s ease-in-out infinite; }
@keyframes hwLogoBreath { 0%, 100% { opacity: .45; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
.hw-logo { position: relative; display: block; animation: hwFloat2 6.5s ease-in-out infinite;
    rotate: x calc(var(--ly, 0) * -7deg); transition: rotate .5s ease-out, scale .5s cubic-bezier(.3, 1.4, .5, 1); }
.hw-logo img { animation: none; transform: rotateY(calc(var(--lx, 0) * 9deg)); transition: transform .5s ease-out, filter .4s; }
@keyframes hwFloat2 { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-10px) rotate(.5deg); } }
.hw-title--img:hover .hw-logo { scale: 1.035; }
.hw-title--img:hover .hw-logo img { filter: brightness(1.15) drop-shadow(0 4px 10px rgba(0, 0, 0, .6)) drop-shadow(0 0 34px rgba(255, 160, 60, .55)); }
/* Блик заметнее: светлая полоса проходит по буквам каждые ~5 с; при наведении — ещё один сразу. */
.hw-glint { animation: hwGlint3 5s 1s ease-in-out infinite; mix-blend-mode: screen; transform: rotateY(calc(var(--lx, 0) * 9deg)); transition: transform .5s ease-out;
    background: linear-gradient(105deg, transparent 0 40%, rgba(255, 214, 140, .35) 45%, rgba(255, 252, 235, .95) 50%, rgba(255, 214, 140, .35) 55%, transparent 60% 100%);
    background-size: 300% 100%; background-position: 140% 0; }
@keyframes hwGlint3 { 0%, 62% { background-position: 140% 0; } 88%, 100% { background-position: -40% 0; } }
.hw-title--img.is-flash .hw-glint { animation: hwGlintNow .9s ease-out, hwGlint3 5s 2s ease-in-out infinite; }
@keyframes hwGlintNow { from { background-position: 140% 0; } to { background-position: -40% 0; } }
/* Искры: больше, крупнее, взлетают выше и сносятся в сторону. */
.hw-sparks { inset: -4% -6% 0; }
.hw-sparks i { animation-name: hwSpark2; }
@keyframes hwSpark2 { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 12% { opacity: 1; transform: translate(calc(var(--dx) * .1), -8px) scale(1); }
    55% { opacity: .85; } 100% { opacity: 0; transform: translate(var(--dx), -80px) scale(.25); } }
.hw-burst { position: absolute; width: 5px; height: 5px; border-radius: 50%; pointer-events: none; z-index: 2; opacity: 0;
    background: #fff6d0; box-shadow: 0 0 8px 3px rgba(255, 190, 90, .95), 0 0 18px 6px rgba(255, 130, 40, .5);
    animation: hwBurst 1.1s cubic-bezier(.15, .7, .3, 1) both; }
@keyframes hwBurst { 0% { opacity: 1; transform: translate(0, 0) scale(1.3); } 70% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(.2); } }

/* Цифры: волна блика пробегает по плиткам; при наведении плитка приподнимается, разгорается, число растёт. */
.hw-stats span { position: relative; overflow: hidden; cursor: default;
    transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), border-color .3s, background-color .3s, box-shadow .3s; }
.hw-stats span::before, .hw-stats span::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 228, 170, .2) 50%, transparent 70%); transform: translateX(-130%); }
.hw-stats span::before { animation: hwStatWave 9s calc(2s + var(--n, 0) * .14s) ease-in-out infinite; }
@keyframes hwStatWave { 0%, 88% { transform: translateX(-130%); } 96%, 100% { transform: translateX(130%); } }
.hw-stats span::after { background: linear-gradient(105deg, transparent 25%, rgba(255, 236, 190, .32) 50%, transparent 75%); transition: transform .7s ease; }
.hw-stats span:nth-child(2) { --n: 1; } .hw-stats span:nth-child(3) { --n: 2; } .hw-stats span:nth-child(4) { --n: 3; }
.hw-stats span:nth-child(5) { --n: 4; } .hw-stats span:nth-child(6) { --n: 5; } .hw-stats span:nth-child(7) { --n: 6; } .hw-stats span:nth-child(8) { --n: 7; }
.hw-stats b { justify-self: center; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), color .3s, text-shadow .3s; font-variant-numeric: tabular-nums; }
.hw-stats small { transition: color .3s; }
.hw-stats span:hover { transform: translateY(-5px); border-color: rgba(255, 196, 110, .6); background-color: rgba(44, 26, 12, .78);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .45), 0 0 20px rgba(255, 160, 60, .28), inset 0 0 14px rgba(255, 170, 80, .12); }
.hw-stats span:hover::after { transform: translateX(130%); }
.hw-stats span:hover b { transform: scale(1.14); color: #fff2d2; text-shadow: 0 0 12px rgba(255, 180, 80, .85), 0 0 26px rgba(255, 130, 40, .45); }
.hw-stats span:hover small { color: #e9d7b6; }
.hw-stats .hw-stats__live:hover { border-color: rgba(103, 230, 150, .7) !important; background-color: rgba(10, 34, 22, .75); box-shadow: 0 10px 22px rgba(0, 0, 0, .45), 0 0 20px rgba(80, 220, 140, .3); }
.hw-stats .hw-stats__live:hover b { color: #b6ffd0; text-shadow: 0 0 12px rgba(80, 230, 150, .85); }

/* «+3» рядом с портретами друзей */
.hw-friends__more { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #ffd3e0;
    background: color-mix(in srgb, var(--c) 22%, rgba(18, 12, 16, .85)); border: 2px dashed color-mix(in srgb, var(--c) 55%, transparent); }

@media (prefers-reduced-motion: reduce) {
    .hw-title--img::before, .hw-logo, .hw-stats span::before { animation: none; }
    .hw-burst { display: none; }
}

/* ── Правки 22.10.2026 (5): единая композиция карточек, свет на фоне, чёткие картинки, лента на телефоне ── */
/* Сцена мира повторяет кадрирование картинки (cover, 60% 40%): проценты внутри неё — проценты самой картинки. */
.hw-world { container-type: size; }
.hw-scene { position: absolute; inset: 0;
    transform: translate3d(calc(var(--px) * -22px), calc(var(--py) * -14px), 0) scale(1.07); transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
@supports (width: 1cqw) {
    .hw-scene { inset: auto; left: 60%; top: 40%; width: max(100cqw, 150cqh); height: max(100cqh, 66.667cqw); translate: -60% -40%; }
}
.hw-world .hw-scene img { display: block; width: 100%; height: 100%; object-fit: cover; transform: none; transition: none; }
@property --fx { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --fy { syntax: '<percentage>'; inherits: false; initial-value: 30%; }
@property --fc { syntax: '<color>'; inherits: false; initial-value: #ffb05d; }
.hw-focus { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen;
    background: radial-gradient(ellipse 9% 12% at var(--fx) var(--fy), color-mix(in srgb, var(--fc) 55%, #fff 10%), transparent),
                radial-gradient(ellipse 22% 28% at var(--fx) var(--fy), color-mix(in srgb, var(--fc) 50%, transparent), transparent);
    transition: opacity .6s ease, --fx .7s cubic-bezier(.3, .7, .3, 1), --fy .7s cubic-bezier(.3, .7, .3, 1), --fc .7s ease; }
.hero.hw.is-focus .hw-focus { opacity: 1; animation: hwFocusPulse 2.8s ease-in-out infinite; }
@keyframes hwFocusPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.3); } }

/* Карточки: название и кнопка на одной высоте у всех (столбец текста привязан к середине осколка, кнопка — к низу). */
.hw-tile__body::before { background: linear-gradient(180deg, rgba(8, 6, 10, 0) 0%, rgba(8, 6, 10, .12) 22%, rgba(8, 6, 10, .78) 42%, rgba(8, 6, 10, .95) 60%, rgba(8, 6, 10, .97) 100%); }
.hw-tile__content { top: 42%; justify-content: flex-start; gap: 3px; padding-top: 0; }
.hw-tile__content > * { flex-shrink: 0; }
.hw-tile__icon { position: absolute; left: 18px; top: -54px; margin: 0; }
.hw-tile__title, .hw-tile__lead, .hw-tile__text { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.hw-tile__title { -webkit-line-clamp: 2; font-size: clamp(15px, 1.2vw, 21px); }
.hw-tile__lead { -webkit-line-clamp: 2; line-height: 1.3; }
.hw-tile__text { -webkit-line-clamp: 2; }
.hw-tile__go { margin-top: auto; }
@media (max-width: 1499px) and (min-width: 721px) { .hw-tile__text { display: none; } }
/* Друзья поверх картинки: портреты внахлёст у верхнего края, реплика под ними. */
.hw-tile__over { position: absolute; z-index: 4; top: 9%; left: 16px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.hw-tile__over .hw-friends { margin: 0; gap: 0; }
.hw-tile__over .hw-friends__one, .hw-tile__over .hw-friends__more { margin-left: -8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); border-radius: 50%; }
.hw-tile__over .hw-friends__one:first-child { margin-left: 0; }
.hw-tile__over .hero-friends__bubble { margin: 0; max-width: 100%; background: rgba(14, 9, 13, .82); backdrop-filter: blur(4px); }
@media (min-width: 721px) and (max-height: 820px) {
    .hw-tile__over .hw-friends__one, .hw-tile__over .hw-friends__more { width: 28px; height: 28px; font-size: 11px; }
    .hw-tile__icon { top: -48px; width: 38px; height: 38px; } .hw-tile__icon svg { width: 19px; height: 19px; }
}

/* Лента на телефоне: счётчик и подписи разделов. */
.hw-pager { display: none; }
@media (max-width: 720px) {
    .hw-tile__text { display: -webkit-box; }
    .hw-pager { position: relative; z-index: 3; display: flex; align-items: center; gap: 6px; margin-top: -10px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
    .hw-pager::-webkit-scrollbar { display: none; }
    .hw-pager__n { flex: none; min-width: 40px; font-size: 12.5px; color: #a89c8a; font-variant-numeric: tabular-nums; }
    .hw-pager__n b { color: #fff; font-size: 14px; }
    .hw-pager button { flex: none; padding: 7px 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); background: rgba(14, 10, 8, .6);
        color: #d8cdbd; font: 700 12.5px/1 inherit; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
    .hw-pager button.is-on { color: #170d06; background: var(--pc); border-color: var(--pc); box-shadow: 0 0 14px color-mix(in srgb, var(--pc) 55%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .hero.hw.is-focus .hw-focus { animation: none; } .hw-focus { transition: opacity .3s; } }
@media (min-width: 1500px) and (min-height: 950px) { .hw-tile__text { -webkit-line-clamp: 3; } }

/* ── Правки 22.10.2026 (6): живые детали картинок карточек ── */
/* Рамка картинки = кадр cover 50% 30%: проценты внутри — проценты самой картинки 2:3. Увеличение при наведении — у всей рамки. */
.hw-tile__body { container-type: size; }
.hw-tile__art { position: absolute; inset: 0; transform: scale(1.04); transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
@supports (width: 1cqw) {
    .hw-tile__art { inset: auto; left: 50%; top: 30%; width: max(100cqw, 66.667cqh); height: max(100cqh, 150cqw); translate: -50% -30%;
        transform-origin: 50% calc(20cqh + 30%); }
}
.hw-tile:hover .hw-tile__art { transform: scale(1.13); }
.hw-tile .hw-tile__body .hw-tile__art img { display: block; width: 100%; height: 100%; transform: none; }
.hw-tile__art i { position: absolute; pointer-events: none; font-style: normal; }

/* Разлом: по кольцу портала медленно идёт свет, второе кольцо — навстречу. */
.hw-fx-ring { left: 50%; top: 26%; width: 74%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen;
    background: conic-gradient(from 0deg, transparent 0 8%, rgba(150, 235, 255, .85) 14%, transparent 22% 50%, rgba(120, 200, 255, .6) 58%, transparent 66% 100%);
    -webkit-mask: radial-gradient(closest-side, transparent 74%, #000 82%, #000 92%, transparent 100%); mask: radial-gradient(closest-side, transparent 74%, #000 82%, #000 92%, transparent 100%);
    filter: blur(2px); animation: hwFxSpin 9s linear infinite; }
.hw-fx-ring--back { width: 60%; opacity: .55; animation-duration: 15s; animation-direction: reverse;
    -webkit-mask: radial-gradient(closest-side, transparent 30%, #000 70%, transparent 100%); mask: radial-gradient(closest-side, transparent 30%, #000 70%, transparent 100%); filter: blur(6px); }
@keyframes hwFxSpin { to { rotate: 360deg; } }

/* Истории: окна замка мерцают, солнце дышит. */
.hw-fx-win { left: var(--x); top: var(--y); width: 7%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen;
    background: radial-gradient(closest-side, rgba(255, 214, 120, .95), rgba(255, 150, 50, .4) 45%, transparent); opacity: .2;
    animation: hwFxWin 3.4s var(--d) ease-in-out infinite; }
@keyframes hwFxWin { 0%, 100% { opacity: .15; } 18% { opacity: .9; } 24% { opacity: .45; } 30% { opacity: .85; } 60% { opacity: .3; } }
.hw-fx-sun { left: var(--x); top: var(--y); width: 30%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen;
    background: radial-gradient(closest-side, rgba(255, 220, 140, .7), rgba(255, 140, 40, .25) 50%, transparent); animation: hwFxSun 5s ease-in-out infinite; }
@keyframes hwFxSun { 0%, 100% { opacity: .45; scale: .9; } 50% { opacity: 1; scale: 1.12; } }

/* Персонажи: редкие магические частицы — вспыхивают и тают, поднимаясь. */
.hw-fx-mote { left: var(--x); top: var(--y); width: 5px; height: 5px; border-radius: 50%; opacity: 0;
    background: #f3e6ff; box-shadow: 0 0 6px 2px rgba(200, 150, 255, .95), 0 0 16px 5px rgba(150, 90, 255, .5);
    animation: hwFxMote 9s var(--d) ease-out infinite; }
@keyframes hwFxMote { 0%, 70% { opacity: 0; transform: translate(0, 0) scale(.3); } 76% { opacity: 1; transform: translate(3px, -8px) scale(1.2); }
    92% { opacity: .6; } 100% { opacity: 0; transform: translate(-6px, -34px) scale(.3); } }

/* Компания: огоньки свечей и фонарей дрожат, по столу ходит тёплый свет. */
.hw-fx-flame { left: var(--x); top: var(--y); width: 10%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen;
    background: radial-gradient(closest-side, rgba(255, 220, 140, .9), rgba(255, 140, 40, .35) 50%, transparent); animation: hwFxFlame 1.7s var(--d) ease-in-out infinite; }
@keyframes hwFxFlame { 0%, 100% { opacity: .55; scale: 1; } 20% { opacity: .95; scale: 1.15; } 35% { opacity: .65; scale: .95; } 55% { opacity: 1; scale: 1.08; } 75% { opacity: .6; scale: 1; } }
.hw-fx-warm { inset: 18% 0 40%; mix-blend-mode: soft-light; background: radial-gradient(60% 50% at 30% 60%, rgba(255, 170, 70, .55), transparent 70%);
    animation: hwFxWarm 4.5s ease-in-out infinite; }
@keyframes hwFxWarm { 0%, 100% { opacity: .5; } 40% { opacity: .9; } 60% { opacity: .65; } 80% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .hw-tile__art i { animation: none; } .hw-fx-mote { display: none; } }

/* ══ Блоки главной в стиле первого экрана (22.10.2026) ═════════════════════
   .hs — блок со своим цветом --c: заголовок металлом, значок раздела, трещина сверху,
   панели-осколки (php/home_skin.php: hs_frame) с искрой по контуру. */
.section.hs { border-top: 0; padding: clamp(64px, 8vw, 112px) 0; }
.section.hs.founder-section, .section.hs.daily-section { padding: 46px 0 34px; }
.section.hs::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), transparent 72%); }
.section.hs > .hs-crack { position: absolute; z-index: 2; left: 0; top: -20px; width: 100%; height: 40px; overflow: visible; pointer-events: none;
    -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.hs-crack polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: bevel; stroke-linecap: round; }
.hs-crack__line { stroke: var(--c); stroke-width: 1.4; opacity: .65; filter: drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 9px var(--c)); }
.hs-crack__spark { stroke: #fff; stroke-width: 2.4; stroke-dasharray: 3 97; animation: hsCrack 9s linear infinite; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 9px var(--c)); }
@keyframes hsCrack { from { stroke-dashoffset: 3; } to { stroke-dashoffset: -100; } }

/* Заголовок: первая строка — металл, как надпись наверху; вторая — цветом раздела. */
.hs .h-section { font-family: 'Playfair Display', Georgia, serif; font-weight: 800; font-size: clamp(30px, 3.5vw, 50px); line-height: 1.06; letter-spacing: -.005em;
    color: #f2c27a; filter: drop-shadow(0 2px 0 rgba(60, 25, 8, .85)) drop-shadow(0 0 22px color-mix(in srgb, var(--c) 28%, transparent)); }
.hs .h-section .w:not(.grad) { background: linear-gradient(180deg, #fff6df 0%, #ffe3a8 24%, #f2b766 48%, #c9782f 66%, #f6c47c 80%, #8a4a1c 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hs .h-section .grad { background: linear-gradient(100deg, #fff 0%, color-mix(in srgb, var(--c) 65%, #fff) 28%, var(--c) 64%, color-mix(in srgb, var(--c) 70%, #000) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hs .resume-head .h-section { font-size: clamp(26px, 2.6vw, 36px); }

/* Метка блока — медальон со значком раздела. */
.hs .eyebrow { gap: 10px; padding: 5px 15px 5px 6px; color: color-mix(in srgb, var(--c) 80%, #fff); background: rgba(12, 9, 12, .72);
    border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 20%, transparent), inset 0 0 10px color-mix(in srgb, var(--c) 12%, transparent); }
.hs .eyebrow::before { width: 24px; height: 24px; border-radius: 0; box-shadow: none; animation: none; background: var(--c);
    -webkit-mask: var(--ico, none) center / 16px no-repeat; mask: var(--ico, none) center / 16px no-repeat; filter: drop-shadow(0 0 4px var(--c)); }
.hs.showcase .eyebrow, .hs.resume-section .eyebrow { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 5.5C5 4 8.5 4 12 6c3.5-2 7-2 9.5-.5v13c-2.5-1.5-6-1.5-9.5.5-3.5-2-7-2-9.5-.5z'/%3E%3Cpath d='M12 6v13'/%3E%3C/svg%3E"); }
.hs.rift-block .eyebrow { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 6.5l3.6 5.5-3.6 5.5-3.6-5.5z'/%3E%3C/svg%3E"); }
.hs.ai .eyebrow { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3.5l2 5.2 5.3 2-5.3 2.1-2 5.2-2.1-5.2-5.2-2.1 5.2-2z'/%3E%3Cpath d='M18.5 3v4M16.5 5h4'/%3E%3C/svg%3E"); }
.hs.party-block .eyebrow { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Ccircle cx='16.5' cy='9' r='2.5'/%3E%3Cpath d='M2.5 19.5c.6-3.3 2.9-5 5.5-5s4.9 1.7 5.5 5'/%3E%3Cpath d='M14.2 14.7c.7-.4 1.5-.6 2.3-.6 2.2 0 4 1.5 4.6 4.6'/%3E%3C/svg%3E"); }
.hs.join .eyebrow { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l8.5-8.5M16.5 6.5l2.5 2.5M14.5 8.5l2 2'/%3E%3C/svg%3E"); }

/* Главные кнопки — золотые, как на первом экране. */
.hs .btn:not(.btn--ghost):not(.btn--yandex):not(.btn--vk):not(.btn--more):not(.btn--sm) { color: #2a1406; border-color: transparent;
    background: linear-gradient(180deg, #ffd38a, #f19a3e); box-shadow: 0 10px 30px rgba(241, 154, 62, .3), inset 0 1px 0 rgba(255, 255, 255, .5); }
.hs .btn:not(.btn--ghost):not(.btn--yandex):not(.btn--vk):not(.btn--more):not(.btn--sm):hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(241, 154, 62, .48), inset 0 1px 0 rgba(255, 255, 255, .5); }

/* Панель-осколок: рамка и свет — отдельные слои под содержимым. */
.hs-panel { position: relative; isolation: isolate; background: none !important; border-color: transparent !important; border-radius: 0 !important; box-shadow: none !important; }
.hs-frame { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hs-frame__glow { position: absolute; inset: -6px; filter: blur(12px); opacity: .32; transition: opacity .35s ease; }
.hs-frame__glow span, .hs-frame__edge, .hs-frame__fill { position: absolute; clip-path: var(--shard); }
.hs-frame__glow span { inset: 0; background: var(--c); }
.hs-frame__edge { inset: 0; opacity: .8; background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 28%, #0a0808) 50%, var(--c)); }
.hs-frame__fill { inset: 1.5px; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 13%, transparent), transparent 60%), linear-gradient(180deg, rgba(20, 15, 18, .95), rgba(10, 8, 11, .97)); }
.hs-frame__run { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hs-frame__run polygon { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round;
    animation: hwRun var(--run, 14s) linear infinite; animation-delay: calc(var(--i, 0) * -2.3s); }
.hs-run__trail { stroke: var(--c); stroke-width: 2.5; stroke-dasharray: 5 95; opacity: .85; filter: drop-shadow(0 0 4px var(--c)) drop-shadow(0 0 8px var(--c)); }
.hs-frame__run .hs-run__spark { stroke: #fff; stroke-width: 2.2; stroke-dasharray: .8 99.2; animation-name: hsRunHead; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px var(--c)); }
@keyframes hsRunHead { from { stroke-dashoffset: -4.2; } to { stroke-dashoffset: -104.2; } }
a.hs-panel:hover .hs-frame__glow, .hs-panel:hover .hs-frame__glow { opacity: .75; }
a.hs-panel:hover .hs-frame__run polygon { animation-duration: 5s; }
.founder-strip.hs-panel { padding: 22px 28px; }
.daily-strip.hs-panel { padding: 14px 24px 14px 16px; }
.daily-strip.hs-panel .daily-strip__art { border-radius: 10px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 0 16px color-mix(in srgb, var(--c) 25%, transparent); }
.daily-strip.hs-panel .daily-strip__in small, .daily-strip.hs-panel .daily-strip__go { color: var(--c); }
.daily-strip.is-done.hs-panel { --c: #6fe39b; }
.rift-season.hs-panel { padding: 16px 24px; }
.chat.hs-panel { padding: 26px 24px; }
.room-demo.hs-panel { padding: clamp(22px, 2.8vw, 30px); }
.form-card.hs-panel { padding: 36px 32px; }
.founder-strip__swatches i { box-shadow: 0 0 10px currentColor; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.founder-strip:hover .founder-strip__swatches i { transform: translateY(-3px); }
.founder-strip:hover .founder-strip__swatches i:nth-child(2n) { transform: translateY(3px); }

/* Карточки витрины: при наведении по рамке бежит свет, карточка приподнимается. */
@property --hsA { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.hs .pcard { position: relative; isolation: isolate; border-color: rgba(255, 217, 154, .12); background: linear-gradient(180deg, rgba(30, 22, 16, .72), rgba(12, 9, 8, .88));
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.hs .pcard::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0;
    background: conic-gradient(from var(--hsA), transparent 0 62%, color-mix(in srgb, var(--c) 85%, transparent) 80%, #fff 86%, transparent 90%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .3s; }
.hs .pcard:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 40%, transparent);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .5), 0 0 26px color-mix(in srgb, var(--c) 26%, transparent); }
.hs .pcard:hover::after { opacity: 1; animation: hsSpin 2.6s linear infinite; }
@keyframes hsSpin { to { --hsA: 360deg; } }
.hs .pcard .pcard__img { transition: filter .4s; }
.hs .pcard:hover .pcard__img { filter: brightness(1.1) saturate(1.15); }
.hs .pcard--locked:hover { transform: none; }

/* Цифры Разлома — плитками, как цифры наверху. */
.hs .rift-numbers { gap: 10px; }
.hs .rift-numbers span { flex-direction: column; align-items: center; gap: 2px; min-width: 92px; padding: 10px 14px; border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); background: rgba(8, 14, 22, .6); backdrop-filter: blur(6px);
    transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), border-color .3s, box-shadow .3s; }
.hs .rift-numbers b { color: color-mix(in srgb, var(--c) 45%, #fff); text-shadow: 0 0 14px color-mix(in srgb, var(--c) 55%, transparent); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.hs .rift-numbers span:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 0 20px color-mix(in srgb, var(--c) 28%, transparent); }
.hs .rift-numbers span:hover b { transform: scale(1.12); }
.hs .rift-gift { border-color: rgba(255, 190, 106, .4); background: linear-gradient(100deg, rgba(255, 176, 93, .14), rgba(12, 9, 8, .6)); box-shadow: 0 0 22px rgba(255, 160, 60, .12); }

/* Миры Разлома — лента осколков. */
.hs-worlds { position: relative; margin-top: 30px; }
.hs-worlds__row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 26px 6px 30px; margin: -26px -6px -30px; overscroll-behavior-x: contain; }
.hs-worlds__row::-webkit-scrollbar { display: none; }
.hs-world { --run: 9s; position: relative; isolation: isolate; flex: none; width: clamp(230px, 19vw, 280px); height: clamp(340px, 30vw, 400px);
    scroll-snap-align: start; color: #fff; text-decoration: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.hs-world .hs-frame__glow { opacity: .4; }
.hs-world__art { position: absolute; inset: 2px; z-index: 0; overflow: hidden; clip-path: var(--shard); }
.hs-world__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .8s cubic-bezier(.2, .7, .3, 1), filter .4s; }
.hs-world__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 14, 0) 20%, rgba(6, 8, 14, .7) 52%, rgba(6, 8, 14, .96) 78%); transition: background .4s; }
.hs-world__in { position: absolute; z-index: 1; left: 18px; right: 16px; bottom: 22px; display: grid; gap: 4px; }
.hs-world__no { font-family: 'Playfair Display', Georgia, serif; font-weight: 800; font-size: 15px; color: var(--c); text-shadow: 0 0 10px var(--c); }
.hs-world__in b { font-size: 19px; line-height: 1.15; }
.hs-world__in small { font-size: 12.5px; font-weight: 700; color: color-mix(in srgb, var(--c) 70%, #fff); }
.hs-world__lore { font-size: 13px; line-height: 1.42; color: #c9d3dc; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 2px; }
.hs-world:hover { transform: translateY(-8px); z-index: 2; }
.hs-world:hover .hs-frame__glow { opacity: .95; }
.hs-world:hover .hs-frame__run polygon { animation-duration: 3s; }
.hs-world:hover .hs-world__art img { transform: scale(1.12); filter: saturate(1.2) brightness(1.05); }
.hs-world:hover .hs-world__art::after { background: linear-gradient(180deg, rgba(6, 8, 14, .1) 0%, rgba(6, 8, 14, .78) 34%, rgba(6, 8, 14, .97) 70%); }
.hs-world:hover .hs-world__lore { -webkit-line-clamp: 8; }
.hs-worlds__nav { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    font-size: 26px; line-height: 1; color: var(--c); background: rgba(8, 12, 20, .85); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--c) 30%, transparent); transition: opacity .25s, transform .25s, background-color .25s; }
.hs-worlds__nav:hover { background-color: color-mix(in srgb, var(--c) 25%, rgba(8, 12, 20, .9)); transform: scale(1.08); }
.hs-worlds__nav:disabled { opacity: 0; pointer-events: none; }
.hs-worlds__nav--prev { left: -22px; } .hs-worlds__nav--next { right: -22px; }
.rift-block.hs .rift-block__actions { margin-top: 34px; }

/* Списки «почему» — галочки в медальонах цвета блока. */
.hs .ai__list li svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; color: var(--c);
    border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: rgba(12, 9, 12, .7); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 25%, transparent); }

@media (max-width: 720px) {
    .section.hs { padding: 56px 0; }
    .hs-worlds__nav { display: none; }
    .hs-world { width: 74vw; height: 380px; }
    .hs-worlds__row { padding-left: 16px; padding-right: 16px; margin-left: -16px; margin-right: -16px; scroll-padding-left: 16px; }
    .founder-strip.hs-panel { padding: 22px 20px 26px; }
    .hs .rift-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .hs .rift-numbers span { min-width: 0; padding: 9px 4px; }
    .hs .rift-numbers b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .hs-crack__spark, .hs-frame__run { display: none; }
    .hs .pcard:hover::after { animation: none; }
}
/* Реплика друга — под портретами справа, не наезжает на значок карточки. */
.hw-tile__over .hero-friends__bubble { align-self: flex-end; width: auto; max-width: calc(100% - 58px); border-radius: 13px 13px 4px 13px; }

/* ── Правки 22.10.2026 (hs-2): «Продолжить» плотнее, блок «Друзья» ── */
/* «Продолжить»: карточки в строку — картинка слева, текст справа; ряд заполняется целиком. */
.hs.resume-section .resume-cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.hs.resume-section .resume-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: stretch; min-height: 100px; border-radius: 16px;
    border-color: rgba(255, 217, 154, .14); background: linear-gradient(100deg, rgba(30, 22, 16, .8), rgba(12, 9, 8, .9)); }
.hs.resume-section .resume-card:hover { transform: translateY(-4px); border-color: rgba(255, 190, 106, .5); box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 22px rgba(255, 160, 60, .18); }
.hs.resume-section .resume-card__art { aspect-ratio: auto; height: 100%; min-height: 100px; }
.hs.resume-section .resume-card__in { padding: 11px 14px 12px; }
.hs.resume-section .resume-card__in .resume-card__go { padding-top: 6px; }
.hs.resume-section .shell { border-color: rgba(255, 217, 154, .12); }
.hs.resume-section .resume-daily { margin-top: 12px; }

/* Друзья: слева — что это, справа — четверо из Telegram с тем, чем заняты сейчас. */
.hs.friends-block .eyebrow { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.4-4.5-9.1-9.3C1.8 7.4 3.9 4 7.2 4c2 0 3.6 1.1 4.8 2.9C13.2 5.1 14.8 4 16.8 4c3.3 0 5.4 3.4 4.3 6.7C19.4 15.5 12 20 12 20z'/%3E%3C/svg%3E"); }
.friends-block__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 5vw, 68px); align-items: center; }
.hs-mates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hs-mate { --run: 8s; position: relative; isolation: isolate; display: block; height: clamp(220px, 19vw, 270px); color: #fff; text-decoration: none;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.hs-mate:nth-child(even) { translate: 0 18px; }
.hs-mate__art { position: absolute; inset: 2px; z-index: 0; overflow: hidden; clip-path: var(--shard); background: #1a1016; }
.hs-mate__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.hs-mate__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(14, 8, 12, .75) 66%, rgba(14, 8, 12, .95)); }
.hs-mate__in { position: absolute; z-index: 1; left: 16px; right: 14px; bottom: 16px; display: grid; gap: 2px; }
.hs-mate__in b { font-size: 17px; }
.hs-mate__in small { font-size: 12.5px; font-weight: 700; color: color-mix(in srgb, var(--c) 75%, #fff); }
.hs-mate__st { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #d9cdd2; white-space: nowrap; overflow: hidden; }
.hs-mate__st i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #7a7571; }
.hs-mate__st.is-free i { background: #4fd18b; box-shadow: 0 0 8px #4fd18b; animation: hfPulse 2.2s ease-out infinite; }
.hs-mate__st.is-busy i, .hs-mate__st.is-away i { background: #ffb347; }
.hs-mate:hover { transform: translateY(-8px); z-index: 2; }
.hs-mate:hover .hs-frame__glow { opacity: .95; }
.hs-mate:hover .hs-frame__run polygon { animation-duration: 3s; }
.hs-mate:hover .hs-mate__art img { transform: scale(1.08); }
@media (max-width: 900px) { .friends-block__grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
    .hs-mates { gap: 12px; }
    .hs-mate { height: 220px; }
    .hs-mate:nth-child(even) { translate: 0 12px; }
}
.hs .rift-block__actions .btn span { color: inherit; font-size: inherit; }
@media (max-width: 560px) {
    .hs.resume-section .resume-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
    .hs.resume-section .resume-cards::-webkit-scrollbar { display: none; }
    .hs.resume-section .resume-card { scroll-snap-align: start; }
}

/* ── Правки 22.10.2026 (hs-3): «Продолжить» осколками, заголовок и вкладки каталога ── */
/* «Продолжить»: без отдельной панели; каждая начатая игра — осколок с обложкой во весь кадр и рамкой своего цвета. */
.hs.resume-section .shell { padding: 0; border: 0; border-radius: 0; background: none; }
.hs.resume-section .resume-cards { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; padding: 8px 2px 12px; }
.hs.resume-section .resume-card { --run: 9s; display: block; position: relative; isolation: isolate; height: clamp(230px, 18vw, 270px); min-height: 0;
    border: 0; border-radius: 0; background: none; overflow: visible; box-shadow: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.hs.resume-section .resume-card:hover { transform: translateY(-8px); box-shadow: none; z-index: 2; }
.hs.resume-section .resume-card:hover .hs-frame__glow { opacity: .95; }
.hs.resume-section .resume-card:hover .hs-frame__run polygon { animation-duration: 3s; }
.hs.resume-section .resume-card__art { position: absolute; inset: 2px; z-index: 0; height: auto; min-height: 0; aspect-ratio: auto; border-radius: 0;
    clip-path: var(--shard); overflow: hidden; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 22%, #120d10), #0c090c 70%); }
.hs.resume-section .resume-card__blur { display: none; }
.hs.resume-section .resume-card__pic { background-size: cover; background-position: center 25%; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.hs.resume-section .resume-card:hover .resume-card__pic { transform: scale(1.08); }
.hs.resume-section .resume-card__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 32%, rgba(10, 8, 11, .8) 62%, rgba(10, 8, 11, .97)); }
.hs.resume-section .resume-card__icon { position: absolute; left: 50%; top: 32%; translate: -50% -50%; font-size: 44px; opacity: 1; color: var(--c); text-shadow: 0 0 18px var(--c); }
.hs.resume-section .resume-card__in { position: absolute; z-index: 1; inset: auto 14px 16px 16px; padding: 0; background: none; display: grid; gap: 2px; }
.hs.resume-section .resume-card__in b { font-size: 16px; line-height: 1.2; }
.hs.resume-section .resume-card__in small { font-size: 12px; color: color-mix(in srgb, var(--c) 55%, #d8cfc4); }
.hs.resume-section .resume-card__in .resume-card__go { margin-top: 6px; padding-top: 0; color: var(--c); opacity: 1; font-size: 13px; }
.hs.resume-section .resume-daily { margin-top: 18px; }
@media (max-width: 560px) {
    .hs.resume-section .resume-cards { grid-auto-columns: 58%; padding-left: 4px; }
    .hs.resume-section .resume-card { height: 230px; }
}

/* Каталог: заголовок как у остальных блоков; вкладки — со значками разделов. */
.showcase__head { margin-bottom: 26px; }
.hs .showcase__tab::before { content: ''; flex: none; width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--ico, none) center / 17px no-repeat; mask: var(--ico, none) center / 17px no-repeat; }
.hs .showcase__tab[data-showcase="stories"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 5.5C5 4 8.5 4 12 6c3.5-2 7-2 9.5-.5v13c-2.5-1.5-6-1.5-9.5.5-3.5-2-7-2-9.5-.5z'/%3E%3Cpath d='M12 6v13'/%3E%3C/svg%3E"); }
.hs .showcase__tab[data-showcase="ai"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3.5l2 5.2 5.3 2-5.3 2.1-2 5.2-2.1-5.2-5.2-2.1 5.2-2z'/%3E%3Cpath d='M18.5 3v4M16.5 5h4'/%3E%3C/svg%3E"); }
.hs .showcase__tab[data-showcase="party"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Ccircle cx='16.5' cy='9' r='2.5'/%3E%3Cpath d='M2.5 19.5c.6-3.3 2.9-5 5.5-5s4.9 1.7 5.5 5'/%3E%3Cpath d='M14.2 14.7c.7-.4 1.5-.6 2.3-.6 2.2 0 4 1.5 4.6 4.6'/%3E%3C/svg%3E"); }
.hs .showcase__tab[data-showcase="mini"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 8h11a4 4 0 0 1 3.9 4.8l-.8 4a2.5 2.5 0 0 1-4.3 1.1L14.5 16h-5l-1.8 1.9a2.5 2.5 0 0 1-4.3-1.1l-.8-4A4 4 0 0 1 6.5 8z'/%3E%3Cpath d='M8 11v3M6.5 12.5h3'/%3E%3C/svg%3E"); }
.hs .showcase__tab[data-showcase="friends"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.4-4.5-9.1-9.3C1.8 7.4 3.9 4 7.2 4c2 0 3.6 1.1 4.8 2.9C13.2 5.1 14.8 4 16.8 4c3.3 0 5.4 3.4 4.3 6.7C19.4 15.5 12 20 12 20z'/%3E%3C/svg%3E"); }
.hs .showcase__tab[data-showcase="board"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='4'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.2' fill='%23000'/%3E%3Ccircle cx='15.5' cy='8.5' r='1.2' fill='%23000'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='%23000'/%3E%3Ccircle cx='8.5' cy='15.5' r='1.2' fill='%23000'/%3E%3Ccircle cx='15.5' cy='15.5' r='1.2' fill='%23000'/%3E%3C/svg%3E"); }
.hs .showcase__tab:not(.is-active):hover { box-shadow: 0 0 18px rgba(255, 190, 106, .18); }

/* Вкладка «Друзья»: портреты, роль и чем занят(а) сейчас. */
.showcase__grid--friends .pcard__img--face { background-position: center 20%; }
.pcard--new-friend .pcard__img { background: radial-gradient(circle at 50% 40%, rgba(255, 127, 168, .3), rgba(20, 10, 16, .9) 70%); }
.pcard--new-friend .pcard__img i { font-size: 54px; opacity: .9; color: #ff9fbf; text-shadow: 0 0 22px #ff7fa8; }
.pcard__meta .pcard__st { display: inline-flex; align-items: center; gap: 5px; }
.pcard__meta .pcard__st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #7a7571; }
.pcard__meta .pcard__st.is-free::before { background: #4fd18b; box-shadow: 0 0 6px #4fd18b; }
.pcard__meta .pcard__st.is-busy::before, .pcard__meta .pcard__st.is-away::before { background: #ffb347; }
.showcase__grid.showcase__grid--friends { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.showcase__grid--friends .pcard__img--face { aspect-ratio: 4 / 5; }
@media (max-width: 560px) { .showcase__grid.showcase__grid--friends { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* «Убрать из списка» у карточек «Продолжить». */
.resume-slot { position: relative; min-width: 0; transition: opacity .3s, transform .3s; }
.resume-slot.is-gone { opacity: 0; transform: scale(.92); }
.hs.resume-section .resume-slot { scroll-snap-align: start; }
.resume-hide { position: absolute; z-index: 6; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; font: 400 18px/1 system-ui, sans-serif; color: #f2e8d8; border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(10, 8, 12, .7); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s, background-color .2s, transform .2s; }
.resume-slot:hover .resume-hide, .resume-hide:focus-visible { opacity: 1; }
.resume-hide:hover { background: rgba(160, 40, 50, .8); transform: scale(1.08); }
@media (hover: none) { .resume-hide { opacity: .85; } }


/* 27.10: content determines shard height; short screens scroll rather than clip CTAs. */
.hero.hw { padding-bottom: 44px; }
.hw-tiles { align-items: stretch; }
.hw-tile { display: flex; flex-direction: column; justify-content: flex-end;
    height: auto; min-height: clamp(280px, 35vh, 380px); padding-top: 100px; box-sizing: border-box; }
.hw-tile__content { position: relative; top: auto; bottom: auto; left: auto; right: auto;
    width: 100%; box-sizing: border-box; padding: 0 20px 26px; gap: 5px; }
.hw-tile__title { min-height: 2.24em; }
.hw-tile__lead { min-height: 2.6em; }
.hw-tile__text { -webkit-line-clamp: 2; min-height: 2.84em; }
.hw-tile__go { margin-top: 8px; min-height: 44px; box-sizing: border-box;
    display: inline-flex; align-items: center; gap: 6px; max-width: 100%; white-space: normal; }
@media (min-width: 721px) and (max-width: 1499px) {
    .hw-tile { min-height: 260px; }
}
@media (max-width: 720px) {
    .hero.hw { padding-bottom: 20px; }
    .hw-tile { min-height: 320px; }
}
