/* ============================================================
   ZALUT FX — второй слой поверх theme-2026.css: типографика,
   кнопки, главная (hx-*), тосты и диалоги.
   Сознательно без «генераторных» эффектов: никаких свечений,
   переливающегося текста, падающих звёзд, стекла, подсветки
   за курсором и появления с размытием при прокрутке.
   ============================================================ */

:root {
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --grad-anim: linear-gradient(#8B7BFF, #8B7BFF);   /* имя осталось от старой темы */
}

/* ---------- Типографика ---------- */
html, body, button, input, select, textarea { font-family: var(--font-body); }
body { letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
h1, h2, .set-head__title, .adm-h1, .legal-doc h1, .auth2-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.035em;
}
h3 { font-weight: 700; letter-spacing: -.02em; }

/* Плавные переходы между страницами (View Transitions, Chrome/Edge/Safari 18) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ---------- Шапка ---------- */
/* Раньше при прокрутке менялась ВЫСОТА шапки (.nav__inner 76↔64 через transition: height). Анимация height
   у прилипшей (sticky) шапки на каждом кадре пересобирает раскладку всей страницы — отсюда дёрганье у самого
   верха и лаги при прокрутке. Теперь высота постоянная, «прокрученное» состояние показываем тенью (без reflow). */
.nav { transition: background .3s, border-color .3s, box-shadow .3s; }
.nav--scrolled { background: var(--bg-1); box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.search { position: relative; }
.fx-kbd {
  flex: none; margin-left: auto;
  padding: 3px 8px; border-radius: 7px;
  font: 600 max(11.5px, calc(9px / var(--z, 1)))/1.4 var(--font-body); color: var(--txt-3);
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
}
@media (hover: none) { .fx-kbd { display: none; } }
kbd {
  display: inline-block; min-width: 20px; padding: 1px 6px; margin: 0 2px;
  border-radius: 6px; border: 1px solid var(--line-hi); background: rgba(255,255,255,.06);
  font: 600 max(11px, calc(9px / var(--z, 1)))/1.6 var(--font-body); color: var(--txt-2); text-align: center;
}

/* ---------- Кнопки ---------- */
.btn { position: relative; }
.btn:active { transform: scale(.98); }

/* Главная кнопка. Класс называется по-старому (был «shimmer» с бегущей кромкой) —
   им размечены десятки мест, поэтому имя оставили, а вид — обычная заливка. */
.btn-shimmer {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 15.5px/1 var(--font-body); color: #fff; text-decoration: none;
  background: var(--grad);
  transition: filter .2s;
}
.btn-shimmer:hover { filter: brightness(1.1); }
.btn-shimmer:active { transform: scale(.98); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font: 600 15.5px/1 var(--font-body); color: var(--txt); text-decoration: none;
  border: 1px solid var(--line-hi); background: rgba(255,255,255,.04);
  transition: background .2s, border-color .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }

/* выделенное слово в заголовке — просто фирменным цветом */
.text-grad { color: #8B7BFF; }

/* Короткое появление раскрывающихся панелей (предложить цену, промокод, ответ в FAQ) */
@keyframes fx-rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Скелетоны загрузки ---------- */
.sk {
  position: relative; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}
.sk::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.06) 50%, transparent 80%);
  transform: translateX(-100%); animation: fx-sk 1.4s ease-in-out infinite;
}
@keyframes fx-sk { to { transform: translateX(100%); } }
.sk-card { list-style: none; display: flex; flex-direction: column; }
.sk-card__media { aspect-ratio: 4/3; background: rgba(255,255,255,.04); }
.sk-card__line { height: 12px; margin: 14px 16px 0; border-radius: 6px; background: rgba(255,255,255,.07); }
.sk-card__line--short { width: 40%; }
.sk-card__line--last { margin-bottom: 18px; width: 70%; }

/* ---------- Смена слова в заголовке главной ---------- */
/* ширина = самое длинное слово, текущее слово — слева в той же ячейке */
.fx-rot { display: inline-grid; justify-items: start; vertical-align: bottom; }
.fx-rot > * { grid-area: 1 / 1; }
.fx-rot__ghost { visibility: hidden; pointer-events: none; user-select: none; padding-bottom: .08em; }
.fx-word { display: inline-block; transition: opacity .25s, transform .3s var(--ease-out); }
.fx-word.is-out { opacity: 0; transform: translateY(-25%); }
.fx-word.is-in-word { animation: fx-word-in .35s var(--ease-out); }
@keyframes fx-word-in { from { opacity: 0; transform: translateY(25%); } }

/* ---------- Тосты ---------- */
.fx-toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  pointer-events: none;
}
.fx-toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 12px;
  min-width: 260px; max-width: min(420px, calc(calc(100vw / var(--z, 1)) - 40px));
  padding: 13px 14px 13px 13px; border-radius: 14px;
  background: #16161F; color: var(--txt);
  border: 1px solid var(--line-hi);
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.9);
  font-size: 14px; line-height: 1.45;
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s, transform .3s var(--ease-out);
}
.fx-toast.is-shown { opacity: 1; transform: none; }
.fx-toast.is-leaving { opacity: 0; transform: translateX(30px); }
.fx-toast__ico {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: rgba(139, 123, 255, .2); color: #B9AFFF;
}
.fx-toast--ok .fx-toast__ico { background: rgba(52, 211, 153, .18); color: var(--ok); }
.fx-toast--error .fx-toast__ico { background: rgba(251, 113, 133, .18); color: var(--err); }
.fx-toast--warn .fx-toast__ico { background: rgba(251, 191, 36, .18); color: var(--warn); }
.fx-toast__body { flex: 1; display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.fx-toast__x { flex: none; border: 0; background: none; color: var(--txt-3); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.fx-toast__x:hover { color: var(--txt); }
@media (max-width: 600px) { .fx-toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; } .fx-toast { max-width: none; } }

/* ============================================================
   ГЛАВНАЯ (hx-*)
   ============================================================ */
/* ширина — как у шапки и остальных страниц (.shell в base.css); на телефоне поля по 16px — под ленту «Популярных направлений» */
.hx-shell { width: min(var(--content), 100% - var(--gutter) * 2); margin: 0 auto; }
@media (max-width: 760px) { .hx-shell { width: calc(100% - 32px); } }
.hx-section { padding: 56px 0; position: relative; }
.hx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.hx-h2 { margin: 0; font: 700 clamp(26px, calc(3vw / var(--z, 1)), 38px)/1.1 var(--font-display); letter-spacing: -.035em; max-width: 780px; }
.hx-sub { margin: 10px 0 0; color: var(--txt-2); font-size: 16px; line-height: 1.6; max-width: 620px; }
.hx-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--txt); text-decoration: none; font-weight: 600;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
  transition: background .2s, border-color .2s;
}
.hx-link:hover { background: rgba(255,255,255,.07); border-color: var(--line-hi); }
/* «Свежие лоты» и «Рекомендуем»: колонок — по ширине экрана (--cols: 6 → 5 → 4 → 3 → 2), main.js fitRows оставляет
   только целые ряды, не больше двух; 4–5 лотов там, где колонок больше, — один ряд пошире (--few ставит fitRows).
   На телефоне — прежняя сетка */
@media (min-width: 761px) { .lots-grid.hx-lots { --cols: 2; grid-template-columns: repeat(var(--few, var(--cols)), minmax(0, 1fr)); } }
@media (min-width: 820px) { .lots-grid.hx-lots { --cols: 3; } }
@media (min-width: 1100px) { .lots-grid.hx-lots { --cols: 4; } }
@media (min-width: 1500px) { .lots-grid.hx-lots { --cols: 5; } }
@media (min-width: 1700px) { .lots-grid.hx-lots { --cols: 6; } }
/* масштаб страницы (css/base.css): с 1440 (75 %) в странице 1920+ CSS-пикселей — раскладка как на 1920 и 2560:
   шесть игр и лотов в ряд; на 1360–1439 (82 %) — пять лотов */
@media (min-width: 1360px) and (hover: hover) and (pointer: fine) { html.zfit .lots-grid.hx-lots { --cols: 5; } }
@media (min-width: 1440px) and (hover: hover) and (pointer: fine) { html.zfit .lots-grid.hx-lots { --cols: 6; } html.zfit .tg__grid { --tg-max: 6; } }

