/* ═══ Главная (Explore) ═════════════════════════════════════════════════
   Кинокадр-герой (с роликом в начале сессии), инструменты плиткой с
   объёмными иконками, витрина моделей, полоса-призыв, игры сообщества,
   галерея и полоса со стеклянной призмой в конце. Всё — под .ex, чтобы не
   задеть другие страницы.

   Правило владельца: переливающаяся заливка — только у главной кнопки героя.
   Остальное — нейтральное стекло; «сияние» — лишь кромкой при наведении.

   Главная — во всю ширину экрана (просьба владельца 26.09): у разделов нет
   узкой колонки по центру, только боковой отступ var(--gutter); на широких
   экранах сетки добавляют колонки. Полноширинных непрозрачных подложек у
   разделов нет — между карточками и сквозь стекло видно сияние фона.
   ═══════════════════════════════════════════════════════════════════════ */

.ex {
    --ex-gap: 14px;
    --ex-edge: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.07));
    --ex-edge-lit: linear-gradient(135deg, rgba(213, 207, 236, 0.85), rgba(197, 226, 227, 0.4) 45%, rgba(214, 223, 199, 0.6));
    /* Стекло поверх фото — без backdrop-filter (26.09, лаги): тёмная
       полупрозрачная подложка плотнее, блик и кромка — тенями. */
    --ex-glass: rgba(10, 10, 16, 0.62);
}
.ex .container { max-width: none; }
.ex .site-foot .foot-inner, .ex .site-foot .foot-bottom { max-width: none; }

/* Кромка-градиент (маской) и свет под курсором — общий приём карточек страницы. */
.ex-tool, .ex-model, .ex-pol, .ex-game, .ex-game-lead, .ex-game-end, .ex-teaser, .ex-feat, .ex-art, .exh-frame, .exe-card {
    position: relative;
    isolation: isolate;
}
.ex-tool::before, .ex-model::before, .ex-pol::before, .ex-game::before, .ex-game-lead::before, .ex-game-end::before,
.ex-teaser::before, .ex-feat::before, .ex-art::before, .exh-frame::before, .exe-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: 1px;
    border-radius: inherit;
    background: var(--ex-edge);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background var(--dur-3) ease, opacity var(--dur-3) ease;
}
.ex-lit::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, 0.11), transparent 46%);
    opacity: 0;
    transition: opacity var(--dur-3) ease;
    pointer-events: none;
}
.ex-lit:hover::after { opacity: 1; }
.ex-lit:hover::before, .ex-lit:focus-visible::before { background: var(--ex-edge-lit); }
.ex-lit:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ── Разделы и заголовки ───────────────────────────────────────────────── */
.ex-sec { margin-top: clamp(72px, 9vw, 128px); }
.ex-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: clamp(18px, 2.4vw, 28px);
}
.ex-head > div:first-child { min-width: 0; }
.ex-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-3);
}
.ex-head .eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 244, 247, 0.45));
}
.ex-head .h2 { font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.02em; }
.ex-sub { margin-top: 10px; color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.ex-head-end { display: flex; align-items: center; gap: 8px; }
.ex-more svg { transition: transform var(--dur-2) var(--ease-out); }
.ex-more:hover svg { transform: translateX(3px); }

/* Появление при прокрутке: до попадания в окно — спрятано, дальше — .reveal из base.css. */
.ex-rv:not(.reveal) { opacity: 0; transform: translate3d(0, 18px, 0); }
.ex .reveal { animation-duration: 760ms; animation-delay: calc(var(--i, 0) * 70ms); }

/* ═══ 1. Герой ══════════════════════════════════════════════════════════ */
.exh { padding-top: 14px; }
.exh-frame {
    height: clamp(540px, calc(100dvh - var(--nav-h) - var(--tabs-h) - 124px), 800px);
    overflow: hidden;
    border-radius: var(--r-2xl);
    background: #04040a;
    box-shadow:
        0 60px 140px -60px rgba(226, 222, 242, 0.12),
        0 40px 100px -60px rgba(226, 222, 242, 0.113),
        var(--sh-3);
}
.exh-frame::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.05) 35%, rgba(255, 255, 255, 0.1)); }

.exh-media {
    position: absolute;
    left: 0;
    right: 0;
    top: -18%;
    bottom: -2%;
    will-change: transform;
    animation: exh-in 1.6s var(--ease-out) both;
}
.exh-pic { display: block; width: 100%; height: 100%; }
.exh-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 56%;
    transform-origin: 20% 62%;
    animation: exh-kb 36s var(--ease-in-out) infinite alternate;
}
@keyframes exh-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes exh-kb {
    from { transform: scale(1.04); }
    to { transform: scale(1.16) translate3d(1.4%, -1.2%, 0); }
}
/* Оживший кадр (explore.js heroIntro): ролик лежит поверх той же картинки,
   размер и transform считает JS так, чтобы кадр ролика совпал с <img>. Пока
   он идёт, наезд картинки стоит на первом кадре; ролик кончился — гаснет на
   последнем кадре (он почти равен картинке) и уходит, наезд продолжается. */
.exh-frame.is-intro .exh-img { animation-play-state: paused; }
.exh-intro {
    position: absolute;
    left: 0;
    top: 0;
    max-width: none;
    object-fit: fill;
    transform-origin: 0 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease-out;
}
.exh-intro.is-on { opacity: 1; }
.exh-intro.is-out { opacity: 0; transition: opacity 600ms var(--ease-in-out); }
.exh-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.62) 28%, rgba(0, 0, 0, 0.12) 58%, rgba(0, 0, 0, 0) 76%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0) 56%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 20%);
}

.exh-body {
    position: absolute;
    z-index: 2;
    left: clamp(24px, 4.6vw, 72px);
    bottom: clamp(28px, 5vw, 72px);
    width: min(820px, calc(100% - 48px));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    will-change: transform, opacity;
}
.exh-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 12px 0 14px;
    border-radius: var(--r-pill);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)), rgba(12, 12, 18, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 30px -12px rgba(0, 0, 0, 0.8);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text);
    transition: background var(--dur-2) ease, box-shadow var(--dur-2) ease;
    animation: exh-rise 900ms var(--ease-out) 150ms both;
}
.exh-pill:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)), rgba(12, 12, 18, 0.5); }
.exh-pill svg { width: 15px; height: 15px; color: var(--text-3); transition: transform var(--dur-2) var(--ease-out), color var(--dur-2) ease; }
.exh-pill:hover svg { transform: translateX(3px); color: var(--text); }
.exh-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--lime-hi);
    position: relative;
    box-shadow: 0 0 0 3px rgba(209, 219, 192, 0.14), 0 0 12px rgba(226, 222, 242, 0.12);
}
/* Пульс — кольцом ::after: растёт и гаснет (transform + opacity, на композиторе).
   Раньше ключевые кадры меняли box-shadow — перерисовка каждый кадр. */
.exh-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(209, 219, 192, 0.42);
    animation: exh-pulse 2.6s var(--ease-out) infinite;
}
@keyframes exh-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    70%, 100% { transform: scale(2.8); opacity: 0; }
}

.exh-title {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    font-size: clamp(34px, 4.8vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    text-wrap: balance;
}
.exh-title > span:first-child { text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45); animation: exh-rise 900ms var(--ease-out) 250ms both; }
/* Слоган — подзаголовком под описательным h1 (решение 27.09, ARCHITECTURE §10.1). */
.exh-slogan {
    margin-top: -8px;
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    font-size: clamp(20px, 2.3vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.exh-slogan .text-aurora {
    display: inline-block;
    padding-bottom: 0.06em;
    /* Без filter: drop-shadow — перелив перерисовывает строку каждый кадр, и
       свечение (почти невидимое, 0.087) пересчитывалось вместе с ней. */
    /* Перелив (background-position) перерисовывает строку каждый кадр — два
       прохода после появления и стоп: градиент замкнут, конец = начало. */
    animation: aurora-flow 14s linear 2, exh-rise 900ms var(--ease-out) 360ms both;
}
.exh-lead {
    max-width: 34em;
    font-size: clamp(15px, 1.3vw, 19px);
    line-height: 1.5;
    color: rgba(244, 244, 247, 0.8);
    text-wrap: pretty;
    animation: exh-rise 900ms var(--ease-out) 460ms both;
}
.exh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
    animation: exh-rise 900ms var(--ease-out) 560ms both;
}
.exh-actions .btn { border-radius: var(--r-pill); }
.exh-actions .btn-glass { background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)); }
@keyframes exh-rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }

/* Карточка «промпта» кадра: текст печатается сам, нажатие — в студию. */
.exh-prompt {
    position: absolute;
    z-index: 2;
    right: clamp(20px, 2.8vw, 40px);
    bottom: clamp(28px, 5vw, 72px);
    width: 318px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 14px;
    border-radius: 20px;
    /* Без backdrop-filter: под карточкой медленно наезжает кадр героя —
       размытие пересчитывалось каждый кадр. Дымчатое стекло — плотнее подложка. */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), rgba(8, 8, 14, 0.7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 24px 60px -24px rgba(0, 0, 0, 0.95);
    transition: transform var(--dur-3) var(--ease-out), background var(--dur-2) ease, box-shadow var(--dur-3) ease;
    animation: exh-rise 900ms var(--ease-out) 800ms both;
}
.exh-prompt:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)), rgba(10, 10, 18, 0.76);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 70px -24px rgba(0, 0, 0, 0.95), 0 0 50px -20px rgba(226, 222, 242, 0.113);
}
.exp-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    /* --text-2, не --text-3: карточка стоит на светлом склоне нового кадра — 3.6:1 было ниже AA. */
    color: var(--text-2);
}
.exp-head > svg { width: 14px; height: 14px; }
.exp-chips { margin-left: auto; display: flex; gap: 4px; }
.exp-chips .chip { height: 20px; letter-spacing: 0; text-transform: none; font-size: 11px; }
.exp-text { display: grid; font-size: var(--fs-md); line-height: 1.5; color: var(--text); }
.exp-ghost, .exp-live { grid-area: 1 / 1; }
.exp-ghost { visibility: hidden; }
.exp-caret {
    display: inline-block;
    width: 2px;
    height: 1.15em;
    margin-left: 2px;
    vertical-align: -0.22em;
    border-radius: 1px;
    background: var(--text);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    animation: exp-blink 1.05s steps(1) infinite;
}
@keyframes exp-blink { 50% { opacity: 0; } }
.exp-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--text-2);
    transition: color var(--dur-2) ease;
}
.exp-foot svg { width: 15px; height: 15px; transition: transform var(--dur-2) var(--ease-out); }
.exh-prompt:hover .exp-foot { color: var(--text); }
.exh-prompt:hover .exp-foot svg { transform: translateX(3px); }

/* ═══ 2. Логотипы ══════════════════════════════════════════════════════ */
.exl-slot { height: 64px; }
.exl {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 26px;
    min-height: 38px;
    animation: exh-rise 900ms var(--ease-out) both;
}
.exl-label {
    flex: 0 0 auto;
    max-width: 170px;
    font-size: var(--fs-sm);
    line-height: 1.35;
    color: var(--text-3);
}
.exl-viewport {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.exl-track {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 40px;
    padding-right: 40px;
    list-style: none;
    animation: exl-run 56s linear infinite;
}
.exl-viewport:hover .exl-track { animation-play-state: paused; }
@keyframes exl-run { to { transform: translate3d(-100%, 0, 0); } }
.exl-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: var(--fw-semibold);
    letter-spacing: -0.01em;
    color: var(--text-2);
    opacity: 0.62;
    filter: grayscale(1);
    transition: opacity var(--dur-3) ease, filter var(--dur-3) ease;
}
.exl-item:hover { opacity: 1; filter: none; }
.exl-item img { width: 24px; height: 24px; object-fit: contain; }

/* ═══ 3. Инструменты ═══════════════════════════════════════════════════ */
.ex-tools {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(220px, 19vw, 280px);
    gap: var(--ex-gap);
}
.ex-tool[data-tool="image"] { grid-column: 1 / span 4; grid-row: 1 / span 2; }
.ex-tool[data-tool="video"] { grid-column: 5 / span 8; grid-row: 1; }
.ex-tool[data-tool="voice"] { grid-column: 5 / span 4; grid-row: 2; }
.ex-tool[data-tool="music"] { grid-column: 9 / span 4; grid-row: 2; }
.ex-tool[data-tool="games"] { grid-column: 1 / span 7; grid-row: 3; }
.ex-tool[data-tool="chat"] { grid-column: 8 / span 5; grid-row: 3; }