/* ---- HERO ---- */
.hx-hero { position: relative; overflow: hidden; padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.hx-hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hx-title {
  margin: 0; font: 800 clamp(34px, calc(4.4vw / var(--z, 1)), 60px)/1.06 var(--font-display); letter-spacing: -.045em;
}
.hx-title .text-grad { display: inline-block; padding-bottom: .08em; }
.hx-lead { margin: 20px 0 0; max-width: 560px; font-size: clamp(16px, calc(1.4vw / var(--z, 1)), 18px); line-height: 1.6; color: var(--txt-2); }
.hx-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* сцена справа (index.html): карточки лотов веером — карусель в такт со словом «Покупай …» (main.js heroShowcase).
   Места: --2 впереди, --1 слева, --3 справа; --enter — въезд справа, .is-off — уход влево; карточка переезжает
   между местами плавно, наклон тоже. Под карточками — наша нарисованная сцена (tools/site-art/home.mjs, верх
   карточек выходит за неё), снизу из-за карточек выглядывает сейф гаранта на постаменте.
   (Переменную --r тут не трогаем: это радиус скругления сайта.) */
.hx-stage { position: relative; height: 600px; }
.hx-stage__panel {
  position: absolute; inset: 150px 0 0; border-radius: 32px; overflow: hidden; background: #1d1645;
}
:root[data-event-on="1"] .hx-stage__panel { background: #3a170c; }   /* пока грузится осенняя сцена */
.hx-stage__panel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.hx-stage__scene { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hx-stage__vault {
  position: absolute; left: 50%; bottom: 6px; width: 220px; translate: -50% 0; object-fit: contain;
  filter: drop-shadow(0 18px 16px rgba(0,0,0,.4)); pointer-events: none;
}
.hx-stage__card {
  position: absolute; z-index: 1; width: 270px;
  transition: left .9s var(--ease-out), top .9s var(--ease-out), rotate .9s var(--ease-out),
              opacity .6s ease, scale .9s var(--ease-out), filter .6s ease;
}
/* плотная подложка: задние карточки не просвечивают сквозь передние */
.hx-stage__card .lcard { pointer-events: auto; box-shadow: 0 24px 48px -24px rgba(0,0,0,.9); background-color: var(--bg-1); }
.hx-stage__card--1 { left: 0;   top: 60px;  rotate: -6deg; z-index: 2; filter: brightness(.8); }
.hx-stage__card--2 { left: 28%; top: 10px;  rotate: 0deg;  z-index: 4; }
.hx-stage__card--3 { left: 54%; top: 90px;  rotate: 6deg;  z-index: 3; filter: brightness(.8); }
.hx-stage__card--enter { left: 74%; top: 130px; rotate: 12deg; z-index: 1; opacity: 0; scale: .86; }
.hx-stage__card.is-off { left: -14%; top: 110px; rotate: -12deg; z-index: 1; opacity: 0; scale: .86; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .hx-stage__vault { animation: gx-float 7s ease-in-out infinite; }
}

/* ---- Популярные направления (js/trending.js): у каждой игры своя нарисованная сцена (tools/game-art.mjs) и
   крупный предмет-«герой», который выходит за верх карточки и приподнимается при наведении. Самая популярная
   игра — широкая карточка с разделами. Слои внутри карточки: сцена и герой (z-index -1, в своём контексте
   карточки) → текст → невидимая ссылка на всю карточку → ссылки-разделы поверх неё. ---- */
.tg { padding-top: 34px; }
.tg .hx-head { margin-bottom: 34px; }
.tg__wrap { position: relative; }
/* --tg-max — сколько колонок влезает (6 на широком экране → 5 → 4 → 3, 0 — лента на телефоне, медиа ниже).
   Его читает trending.js: сколько карточек показать и сколько первых сделать широкими (на две колонки), чтобы
   ряды были без дыр, и ставит data-cols. dense — широкая карточка, не влезшая в конец ряда, не оставляет дыру. */
.tg__grid { --tg-max: 6; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 34px 16px; }
.tg__grid[data-cols="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tg__grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tg__grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tg__grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg__grid[data-cols="1"] { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1699px) { .tg__grid { --tg-max: 5; } }

/* высота — не меньше 196px: название в две строки («Counter-Strike 2» на широкой) вытягивает ряд, а не выталкивает плашку */
.tg-card { position: relative; isolation: isolate; min-height: 196px; border-radius: 26px; color: #fff; }
.tg-card--wide { grid-column: span 2; }
/* одна-три игры — крупные карточки во всю ширину (.tg__grid--big ставит trending.js) */
.tg__grid--big .tg-card { min-height: 210px; }
.tg-card:has(.tg-card__link:focus-visible) { outline: 2px solid var(--tone, #8b7bff); outline-offset: 4px; }
.tg-card__surface {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden;
  background: hsl(var(--hue) 35% 16%);
}
.tg-card__scene {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%;
  transition: transform .7s var(--ease-out);
}
.tg-card--wide .tg-card__scene { object-position: 60% 55%; }
.tg-card__surface::before {              /* тень под текст слева — в тон сцене, без серой мути */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgb(var(--shade, 12 10 18) / .94) 0%, rgb(var(--shade, 12 10 18) / .66) 36%, rgb(var(--shade, 12 10 18) / 0) 68%);
}
.tg-card__surface::after {               /* рамка; при наведении — в цвет игры */
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: box-shadow .25s;
}
.tg-card:hover .tg-card__surface::after { box-shadow: inset 0 0 0 2px var(--tone, rgba(255,255,255,.4)); }
.tg-card:hover .tg-card__scene { transform: scale(1.06); }

.tg-card__hero {                         /* выходит за верх карточки */
  position: absolute; z-index: -1; right: -12px; top: -30px; width: 164px; height: 164px; object-fit: contain; object-position: 50% 0;
  filter: drop-shadow(0 14px 12px rgba(0,0,0,.32)); pointer-events: none;
  transition: transform .45s var(--ease-out);
}
.tg-card:hover .tg-card__hero { transform: translateY(-8px) rotate(-4deg) scale(1.05); }
.tg-card--wide .tg-card__hero { width: 226px; height: 226px; top: -30px; right: 16px; }   /* не выше, чем у соседей: над картой — заголовок */
.tg__grid--big .tg-card__hero { width: 220px; height: 220px; top: -40px; right: 24px; }
.tg-card__hero--icon { width: 96px; height: 96px; top: 18px; right: 18px; border-radius: 24%; object-fit: cover; filter: none; }
.tg-card__hero--mono {
  display: grid; place-items: center; width: 96px; height: 96px; top: 18px; right: 18px; border-radius: 24%;
  background: hsl(var(--hue) 50% 38%); font: 800 34px/1 var(--font-display); filter: none;
}

.tg-card__main {
  box-sizing: border-box; height: 100%; max-width: 66%; padding: 18px 0 18px 18px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.tg-card--wide .tg-card__main { max-width: 60%; padding: 20px 0 8px 22px; gap: 12px; }
.tg-card--wide .tg-card__chips { display: grid; grid-template-columns: repeat(2, max-content); }
.tg-card__link { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; color: #fff; text-decoration: none; outline: none; }
.tg-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 26px; }   /* ссылка — на всю карточку */
.tg-card__icon { flex: none; width: 20px; height: 20px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.tg-card__title {
  min-width: 0; font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.15; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-wrap: balance;   /* «Counter- / Strike 2», а не «Counter-Strike / 2» */
}
.tg-card--wide .tg-card__title { font-size: 26px; }
.tg-card--wide .tg-card__icon { width: 42px; height: 42px; border-radius: 12px; }
.tg-card__chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.tg-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; box-sizing: border-box; padding: 4px 12px 4px 4px; border-radius: 999px;
  background: rgb(0 0 0 / .45); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 16px; text-decoration: none;
  transition: background .2s, color .2s;
}
.tg-chip i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tone, rgba(255,255,255,.16)); color: #15101e; }
.tg-chip svg { width: 15px; height: 15px; }
.tg-chip:hover, .tg-chip:focus-visible { background: #fff; color: #120f18; outline: none; }
.tg-card__offers {
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding: 6px 11px; border-radius: 9px; background: rgb(0 0 0 / .55);
  font-size: 12px; font-weight: 700; line-height: 16px; white-space: nowrap;
}
.tg-card__offers:has(.tg-card__icon) { padding-left: 5px; }
@media (prefers-reduced-motion: reduce) {
  .tg-card__scene, .tg-card__hero { transition: none; }
  .tg-card:hover .tg-card__scene, .tg-card:hover .tg-card__hero { transform: none; }
}

.tg__foot { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 20px; }
.tg__all { color: var(--txt); font-weight: 600; font-size: 15px; text-decoration: none; }
.tg__all:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.tg__more {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--grad); color: #fff; font-family: inherit; font-weight: 700; font-size: 15px;
  transition: filter .2s;
}
.tg__more:hover { filter: brightness(1.1); }

/* сколько карточек влезает в два ряда: 5 → 4 → 3 колонки; на телефоне — лента с прокруткой */
/* ---- Афиша игры вверху страницы (main.js gameBackdrop): наша сцена, притушенная в цвет страницы, и герой справа.
   Каталог игры и страница лота. Лежит первым в <main> под содержимым; к низу растворяется в фоне страницы. ---- */
main:has(> .gx-back) { position: relative; isolation: isolate; }
/* --under: афиша начинается выше <main> — под прозрачной наверху шапкой, без шва между шапкой и сценой;
   --h — видимая высота под шапкой; к низу афиша растворяется (маска), и дальше виден узор фона */
.gx-back {
  --under: 120px;
  position: absolute; z-index: -1; left: 0; right: 0; top: calc(-1 * var(--under)); height: calc(var(--h, 430px) + var(--under));
  overflow: hidden; pointer-events: none; background: var(--bg-0);
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent); mask-image: linear-gradient(180deg, #000 74%, transparent);
}
.gx-back__scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: .62; }
.gx-back::before {              /* слева и к низу — в тон сцене, потом в фон страницы: текст читается, края не видно */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgb(var(--shade, 12 10 18) / .2) 0%, rgb(var(--shade, 12 10 18) / .45) 50%, var(--bg-0) 100%),
    linear-gradient(90deg, rgb(var(--shade, 12 10 18) / .85) 0%, rgb(var(--shade, 12 10 18) / .35) 45%, rgb(var(--shade, 12 10 18) / 0) 75%);
}
.gx-back__hero {
  position: absolute; z-index: 2; top: calc(var(--hero-y, 26px) + var(--under)); right: max(var(--gutter, 16px), calc((100% - var(--content, 1240px)) / 2));
  width: 290px; height: 290px; object-fit: contain; object-position: 50% 0; filter: drop-shadow(0 18px 16px rgba(0,0,0,.4));
}
/* каталог игры: герой кончается выше строки поиска по разделу */
.gx-back--ct .gx-back__hero { width: 220px; height: 220px; }
/* страница лота: справа карточка покупки — герой выглядывает из-за неё сверху */
.gx-back--pdp { --h: 380px; }
.gx-back--pdp .gx-back__hero { --hero-y: 8px; width: 200px; height: 200px; right: calc(max(var(--gutter, 16px), calc((100% - var(--content, 1240px)) / 2)) + 24px); }
/* топ-100: заголовок по центру — кубок справа только там, где хватает места, и сцена ярче (под ней подиум) */
.gx-back--top { --h: 500px; }
.gx-back--top .gx-back__scene { opacity: .7; object-position: 50% 40%; }
.gx-back--top .gx-back__hero { --hero-y: 40px; width: 250px; height: 250px; }
@media (max-width: 1240px) { .gx-back--top .gx-back__hero { display: none; } }
@media (max-width: 760px) {
  .gx-back { --h: 300px; }
  .gx-back__scene { opacity: .5; }
  .gx-back__hero { --hero-y: 58px; width: 100px; height: 100px; right: var(--gutter, 16px); }
  .gx-back--pdp .gx-back__hero, .gx-back--ct .gx-back__hero { display: none; }   /* на узком экране налезал на заголовок */
}
@media (prefers-reduced-motion: no-preference) {
  .gx-back__hero { animation: gx-float 7s ease-in-out infinite; }
  @keyframes gx-float { 50% { transform: translateY(-8px); } }
}

/* ---- Карточка-иллюстрация (.ax, js/art.js artCard / та же разметка в HTML): наша сцена фоном, тень под текст слева
   в тон сцене и «герой», который выходит за верх карточки — как в «Популярных направлениях». Слои: сцена и герой
   (z-index -1 в своём контексте карточки) → содержимое. Размер и место героя — переменными у конкретного блока:
   --hero-w, --hero-top, --hero-right. ---- */
.ax { position: relative; isolation: isolate; color: #fff; border-color: transparent !important; background: none !important; }
.ax__surface {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none;
  background: rgb(var(--shade, 12 10 18));
}
.ax__scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--scene-pos, 100% 50%); }
.ax__surface::before {              /* тень под текст слева — в тон сцене */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgb(var(--shade, 12 10 18) / .94) 0%, rgb(var(--shade, 12 10 18) / .78) var(--shade-mid, 34%), rgb(var(--shade, 12 10 18) / 0) var(--shade-end, 66%));
}
.ax__surface::after {               /* тонкая рамка */
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.ax__hero {
  position: absolute; z-index: -1; top: var(--hero-top, -40px); right: var(--hero-right, 24px);
  width: var(--hero-w, 240px); height: var(--hero-w, 240px); object-fit: contain; object-position: 50% 0;
  filter: drop-shadow(0 16px 14px rgba(0,0,0,.35)); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .ax__hero { animation: gx-float 7s ease-in-out infinite; }
}
/* цвета мест (js/art.js SITE_ART): shade — тень под текст в тон сцене («r g b»), tone — акцент */
.ax--ref    { --shade: 40 10 44; --tone: #ffc94d; }
.ax--sell   { --shade: 8 34 48;  --tone: #ff8a6b; }
.ax--wallet { --shade: 4 36 32;  --tone: #5fe0b0; }
.ax--login  { --shade: 10 16 52; --tone: #ffd34d; }
.ax--top    { --shade: 34 8 52;  --tone: #ffd34d; }
.ax--help   { --shade: 6 38 56;  --tone: #7fe3ff; }
.ax--guard  { --shade: 6 16 48;  --tone: #7fd1ff; }
.ax--lost   { --shade: 34 16 52; --tone: #ffb08a; }
/* осенняя тема: у этих мест тёплые сцены (<имя>-dusk.webp) — и тень под текст тёплая */
:root[data-event-on="1"] .ax--ref  { --shade: 46 14 8; }
:root[data-event-on="1"] .ax--top  { --shade: 40 12 8; }
:root[data-event-on="1"] .ax--lost { --shade: 42 16 10; }

/* сколько колонок влезает: 6 → 5 (выше) → 4 → 3; на телефоне — лента. Сколько карточек в двух рядах — считает trending.js */
@media (max-width: 1180px) {
  .tg__grid { --tg-max: 4; }
}
@media (max-width: 900px) {
  .tg__grid { --tg-max: 3; }
  .tg__grid--big[data-cols="3"] .tg-card { min-height: 196px; }
  .tg__grid--big[data-cols="3"] .tg-card__hero { width: 164px; height: 164px; top: -30px; right: -12px; }
  .tg__grid--big[data-cols="3"] .tg-card__chips > :nth-child(n+2) { display: none; }
}
@media (max-width: 760px) {
  .tg__grid { --tg-max: 0; }
  .tg { padding-top: 18px; }
  .tg .hx-head { margin-bottom: 4px; }
  .tg__grid[data-cols] {      /* сверху запас — герой выходит за карточку, а лента режет всё, что вне её */
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 0 -16px; padding: 34px 16px 16px;
  }
  .tg__grid[data-cols]::-webkit-scrollbar { display: none; }
  .tg__grid[data-cols] > .tg-card:nth-child(n) { display: block; flex: 0 0 min(300px, 84%); height: 180px; min-height: 0; scroll-snap-align: center; }
  .tg__grid[data-cols] .tg-card__hero { width: 150px; height: 150px; top: -26px; right: -6px; }
  .tg__grid[data-cols] .tg-card__hero--icon { width: 84px; height: 84px; top: 18px; right: 18px; }
  .tg__grid[data-cols] .tg-card__main { max-width: 62%; padding: 18px 0 18px 18px; }
  .tg__grid[data-cols] .tg-card__title { font-size: 18px; }
  .tg__grid[data-cols] .tg-card__link .tg-card__icon { width: 30px; height: 30px; border-radius: 9px; }
  .tg__grid[data-cols] .tg-card__chips > :nth-child(n+2) { display: none; }
  .tg__foot { margin-top: 6px; }
}

/* ---- как проходит сделка ---- */
.hx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hx-step { padding: 22px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-1); }
.hx-step__num {
  margin-bottom: 12px;
  font: 800 15px/1 var(--font-display); color: #8B7BFF;
}
.hx-step h3 { margin: 0 0 8px; font-size: 17px; }
.hx-step p { margin: 0; color: var(--txt-2); font-size: 14.5px; line-height: 1.6; }
/* шаги с рисунками (tools/site-art/steps.mjs): сверху полоса-сцена, предмет выходит за верх карточки, номер — плашкой
   в цвет шага на стыке полосы и текста */
.hx-steps:has(.hx-step__art) { gap: 16px; padding-top: 34px; }
.hx-step:has(.hx-step__art) { position: relative; isolation: isolate; padding: 0 20px 22px; border-radius: 22px; }
.hx-step--pick  { --tone: #b29dff; --shade: 36 22 92; }
.hx-step--pay   { --tone: #8fdcff; --shade: 12 42 84; }
.hx-step--check { --tone: #6fe3c1; --shade: 6 52 52; }
.hx-step--done  { --tone: #ffd25e; --shade: 70 38 8; }
.hx-step__art {
  position: relative; z-index: -2; height: 124px; margin: 0 -20px; border-radius: 21px 21px 0 0; overflow: hidden;
  background: rgb(var(--shade, 20 18 30));
}
.hx-step__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transition: transform .7s var(--ease-out); }
.hx-step__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, var(--bg-1)); }
.hx-step__hero {
  position: absolute; z-index: -1; top: -34px; right: 6px; width: 140px; height: 140px; object-fit: contain; object-position: 50% 0;
  filter: drop-shadow(0 14px 12px rgba(0,0,0,.35)); pointer-events: none; transition: transform .45s var(--ease-out);
}
.hx-step:has(.hx-step__art) .hx-step__num {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: -24px 0 14px;
  border-radius: 14px; background: var(--tone); color: #15101e; font-size: 19px; box-shadow: 0 0 0 5px var(--bg-1);
}
.hx-step:hover .hx-step__hero { transform: translateY(-6px) rotate(-4deg) scale(1.04); }
.hx-step:hover .hx-step__art img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .hx-step__hero, .hx-step__art img { transition: none; }
  .hx-step:hover .hx-step__hero, .hx-step:hover .hx-step__art img { transform: none; }
}

/* ---- продавцы ---- */
.hx-sellers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.seller-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--bg-1);
  color: inherit; text-decoration: none;
  transition: border-color .2s;
}
.seller-tile:hover { border-color: var(--line-hi); }
.seller-tile__ava { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; }
.seller-tile__ava img, .seller-tile__ava span {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  background: #1B1A2A; border: 1px solid var(--line-hi); font-weight: 800; color: #fff;
}
.seller-tile__ava .presence__dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border: 2px solid var(--bg-1); box-shadow: none; }
.seller-tile__body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
/* ник + бейдж: не влезают в строку — бейдж переносится вниз, длинный ник обрезается многоточием;
   за пределы своей колонки ничего не вылезает и не наезжает на номер места справа */
.seller-tile__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; min-width: 0; font-weight: 700; font-size: 15.5px; }
.seller-tile__name > .nick {
  min-width: 0; max-width: 100%; white-space: nowrap; text-overflow: ellipsis;
  overflow: hidden; overflow: clip; overflow-clip-margin: 8px;
}
.seller-tile__name .rec-badge { flex: none; margin-left: 0; }
.seller-tile__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; color: var(--txt-3); font-size: 12.5px; }
.seller-tile__meta > * { white-space: nowrap; }
.seller-tile__meta b { color: var(--warn); font-weight: 700; }
.seller-tile__rank { flex: none; align-self: center; font: 700 15px/1 var(--font-body); color: var(--txt-3); }

/* ---- отзывы: последние реальные отзывы, сетка ---- */
.hx-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; transition: opacity .3s ease; }
.hx-reviews.is-swapping { opacity: 0; }
.hx-review {
  min-width: 0; padding: 16px 18px; border-radius: 16px;
  display: flex; flex-direction: column;
  background: var(--bg-1); border: 1px solid var(--line);
  transition: border-color .2s;
}
.hx-review:hover { border-color: var(--line-hi); }
.hx-review.is-fresh { border-color: rgba(52,211,153,.45); }
.hx-review a { color: inherit; text-decoration: none; }
.hx-review__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hx-review__ava {
  flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: #17142a; border: 1px solid var(--line-hi);
  font-weight: 800; color: #fff;
}
.hx-review__ava img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }   /* квадрат: вытянутый аватар обрезается по центру */
.hx-review__head { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.hx-review__name { min-width: 0; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-review__name:hover .nick { text-decoration: underline; text-underline-offset: 3px; }
/* на узкой карточке с пометкой «новый» время обрезается многоточием, а не залезает под неё */
.hx-review__head small { min-width: 0; color: var(--txt-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-review__ok { color: var(--ok); font-weight: 600; }
.hx-review__new {
  flex: none; padding: 3px 8px; border-radius: 999px; font-size: max(11px, calc(9px / var(--z, 1))); font-weight: 700;
  color: #34D399; background: rgba(52,211,153,.12);
}
.hx-review__stars { margin-top: 12px; color: var(--warn); letter-spacing: 2px; font-size: 14px; }
.hx-review p {
  margin: 8px 0 14px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere;   /* ссылка или «Спасибооо!!!» переносятся */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hx-review__lot {
  margin-top: auto; display: flex; align-items: center; gap: 10px; min-width: 0;
  padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--txt-3);
}
.hx-review .hx-review__item { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; color: var(--txt-2); }
.hx-review__item > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-review__item:hover > span:last-child { color: var(--txt); text-decoration: underline; text-underline-offset: 3px; }
.hx-review__game {
  flex: none; width: 22px; height: 22px; border-radius: 7px; overflow: hidden; display: grid; place-items: center;
  background-size: cover; background-position: center; color: #fff; font-size: max(9px, calc(9px / var(--z, 1))); font-weight: 800;
}
.hx-review__seller { flex: none; max-width: 42%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-review__seller:hover .nick { text-decoration: underline; text-underline-offset: 3px; }

/* ---- FAQ ---- */
.hx-faq { display: grid; gap: 8px; max-width: 860px; }
.hx-faq details {
  border-radius: 14px; border: 1px solid var(--line); background: var(--bg-1);
  transition: border-color .2s;
}
.hx-faq details[open] { border-color: var(--line-hi); }
.hx-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 700; font-size: 16px;
}
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after {
  content: '+'; flex: none; width: 24px; text-align: center;
  font-weight: 400; font-size: 22px; line-height: 1; color: var(--txt-2);
  transition: transform .25s var(--ease-out);
}
.hx-faq details[open] summary::after { transform: rotate(45deg); }
.hx-faq details p { margin: 0; padding: 0 20px 18px; max-width: 75ch; color: var(--txt-2); line-height: 1.65; }   /* на широком экране строка не длиннее ~85 знаков */
/* вопросы слева, справа — карточка поддержки с рисунком (спасательный круг выходит за верх) */
.hx-faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.hx-faq-wrap .hx-faq { max-width: none; }
.hx-help {
  --hero-w: 200px; --hero-top: -64px; --hero-right: -14px; --shade-mid: 50%; --shade-end: 100%;
  position: sticky; top: 96px; margin-top: 48px; padding: 148px 24px 24px; border-radius: 26px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.hx-help .ax__surface::before { background: linear-gradient(180deg, rgb(var(--shade) / 0) 0%, rgb(var(--shade) / .7) 42%, rgb(var(--shade) / .95) 70%); }
.hx-help .ax__scene { object-position: 70% 50%; }
.hx-help__title { margin: 0; font: 800 22px/1.15 var(--font-display); letter-spacing: -.02em; }
.hx-help__text { margin: 0; color: rgb(255 255 255 / .8); font-size: 14.5px; line-height: 1.55; }
.hx-help__btn {
  margin-top: 6px; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px;
  background: #fff; color: #10141c; font-weight: 700; font-size: 14.5px; text-decoration: none; transition: filter .2s;
}
.hx-help__btn:hover { filter: brightness(.92); }
@media (max-width: 1080px) {
  .hx-faq-wrap { grid-template-columns: 1fr; }
  .hx-help { position: relative; top: 0; margin-top: 40px; padding: 26px 24px; max-width: none; }
  .hx-help { --hero-w: 170px; --hero-top: -50px; --hero-right: 10px; }
  .hx-help .ax__surface::before { background: linear-gradient(90deg, rgb(var(--shade) / .95) 0%, rgb(var(--shade) / .8) 45%, rgb(var(--shade) / 0) 80%); }
  .hx-help > :not(.ax__surface):not(.ax__hero) { max-width: min(440px, 64%); }
}

/* ---- блок для продавцов ---- */
.hx-cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: clamp(24px, calc(4vw / var(--z, 1)), 40px); border-radius: 20px;
  background: var(--bg-1); border: 1px solid var(--line);
}
.hx-cta-card .hx-sub { margin-bottom: 0; }
.hx-cta-card .hx-cta { margin-top: 0; }
/* с нашим рисунком (tools/site-art/promo.mjs): рыночная сцена, прилавок выходит за верх; текст и кнопки — слева */
.hx-section:has(> .hx-cta-card.ax) { padding-top: 96px; }
.hx-cta-card.ax {
  --hero-w: 310px; --hero-top: -96px; --hero-right: 18px; --shade-mid: 40%; --shade-end: 76%;
  flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; min-height: 250px;
  padding: 36px 360px 36px 38px; border-radius: 26px;
}
.hx-cta-card.ax .hx-sub { color: rgb(255 255 255 / .8); }
.hx-cta-card.ax .btn-ghost { background: rgb(0 0 0 / .35); border-color: rgb(255 255 255 / .3); color: #fff; }
@media (max-width: 980px) {
  .hx-cta-card.ax { padding-right: 250px; --hero-w: 230px; --hero-top: -70px; }
}
@media (max-width: 700px) {
  .hx-section:has(> .hx-cta-card.ax) { padding-top: 76px; }
  .hx-cta-card.ax { padding: 150px 22px 24px; --hero-w: 190px; --hero-top: -60px; --hero-right: 50%; }
  .hx-cta-card.ax .ax__hero { translate: 50% 0; }
  .hx-cta-card.ax .ax__surface::before { background: linear-gradient(180deg, rgb(var(--shade) / .1) 0%, rgb(var(--shade) / .75) 42%, rgb(var(--shade) / .95) 64%); }
}

/* ---- адаптив ---- */
@media (max-width: 1080px) {
  .hx-hero__inner { grid-template-columns: 1fr; }
  .hx-stage { width: min(100%, 560px); margin: 10px auto 0; }
  .hx-stage__card { width: 230px; }
  .hx-steps { grid-template-columns: repeat(2, 1fr); }
  .hx-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-reviews > :nth-child(n+5) { display: none; }
}
/* 900–1280: правая карточка веера упиралась в край экрана и обрезалась — карточки чуть уже, правая не дальше края сцены */
@media (max-width: 1280px) { .hx-stage__card { width: 240px; } .hx-stage__card--3 { left: min(54%, 100% - 256px); } }
@media (max-width: 1080px) { .hx-stage__card { width: 230px; } .hx-stage__card--3 { left: min(54%, 100% - 246px); } }
@media (max-width: 700px) {
  .hx-section { padding: 40px 0; }
  .hx-hero { padding: 40px 0 28px; }
  /* на телефоне сцены с сейфом и карточками нет совсем (владелец, 2026-10-05): она занимала весь первый экран,
     и игры с лотами начинались только на втором. Правила ниже — на случай, если её вернут */
  .hx-stage { display: none; }
  /* на узком экране веер из трёх карточек превращается в кашу — видна одна, по центру; соседние прячутся
     по бокам, новая въезжает справа, старая уходит влево. Сцена ниже, сейф мельче — под карточкой */
  .hx-stage { height: 450px; }
  .hx-stage__panel { inset: 96px 0 0; border-radius: 26px; }
  .hx-stage__vault { width: 150px; bottom: 4px; }
  .hx-stage__card { width: 210px; margin-left: -105px; }
  .hx-stage__card--2 { left: 50%; top: 20px; rotate: 0deg; }
  .hx-stage__card--1, .hx-stage__card.is-off { left: 12%; top: 40px; rotate: -8deg; opacity: 0; scale: .88; pointer-events: none; }
  .hx-stage__card--3, .hx-stage__card--enter { left: 88%; top: 40px; rotate: 8deg; opacity: 0; scale: .88; pointer-events: none; }
  .hx-steps { grid-template-columns: 1fr; }
  .hx-reviews { grid-template-columns: 1fr; }
  .hx-reviews > :nth-child(n+4) { display: none; }
  .hx-cta { flex-direction: column; align-items: stretch; }
  .hx-cta-card .hx-cta { width: 100%; }
  .hx-cta .btn-shimmer, .hx-cta .btn-ghost { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-stage__card, .fx-word { transition: none; }
  .fx-word.is-in-word { animation: none; }
}

/* ---- Диалоги подтверждения/ввода (вместо системных confirm/prompt) ---- */
.fx-dlg-overlay {
  position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 16px;
  background: rgba(5,5,10,.7);
  opacity: 0; transition: opacity .2s;
}
.fx-dlg-overlay.is-open { opacity: 1; }
.fx-dlg {
  width: min(440px, 100%); padding: 24px 24px 22px; border-radius: 18px; display: grid; gap: 12px;
  background: #14141C; border: 1px solid var(--line-hi, rgba(255,255,255,.17));
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.95);
  transform: translateY(8px); transition: transform .22s var(--ease-out);
  color: var(--txt, #ECECF3);
}
.fx-dlg-overlay.is-open .fx-dlg { transform: none; }
.fx-dlg__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: rgba(108,92,255,.14); border: 1px solid rgba(108,92,255,.3);
}
.fx-dlg__icon.is-danger { background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.4); }
.fx-dlg__title { margin: 2px 0 0; font: 800 20px/1.25 var(--font-display, sans-serif); letter-spacing: -.03em; }
.fx-dlg__text { margin: 0; color: var(--txt-2, #9E9EB2); font-size: 14.5px; line-height: 1.55; }
.fx-dlg__details {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 2px 0 0; padding: 12px 14px;
  border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line, rgba(255,255,255,.09)); font-size: 13.5px;
}
.fx-dlg__details dt { color: var(--txt-3, #6A6A7E); }
.fx-dlg__details dd { margin: 0; color: var(--txt, #ECECF3); font-weight: 600; text-align: right; }
.fx-dlg__field { display: grid; gap: 6px; font-size: 13px; color: var(--txt-2, #9E9EB2); }
.fx-dlg__input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; font-family: inherit; font-weight: 500; font-size: 15px; line-height: 1.4;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-hi, rgba(255,255,255,.17)); color: var(--txt, #fff); resize: vertical;
}
.fx-dlg__input:focus { outline: none; border-color: var(--acc, #6C5CFF); box-shadow: 0 0 0 3px rgba(108,92,255,.25); }
/* обязательная галочка (uiConfirm check): пока не стоит, «ок» не нажимается */
.fx-dlg__check {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-hi, rgba(255,255,255,.17));
  color: var(--txt, #ECECF3); font-size: 14.5px; font-weight: 600; line-height: 1.45; transition: border-color .15s, background .15s;
}
.fx-dlg__check:hover { border-color: rgba(255,255,255,.3); }
.fx-dlg__check:has(input:checked) { border-color: var(--acc, #6C5CFF); background: rgba(108,92,255,.1); }
.fx-dlg__check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--acc, #6C5CFF); cursor: pointer; }
.fx-dlg__check input:focus-visible { outline: 2px solid var(--acc, #6C5CFF); outline-offset: 2px; }
.fx-dlg__ok:disabled, .fx-dlg__ok:disabled:hover { opacity: .4; cursor: not-allowed; filter: none; }
.fx-dlg__err { margin: -4px 0 0; color: var(--err, #FB7185); font-size: 13px; min-height: 0; }
.fx-dlg__err:empty { display: none; }
.fx-dlg__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.fx-dlg__ok, .fx-dlg__no {
  height: 44px; padding: 0 20px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 14.5px; line-height: 1; cursor: pointer;
  transition: background .2s, filter .2s;
}
.fx-dlg__no { background: rgba(255,255,255,.05); border: 1px solid var(--line-hi, rgba(255,255,255,.17)); color: var(--txt, #fff); }
.fx-dlg__no:hover { background: rgba(255,255,255,.1); }
.fx-dlg__ok { border: 0; color: #fff; background: var(--grad, #6C5CFF); }
.fx-dlg__ok.is-danger { background: #E11D48; }
.fx-dlg__ok:hover { filter: brightness(1.1); }
.fx-dlg__ok:focus-visible, .fx-dlg__no:focus-visible { outline: 2px solid var(--acc, #6C5CFF); outline-offset: 3px; }
@media (max-width: 480px) {
  .fx-dlg-overlay { place-items: end center; padding: 0; }
  .fx-dlg { border-radius: 18px 18px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .fx-dlg__actions { flex-direction: column-reverse; }
  .fx-dlg__ok, .fx-dlg__no { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .fx-dlg, .fx-dlg-overlay { transition: none; } }

/* ---- Премиум (js/premium.js): окно «Обычный или премиум» в конце выставления и покупка в «Моих лотах» ---- */
.pp-dlg { width: min(520px, 100%); max-height: calc(calc(100dvh / var(--z, 1)) - 32px); overflow-y: auto; }
.pp-opts { display: grid; gap: 10px; }
.pp-opt {
  position: relative; display: grid; gap: 6px; padding: 14px 16px 14px 48px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-hi, rgba(255,255,255,.17));
  transition: border-color .15s, background .15s;
}
.pp-opt:hover { border-color: rgba(255,255,255,.3); }
.pp-opt__radio { position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; margin: 0; accent-color: var(--acc, #6C5CFF); cursor: pointer; }
.pp-opt__radio:focus-visible { outline: 2px solid var(--acc, #6C5CFF); outline-offset: 2px; }
.pp-opt:has(.pp-opt__radio:checked) { border-color: var(--acc, #6C5CFF); background: rgba(108,92,255,.08); }
.pp-opt--prem { border-color: rgba(245,158,11,.45); }
.pp-opt--prem:hover { border-color: rgba(245,158,11,.75); }
.pp-opt--prem .pp-opt__radio { accent-color: #F59E0B; }
.pp-opt--prem:has(.pp-opt__radio:checked) { border-color: #F59E0B; background: rgba(245,158,11,.08); }
.pp-opt.is-off, .pp-opt.is-off .pp-opt__radio { cursor: not-allowed; }
.pp-opt.is-off > :not(.pp-opt__warn) { opacity: .6; }
.pp-opt__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pp-opt__head b { display: inline-flex; align-items: center; gap: 6px; font: 800 16px/1.2 var(--font-display, sans-serif); }
.pp-opt__price { font-weight: 800; font-size: 15px; white-space: nowrap; }
.pp-opt--prem .pp-opt__price { color: #FBBF24; }
.pp-crown { display: inline-grid; color: #F59E0B; }
.pp-crown svg { width: 17px; height: 17px; }
.pp-opt__sub { color: var(--txt-2, #9E9EB2); font-size: 13.5px; line-height: 1.45; }
.pp-opt__note { color: var(--txt-3, #6A6A7E); font-size: 12.5px; line-height: 1.45; }
.pp-opt__warn { color: #FBBF24; font-size: 13px; font-weight: 600; line-height: 1.4; }
/* как премиум стоит в каталоге: широкая карточка в золотой рамке над обычными */
.pp-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 20px 20px; gap: 4px; width: 100%; max-width: 220px; margin: 4px 0 2px; }
.pp-mini i { border-radius: 5px; background: rgba(255,255,255,.08); }
.pp-mini i.is-prem { grid-column: span 2; grid-row: span 2; display: grid; place-items: center; background: rgba(245,158,11,.16); border: 1.5px solid #F59E0B; color: #F59E0B; }
.pp-mini b { display: grid; }
.pp-mini svg { width: 16px; height: 16px; }
.pp-perks { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.4; color: var(--txt, #ECECF3); }
.pp-perks li { position: relative; padding-left: 22px; }
.pp-perks li::before {
  content: ''; position: absolute; left: 3px; top: 5px; width: 10px; height: 5px;
  border-left: 2px solid #F59E0B; border-bottom: 2px solid #F59E0B; transform: rotate(-45deg);
}
.pp-icon { color: #F59E0B; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.4); }
.pp-icon svg { width: 22px; height: 22px; }
.pp-dlg .fx-dlg__err a { color: inherit; font-weight: 700; }
.pp-dlg .fx-dlg__details[hidden] { display: none; }
@media (max-width: 480px) {
  .pp-dlg { max-height: calc(92dvh / var(--z, 1)); }
  .pp-opt { padding: 13px 14px 13px 44px; }
  .pp-opt__radio { left: 14px; }
}

/* Interactive homepage discovery. Native category art, direct catalog links. */
.ld { padding-top: 38px; padding-bottom: 8px; }
.ld [hidden] { display: none !important; }
.ld-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.ld-title { margin: 0; color: #f8f6ff; font: 800 clamp(28px, calc(2.55vw / var(--z, 1)), 40px)/1.2 var(--font-display, Unbounded, sans-serif); letter-spacing: -.045em; }
.ld-subtitle { margin: 10px 0 0; color: #a9a2bd; font: 500 14px/1.5 var(--font-body, Manrope, sans-serif); }
.ld-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.ld-catalog, .ld-sell, .ld-more { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 13px/1.4 var(--font-body, Manrope, sans-serif); }
.ld-catalog { color: #dad4ef; min-height: 42px; }
.ld-sell { border: 1px solid #ffffff22; background: #ffffff08; border-radius: 13px; min-height: 42px; padding: 10px 15px; color: #f8f6ff; }
.ld-catalog:hover, .ld-more:hover { color: #c0adff; }
.ld-sell:hover { background: #ffffff12; border-color: #9f88ff70; }
.ld-tabs { display: flex; gap: 10px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px -3px 20px; overscroll-behavior-x: contain; }
.ld-tabs::-webkit-scrollbar { display: none; }
.ld-tab { display: flex; gap: 10px; align-items: center; justify-content: center; flex-shrink: 0; min-height: 46px; padding: 9px 16px 9px 11px; border: 1px solid #ffffff13; border-radius: 14px; background: #17151f; color: #c6c1d3; font: 800 13px/1.3 var(--font-body, Manrope, sans-serif); transition: background .18s, border-color .18s, color .18s; }
.ld-tab img { width: 26px; height: 26px; object-fit: cover; border-radius: 8px; }
.ld-tab:hover { color: #fff; background: #241f35; border-color: #ffffff30; }
.ld-tab[aria-selected="true"] { color: #fff; background: #332653; border-color: #9a7bf1; box-shadow: inset 0 0 0 1px #ad8fff1a; }
.ld-panel { scroll-margin-top: 100px; }
.ld:not([data-discovery-ready="true"]) .ld-panel + .ld-panel { margin-top: 24px; }
.ld-cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.ld-card { --ld-glow: #8c62ed; position: relative; display: block; min-width: 0; height: 244px; border: 1px solid #ffffff1a; border-radius: 23px; overflow: hidden; isolation: isolate; color: #fff; background: radial-gradient(ellipse at 82% 18%, color-mix(in srgb, var(--ld-glow) 23%, transparent), transparent 76%), #17131f; transition: border-color .2s, transform .2s; }
.ld-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #14111ef0, #14111e00 58%); pointer-events: none; }
.ld-card:hover { border-color: color-mix(in srgb, var(--ld-glow) 65%, #fff); transform: translateY(-4px); }
.ld-card__halo { position: absolute; width: 72%; aspect-ratio: 1; top: -30%; right: -15%; border: 1px solid #ffffff0c; border-radius: 50%; background: #ffffff03; z-index: -1; }
.ld-card__halo::after { content: ''; position: absolute; inset: 16%; border: 1px solid #ffffff0b; border-radius: 50%; }
.ld-card__art { position: absolute; z-index: -1; right: 6%; top: 4px; width: 69%; height: 67%; object-fit: contain; filter: drop-shadow(0 10px 8px #05040a40); transition: transform .3s; user-select: none; pointer-events: none; }
.ld-card:hover .ld-card__art { transform: translateY(-3px) rotate(3deg); }
.ld-card__copy { position: absolute; left: 22px; bottom: 23px; right: 48px; }
.ld-card__title { margin: 0; color: #fff; font: 800 23px/1.2 var(--font-display, Unbounded, sans-serif); letter-spacing: -.04em; text-wrap: balance; overflow-wrap: anywhere; }
.ld-card__text { margin: 9px 0 0; color: #c3bdd1; font: 500 12px/1.4 var(--font-body, Manrope, sans-serif); text-wrap: pretty; }
.ld-card__go { position: absolute; display: grid; place-items: center; right: 17px; bottom: 22px; width: 28px; height: 28px; color: #c7b8ef; border-radius: 50%; background: #ffffff08; }
.ld-card--lead { background: radial-gradient(ellipse at 80% 45%, color-mix(in srgb, var(--ld-glow) 29%, transparent), transparent 85%), #21192f; }
.ld-card--lead .ld-card__art { right: -3%; top: 4%; width: 54%; height: 90%; }
.ld-card--lead .ld-card__copy { top: 36px; bottom: auto; right: 44%; left: 26px; }
.ld-card--lead .ld-card__title { font-size: 32px; }
.ld-card--lead .ld-card__text { max-width: 185px; font-size: 13px; line-height: 1.55; margin-top: 12px; }
.ld-card--lead .ld-card__go { left: 26px; right: auto; bottom: 25px; width: 38px; height: 38px; background: #ffffff12; color: #fff; }
.ld-card--lead .ld-card__halo { width: 77%; top: -13%; right: -14%; }
.ld-panel__foot { display: flex; align-items: center; justify-content: space-between; min-height: 43px; gap: 16px; padding: 8px 2px 0; }
.ld-panel__hint { font: 500 11px/1.4 var(--font-body, Manrope, sans-serif); color: #7f788e; }
.ld-more { color: #c0b2e5; font-size: 12px; }
.ld-more svg { width: 16px; height: 16px; }
.ld a:focus-visible { outline: 3px solid #c1a8ff; outline-offset: 2px; }
.ld-card:focus-visible { outline-offset: -4px; }
.ld-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; margin-top: 16px; }
.ld-news__item { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid #ffffff16; border-radius: 16px; background: #191620; }
.ld-news__item img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.ld-news__item > div { flex: 1; min-width: 0; }
.ld-news__item > svg { flex: 0 0 18px; }
.ld-news__item strong, .ld-news__label, .ld-news__text, .ld-news__action { display: block; }
.ld-news__label { color: #aa91ed; font-size: 10px; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; }
.ld-news__item strong { font-size: 14px; line-height: 1.4; }
.ld-news__text { color: #a9a2ba; font-size: 12px; margin-top: 5px; }
.ld-news__action { color: #c7b2ff; font-size: 11px; margin-top: 8px; }
.ld-news__dot { width: 8px; height: 8px; border-radius: 50%; background: #9875fa; flex-shrink: 0; }
.ld + .hx-section { padding-top: 24px; }
@media (min-width: 1600px) { .ld-card { height: 260px; } .ld-card--lead .ld-card__title { font-size: 36px; } }
@media (max-width: 1100px) {
  .ld { padding-top: 28px; }
  .ld-title { font-size: 30px; }
  .ld-actions { gap: 14px; }
  .ld-catalog, .ld-sell { font-size: 12px; }
  .ld-cards { gap: 12px; grid-template-columns: 1.25fr 1fr 1fr; }
  .ld-card { height: 228px; border-radius: 20px; }
  .ld-card__title { font-size: 20px; }
  .ld-card__copy { left: 18px; right: 39px; bottom: 20px; }
  .ld-card__text { font-size: 11px; }
  .ld-card__go { right: 10px; bottom: 18px; }
  .ld-card--lead .ld-card__copy { top: 26px; left: 22px; right: 23%; }
  .ld-card--lead .ld-card__title { font-size: 27px; }
  .ld-card--lead .ld-card__text { max-width: 135px; font-size: 12px; }
  .ld-card--lead .ld-card__art { width: 60%; right: -10%; top: 18%; height: 78%; }
  .ld-card--lead .ld-card__go { left: 22px; bottom: 20px; }
}
@media (max-width: 760px) {
  .ld-heading { gap: 15px; align-items: flex-start; margin-bottom: 18px; }
  .ld-title { font-size: 27px; max-width: 16em; }
  .ld-subtitle { font-size: 12px; margin-top: 8px; }
  .ld-actions { gap: 8px; flex-direction: column-reverse; align-items: flex-end; }
  .ld-catalog { font-size: 11px; min-height: 26px; gap: 5px; }
  .ld-catalog svg { width: 15px; }
  .ld-sell { min-height: 34px; padding: 7px 10px; font-size: 11px; }
  .ld-tab { min-height: 43px; font-size: 12px; padding: 8px 13px 8px 9px; }
  .ld-tab img { width: 24px; height: 24px; }
  .ld-tabs { margin-bottom: 16px; gap: 8px; }
  .ld-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ld-card { height: 144px; border-radius: 18px; }
  .ld-card--lead { grid-column: 1 / -1; height: 145px; }
  .ld-card--lead .ld-card__copy { top: 22px; left: 22px; right: 45%; }
  .ld-card--lead .ld-card__title { font-size: 26px; }
  .ld-card--lead .ld-card__text { max-width: none; font-size: 12px; margin-top: 8px; }
  .ld-card--lead .ld-card__art { width: 39%; height: 98%; top: 2px; right: 4%; }
  .ld-card--lead .ld-card__go { left: auto; right: 15px; bottom: 14px; width: 28px; height: 28px; }
  .ld-card__art { height: 58%; width: 54%; right: -1%; top: -2px; }
  .ld-card__copy { left: 16px; bottom: 18px; right: 35px; }
  .ld-card__title { font-size: 18px; }
  .ld-card__text { font-size: 11px; margin-top: 7px; max-width: 180px; }
  .ld-card--small .ld-card__text { display: none; }
  .ld-card__go { width: 24px; height: 24px; right: 10px; bottom: 15px; }
  .ld-panel__hint { display: none; }
  .ld-panel__foot { justify-content: flex-end; min-height: 37px; }
  .ld-more { font-size: 11px; }
}
@media (max-width: 520px) {
  .ld { padding-top: 22px; padding-bottom: 0; }
  .ld-heading { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 15px; }
  .ld-title { font-size: 25px; max-width: 10em; }
  .ld-subtitle { display: none; }
  .ld:has(.ld-tabs) .ld-actions { display: none; }
  .ld-sell { padding: 7px 8px; min-height: 32px; gap: 5px; }
  .ld-catalog { font-size: 10px; }
  .ld-card { height: 145px; }
  .ld-card--lead { height: 140px; }
  .ld-card--lead .ld-card__copy { left: 19px; top: 21px; right: 39%; }
  .ld-card--lead .ld-card__title { font-size: 25px; }
  .ld-card--lead.ld-card--long-title .ld-card__title { font-size: 21px; }
  .ld-card--lead .ld-card__text { font-size: 11px; max-width: 165px; }
  .ld-card--lead .ld-card__art { width: 43%; right: 0; }
  .ld-card__copy { left: 14px; right: 14px; bottom: 15px; }
  .ld-card__title { font-size: 16px; }
  .ld-card__text { font-size: 10px; max-width: 110px; margin-top: 6px; }
  .ld-card__art { width: 64%; height: 59%; right: -1%; top: -3px; }
  .ld-card--small .ld-card__go { top: 12px; left: 12px; width: 22px; height: 22px; bottom: auto; right: auto; }
  .ld-card--small .ld-card__go svg { width: 15px; height: 15px; }
  .ld + .hx-section { padding-top: 22px; }
}
@media (max-width: 350px) {
  .ld-title { font-size: 22px; }
  .ld-sell { font-size: 10px; }
  .ld-catalog { font-size: 9px; }
  .ld-card__title { font-size: 14px; }
  .ld-card--small.ld-card--long-title .ld-card__title { font-size: 12px; }
  .ld-card--lead .ld-card__title { font-size: 23px; }
  .ld-card--lead.ld-card--long-title .ld-card__title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .ld *, .ld *::before, .ld *::after { transition: none !important; animation: none !important; } }

/* Homepage discovery refinement. Keep all navigation in the server markup. */
.home-page .ld { padding-top: 42px; padding-bottom: 0; }
.home-page .ld-heading { margin-bottom: 28px; gap: 24px; }
.home-page .ld-title { font-size: clamp(30px, calc(3.2vw / var(--z, 1)), 46px); letter-spacing: -.055em; }
.home-page .ld-subtitle { color: #b6afc9; margin-top: 12px; }
.home-page .ld-actions { gap: 18px; }
.home-page .ld-catalog { background: #7454ee; color: #fff; padding: 12px 18px; border-radius: 13px; box-shadow: 0 4px 0 #463197; }
.home-page .ld-catalog:hover { background: #8564ff; }
.home-page .ld-sell { border: 0; background: transparent; padding: 10px 0; color: #c4bdd5; }
.home-page .ld-tabs { width: fit-content; max-width: 100%; gap: 6px; padding: 5px; margin: 0 0 18px; border: 1px solid #ffffff0e; border-radius: 18px; background: #0e0c19b3; scroll-snap-type: x proximity; }
.home-page .ld-tab { min-height: 48px; padding: 10px 18px 10px 12px; background: transparent; border-color: transparent; border-radius: 12px; scroll-snap-align: start; color: #aca4bf; }
.home-page .ld-tab img { width: 27px; height: 27px; border-radius: 8px; }
.home-page .ld-tab:hover { background: #ffffff08; color: #fff; }
.home-page .ld-tab[aria-selected="true"] { background: #392958; border-color: #ad8ffb75; color: #fff; box-shadow: 0 3px 12px #05030a33; }
.home-page .ld-cards { grid-template-columns: 1.42fr 1fr 1fr; gap: 14px; }
.home-page .ld-card { height: 250px; border-radius: 24px; background: radial-gradient(ellipse at 83% 4%, color-mix(in srgb, var(--ld-glow) 28%, transparent), transparent 80%), #171220; border-color: #ffffff1c; box-shadow: inset 0 1px 0 #ffffff04, 0 12px 28px #0201061c; }
.home-page .ld-card::after { background: linear-gradient(0deg,#15101ee0,transparent 56%); }
.home-page .ld-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ld-glow) 65%, #fff); }
.home-page .ld-card__art { width: 74%; height: 69%; top: -2px; right: 0; filter: drop-shadow(0 14px 10px #05040a45); }
.home-page .ld-card__copy { left: 23px; right: 48px; bottom: 23px; }
.home-page .ld-card__title { font-size: 23px; }
.home-page .ld-card__text { color: #bfb7cd; margin-top: 9px; font-size: 12px; }
.home-page .ld-card__go { background: #ffffff0a; width: 30px; height: 30px; right: 15px; bottom: 23px; color: var(--ld-glow); }
.home-page .ld-card--lead { background: radial-gradient(ellipse at 90% 30%,color-mix(in srgb, var(--ld-glow) 38%,transparent),transparent 86%),linear-gradient(130deg,#2d2340,#17121f); }
.home-page .ld-card--lead .ld-card__copy { top: 32px; left: 28px; right: 43%; bottom: auto; }
.home-page .ld-card--lead .ld-card__title { font-size: 34px; }
.home-page .ld-card--lead .ld-card__text { font-size: 13px; line-height: 1.5; max-width: 170px; margin-top: 12px; }
.home-page .ld-card--lead .ld-card__art { width: 58%; height: 98%; top: 0; right: -2%; }
.home-page .ld-card--lead .ld-card__halo { width: 65%; top: -6%; right: -4%; }
.home-page .ld-card__action { position: absolute; left: 28px; bottom: 27px; display: inline-flex; gap: 13px; align-items: center; padding: 11px 13px; border-radius: 11px; color: #171322; background: var(--ld-glow); font: 800 12px/1.4 var(--font-body); box-shadow: 0 4px 12px #08050e1a; }
.home-page .ld-card__action svg { width: 16px; height: 16px; }
.home-page .ld-panel__foot { min-height: 48px; padding: 10px 2px 0; }
.home-page .ld-panel__hint { display: inline-flex; align-items: center; gap: 7px; color: #a39bb5; font-size: 11px; }
.home-page .ld-panel__hint svg { color: #a790da; }
.home-page .ld-panel__hint:hover { color: #e0d7ef; }
.home-page .ld-more { color: #d2c2f3; font-size: 12px; min-height: 32px; }
.home-page .ld-news { margin-top: 10px; }
/* Before enhancement, native hash links select a panel without a five-panel flash. */
.home-page .ld:not([data-discovery-ready="true"]) .ld-panel { display: none; margin-top: 0; }
.home-page .ld:not([data-discovery-ready="true"]):not(:has(.ld-panel:target)) .ld-panel:first-child,
.home-page .ld:not([data-discovery-ready="true"]) .ld-panel:target { display: block; }
.home-page .ld:not([data-discovery-ready="true"]):not(:has(.ld-panel:target)) .ld-tab:first-child { color: #fff; background: #392958; border-color: #ad8ffb75; }
@media (max-width: 1100px) {
  .home-page .ld { padding-top: 30px; }
  .home-page .ld-title { font-size: 32px; }
  .home-page .ld-catalog { font-size: 12px; padding: 11px 14px; }
  .home-page .ld-tab { font-size: 12px; padding-right: 14px; }
  .home-page .ld-card { height: 234px; }
  .home-page .ld-card__copy { left: 18px; bottom: 20px; right: 38px; }
  .home-page .ld-card__title { font-size: 19px; }
  .home-page .ld-card__text { font-size: 11px; }
  .home-page .ld-card__art { height: 64%; width: 80%; }
  .home-page .ld-card--lead .ld-card__copy { left: 23px; top: 26px; right: 20%; }
  .home-page .ld-card--lead .ld-card__title { font-size: 28px; }
  .home-page .ld-card--lead .ld-card__text { max-width: 130px; font-size: 12px; }
  .home-page .ld-card--lead .ld-card__art { width: 60%; height: 78%; top: 4%; right: -10%; }
  .home-page .ld-card__action { left: 23px; bottom: 22px; font-size: 11px; }
}
@media (max-width: 760px) {
  .home-page .ld-heading { margin-bottom: 20px; }
  .home-page .ld-title { font-size: 28px; max-width: 16em; }
  .home-page .ld-actions { gap: 12px; }
  .home-page .ld-catalog { padding: 9px 11px; min-height: 36px; font-size: 11px; }
  .home-page .ld-sell { padding: 0; min-height: 28px; }
  .home-page .ld-tabs { max-width: 100%; margin-bottom: 15px; border-radius: 15px; }
  .home-page .ld-tab { min-height: 43px; padding: 8px 12px 8px 9px; gap: 8px; }
  .home-page .ld-tab img { width: 25px; height: 25px; }
  .home-page .ld-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .home-page .ld-card { height: 155px; border-radius: 20px; }
  .home-page .ld-card--lead { height: 174px; }
  .home-page .ld-card__art { width: 61%; height: 68%; top: -4px; right: 0; }
  .home-page .ld-card__copy { left: 18px; right: 15px; bottom: 17px; }
  .home-page .ld-card__title { font-size: 18px; }
  .home-page .ld-card--small .ld-card__text { display: none; }
  .home-page .ld-card__go { width: 24px; height: 24px; top: 13px; left: 14px; right: auto; bottom: auto; }
  .home-page .ld-card__go svg { width: 16px; height: 16px; }
  .home-page .ld-card--lead .ld-card__copy { left: 22px; right: 44%; top: 23px; }
  .home-page .ld-card--lead .ld-card__title { font-size: 29px; }
  .home-page .ld-card--lead .ld-card__text { margin-top: 9px; font-size: 12px; max-width: 170px; }
  .home-page .ld-card--lead .ld-card__art { width: 47%; height: 99%; top: 0; right: 0; }
  .home-page .ld-card__action { left: 22px; bottom: 19px; padding: 9px 11px; border-radius: 9px; font-size: 11px; }
  .home-page .ld-panel__foot { min-height: 43px; padding-top: 7px; }
  .home-page .ld-panel__hint { font-size: 10px; }
  .home-page .ld-more { font-size: 10px; gap: 5px; }
}
@media (max-width: 520px) {
  .home-page .ld { padding-top: 24px; }
  .home-page .ld-heading { margin-bottom: 18px; }
  .home-page .ld-title { font-size: 28px; max-width: 12em; }
  .home-page .ld-card--lead .ld-card__title { font-size: 27px; }
  .home-page .ld-card--lead .ld-card__copy { right: 38%; }
  .home-page .ld-card__title { font-size: 16px; }
  .home-page .ld-card__copy { left: 15px; }
  .home-page .ld-card--small .ld-card__art { width: 66%; height: 64%; }
  .home-page .ld-panel__hint { display: none; }
}
@media (max-width: 350px) {
  .home-page .ld-title { font-size: 24px; }
  .home-page .ld-card--lead .ld-card__title { font-size: 24px; }
  .home-page .ld-card--lead.ld-card--long-title .ld-card__title { font-size: 20px; }
  .home-page .ld-card--lead .ld-card__text { font-size: 11px; max-width: 130px; }
  .home-page .ld-card--small .ld-card__title { font-size: 14px; }
  .home-page .ld-card--small.ld-card--long-title .ld-card__title { font-size: 12px; }
}