.ex-tool {
    display: block;
    overflow: hidden;
    border-radius: var(--r-2xl);
    background: #07070c;
    box-shadow: var(--sh-2);
    transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.ex-tool:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-3), 0 40px 90px -44px rgba(226, 222, 242, 0.12), 0 24px 70px -44px rgba(226, 222, 242, 0.12);
}
.ext-media { position: absolute; inset: 0; z-index: 0; }
.ext-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: saturate(0.92) brightness(0.9);
    transition: transform 1100ms var(--ease-out), filter 600ms ease;
}
.ex-tool[data-tool="video"] .ext-media img { object-position: 50% 42%; }
.ex-tool[data-tool="chat"] .ext-media img { object-position: 52% 50%; }
.ex-tool[data-tool="games"] .ext-media img { object-position: 50% 40%; }
.ex-tool:hover .ext-media img { transform: scale(1.09); filter: saturate(1.06) brightness(1); }
.ext-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0) 26%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 32%, rgba(0, 0, 0, 0) 58%);
}
.ext-top {
    position: absolute;
    z-index: 3;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ext-ic {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #fff;
    background: var(--ex-glass);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px -10px rgba(0, 0, 0, 0.8);
}
.ext-ic svg { width: 20px; height: 20px; }
/* Объёмная иконка раздела (img/icons3d): фарфор и матовое стекло, фон
   вырезан. Тень запечена фильтром на маленькой картинке (статичной), при
   наведении иконка чуть приподнимается — только transform. */
.ext-i3d { display: block; width: 64px; height: 64px; flex: 0 0 auto; margin: -8px 0 0 -8px; }
.ext-i3d img {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.55));
    transition: transform var(--dur-3) var(--ease-spring);
}
.ex-tool:hover .ext-i3d img { transform: translate3d(0, -3px, 0) rotate(-5deg) scale(1.05); }
.ext-count {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 11px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: var(--fw-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--text);
    background: var(--ex-glass);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: exh-in 500ms ease both;
}
.ext-body {
    position: absolute;
    z-index: 3;
    left: 22px;
    right: 80px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ext-title {
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    font-size: clamp(20px, 1.9vw, 28px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.ext-desc { font-size: var(--fs-md); line-height: 1.4; color: rgba(244, 244, 247, 0.74); text-wrap: pretty; }
.ext-go {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)), var(--ex-glass);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: transform var(--dur-3) var(--ease-spring), background var(--dur-2) ease, color var(--dur-2) ease;
}
.ext-go svg { width: 19px; height: 19px; }
.ex-tool:hover .ext-go, .ex-tool:focus-visible .ext-go { background: #fff; color: #07070b; transform: rotate(-45deg); }

/* ═══ 4. Модели ════════════════════════════════════════════════════════ */
.ex-filter-wrap {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.ex-filter-wrap::-webkit-scrollbar { display: none; }
.ex-filter { width: max-content; }
.ex-filter > button { flex: 0 0 auto; min-height: 40px; padding: 0 14px; }

.ex-models {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ex-gap);
}
/* «Все»: промо-карточка 2×2 слева сверху, модели — вокруг (как у Higgsfield). */
.ex-models.is-all > .ex-pol { grid-column: span 2; grid-row: span 2; }
.exm-skel { min-height: 204px; border-radius: var(--r-xl); }
.ex-model {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 204px;
    padding: 18px 18px 14px;
    overflow: hidden;
    border-radius: var(--r-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 55%),
        rgba(12, 12, 18, 0.6);
    /* Без backdrop-filter: под карточками — мягкий фон, размытие его почти не
       меняло, а считалось под каждой карточкой каждый кадр прокрутки. */
    box-shadow: var(--sh-1);
    transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), background var(--dur-2) ease;
}
.ex-model:hover {
    transform: translateY(-3px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 55%),
        rgba(14, 14, 22, 0.74);
    box-shadow: var(--sh-2), 0 28px 60px -36px rgba(226, 222, 242, 0.12);
}
.exm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.exm-logo {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(180deg, #1d1d28, #101017);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 22px -12px rgba(0, 0, 0, 0.9);
    transition: transform var(--dur-3) var(--ease-spring);
}
.exm-logo img { width: 26px; height: 26px; object-fit: contain; }
.ex-model:hover .exm-logo { transform: scale(1.06) rotate(-4deg); }
.exm-kind {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: var(--fw-medium);
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}
.exm-kind svg { width: 13px; height: 13px; }
.exm-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    min-width: 0;
    margin-top: 16px;
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    letter-spacing: -0.01em;
}
.exm-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exm-name .badge { flex: 0 0 auto; }
/* У «Бесплатно» в общем стиле нет кромки, у TOP/NEW — есть; на витрине выравниваем. */
.ex .badge-free { box-shadow: inset 0 0 0 1px rgba(62, 224, 143, 0.42); }
.exm-desc {
    font-size: 13.5px;
    line-height: 1.42;
    color: var(--text-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.exm-chips { flex-wrap: nowrap; overflow: hidden; -webkit-mask: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
.exm-chips .chip { flex: 0 0 auto; }

/* Низ карточки: цена (или «на любом тарифе») и метка «Дорогая» / «Флагман». */
.exm-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.exm-foot .mp-price { gap: 4px; font-size: 13px; color: var(--text); }
.exm-foot .mp-price .faint { font-weight: var(--fw-medium); }
.exm-foot .mp-free { color: var(--success); }
.exm-foot .mp-free svg { width: 14px; height: 14px; color: var(--success); }
.exm-unit { margin-left: 1px; }
.exm-plan { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: var(--fw-medium); color: var(--text-3); white-space: nowrap; }
.exm-plan svg { width: 14px; height: 14px; color: var(--text-2); }
.exm-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 9px 0 8px;
    border-radius: var(--r-pill);
    font-size: 11.5px;
    font-weight: var(--fw-semibold);
    color: #eee0cb;
    white-space: nowrap;
    background: linear-gradient(180deg, rgba(224, 196, 154, 0.12), rgba(224, 196, 154, 0.05));
    box-shadow: inset 0 0 0 1px rgba(224, 196, 154, 0.3);
}
.exm-flag svg { width: 12px; height: 12px; color: var(--amber); }
.ex-model.is-pricey:hover { box-shadow: var(--sh-2), 0 28px 60px -36px rgba(226, 222, 242, 0.113); }
.ex-model.is-free:hover { box-shadow: var(--sh-2), 0 28px 60px -36px rgba(62, 224, 143, 0.45); }
/* Бесплатная норма GPT Image — только в низком качестве: пишем прямо у счётчика. */
.exm-q { margin-left: 6px; font-weight: var(--fw-medium); color: var(--text-3); white-space: nowrap; }

/* Видимых карточек — два полных ряда при любом числе колонок: 4 колонки — 8,
   3 — 9, 6 — 12, 7 — 14 (правила ширины — в «Адаптиве»). В «Все» моделей 10:
   девятая и десятая нужны только сетке в 7 колонок. */
.ex-models > a.ex-model:nth-of-type(n + 9) { display: none; }

/* Видеомодель: живой ролик во всю карточку, текст — на мягком затемнении снизу. */
.ex-model.has-clip { background: #07070c; }
.ex-model.has-clip > :not(.exm-clip):not(.exm-scrim) { position: relative; z-index: 3; }
.exm-clip, .exm-scrim { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.exm-clip { z-index: 0; overflow: hidden; background: #07070c; }
.exm-clip img, .exm-clip video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.exm-clip img { filter: saturate(0.92) brightness(0.9); transition: transform 1100ms var(--ease-out); }
.exm-clip video { opacity: 0; transition: opacity var(--dur-3) ease, transform 1100ms var(--ease-out); }
.exm-clip.is-playing video { opacity: 1; }
.ex-model.has-clip:hover .exm-clip img, .ex-model.has-clip:hover .exm-clip video { transform: scale(1.04); }
.exm-scrim {
    z-index: 1;
    background:
        linear-gradient(0deg, rgba(7, 7, 11, 0.96) 0%, rgba(7, 7, 11, 0.86) 36%, rgba(7, 7, 11, 0.34) 68%, rgba(7, 7, 11, 0.08) 100%),
        linear-gradient(180deg, rgba(7, 7, 11, 0.42) 0%, transparent 34%);
}
.ex-model.has-clip .exm-kind { background: rgba(10, 10, 16, 0.66); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.ex-model.has-clip .exm-logo { background: rgba(14, 14, 22, 0.74); }
.ex-model.has-clip .exm-name { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7); }
.ex-model.has-clip .exm-foot { border-top-color: rgba(255, 255, 255, 0.09); }

/* ── Промо «Все нейросети на любом тарифе» ─────────────────────────────
   Плитки-логотипы лежат на наклонной плоскости (изометрия), по ним бежит
   мягкая волна; текст — снизу слева на тёмном градиенте. */
.ex-pol {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 422px;
    overflow: hidden;
    border-radius: var(--r-2xl);
    background:
        radial-gradient(70% 60% at 78% 18%, rgba(157, 149, 204, 0.34), transparent 70%),
        radial-gradient(50% 50% at 96% 60%, rgba(146, 196, 198, 0.14), transparent 70%),
        linear-gradient(160deg, rgba(15, 14, 26, 0.9), rgba(7, 7, 12, 0.82) 60%);
    box-shadow: var(--sh-2), 0 50px 120px -60px rgba(226, 222, 242, 0.12);
}
.ex-pol.exm-skel { background: rgba(255, 255, 255, 0.04); box-shadow: none; }
.expo-deck {
    position: absolute;
    z-index: 0;
    top: 0;
    right: -9%;
    width: 50%;
    height: 100%;
    display: grid;
    place-items: center;
    perspective: 1100px;
    pointer-events: none;
}
.expo-plane {
    display: grid;
    grid-template-columns: repeat(3, 58px);
    gap: 14px;
    transform: translate3d(4%, 6%, 0) rotateX(54deg) rotateZ(-36deg);
    transform-style: preserve-3d;
}
.expo-tile {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03)), rgba(16, 16, 24, 0.9);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 18px 26px -10px rgba(0, 0, 0, 0.9);
    animation: expo-wave 6s var(--ease-in-out) infinite;
    animation-delay: calc(var(--k) * -0.5s);
}
.expo-tile img { width: 30px; height: 30px; object-fit: contain; }
/* Волна: плитка приподнимается и загорается кромкой — по очереди. Подъём —
   transform, загорание — прозрачность ::after с готовыми «горящими» тенями:
   раньше ключевые кадры меняли box-shadow, и девять плиток перерисовывались
   каждый кадр. */
.expo-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(213, 207, 236, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 22px 30px -14px rgba(0, 0, 0, 0.7), 0 0 36px rgba(226, 222, 242, 0.12);
    opacity: 0;
    pointer-events: none;
    animation: expo-glow 6s var(--ease-in-out) infinite;
    animation-delay: calc(var(--k) * -0.5s);
}
@keyframes expo-wave {
    0%, 70%, 100% { transform: translateZ(0); }
    35% { transform: translateZ(22px); }
}
@keyframes expo-glow {
    0%, 70%, 100% { opacity: 0; }
    35% { opacity: 1; }
}
.expo-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 6, 11, 0.94) 0%, rgba(6, 6, 11, 0.78) 44%, rgba(6, 6, 11, 0.12) 64%, transparent 76%),
        linear-gradient(0deg, rgba(6, 6, 11, 0.6) 0%, transparent 34%);
}
.expo-body {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-width: 64%;
    padding: clamp(22px, 2.4vw, 32px);
}
.expo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px 0 10px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.expo-eyebrow svg { width: 14px; height: 14px; }
.expo-title {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    font-size: clamp(22px, 2.05vw, 30px);
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    text-wrap: balance;
}
.expo-title > span { white-space: nowrap; }
.expo-title-2 { color: rgba(244, 244, 247, 0.62); }
.expo-text { max-width: 25em; font-size: var(--fs-md); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.expo-list { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 6px; list-style: none; }
.expo-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: var(--fw-medium); color: var(--text); }
.expo-list li small { display: block; margin-top: 1px; font-size: 12.5px; font-weight: var(--fw-regular); color: var(--text-3); }
.expo-list svg {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    padding: 6px;
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.expo-list li:last-child svg { color: var(--success); background: rgba(62, 224, 143, 0.1); box-shadow: inset 0 0 0 1px rgba(62, 224, 143, 0.3); }
.expo-cta { border-radius: var(--r-pill); }
.expo-cta svg { width: 17px; height: 17px; transition: transform var(--dur-2) var(--ease-out); }
.expo-cta:hover svg { transform: translateX(3px); }

/* ═══ 5. «Новое в чате»: Claude Opus 5.5 ═══════════════════════════════
   Как нижняя полоса Higgsfield: огромное имя модели с плиткой-логотипом
   внутри строки. Фон — ключевой кадр Anthropic к Opus 5.5 (дуга горизонта
   на рассвете, 16:9, вершина дуги — на 48 % высоты кадра). Кадр ставим не
   object-fit'ом, а по единицам контейнера: при любых пропорциях полосы
   вершина дуги стоит на --hz её высоты, заголовок — на тёмной «земле» под
   ней. Низ кадра растворяется в цвет земли; подложка — для читаемости. */
.ex-feat {
    --hz: 30cqh;
    container-type: size;
    display: grid;
    place-items: end center;
    /* Высота — от ширины полосы (2,4 : 1), но не ниже 480 и не выше 780 px.
       Не aspect-ratio + max-height: предел высоты через пропорцию сужает ширину. */
    height: clamp(480px, (100vw - 2 * var(--gutter)) / 2.4, 780px);
    overflow: hidden;
    border-radius: var(--r-2xl);
    background: #0c0a08;
    text-align: center;
    box-shadow: var(--sh-3), 0 70px 150px -80px rgba(226, 222, 242, 0.12);
}
.exf-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.exf-art img {
    --w: max(100cqw, 177.78cqh);
    position: absolute;
    left: calc(50cqw - var(--w) / 2);
    top: calc(var(--hz) - 0.48 * 0.5625 * var(--w));
    width: var(--w);
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 9;
    -webkit-mask: linear-gradient(180deg, #000 78%, transparent);
    mask: linear-gradient(180deg, #000 78%, transparent);
    transform-origin: 50% 48%;
    animation: exf-drift 28s var(--ease-in-out) infinite alternate;
}
@keyframes exf-drift { from { transform: scale(1); } to { transform: scale(1.05) translate3d(0, 0.8%, 0); } }
.exf-scrim, .exf-grain { position: absolute; inset: 0; }
.exf-scrim {
    background:
        radial-gradient(60% 46% at 50% 76%, rgba(4, 3, 5, 0.62), transparent 72%),
        linear-gradient(0deg, rgba(4, 3, 5, 0.7) 0%, rgba(4, 3, 5, 0) 38%),
        linear-gradient(180deg, rgba(4, 3, 5, 0.35) 0%, rgba(4, 3, 5, 0) 22%);
}
.exf-grain {
    /* Зерно обычным наложением (серый шум, слабая прозрачность) вместо overlay:
       режим наложения поверх плывущего кадра пересчитывался каждый кадр. */
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.exf-body {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 56px 24px clamp(48px, 5.4vw, 104px);
}
.exf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: rgba(244, 244, 247, 0.86);
}
.exf-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e6c9b9;
    box-shadow: 0 0 0 3px rgba(224, 186, 166, 0.14), 0 0 12px rgba(226, 222, 242, 0.12);
}
.exf-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 0.2em;
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    font-size: clamp(36px, 6vw, 150px);
    line-height: 1;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}
.exf-w {
    background: linear-gradient(180deg, #ffffff 18%, #eddcd2 62%, #d4aa98 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Без filter: двойной drop-shadow на буквах в 150 px перерисовывался при
       прокрутке и давал в Safari ~2 % долгих кадров на всей главной (замер
       27.09). Читаемость держит тёмное пятно подложки за заголовком (.exf-scrim). */
}
.exf-tile {
    display: inline-grid;
    place-items: center;
    width: 0.92em;
    height: 0.92em;
    border-radius: 0.24em;
    background: linear-gradient(160deg, #3a2019, #150c0a);
    box-shadow:
        inset 0 0 0 1px rgba(229, 198, 181, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 50px -6px rgba(226, 222, 242, 0.12),
        0 20px 40px -18px rgba(0, 0, 0, 0.9);
    transform: rotate(-6deg);
    transition: transform var(--dur-3) var(--ease-spring);
}
.exf-tile img { width: 58%; height: 58%; object-fit: contain; animation: exf-spin 26s linear infinite; }
@keyframes exf-spin { to { transform: rotate(360deg); } }
.ex-feat:hover .exf-tile { transform: rotate(4deg) scale(1.06); }
.exf-sub { max-width: 38em; font-size: clamp(15px, 1.3vw, 22px); line-height: 1.5; color: rgba(244, 244, 247, 0.86); text-wrap: pretty; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.exf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.exf-actions .btn { border-radius: var(--r-pill); }

/* ═══ 6. Игры ══════════════════════════════════════════════════════════ */
.exg-nav { display: flex; gap: 6px; }
.exg-nav .btn:disabled { opacity: 0.3; }
.exg-row {
    display: flex;
    align-items: stretch;
    gap: var(--ex-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    margin: -10px calc(-1 * var(--gutter)) 0;
    padding: 10px var(--gutter) 22px;
    outline: none;
}
.exg-row::-webkit-scrollbar { display: none; }
.exg-skel { flex: 0 0 clamp(200px, 19vw, 244px); aspect-ratio: 4 / 6; border-radius: var(--r-xl); }

.ex-game {
    flex: 0 0 clamp(200px, 19vw, 244px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scroll-snap-align: start;
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), rgba(12, 12, 18, 0.7);
    box-shadow: var(--sh-1);
    transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.ex-game:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
/* Обложка — встроенная SVG (components/game-cover.js): матовая аппликация
   в жемчужной гамме, без свечений, неона и «сетки на полу». Не анимируется. */
.exg-poster {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #15151c;
}
.exg-poster > .game-cover { display: block; width: 100%; height: 100%; }
.exg-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)), rgba(10, 10, 16, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-spring), background var(--dur-2) ease, color var(--dur-2) ease;
}
.exg-play svg { width: 16px; height: 16px; margin-left: 2px; }
.ex-game:hover .exg-play, .ex-game:focus-visible .exg-play { opacity: 1; transform: none; background: #fff; color: #07070b; }
.exg-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.exg-title {
    min-height: 2.6em;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.exg-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.exg-user { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exg-stat { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.exg-stat svg { width: 13px; height: 13px; }

.ex-game-lead {
    flex: 0 0 clamp(280px, 30vw, 400px);
    display: block;
    overflow: hidden;
    scroll-snap-align: start;
    border-radius: var(--r-xl);
    background: #06060b;
    box-shadow: var(--sh-2);
    transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.ex-game-lead:hover { transform: translateY(-4px); box-shadow: var(--sh-3), 0 30px 70px -40px rgba(226, 222, 242, 0.12); }
.exgl-media { position: absolute; inset: 0; z-index: 0; }
.exgl-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform 1100ms var(--ease-out); }
.ex-game-lead:hover .exgl-media img { transform: scale(1.07); }
.exgl-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.05) 70%); }
.exgl-body { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.exgl-title { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1; letter-spacing: -0.02em; margin-top: 6px; }
.exgl-text { font-size: var(--fs-md); color: rgba(244, 244, 247, 0.74); line-height: 1.45; }

/* Конец ленты: «Все игры». */
.ex-game-end {
    flex: 0 0 clamp(180px, 15vw, 210px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    scroll-snap-align: start;
    border-radius: var(--r-xl);
    color: var(--text-2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)), rgba(12, 12, 18, 0.62);
    box-shadow: var(--sh-1);
    font-weight: var(--fw-semibold);
    transition: transform var(--dur-3) var(--ease-out), color var(--dur-2) ease, box-shadow var(--dur-3) ease;
}
.ex-game-end:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--sh-2); }
.exge-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.exge-ic svg { width: 26px; height: 26px; }
.exge-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); transition: transform var(--dur-3) var(--ease-spring), background var(--dur-2) ease, color var(--dur-2) ease; }
.exge-go svg { width: 17px; height: 17px; }
.ex-game-end:hover .exge-go { background: #fff; color: #07070b; transform: translateX(3px); }

/* Анонс без входа: кинокадр аркады справа, текст слева. */
.ex-teaser {
    display: flex;
    align-items: center;
    min-height: clamp(360px, 32vw, 440px);
    overflow: hidden;
    border-radius: var(--r-2xl);
    background: #040407;
    box-shadow: var(--sh-2);
    transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.ex-teaser:hover { transform: translateY(-3px); box-shadow: var(--sh-3), 0 40px 100px -50px rgba(226, 222, 242, 0.12); }
.ext2-media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 26%;
    right: 0;
    z-index: 0;
    -webkit-mask: linear-gradient(90deg, transparent 0%, #000 34%);
    mask: linear-gradient(90deg, transparent 0%, #000 34%);
}
.ext2-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transition: transform 1200ms var(--ease-out); }
.ex-teaser:hover .ext2-media img { transform: scale(1.05); }
.ext2-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0) 70%), linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 40%); }
.ext2-body {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 520px;
    padding: clamp(26px, 4.4vw, 64px);
}
.ext2-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff; background: var(--ex-glass); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.ext2-ic svg { width: 22px; height: 22px; }
.ext2-title { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -0.02em; }
.ext2-text { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.ext2-btn { margin-top: 6px; border-radius: var(--r-pill); pointer-events: none; }
.ext2-btn svg { transition: transform var(--dur-2) var(--ease-out); }
.ex-teaser:hover .ext2-btn { background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)); }
.ex-teaser:hover .ext2-btn svg { transform: translateX(3px); }

/* ═══ 7. Галерея «Сделано в AstraGPT» (кирпичная кладка) ═══════════════
   Колонки раскладывает JS (mountGallery: «в самую короткую»), высота
   карточки — из aspect-ratio (место есть до загрузки картинки). Когда
   показаны все работы, низ выровнен: последние карточки колонок получают
   высоту (.is-fit), картинка — cover. Под кладкой — кнопка «Создать своё»,
   прилипшая к низу экрана (sticky внутри .exa-wrap): держится, пока видна
   галерея, и уходит вместе с её концом.
   Движение — только transform и opacity: наклон карточки под курсором и
   блик (components/tilt.js), проявление подписи и ролика. Без маски на всей
   кладке: высокий слой с маской пересчитывался при каждом наведении. */
.exa-wrap { position: relative; }
.ex-gallery { display: flex; align-items: flex-start; gap: var(--ex-gap); }
.exa-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--ex-gap); }
.exa-sentinel { height: 1px; margin-top: -1px; pointer-events: none; }

.ex-art {
    display: block;
    margin: 0;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--panel-2);
    box-shadow: var(--sh-1);
    transition: box-shadow var(--dur-3) ease;
}
.ex-art > img,
.exa-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease-out);
}
.ex-art:hover { box-shadow: var(--sh-2), 0 34px 70px -40px rgba(0, 0, 0, 0.9); }
.ex-art:hover > img, .ex-art:hover .exa-video { transform: scale(1.045); }
.ex-art:hover::before, .ex-art:focus-within::before { background: var(--ex-edge-lit); }

/* Ролик той же сцены: проявляется поверх картинки, когда реально играет. */
.exa-video { opacity: 0; pointer-events: none; transition: opacity 420ms ease, transform 900ms var(--ease-out); }
.ex-art.is-playing .exa-video { opacity: 1; }

/* Карточки кладки проявляются только прозрачностью. Общий подъём (.reveal:
   transform) у десятков карточек с кромкой-маской в Safari давал рывки при
   прокрутке галереи (замер 26.09, WebKit 1440: 15% долгих кадров → 2%). */
.ex-art.ex-rv:not(.reveal) { transform: none; }
.ex-art.reveal { animation-name: exa-in; transform: none; }
@keyframes exa-in { from { opacity: 0; } to { opacity: 1; } }

/* Блик под курсором — .tilt-glare из components/tilt.js (стиль в motion.css):
   под подписью и кнопками карточки, чтобы не белить текст. */
.ex-art .tilt-glare { z-index: 2; }

/* Метка ролика: значок и длительность; пока ролик играет — прячется. */
.exa-badge {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 9px 0 8px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: var(--fw-semibold);
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: rgba(10, 10, 16, 0.62);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    pointer-events: none;
    transition: opacity var(--dur-3) ease;
}
.exa-badge svg { width: 10px; height: 10px; }
.ex-art.is-playing .exa-badge { opacity: 0; }

/* «Лента примеров»: при наведении — подпись, промпт (до трёх строк) и «Повторить». */
.exa-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 56px 14px 14px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58) 38%, rgba(0, 0, 0, 0.88));
    opacity: 0;
    /* Именно translate3d: подпись на своём слое. С 2D-сдвигом Safari
       перерисовывал её вместе с карточкой, и прокрутка кладки дёргалась
       (замер 26.09, WebKit 1440: 9–11% долгих кадров против 1.5–3%). */
    transform: translate3d(0, 10px, 0);
    transition: opacity var(--dur-3) ease, transform var(--dur-3) var(--ease-out);
    pointer-events: none;
}
.ex-art:hover .exa-cap, .ex-art:focus-within .exa-cap { opacity: 1; transform: none; }
.exa-title { min-width: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 1.3; text-wrap: balance; }
.exa-prompt {
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(244, 244, 247, 0.74);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ex-art.is-wide .exa-prompt { -webkit-line-clamp: 2; }
.ex-art.is-pano .exa-prompt { display: none; }
.ex-art.is-wide .exa-cap, .ex-art.is-pano .exa-cap { padding-top: 34px; }
.exa-try {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 32px;
    margin-top: 4px;
    padding: 0 12px;
    border-radius: var(--r-pill);
    font-size: 12.5px;
    font-weight: var(--fw-semibold);
    color: #07070b;
    background: #fff;
    box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.8);
}
.exa-try svg { width: 14px; height: 14px; }

/* Нажатие по карточке — ссылка в студию; кнопка «крупно» — поверх неё. */
.exa-link { position: absolute; inset: 0; z-index: 4; border-radius: inherit; outline: none; }
.exa-link:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.exa-zoom {
    position: absolute;
    z-index: 6;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(10, 10, 16, 0.62);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    opacity: 0;
    transform: scale(0.88);
    transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-spring), background var(--dur-2) ease, color var(--dur-2) ease;
}
.exa-zoom svg { width: 16px; height: 16px; }
.ex-art:hover .exa-zoom, .exa-zoom:focus-visible { opacity: 1; transform: none; }
.exa-zoom:hover { background: #fff; color: #07070b; }
.exa-zoom:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Кнопка «Создать своё»: главная кнопка раздела, прилипает к низу экрана. */
.exa-dock {
    position: sticky;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 8;
    display: flex;
    justify-content: center;
    margin-top: 28px;
    pointer-events: none;
}
.exa-dock .btn {
    pointer-events: auto;
    border-radius: var(--r-pill);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -2px 0 rgba(20, 16, 40, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 18px 44px -14px rgba(0, 0, 0, 0.95),
        0 8px 26px -12px rgba(226, 222, 242, 0.2);
}

/* На сенсорных экранах наведения нет: подпись видна сразу, нажатие — просмотр. */
@media (hover: none) {
    .exa-cap { opacity: 1; transform: none; padding: 40px 12px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)); }
    .exa-prompt, .exa-try, .exa-zoom { display: none; }
    .exg-play { opacity: 1; transform: none; }
}

/* ═══ 8. Полоса в конце: стеклянная призма ═══════════════════════════
   Призма — знак AstraGPT в объёме (components/glass-prism.js): сначала SVG,
   холст WebGL проявляется поверх, когда полоса у экрана. Фон карточки —
   тёмный, с едва заметным жемчугом там, где стоит призма (её стекло
   «видит» ту же гамму). Кнопки — светлая и стеклянная, без акцента. */
.ex-end { margin-top: clamp(56px, 7vw, 96px); }
.exe-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    min-height: clamp(340px, 30vw, 440px);
    overflow: hidden;
    border-radius: var(--r-2xl);
    background:
        radial-gradient(42% 70% at 26% 46%, rgba(207, 200, 232, 0.1), transparent 72%),
        radial-gradient(36% 60% at 34% 70%, rgba(195, 224, 224, 0.06), transparent 70%),
        linear-gradient(180deg, #0d0d13, #07070b);
    box-shadow: var(--sh-2);
}
.exe-art { position: relative; align-self: stretch; min-height: 300px; }
/* Мягкий свет на «полу» под призмой — неподвижный градиент. */
.exe-art::after {
    content: '';
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 9%;
    height: 12%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(226, 222, 242, 0.12), transparent);
    pointer-events: none;
}
.gp-still, .gp-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
}
.gp-still { transition: opacity 400ms ease; }
.gp-canvas { opacity: 0; transition: opacity 400ms ease; }
.gp.is-live .gp-canvas { opacity: 1; }
.gp.is-live .gp-still { opacity: 0; }
.exe-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: clamp(28px, 4vw, 64px) clamp(28px, 5vw, 80px) clamp(28px, 4vw, 64px) 0;
}
.exe-title {
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    font-size: clamp(26px, 2.8vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.exe-text { color: var(--text-2); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; max-width: 34em; text-wrap: pretty; }
.exe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.exe-actions .btn { border-radius: var(--r-pill); }
@media (max-width: 900px) {
    .exe-card { grid-template-columns: 1fr; min-height: 0; }
    .exe-art { min-height: 0; height: clamp(220px, 56vw, 320px); }
    .exe-body { padding: 0 clamp(20px, 5vw, 40px) clamp(24px, 5vw, 40px); }
}
@media (max-width: 700px) {
    .exe-card { border-radius: var(--r-xl); }
    .exe-actions { width: 100%; flex-direction: column; }
    .exe-actions .btn { width: 100%; }
    .ext-i3d { width: 56px; height: 56px; margin: -6px 0 0 -6px; }
}

/* ── Просмотр во весь экран (окно в <body>, вне .ex) ─────────────────── */
html.exv-lock { overflow: hidden; }
.exv {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px clamp(14px, 3vw, 40px) calc(clamp(14px, 2.4vw, 28px) + env(safe-area-inset-bottom, 0px));
    color: var(--text);
    overscroll-behavior: contain;
}
.exv.is-fading { animation: exv-in 260ms var(--ease-out) both; }
@keyframes exv-in { from { opacity: 0; } }
.exv-scrim { position: absolute; inset: 0; z-index: -1; background: rgba(4, 4, 7, 0.97); }
.exv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.exv-count { font-size: var(--fs-sm); color: var(--text-3); font-variant-numeric: tabular-nums; }
.exv-close { border-radius: 50%; }
.exv-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    touch-action: none;
}
.exv-media {
    display: block;
    max-width: none;
    border-radius: var(--r-lg);
    object-fit: cover;
    background: #0b0b10;
    box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.95);
    transition: transform 280ms var(--ease-out);
}
.exv-media.is-from-next { animation: exv-next 360ms var(--ease-out) both; }
.exv-media.is-from-prev { animation: exv-prev 360ms var(--ease-out) both; }
@keyframes exv-next { from { opacity: 0; transform: translate3d(48px, 0, 0) scale(0.985); } }
@keyframes exv-prev { from { opacity: 0; transform: translate3d(-48px, 0, 0) scale(0.985); } }
.exv-nav { position: absolute; top: 50%; z-index: 2; margin-top: -22px; border-radius: 50%; }
.exv-prev { left: clamp(10px, 2vw, 28px); }
.exv-next { right: clamp(10px, 2vw, 28px); }
.exv-info {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 28px;
    width: min(100%, 1040px);
    margin: 0 auto;
}
.exv-text { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.exv-title { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -0.02em; }
.exv-prompt {
    max-width: 62em;
    font-size: var(--fs-md);
    line-height: 1.5;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.exv-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.exv-model:empty { display: none; }
.exv-model .chip { height: 30px; gap: 6px; padding: 0 12px; }
.exv-model .chip svg { width: 14px; height: 14px; }
.exv-try { border-radius: var(--r-pill); }
/* Переход «карточка → просмотр»: рамка плавно растёт, кадр заполняет её. */
::view-transition-group(exa-view) { animation-duration: 460ms; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-old(exa-view), ::view-transition-new(exa-view) { height: 100%; object-fit: cover; }
@media (max-width: 700px) {
    .exv { gap: 10px; padding-left: 12px; padding-right: 12px; }
    .exv-nav { display: none; }
    .exv-info { flex-direction: column; align-items: stretch; }
    .exv-prompt { -webkit-line-clamp: 4; font-size: 13px; }
    .exv-actions { flex-wrap: wrap; }
    .exv-try { flex: 1 1 auto; }
}

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

/* Широкие экраны (1680+): всё во всю ширину — сетки добавляют колонки,
   крупнее заголовки. 1440 и уже — как было (владелец одобрил). */
@media (min-width: 1680px) {
    .exh-frame { height: clamp(540px, calc(100dvh - var(--nav-h) - var(--tabs-h) - 124px), max(800px, 40vw)); }
    .exh-body { width: min(1180px, calc(100% - 48px)); gap: 24px; }
    .exh-title { font-size: clamp(72px, 3.9vw, 104px); }
    .exh-lead { font-size: clamp(19px, 1vw, 24px); }
    .exh-slogan { font-size: clamp(34px, 1.9vw, 48px); }
    .exh-prompt { width: clamp(318px, 17vw, 420px); }
    .exp-text { font-size: clamp(15px, 0.8vw, 18px); }

    /* Инструменты: плитка 16 колонок в два ряда — высокая «Изображения» слева. */
    .ex-tools { grid-template-columns: repeat(16, minmax(0, 1fr)); grid-auto-rows: clamp(280px, 15.5vw, 440px); }
    .ex-tool[data-tool="image"] { grid-column: 1 / span 4; grid-row: 1 / span 2; }
    .ex-tool[data-tool="video"] { grid-column: 5 / span 6; grid-row: 1; }
    .ex-tool[data-tool="voice"] { grid-column: 11 / span 3; grid-row: 1; }
    .ex-tool[data-tool="music"] { grid-column: 14 / span 3; grid-row: 1; }
    .ex-tool[data-tool="games"] { grid-column: 5 / span 6; grid-row: 2; }
    .ex-tool[data-tool="chat"] { grid-column: 11 / span 6; grid-row: 2; }
    .ext-title { font-size: clamp(26px, 1.45vw, 36px); }
    .ext-desc { font-size: clamp(15px, 0.78vw, 18px); }

    /* Модели: 6 колонок — промо 2×2 и восемь моделей ровно в два ряда. */
    .ex-models { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .ex-models:not(.is-all) > a.ex-model:nth-of-type(-n + 12) { display: flex; }
    .ex-model { min-height: 216px; }
    .expo-title { font-size: clamp(26px, 1.5vw, 36px); }
    .expo-body { max-width: 66%; }

    .ex-teaser { min-height: clamp(440px, 24vw, 640px); }
    .ext2-body { max-width: 640px; }
    .ext2-title { font-size: clamp(36px, 2.1vw, 52px); }
    .ex-game { flex-basis: clamp(244px, 12.5vw, 320px); }
    .exg-skel { flex-basis: clamp(244px, 12.5vw, 320px); }
    .ex-game-lead { flex-basis: clamp(400px, 22vw, 560px); }
    .ex-head .h2 { font-size: clamp(40px, 2.2vw, 56px); }
    .ex-sub { font-size: clamp(16px, 0.85vw, 19px); }
    .exf-body { gap: 22px; }
    .exf-eyebrow { font-size: clamp(15px, 0.8vw, 19px); }
    .exf-actions .btn { --h: 60px; padding: 0 30px; font-size: var(--fs-lg); }
}
/* 2200+: 7 колонок — промо 2×2 и десять моделей в два ряда. */
@media (min-width: 2200px) {
    .ex-models { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .ex-models > a.ex-model:nth-of-type(-n + 14) { display: flex; }
}

@media (max-width: 1180px) {
    .ex-models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .exh-prompt { width: 280px; }
}
/* 3 колонки: в фильтре вида — девять карточек, три полных ряда. */
@media (min-width: 901px) and (max-width: 1180px) {
    .ex-models:not(.is-all) > a.ex-model:nth-of-type(9) { display: flex; }
}

@media (max-width: 1100px) {
    .ex-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 250px; }
    .ex-tool[data-tool] { grid-column: auto; grid-row: auto; }
    .ex-tool[data-tool="image"] { grid-row: span 2; }
    .ex-tool[data-tool="chat"] { grid-column: 1 / -1; }
    .exh-prompt { display: none; }
    .exh-body { width: min(680px, calc(100% - 48px)); }
}

/* Планшет и телефон: текст героя сверху, кнопки снизу, фигура — между ними. */
@media (max-width: 900px) {
    .exh-frame { display: flex; height: auto; min-height: clamp(560px, 80svh, 740px); }
    .exh-img { object-position: 46% 56%; transform-origin: 50% 60%; }
    .exh-shade {
        background:
            /* Текст сверху лежит на фото: тень держим до конца подзаголовка — светлые фото иначе съедают контраст. */
            linear-gradient(180deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.72) 30%, rgba(0, 0, 0, 0.64) 50%, rgba(0, 0, 0, 0.3) 62%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0.38) 82%, rgba(0, 0, 0, 0.9) 100%);
    }
    .exh-body {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        padding: clamp(24px, 5vw, 40px) clamp(20px, 5vw, 40px) clamp(20px, 4vw, 32px);
        gap: 16px;
    }
    .exh-title { font-size: clamp(32px, 6.6vw, 58px); }
    .exh-lead, .exh-slogan { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
    .exh-actions { width: 100%; margin-top: auto; padding-top: 24px; }
    .exl-label { display: none; }
    .ex-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ex-models.is-all > .ex-pol { grid-row: auto; min-height: 400px; }
    .expo-deck { width: 48%; right: -4%; }
    /* nowrap обязателен: в многострочном flex-столбце линия берёт ширину самого
       широкого ребёнка (лента фильтров) и расталкивает всё окно на телефоне. */
    .ex-head { align-items: stretch; flex-direction: column; flex-wrap: nowrap; }
    .ex-head > * { min-width: 0; }
    .ex-head-end { justify-content: space-between; }
    .ex-filter-wrap {
        margin: 0 calc(-1 * var(--gutter));
        padding: 0 calc(var(--gutter) + 24px) 0 var(--gutter);
        max-width: none;
        -webkit-mask: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
        mask: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    }
    .ext2-media { left: 10%; }
    .ext2-shade { background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent 50%); }
}

@media (max-width: 700px) {
    .ex { --ex-gap: 12px; }
    .ex-sec { margin-top: 64px; }
    .exh { padding-top: 10px; }
    .exh-frame { border-radius: var(--r-xl); min-height: clamp(560px, 78svh, 680px); }
    .exh-title { font-size: clamp(30px, 8.6vw, 42px); }
    .exh-slogan { font-size: clamp(18px, 5vw, 24px); margin-top: -6px; }
    .exh-pill { font-size: 12.5px; }
    .exh-actions { flex-direction: column; gap: 10px; }
    .exh-actions .btn { width: 100%; --h: 54px; font-size: var(--fs-base); }
    .exl { margin-top: 18px; }
    .exl-track { gap: 30px; padding-right: 30px; }

    /* Инструменты — горизонтальная лента с защёлкиванием. */
    .ex-tools {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        scrollbar-width: none;
        margin: -8px calc(-1 * var(--gutter)) 0;
        padding: 8px var(--gutter) 16px;
        gap: 12px;
    }
    .ex-tools::-webkit-scrollbar { display: none; }
    .ex-tool { flex: 0 0 min(78vw, 320px); height: 400px; scroll-snap-align: start; border-radius: var(--r-xl); }
    .ex-tool:hover { transform: none; }
    .ext-body { right: 72px; }

    /* Модели — компактный список (на телефоне хватит восьми — общее правило выше). */
    .ex-models { grid-template-columns: 1fr; gap: 10px; }
    .exm-skel { min-height: 104px; }
    .ex-models.is-all > .ex-pol { grid-column: 1 / -1; grid-row: auto; min-height: 0; padding-top: 170px; border-radius: var(--r-xl); }
    .ex-models.is-all > .ex-pol.exm-skel { min-height: 460px; padding: 0; }
    .expo-deck { top: -8px; left: 0; right: 0; width: 100%; height: 230px; }
    .expo-plane { grid-template-columns: repeat(4, 52px); gap: 12px; transform: rotateX(56deg) rotateZ(-38deg); }
    .expo-tile { width: 52px; height: 52px; border-radius: 15px; }
    .expo-tile img { width: 25px; height: 25px; }
    .expo-body { max-width: none; padding: 20px 20px 22px; }
    .expo-shade { background: linear-gradient(0deg, rgba(5, 5, 9, 0.98) 0%, rgba(5, 5, 9, 0.9) 58%, rgba(5, 5, 9, 0.2) 80%, transparent 92%); }
    .expo-title { font-size: clamp(22px, 6.6vw, 28px); }
    .expo-title > span { white-space: normal; }
    .expo-list li { font-size: 13.5px; }
    .expo-cta { width: 100%; }
    .ex-model {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        column-gap: 14px;
        row-gap: 4px;
        min-height: 0;
        padding: 14px 16px;
        align-items: center;
    }
    .exm-head { display: contents; }
    .exm-logo { grid-row: 1 / span 3; align-self: start; }
    .exm-kind { display: none; }
    .exm-name { margin-top: 0; font-size: var(--fs-base); }
    .exm-desc, .exm-chips { grid-column: 2; -webkit-line-clamp: 1; font-size: 13px; }
    .exm-chips { flex-wrap: nowrap; overflow: hidden; }
    .exm-foot { grid-column: 2; min-height: 0; margin-top: 4px; padding-top: 8px; }
    /* Видео в списке: ролик справа, растворяется к тексту слева. */
    .ex-model.has-clip .exm-logo { position: relative; z-index: 3; }
    .exm-clip { left: 38%; -webkit-mask: linear-gradient(90deg, transparent, #000 55%); mask: linear-gradient(90deg, transparent, #000 55%); }
    .exm-scrim { background: linear-gradient(90deg, rgba(7, 7, 11, 0.94) 36%, rgba(7, 7, 11, 0.6) 66%, rgba(7, 7, 11, 0.32)); }
    .exm-foot .mp-price { flex-wrap: wrap; }

    /* Полоса Opus: высота задана (контейнер размеров), дуга — на трети сверху. */
    .ex-feat { --hz: 33cqh; height: clamp(520px, 140vw, 600px); border-radius: var(--r-xl); }
    .exf-body { padding: 0 18px 36px; gap: 14px; }
    .exf-title { font-size: clamp(34px, 11vw, 48px); row-gap: 0.08em; }
    .exf-actions { width: 100%; flex-direction: column; }
    .exf-actions .btn { width: 100%; }

    .ex-teaser { flex-direction: column; align-items: stretch; justify-content: flex-end; min-height: 460px; border-radius: var(--r-xl); }
    .ext2-media { left: 0; bottom: 30%; -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent); }
    .ext2-shade { background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 70%); }
    .ext2-body { padding: 22px; }
    .ext2-btn { width: 100%; }

    .ex-game { flex-basis: 64vw; }
    .ex-game-lead { flex-basis: 76vw; }
    .ex-game-end { flex-basis: 40vw; }
    .exg-skel { flex-basis: 64vw; }
    .exg-nav { display: none; }

    .exa-cap { padding: 32px 10px 10px; }
    .exa-title { font-size: 12.5px; }
    .exa-badge { top: 8px; left: 8px; height: 22px; padding: 0 7px 0 6px; font-size: 11px; }
    .exa-dock .btn { --h: 50px; padding: 0 22px; }
}

/* ═══ Без движения ═════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .ex-rv:not(.reveal) { opacity: 1; transform: none; }
    .exh-img, .exh-media, .exl-track, .exh-dot::after, .exp-caret, .exh-slogan .text-aurora, .expo-tile, .expo-tile::after, .exf-art img, .exf-tile img,
    .exh-pill, .exh-title > span, .exh-lead, .exh-actions, .exh-prompt, .exl, .ext-count { animation: none !important; }
    .exl-viewport { overflow-x: auto; scrollbar-width: none; }
    .exl-track[aria-hidden="true"] { display: none; }
    .ex-tool:hover, .ex-model:hover, .ex-game:hover, .ex-feat:hover .exf-tile, .ex-game-lead:hover, .ex-teaser:hover, .exh-prompt:hover { transform: none; }
    .ex-tool:hover .ext-media img, .ex-art:hover img, .ex-game-lead:hover .exgl-media img, .ex-teaser:hover .ext2-media img,
    .ex-model.has-clip:hover .exm-clip img { transform: none; }
    .exm-clip video { display: none; }
    .ex-art:hover .exa-video { transform: none; }
    .exa-video { display: none; }
    .exh-intro { display: none; }
    .ex-tool:hover .ext-i3d img { transform: none; }
    .gp-canvas { display: none; }
    .exv-media.is-from-next, .exv-media.is-from-prev, .exv.is-fading { animation: none; }
}
