/* =============================================================================
   CS-SKINS — дизайн-система

   Направление: бело-синий минимализм. Холодная обсидиановая база, облачный
   белый и синий акцент, мягкие фейды (градиентные растворения) вместо жёстких
   границ. Фон — силуэты оружия CS2 и холодное свечение: тематика читается,
   но не спорит с товаром.

   Шрифты локальные (/fonts): Inter — как на cstable, JetBrains Mono — цифры.
   Внешних CDN нет.
   ============================================================================= */

/* --------------------------------------------------------------- шрифты */

/* Три поднабора: latin, latin-ext (в нём знак рубля U+20BD) и cyrillic.
   Файлы вариативные — один обслуживает весь диапазон начертаний. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ токены */

:root {
  --bg: #0a0c12;
  --bg-2: #070910;
  --surface: #10131c;
  --surface-2: #151924;
  --surface-3: #1c2130;

  --line: rgba(150, 180, 255, 0.12);
  --line-2: rgba(150, 180, 255, 0.22);
  --line-soft: rgba(150, 180, 255, 0.07);

  /* Облачный белый → синий: основной градиент «фейда» в системе. */
  --ice: #eaf2ff;
  --ice-2: #bfd8ff;
  --blue: #7fb2ff;
  --blue-2: #4a8cff;
  --accent: #5b9dff;
  --accent-soft: rgba(91, 157, 255, 0.12);

  --fade-text: linear-gradient(100deg, var(--ice) 0%, var(--ice-2) 46%, var(--blue) 100%);
  --fade-line: linear-gradient(90deg, transparent, rgba(127, 178, 255, 0.45), transparent);
  --fade-blue: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);

  --text: #e8eef9;
  --text-2: #b6c2d9;
  --muted: #8c9ab4;

  --ok: #57d9a3;
  --warn: #ffb454;
  --err: #ff6b81;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  /* Цифры набраны тем же шрифтом, что интерфейс: моноширинный на ценах и
     суммах читается как «техническая панель», а не как витрина. Для колонок
     включены табличные цифры (одинаковой ширины) — суммы по-прежнему
     выравниваются друг под другом. */
  --mono: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  /* Моноширинный остался там, где строка машинная: идентификаторы, ссылки,
     адреса кошельков, SteamID — их читают посимвольно. */
  --code: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --r: 8px;
  --r-lg: 16px;
  --maxw: 1360px;
  --header-h: 68px;

  --shadow: 0 18px 40px rgba(2, 5, 14, 0.5);
  --glow: 0 0 0 1px rgba(91, 157, 255, 0.16), 0 14px 38px rgba(6, 16, 40, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.58;
  /* Цифры одинаковой ширины по всему интерфейсу: цены и суммы в колонках
     выравниваются, а «прыгающих» разрядов при обновлении не видно. */
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Атмосфера: холодное свечение сверху и растворение к краям. Фейд вместо
   ровной заливки — из-за него фон «дышит» и не выглядит плоским. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 560px at 16% -14%, rgba(191, 216, 255, 0.14), transparent 64%),
    radial-gradient(1000px 480px at 84% -8%, rgba(74, 140, 255, 0.13), transparent 62%),
    radial-gradient(820px 420px at 50% 108%, rgba(127, 178, 255, 0.08), transparent 72%);
}

/* Силуэты оружия: отсылка к CS2, а не абстрактный узор. Слой фиксирован,
   сильно размыт и почти прозрачен — на телефоне скрыт, там он только мешает. */
.bg-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Фон — настоящие рендеры скинов, а не нарисованные силуэты: по ним сразу
   видно, что за сайт. Картинки берутся из того же набора, что и карточки
   каталога, поэтому фон и витрина не расходятся.

   Держим их бледными и приглушёнными: это фон, а не товар. Размер ограничен
   исходником (512×384) — растянутая картинка мылит и выдаёт себя. */
.bg-art .bg-skin {
  position: absolute;
  height: auto;
  opacity: 0.17;
  filter: saturate(0.85) contrast(1.05) blur(0.4px);
  mix-blend-mode: screen;
  user-select: none;
  pointer-events: none;
}

.bg-art .bg-skin-1 {
  top: 2%;
  left: -6%;
  width: 460px;
  transform: rotate(-12deg);
}
.bg-art .bg-skin-2 {
  top: 26%;
  right: -7%;
  width: 520px;
  opacity: 0.13;
  transform: rotate(9deg);
}
.bg-art .bg-skin-3 {
  top: 52%;
  left: -8%;
  width: 500px;
  opacity: 0.12;
  transform: rotate(7deg);
}
.bg-art .bg-skin-4 {
  bottom: 6%;
  right: -5%;
  width: 440px;
  opacity: 0.14;
  transform: rotate(-8deg);
}
.bg-art .bg-skin-5 {
  top: 12%;
  left: 38%;
  width: 340px;
  opacity: 0.08;
  transform: rotate(16deg);
}
.bg-art .bg-skin-6 {
  bottom: 14%;
  left: 22%;
  width: 380px;
  opacity: 0.1;
  transform: rotate(-14deg);
}

/* Тёмная вуаль поверх рендеров: текст должен оставаться читаемым, а картинки
   — угадываться, а не спорить с содержимым. */
.bg-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 85% at 50% 40%,
      rgba(10, 12, 18, 0.62) 0%,
      rgba(10, 12, 18, 0.82) 55%,
      rgba(10, 12, 18, 0.94) 100%
    );
}

/* На телефоне фон почти не виден за контентом, а весит столько же — прячем. */
@media (max-width: 720px) {
  .bg-art {
    display: none;
  }
}

::selection {
  background: rgba(91, 157, 255, 0.35);
  color: var(--ice);
}

a {
  color: var(--ice-2);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: var(--ice);
}

/* -------------------------------------------------------------- типографика */

h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--text);
}

h1,
h2 {
  line-height: 1.06;
  letter-spacing: -0.028em;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
}

h2 {
  font-size: clamp(23px, 2.6vw, 33px);
}

h3 {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 6px;
}

p {
  margin: 0 0 12px;
}

/* Фейд-текст: облачный белый, растворяющийся в синий. */
.gradient-text {
  background: var(--fade-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12.5px;
  line-height: 1.55;
}

.mono {
  font-family: var(--code);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 16px;
  line-height: 1.62;
  color: var(--text-2);
  max-width: 46ch;
}

/* Вторая строка подзаголовка на главной: важное — цену видно заранее —
   отделено акцентной чертой, чтобы читалось с первого взгляда. */
/* Обещание витрины — отдельной серой карточкой со скруглением: в строке
   текста оно читалось как продолжение абзаца и терялось. */
.lead-accent {
  display: block;
  max-width: 560px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(150, 180, 255, 0.075), rgba(150, 180, 255, 0.028));
  color: var(--text);
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface-3);
  color: var(--text);
  border-radius: var(--r);
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ------------------------------------------------------------------ шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 12, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

/* Полоса-фейд вместо жёсткой границы: линия ярче в центре и растворяется
   к краям, поэтому шапка не выглядит обрезанной. */
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--fade-line);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.site-header.scrolled {
  background: rgba(10, 12, 18, 0.94);
}
.site-header.scrolled::after {
  opacity: 1;
}

.site-header .inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
}
.logo:hover {
  color: var(--text);
}

/* Точка в словознаке cs.skins. Разделяет две части имени тем же акцентом,
   каким нарисован знак во вкладке браузера: плитки-фавикона в шапке нет,
   знак читается словом, а не картинкой. */
.logo-dot {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 26px;
  margin-right: auto;
  /* На средних ширинах (примерно 720–900px) шапка шире страницы. Навигация
     ужимается и прокручивается внутри себя, а не растягивает страницу:
     иначе на планшете появлялся горизонтальный скролл. */
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-2);
  white-space: nowrap;
}
.nav a:hover {
  color: var(--ice);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Переключатель валюты: иконка валюты в шапке и панель со всеми курсами.
   Курс доллара в меню намеренно не висит — покупателю из Казахстана или
   Украины он ничего не говорит, а место занимает. */
.currency-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ice-2);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.currency-btn:hover,
.currency-btn[aria-expanded='true'] {
  border-color: rgba(127, 178, 255, 0.45);
  color: var(--ice);
  background: var(--accent-soft);
}
.currency-btn:focus-visible {
  outline: none;
  border-color: rgba(127, 178, 255, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.currency-btn .cur-sign {
  font-size: 14px;
  color: var(--blue);
}
.currency-btn .cur-chev {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  transition: transform 0.18s ease;
}
.currency-btn[aria-expanded='true'] .cur-chev {
  transform: rotate(180deg);
}

.currency-panel {
  position: fixed;
  z-index: 80;
  width: min(300px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(24, 29, 41, 0.98), rgba(16, 19, 28, 0.99));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(130%);
}
.currency-panel[hidden] {
  display: none;
}
.currency-panel .cur-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 6px;
}
.currency-panel .cur-head strong {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.currency-panel .cur-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--r);
  cursor: pointer;
}
.currency-panel .cur-close:hover {
  color: var(--ice);
  background: rgba(150, 180, 255, 0.08);
}
.currency-panel .cur-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cur-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cur-row:hover:not([disabled]) {
  background: rgba(150, 180, 255, 0.07);
  border-color: var(--line-2);
}
.cur-row.on {
  background: var(--accent-soft);
  border-color: rgba(127, 178, 255, 0.35);
  color: var(--ice);
}
.cur-row[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.cur-row .cur-sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(127, 178, 255, 0.1);
  color: var(--blue);
  font-size: 15px;
  font-weight: 650;
}
.cur-row .cur-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cur-row .cur-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.cur-row .cur-rate {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cur-row .cur-pick {
  margin-left: auto;
  color: var(--blue);
  font-size: 13px;
}
.currency-panel .cur-foot {
  margin: 6px 10px 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted-2, var(--muted));
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.mobile-menu.open {
  display: block;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.mobile-menu a {
  display: block;
  padding: 11px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu li:last-child a {
  border-bottom: none;
}

/* ---------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* Основная кнопка: синий градиент и мягкое свечение. Тень синяя, а не
   чёрная — иначе синий на тёмном фоне выглядит наклейкой. */
.btn-primary {
  background: var(--fade-blue);
  color: #04101f;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(74, 140, 255, 0.28);
}
.btn-primary:hover {
  color: #04101f;
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(74, 140, 255, 0.4);
}

.btn-ghost {
  background: rgba(150, 180, 255, 0.04);
  color: var(--text-2);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  color: var(--ice);
  border-color: rgba(127, 178, 255, 0.45);
  background: var(--accent-soft);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 12px;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 11px;
}
/* Глиф в мелкой кнопке не должен быть крупнее её строки. */
.btn-sm .icon {
  width: 14px;
  height: 14px;
}
.btn-xs .icon {
  width: 12px;
  height: 12px;
}

/* -------------------------------------------------------------- первый экран */

.hero {
  position: relative;
  overflow: hidden;
}

/* Фейд-разделитель под первым экраном. */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--fade-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 46px;
  padding: 76px 0 70px;
}

/* Текстовая колонка не растягивается на всю ширину шага сетки: строку
   заголовка во всю ширину тяжело читать. Справа от неё — живая панель. */
.hero-grid > .hero-copy {
  max-width: 600px;
}

.hero-badges {
  justify-content: flex-start;
}

.hero h1 {
  margin-bottom: 18px;
}

/* Половина заголовка растворяется в синий — главный «фейд» страницы. */
.hero h1 .fade {
  background: linear-gradient(100deg, var(--ice-2) 0%, var(--blue) 60%, var(--blue-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin-bottom: 26px;
}

.hero-search {
  display: flex;
  gap: 8px;
  max-width: 452px;
  margin-bottom: 20px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.hero-search input::placeholder {
  color: var(--muted);
}
.hero-search input:focus {
  border-color: rgba(127, 178, 255, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------- панель позиций в hero */

.hero-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(21, 25, 36, 0.9), rgba(16, 19, 28, 0.94));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--glow);
}

.hero-panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice-2);
}
.hero-panel .panel-head .small {
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
}

.hero-rows-viewport {
  height: 268px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
}

.hero-rows-track {
  animation: rowsScroll 26s linear infinite;
  will-change: transform;
}
.hero-panel:hover .hero-rows-track {
  animation-play-state: paused;
}

@keyframes rowsScroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.hero-rows-track .row-item {
  animation: rowIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.panel-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.panel-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(87, 217, 163, 0.5);
  animation: livePulse 2.4s ease-out infinite;
  flex: none;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(87, 217, 163, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(87, 217, 163, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(87, 217, 163, 0);
  }
}

/* Живая панель «Позиции со скидкой» в первом экране. Внутри окна две
   одинаковые копии списка: пока одна уходит за верхний край, вторая
   занимает её место, поэтому склейка не видна. Под курсором движение
   останавливается — иначе по строке не попасть. */
.rows-group {
  display: block;
}

/* Строка позиции: рендер, название, цены. Высота фиксирована — тогда в окне
   панели ровно 4 строки и петля прокрутки стыкуется без рывка. */
.hero-rows-track .row-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  height: 67px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
}
.hero-rows-track .row-item:last-child {
  border-bottom: none;
}
.hero-rows-track .row-item:hover {
  background: rgba(150, 180, 255, 0.05);
  color: var(--text);
}

.hero-rows-track .row-item .ri-art {
  width: 62px;
  height: 47px;
  object-fit: contain;
}

/* min-width: 0 разрешает средней колонке сжиматься — без этого длинное
   название растянуло бы строку вместо того, чтобы обрезаться многоточием. */
.hero-rows-track .row-item .ri-body {
  min-width: 0;
}

.hero-rows-track .row-item .ri-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-rows-track .row-item .ri-meta {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-rows-track .row-item .ri-prices {
  text-align: right;
  white-space: nowrap;
}
.hero-rows-track .row-item .ri-price {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ice);
}
.hero-rows-track .row-item .ri-price .discount {
  margin-left: 7px;
}
.hero-rows-track .row-item .ri-steam {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(140, 154, 180, 0.6);
}

/* ------------------------------------------------------------ бегущая строка */

.marquee {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 48px;
  background: rgba(7, 9, 16, 0.6);
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  gap: 44px;
  padding-left: 28px;
  white-space: nowrap;
  animation: marquee 52s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
}
.marquee-item .m-name {
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.marquee-item .m-price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ice);
}
.marquee-item .discount {
  margin-left: 2px;
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  pointer-events: none;
}
.marquee-fade.left {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.marquee-fade.right {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

/* ------------------------------------------------------------------ полоса */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(21, 25, 36, 0.72), rgba(16, 19, 28, 0.72));
  overflow: hidden;
}

.stats .stat {
  position: relative;
  padding: 24px 26px;
  border-right: 1px solid var(--line);
  transition: background 0.2s ease;
}
.stats .stat:hover {
  background: rgba(127, 178, 255, 0.045);
}
.stats .stat::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--fade-line);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.stats .stat:hover::before {
  opacity: 1;
}
.stats .stat:last-child {
  border-right: none;
}

.stats .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(127, 178, 255, 0.1);
  border: 1px solid rgba(127, 178, 255, 0.16);
  color: var(--ice-2);
}
.stats .stat-icon .icon {
  width: 17px;
  height: 17px;
}

.stats .stat .value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--fade-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats .stat .value.mono {
  font-size: 22px;
}

.stats .stat .label {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

/* ------------------------------------------------------------ секции и шапки */

section.block {
  padding: 58px 0;
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 640px;
  margin-bottom: 30px;
}
.section-head p {
  margin: 0;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ витрина */

.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 16px;
}


.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 20px;
}

/* Догрузка каталога: по центру под сеткой карточек. */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.load-more {
  min-width: 240px;
  justify-content: center;
}

.item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.item-card:hover {
  border-color: rgba(127, 178, 255, 0.42);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.item-card.ineligible {
  opacity: 0.6;
}

.item-art {
  position: relative;
  height: 174px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  /* Подсветка в цвете редкости поверх холодного фейда.
     Первое объявление — запасное для браузеров без color-mix. */
  background: radial-gradient(120% 100% at 50% 0%, rgba(127, 178, 255, 0.09), transparent 70%);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(127, 178, 255, 0.09), transparent 70%),
    radial-gradient(
      90% 80% at 50% 100%,
      color-mix(in srgb, var(--rarity, #7fb2ff) 16%, transparent),
      transparent 72%
    );
  border-bottom: 1px solid var(--line);
}

.item-art .rarity-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.95;
  /* Полоска ранга растворяется к краям — как фейд-линии шапки и подвала,
     поэтому не выглядит приклеенной к рамке карточки. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

/* На наведении подсветка ранга становится заметнее: карточка «отзывается»,
   но цвет остаётся тем же, что на полоске и метке ранга. */
.item-card:hover .item-art {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(127, 178, 255, 0.12), transparent 70%),
    radial-gradient(
      90% 80% at 50% 100%,
      color-mix(in srgb, var(--rarity, #7fb2ff) 24%, transparent),
      transparent 72%
    );
}

.art-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  flex: none;
}

.item-icon {
  width: 100%;
  height: auto;
  max-height: 62px;
  fill: currentColor;
  color: var(--ice-2);
  transition: color 0.2s ease, filter 0.2s ease;
}
.item-card:hover .item-icon {
  color: var(--ice);
  filter: drop-shadow(0 0 12px rgba(127, 178, 255, 0.35));
}

/* Настоящая картинка предмета, если она есть в наборе иконок. Кадр с CDN Steam
   приходит с прозрачным фоном, поэтому тень отбрасывает сам предмет, а не
   прямоугольник: две тени — мягкая дальняя и короткая контактная под низом. */
.item-icon-img {
  max-height: 120px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(2, 5, 14, 0.6))
    drop-shadow(0 2px 5px rgba(2, 5, 14, 0.55));
  transition: transform 0.22s ease;
}
.item-card:hover .item-icon-img {
  transform: translateY(-2px) scale(1.035);
}

.art-lg .item-icon {
  max-height: 86px;
}
.art-lg .item-icon-img {
  max-height: 122px;
}

/* В бегущей строке карточка маленькая: фото ужимается по высоте, иначе оно
   вылезло бы за пределы квадратной ячейки и поехало бы по строкам. */
.art-cell .item-icon-img {
  max-height: 44px;
  max-width: 100%;
}

.item-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 20px;
  flex: 1;
}

.item-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 1px;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.price-row .price {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--ice);
}

.price-row .steam-price {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(140, 154, 180, 0.65);
}

.margin-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}

.item-actions {
  margin-top: 12px;
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.item-actions .btn {
  /* «Купить» занимает всю строку, корзина остаётся квадратом справа. */
  flex: 1 1 auto;
}
/* Корзина — иконкой рядом с «Купить». Отдельной широкой строкой она читалась
   как вторая, равная по весу покупка, и растягивала карточку. */
.item-actions .btn-cart {
  flex: 0 0 auto;
  width: 36px;
  padding: 0;
}
.item-actions .btn-cart .icon {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------------- метки */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: -0.005em;
  line-height: 1.5;
  color: var(--text-2);
  background: rgba(150, 180, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.badge.wear {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  /* Цвет качества: у «прямо с завода» бирюзовый, у «закалённого в боях» красный.
     Переменная ставится из разметки, а если износа у предмета нет (наклейки,
     брелоки) — метка остаётся нейтральной, как все прочие. */
  background: rgba(150, 180, 255, 0.05);
  border-color: var(--line);
  background: color-mix(in srgb, var(--wear, var(--blue)) 13%, transparent);
  border-color: color-mix(in srgb, var(--wear, var(--blue)) 36%, transparent);
  color: var(--wear, var(--text-2));
}

/* Ранг подписан тем же цветом, что светится за иконкой: игрок читает ранг
   по цвету, а не по слову. */
.badge.rarity {
  background: rgba(150, 180, 255, 0.05);
  border-color: var(--line);
  background: color-mix(in srgb, var(--rarity, var(--blue)) 13%, transparent);
  border-color: color-mix(in srgb, var(--rarity, var(--blue)) 36%, transparent);
  color: var(--rarity, var(--text-2));
}

.badge .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.1;
  opacity: 0.9;
}

.badge.ok {
  color: var(--ok);
  background: rgba(87, 217, 163, 0.08);
  border-color: rgba(87, 217, 163, 0.3);
}
.badge.warn {
  color: var(--warn);
  background: rgba(255, 180, 84, 0.08);
  border-color: rgba(255, 180, 84, 0.3);
}
.badge.err {
  color: var(--err);
  background: rgba(255, 107, 129, 0.08);
  border-color: rgba(255, 107, 129, 0.3);
}

/* Скидка к Steam — смысловой акцент, поэтому единственная «залитая» метка. */
.discount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #04101f;
  background: var(--fade-blue);
  border-radius: 999px;
}

/* Огонёк на скидке: маленький, чтобы не перекрикивать саму цифру. */
.discount .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.3;
}

/* -------------------------------------------------------------------- шаги */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  padding: 24px 24px 22px;
  background: linear-gradient(180deg, rgba(21, 25, 36, 0.7), rgba(16, 19, 28, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* Фейд-полоска сверху: связывает карточки шагов с синим акцентом. */
.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fade-line);
}

.step .num {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

/* Иконка шага: плитка в тон акценту. Номер под ней оставлен намеренно —
   по нему видно порядок, а иконка объясняет, что именно происходит. */
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--ice);
  background: linear-gradient(150deg, rgba(91, 157, 255, 0.24), rgba(91, 157, 255, 0.05));
  border: 1px solid rgba(127, 178, 255, 0.26);
}

.step-icon .icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
}

/* На странице предмета шагов четыре: 2×2, чтобы в ряду не оставалась
   одинокая карточка. Номер оформлен так же, как на главной. */
.how .steps {
  grid-template-columns: repeat(2, 1fr);
}

.step .step-n {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------- курсы */

.rates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.rate {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.rate .r-code {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  color: var(--blue);
}

.rate .r-value {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--ice);
}

.rate .r-label {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------- сравнение */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 620px;
}

table.compare thead th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
}

table.compare thead th.us {
  color: var(--blue);
}

table.compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
  vertical-align: top;
}

table.compare tbody tr:last-child td {
  border-bottom: none;
}

table.compare td:first-child {
  color: var(--text);
  font-weight: 600;
}

table.compare td.us {
  background: linear-gradient(180deg, rgba(91, 157, 255, 0.07), rgba(91, 157, 255, 0.02));
}

.cell-ok,
.cell-no {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}
.cell-ok {
  color: var(--text);
}
.cell-ok .icon {
  color: var(--ok);
  margin-top: 3px;
}
.cell-no {
  color: var(--muted);
}
.cell-no .icon {
  color: var(--err);
  margin-top: 3px;
  opacity: 0.75;
}

/* ------------------------------------------------------------------- промо */

.promo-card {
  position: relative;
  padding: 32px 34px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(760px 320px at 92% -10%, rgba(91, 157, 255, 0.2), transparent 68%),
    radial-gradient(560px 300px at 6% 120%, rgba(191, 216, 255, 0.09), transparent 70%),
    var(--surface);
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fade-line);
}

.promo-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.promo-badge .icon {
  width: 14px;
  height: 14px;
  stroke-width: 1.9;
}

.promo-grid h2 {
  font-size: clamp(20px, 2.2vw, 28px);
}

.promo-levels {
  display: grid;
  gap: 10px;
}

.promo-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(7, 9, 16, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.22s ease,
    background 0.22s ease, box-shadow 0.22s ease;
}

/* Ступень бонуса при наведении слегка подрастает: так видно, что это
   отдельное предложение, а не просто строка таблицы. */
.promo-level:hover,
.promo-level:focus-within {
  transform: scale(1.035);
  border-color: rgba(127, 178, 255, 0.42);
  background: rgba(127, 178, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.promo-level .pl-pct {
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.22s ease;
}

.promo-level:hover .pl-pct,
.promo-level:focus-within .pl-pct {
  transform: scale(1.12);
  color: var(--ice);
}

@media (prefers-reduced-motion: reduce) {
  .promo-level,
  .promo-level .pl-pct {
    transition: none;
  }
  .promo-level:hover,
  .promo-level:focus-within {
    transform: none;
  }
  .promo-level:hover .pl-pct,
  .promo-level:focus-within .pl-pct {
    transform: none;
  }
}

.promo-level .pl-sum {
  font-size: 12.5px;
  color: var(--text-2);
}

.promo-level .pl-pct {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ice);
}

/* --------------------------------------------------------------- гарантии */

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  background: var(--surface);
}

.trust-item .ti-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--blue);
  background: var(--accent-soft);
}

/* Кружок совпадает по высоте со строкой заголовка — тогда иконка стоит ровно
   по центру первой строки. С произвольным margin-top она съезжала вниз на
   пару пикселей и выглядела висящей между строк. */
.trust-item h4 {
  line-height: 26px;
  margin-bottom: 4px;
}

.trust-item .ti-icon .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.trust-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
}

/* ------------------------------------------------- карточки поддержки */

/* Раздел «Поддержка» — не таблица, а четыре самостоятельных карточки: у них
   разная длина текста и разные действия, и в общую сетку со швами они не
   складываются. Сетка 2×2 на десктопе, в столбик на телефоне. */
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.22s ease,
    box-shadow 0.22s ease;
}

/* Мягкое свечение в углу — карточка перестаёт быть плоским прямоугольником. */
.help-card::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 178, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.help-card:hover,
.help-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(127, 178, 255, 0.42);
  box-shadow: var(--shadow);
}

.help-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--blue);
  background: var(--accent-soft);
  border: 1px solid rgba(127, 178, 255, 0.28);
}

.help-ico .icon {
  width: 18px;
  height: 18px;
}

.help-card h4 {
  margin: 4px 0 0;
  font-size: 15.5px;
}

.help-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.help-card .help-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--blue);
}

.help-card .help-more .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.help-card:hover .help-more .icon {
  transform: translateX(3px);
}

.help-card .help-note {
  margin-top: auto;
  padding-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .help-card,
  .help-card .help-more .icon {
    transition: none;
  }
  .help-card:hover,
  .help-card:focus-visible {
    transform: none;
  }
  .help-card:hover .help-more .icon {
    transform: none;
  }
}

@media (max-width: 640px) {
  .help-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------- CTA */

.cta-band {
  position: relative;
  text-align: center;
  padding: 52px 32px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(680px 280px at 50% -20%, rgba(91, 157, 255, 0.22), transparent 70%),
    var(--surface);
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fade-line);
}

.cta-band h2 {
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--text-2);
  margin-bottom: 22px;
}

/* ---------------------------------------------------- живая лента покупок */

/* Лента последних покупок — как строка на market.csgo: карточки едут вбок
   бесконечной чередой. Внутри дорожки две одинаковые копии, поэтому сдвиг
   ровно на половину ширины бесшовен. Под курсором движение останавливается. */
.recent-marquee {
  overflow: hidden;
  padding: 4px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.recent-track {
  display: flex;
  /* Ширина по содержимому, а не по родителю: сдвиг считается в процентах от
     собственной ширины дорожки, и при сжатой дорожке половина не совпадала бы
     с копией списка — петля рвалась бы рывком. */
  width: max-content;
  animation: recentScroll 60s linear infinite;
  will-change: transform;
}

.recent-marquee:hover .recent-track,
.recent-marquee:focus-within .recent-track {
  animation-play-state: paused;
}

/* Отступ справа, а не gap у дорожки: так копия вместе с отступом занимает
   ровно половину дорожки и половинный сдвиг не даёт рывка. */
.recent-group {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}

/* От -50% к нулю: лента едет слева вправо. */
@keyframes recentScroll {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .recent-track {
    animation: none;
  }
}

.recent-empty {
  padding: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.recent-card {
  flex: 0 0 auto;
  width: 186px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.recent-card:hover {
  border-color: rgba(127, 178, 255, 0.38);
  transform: translateY(-2px);
}

.recent-card .rf-art {
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(127, 178, 255, 0.06);
  overflow: hidden;
}

.recent-card .rf-art img {
  max-width: 100%;
  max-height: 100%;
}

.recent-card .rf-art .icon {
  width: 26px;
  height: 26px;
  color: var(--ice-2);
}

.recent-card .rf-price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ice);
}

.recent-card .rf-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-card .rf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  /* Обе подписи в одну строку не влезают: время обрезается многоточием,
     а метка «доставлено» остаётся целой — она и есть смысл строки. */
  min-width: 0;
}

.recent-card .rf-meta {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-card .rf-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ok);
  white-space: nowrap;
}

.recent-card .rf-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(87, 217, 163, 0.5);
  animation: livePulse 2.4s ease-out infinite;
}

.recent-empty {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
}

@keyframes recentIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------- FAQ */

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  width: 9px;
  height: 9px;
  flex: none;
  border-right: 1.6px solid var(--blue);
  border-bottom: 1.6px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--ice);
}

.faq-item .answer {
  padding: 0 0 22px;
  max-width: 76ch;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.68;
}

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

.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 46px 0 34px;
  background: var(--bg-2);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fade-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer h4 {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 9px;
}

.site-footer a,
.site-footer p {
  font-size: 13px;
  color: var(--text-2);
}
.site-footer a:hover {
  color: var(--ice);
}

/* ------------------------------------------------------------------ каталог */

.catalog-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 30px;
  padding-bottom: 60px;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 34px);
  overflow-y: auto;
  padding: 20px 20px 24px;
  background: linear-gradient(180deg, rgba(21, 25, 36, 0.75), rgba(16, 19, 28, 0.8));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.filters::-webkit-scrollbar {
  width: 8px;
}
.filters::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 999px;
}

.filters > h3,
.filters .filters-head h3 {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 10px;
}
/* Отступ у первого заголовка убираем только когда он действительно первый в
   панели. Раньше здесь стояло :first-of-type, и это ломало «Поиск»: он первый
   h3 в панели, хотя выше него уже есть шапка и строка автообновления, — и
   заголовок прилипал к строке автообновления без зазора. */
.filters > h3:first-child {
  margin-top: 0;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.filters-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  /* Верхний отступ даёт отбивка шапки, второй раз его добавлять незачем:
     вместе получалось 40 px против 22 px у остальных секций. */
  margin-top: 0;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
}
.switch-row > span:first-child {
  flex: 1;
}
.switch-row input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-row .switch {
  position: relative;
  width: 34px;
  height: 19px;
  flex: none;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch-row .switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.switch-row input:checked ~ .switch {
  background: var(--accent-soft);
  border-color: rgba(127, 178, 255, 0.45);
}
.switch-row input:checked ~ .switch::after {
  transform: translateX(15px);
  background: var(--blue);
}
.switch-row input:focus-visible ~ .switch {
  outline: 2px solid rgba(127, 178, 255, 0.5);
  outline-offset: 2px;
}

.group {
  border-bottom: 1px solid var(--line-soft);
}
.group:last-child {
  border-bottom: none;
}
/* Группа фильтра без данных скрывается целиком: заголовок с одними нулями
   читается как поломка (см. updatePanel в app.js). */
.group.group-empty {
  display: none;
}

.group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
}
.group > summary::-webkit-details-marker {
  display: none;
}

.group > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.group[open] > summary::after {
  transform: rotate(-135deg);
}
.group > summary:hover {
  color: var(--ice);
}

.group-body {
  padding: 2px 0 14px;
  /* Длинные списки (коллекции наклеек, редкость) прокручиваются, и полоса
     прокрутки сужала строку: счётчики в них стояли на 10 px левее, чем в
     коротких группах, — числа по панели не выстраивались в одну линию. Место
     под полосу резервируем во всех группах сразу, а тонкую полосу задаём всем,
     иначе широкая и тонкая резервируют разную ширину. */
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.group-body::-webkit-scrollbar {
  width: 6px;
}
.group-body::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 999px;
}

.group-body.scroll {
  max-height: 216px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
}

.opt:hover {
  color: var(--ice);
}

.opt input {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  flex: none;
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--surface-2);
  position: relative;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.opt input[type='radio'] {
  border-radius: 50%;
}
.opt input:checked {
  background: var(--fade-blue);
  border-color: transparent;
}
.opt input:checked::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 3px;
  height: 7px;
  border-right: 1.7px solid #04101f;
  border-bottom: 1.7px solid #04101f;
  transform: rotate(40deg);
}
.opt input[type='radio']:checked::after {
  left: 3px;
  top: 3px;
  width: 6px;
  height: 6px;
  border: none;
  border-radius: 50%;
  background: #04101f;
  transform: none;
}

.opt-label {
  flex: 1;
  min-width: 0;
  /* Длинные названия коллекций в узкую панель не влезают. Обрезать их
     многоточием («Missing Link Community Cha…») значит скрывать, что именно
     выбирает покупатель, поэтому переносим на вторую строку. */
  overflow-wrap: break-word;
}

/* Цветная точка перед пунктом фильтра: тот же цвет, что у метки на карточке,
   поэтому «Прямо с завода» в фильтре и на витрине выглядит одинаково. */
.opt-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--c, var(--blue));
  box-shadow: 0 0 0 3px rgba(127, 178, 255, 0.1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #7fb2ff) 20%, transparent);
}

.opt-count {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.opt.active {
  color: var(--text);
}
.opt.active .opt-count {
  color: var(--blue);
}

/* Пункт с нулём остаётся видимым, но нажать его нельзя: так видно, что
   значение существует, просто сейчас ничего не находит. */
.opt.empty {
  opacity: 0.4;
}
.opt.empty input {
  cursor: not-allowed;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field label {
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 9px 11px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field input::placeholder {
  color: var(--muted);
}
.field input:focus {
  border-color: rgba(127, 178, 255, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

select {
  padding: 8px 11px;
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  outline: none;
  cursor: pointer;
}
select:focus {
  border-color: rgba(127, 178, 255, 0.5);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--text-2);
  background: rgba(150, 180, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.chip:hover {
  color: var(--ice);
}

.chip.active {
  color: var(--ice);
  border-color: rgba(127, 178, 255, 0.5);
  background: var(--accent-soft);
}

/* Быстрое правило над списком каталога. Живёт в шапке страницы, над обеими
   колонками: на телефоне панель фильтров встаёт первой, и правило, лежащее
   под ней, на первый экран не попало бы. */
.quick-rules {
  margin: 0;
}

/* Шапка каталога: заголовок и правило. Отступ сверху — как был у сетки, чтобы
   верх страницы не поехал; сама сетка подтягивается к шапке. */
.catalog-head {
  padding-top: 30px;
}

.catalog-head + .catalog-layout {
  padding-top: 20px;
}

/* Метка-ссылка (на главной: «показать позиции дешевле Steam»). Тянется к
   синему на наведении — иначе её не отличить от соседних подписей. */
.badge-link {
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.badge-link:hover {
  color: var(--ice);
  border-color: rgba(127, 178, 255, 0.45);
}

/* Заголовок страницы каталога. H1 здесь появился не для красоты: до этого на
   странице не было ни одного H1, а это один из основных факторов ранжирования —
   поисковику нечего было взять как тему страницы. */
.catalog-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.toolbar .count {
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}

.toolbar .spacer {
  flex: 1;
}

/* ------------------------------------------------------------------- модал */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-backdrop.open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--glow);
}

.modal h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.modal .sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.summary-row:last-child {
  border-bottom: none;
}

.summary-row .k {
  color: var(--muted);
}

.summary-row .v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-align: right;
}
.summary-row .v.ok {
  color: var(--ok);
}

.alert {
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text-2);
}
.alert.ok {
  color: var(--ok);
  border-color: rgba(87, 217, 163, 0.35);
}
.alert.err {
  color: var(--err);
  border-color: rgba(255, 107, 129, 0.35);
}
.alert.info {
  color: var(--text-2);
}

/* ------------------------------------------------------------ служебное */

.skeleton {
  height: 300px;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-3) 50%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}

.empty-icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
  opacity: 0.7;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text-2);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
}
.to-top:hover {
  color: var(--ice);
  border-color: rgba(127, 178, 255, 0.5);
}

/* ------------------------------------------------------- чат поддержки */

/* Кнопка стоит выше «наверх», иначе они накладываются друг на друга. */
.sup-fab {
  position: fixed;
  right: 24px;
  bottom: 76px;
  z-index: 31;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.sup-fab:hover {
  color: var(--ice);
  border-color: rgba(127, 178, 255, 0.5);
  transform: translateY(-1px);
}
.sup-fab .icon {
  width: 17px;
  height: 17px;
}

.sup-panel {
  position: fixed;
  right: 24px;
  bottom: 132px;
  z-index: 32;
  display: flex;
  flex-direction: column;
  width: min(460px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 110px));
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow), var(--glow);
  overflow: hidden;
}
.sup-panel[hidden] {
  display: none;
}

.sup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.sup-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.sup-head-text strong {
  font-size: 14px;
}
.sup-status {
  font-size: 11.5px;
  color: var(--muted);
}
.sup-status.sup-ok {
  color: var(--ok);
}
.sup-status.sup-down {
  color: var(--warn);
}
.sup-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
}
.sup-close:hover {
  color: var(--ice);
  border-color: var(--line-2);
}
.sup-close .icon {
  width: 15px;
  height: 15px;
}

.sup-log {
  flex: 1;
  /* Переписка не должна ютиться в узкую полоску на пару сообщений: окно
     заметно выше, а на низких экранах ужимается вместе с панелью. */
  min-height: min(360px, 42vh);
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sup-msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.sup-bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.sup-user {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 157, 255, 0.28);
  color: var(--text);
}
.sup-msg a {
  color: var(--blue);
}
.sup-pending {
  opacity: 0.65;
}

.sup-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px 8px;
  border-top: 1px solid var(--line);
}
.sup-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
}
.sup-form input:focus {
  outline: none;
  border-color: rgba(127, 178, 255, 0.55);
}
.sup-form input:disabled {
  opacity: 0.55;
}

.sup-note {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 640px) {
  .sup-fab {
    right: 16px;
    bottom: 70px;
    padding: 10px 14px;
  }
  .sup-fab-text {
    display: none;
  }
  .sup-panel {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 120px;
  }
}


/* Юридические страницы */

.legal {
  padding: 54px 0 70px;
  max-width: 800px;
}

.legal h1 {
  font-size: clamp(30px, 3.4vw, 42px);
  /* Слова вроде «конфиденциальности» не переносятся: разрешаем разрыв, иначе
     на узком экране заголовок уводит страницу в горизонтальный скролл. */
  overflow-wrap: break-word;
  margin-bottom: 14px;
}

.legal h2 {
  font-size: 20px;
  margin: 34px 0 12px;
}

.legal p,
.legal li {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.72;
}

.legal .updated {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 26px;
}

.legal .note {
  margin-top: 26px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface);
  border-left: 2px solid rgba(127, 178, 255, 0.5);
  border-radius: 0 var(--r) var(--r) 0;
}

/* -------------------------------------------------------------- анимации */

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

/* Лента позиций в hero, бегущая строка цен и индикатор панели оставлены
   анимированными намеренно: это прямое требование заказчика. Бегущая строка
   к тому же не декор, а живые цены — при остановке она замирает на первом
   экране трека, и остальные позиции становятся недоступны вовсе: трек шире
   окна и обрезан. Поэтому под reduced-motion гаснут только скелетоны и
   появление блоков — то, что действительно декоративно. */
@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 52px 0 48px;
  }
  /* В одну колонку текст занимает всю ширину: панель ушла под него. */
  .hero-grid > .hero-copy {
    max-width: none;
  }
  .hero p.lead {
    max-width: none;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .filters {
    position: static;
    max-height: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats .stat:nth-child(2) {
    border-right: none;
  }
  .stats .stat:nth-child(1),
  .stats .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .promo-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .trust-list {
    grid-template-columns: 1fr;
  }
}

/* До 780px шапка с полным меню уже не помещается: пять пунктов вместе с
   кнопками вылезают за край. Там, где есть кнопка меню, прячем навигацию в
   неё — в мобильном меню те же ссылки идут списком. На остальных страницах
   навигация остаётся и прокручивается по горизонтали. */
@media (max-width: 780px) {
  .nav {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    white-space: nowrap;
  }
  .site-header:has(.nav-toggle) .nav {
    display: none;
  }
  .site-header:has(.nav-toggle) .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }
  .site-header .inner {
    gap: 14px;
  }
  .header-right {
    gap: 8px;
  }
  /* Навигацию прячем только там, где вместо неё есть кнопка меню. На
     остальных страницах она остаётся и прокручивается по горизонтали —
     иначе с телефона с них некуда перейти. */
  .nav {
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    white-space: nowrap;
  }
  .header-right .badge {
    display: none;
  }
  /* Фоновые силуэты на узком экране только мешают чтению. */
  .bg-art {
    display: none;
  }
  .rates {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .promo-card,
  .cta-band {
    padding: 24px 20px;
  }
  .modal {
    padding: 24px 20px;
  }
  section.block {
    padding: 42px 0;
  }
}

/* --------------------------------------------------- вход через Steam */

/* Кнопка входа. Узнаваемый тёмно-синий Steam, но собранный из наших цветов:
   чужой фирменный градиент на нашей палитре выглядел бы наклейкой. */
.btn-steam {
  background: linear-gradient(135deg, #1b3a63 0%, #142c4d 100%);
  color: var(--ice);
  border-color: rgba(127, 178, 255, 0.28);
  box-shadow: 0 8px 22px rgba(10, 24, 52, 0.5);
}
.btn-steam:hover {
  color: var(--ice);
  border-color: rgba(127, 178, 255, 0.5);
  background: linear-gradient(135deg, #22456f 0%, #17335a 100%);
}
.btn-steam .icon {
  fill: currentColor;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 15px;
  border-radius: var(--r-lg);
}
.btn-lg .icon {
  width: 20px;
  height: 20px;
}

/* Место в шапке: кнопка входа или аватар с ником. */
.auth-slot {
  display: inline-flex;
  align-items: center;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(150, 180, 255, 0.05);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--surface-3);
}

/* Аватар есть не всегда (Steam может не отдать) — на его месте мягкий круг. */
.user-avatar-empty {
  border: 1px dashed var(--line-2);
}

.user-nick {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.user-exit {
  padding: 4px 10px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}
.user-exit:hover {
  color: var(--ice);
  border-color: var(--line-2);
}

/* Кнопка админки: видна только владельцу (сервер присылает isAdmin).
   Выглядит заметнее «Выйти», но не спорит с балансом: у владельца это
   рабочая кнопка, а не украшение, и её не должно быть у покупателей. */
.user-admin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.005em;
  color: var(--blue);
  background: var(--accent-soft);
  border: 1px solid rgba(127, 178, 255, 0.35);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.user-admin:hover {
  color: var(--ice);
  background: rgba(91, 157, 255, 0.2);
  border-color: rgba(127, 178, 255, 0.6);
}
.user-admin:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.user-admin svg {
  width: 13px;
  height: 13px;
  flex: none;
}

/* --------------------------------------------------- страница входа */

.login-page {
  padding: 56px 0 72px;
}

.login-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-lead {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

/* Пометка о неудачном возврате из Steam: показывается только когда есть код. */
.login-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 129, 0.35);
  border-left: 3px solid var(--err);
  border-radius: 10px;
  background: rgba(255, 107, 129, 0.09);
  color: var(--ice);
  font-size: 14px;
  line-height: 1.5;
}
.login-alert[hidden] {
  display: none;
}

.login-steam {
  width: 100%;
  margin-bottom: 20px;
}

.login-note {
  display: flex;
  gap: 10px;
  margin: 0 0 28px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.login-note .icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--blue);
}

.login-benefits {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.login-benefits li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}
/* Метка списка — синяя точка со свечением: читается без картинок. */
.login-benefits li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(127, 178, 255, 0.6);
}
.login-benefits strong {
  color: var(--text);
  font-weight: 650;
}

.login-fine {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 640px) {
  .login-card {
    padding: 26px 20px;
  }
  .login-card h1 {
    font-size: 24px;
  }
  /* В узкой шапке место дорого: ник убираем, аватар и выход остаются. */
  .user-nick {
    display: none;
  }
}

/* Подпись кнопки входа: как на cstable на широком экране и короче на узком.
   По умолчанию показывается длинная, короткая включается медиазапросом ниже. */
.auth-short {
  display: none;
}

/* Планшетный диапазон: шапке не хватает места на полный состав — длинную
   подпись входа, ник, «Поддержку» и подпись кнопки пополнения. Сжимаем
   именно их до знаков, а ссылки навигации оставляем: с планшета они
   полезнее подписи, а «Поддержка» и ник есть в меню и в кабинете.
   Граница поднята до 1150px: с пятым пунктом меню и плашкой баланса полный
   состав сходится только начиная примерно с этой ширины. */
@media (max-width: 1150px) {
  .auth-long {
    display: none;
  }
  .auth-short {
    display: inline;
  }
  /* Плашка баланса либо повторяет «нужен вход», либо живёт в кабинете —
     в тесной шапке она уступает место действиям. */
  .user-nick,
  .header-secondary,
  .topup-label,
  .header-right .badge {
    display: none;
  }
  #topup-btn {
    padding: 8px 12px;
  }
}

/* Телефон: на 375–430px состав шапки (валюта, язык, вход, «Каталог», бургер)
   шире экрана и уводит страницу в горизонтальный скролл. Кнопка «Каталог»
   дублирует первый пункт меню, поэтому прячем именно её и поджимаем зазоры.
   Правило действует на всех страницах, а не только там, где есть бургер:
   на страницах без него кнопка тоже не помещается. */
@media (max-width: 430px) {
  .site-header .header-cta {
    display: none;
  }
  /* Кнопке админки на телефоне оставляем только щит: слово занимает
     место, которое в шапке уже расписано по пикселям. */
  .user-admin {
    padding: 5px 8px;
  }
  .user-admin-label {
    display: none;
  }
  .site-header .inner {
    gap: 8px;
  }
  .header-right {
    gap: 5px;
  }
  /* Стрелка у валюты — подсказка, а не смысл: сам знак валюты остаётся. */
  .currency-btn .cur-chev {
    display: none;
  }
}

/* На самых узких телефонах (360px) в шапке рядом оказываются логотип, кнопка
   входа, «Каталог» и бургер — вместе они вылезают на ~5px и уводят страницу
   в горизонтальный скролл. Поджимаем боковые отступы и зазоры, не убирая
   подписи: слово читается лучше иконки и не требует объяснений. */
@media (max-width: 400px) {
  .container {
    padding: 0 14px;
  }
  .site-header .inner {
    gap: 8px;
  }
  /* Плашка языка добавилась к составу шапки, и на 320px четыре элемента
     перестали помещаться на четыре пикселя. Поджимаем зазоры и сами
     кнопки, а не убираем переключатель: английский нужен и на телефоне. */
  .header-right {
    gap: 4px;
  }
  .lang-btn {
    padding: 2px 5px;
  }
  .auth-slot .btn-steam {
    padding: 8px 9px;
  }
  /* Переключатель валюты тоже поджимаем, а не прячем: иначе рубли остались бы
     единственным выбором на телефоне. */
  .currency-btn {
    padding: 6px 8px;
    font-size: 11px;
    gap: 5px;
  }
  .currency-btn .cur-sign {
    font-size: 13px;
  }
  .currency-btn .cur-chev {
    display: none;
  }
  /* На 320px заголовок про конфиденциальность влезает в строку целиком
     только уменьшенным: при 30px одно слово шире самого экрана. */
  .legal h1 {
    font-size: 24px;
  }
}

/* Там, где не помещается и это (узкие 320px и складные экраны), убираем из
   шапки кнопку каталога. Она дублирует первый пункт меню — бургера на главной
   и прокручиваемой навигации на остальных страницах, — а вот аккаунту замены
   нет, поэтому место отдаём ему. */
@media (max-width: 360px) {
  .header-cta {
    display: none;
  }
  .auth-slot .btn-steam {
    padding: 8px 9px;
  }
}

/* ------------------------------------------------- страница «Продажа» */

.sell-intro h1 {
  font-size: clamp(30px, 4vw, 46px);
  max-width: 20em;
}

.sell-lead {
  max-width: 64ch;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

/* Честная плашка о том, что направление не запущено. Стоит первой и цветом
   отличается от всего остального: иначе человек примет макет формы за рабочую
   и попробует ввести ссылку. */
.soon-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 74ch;
  margin-top: 24px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  background: rgba(255, 180, 84, 0.06);
  border: 1px solid rgba(255, 180, 84, 0.28);
  border-radius: var(--r-lg);
}
.soon-banner .icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--warn);
}
.soon-banner strong {
  color: var(--text);
}

.sell-widget-title {
  font-size: 20px;
  margin-bottom: 14px;
}

/* Макет формы выключен целиком через fieldset disabled, поэтому и выглядит
   погашенным. min-width: 0 обязателен: у fieldset по умолчанию
   min-width: min-content, из-за чего он распирает страницу на узком экране. */
.sell-widget {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.sell-widget:disabled {
  opacity: 0.75;
}

.sell-field {
  display: flex;
  flex: 1 1 340px;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.sell-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.sell-field input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}
.sell-field input::placeholder {
  color: var(--muted);
}

.sell-widget-note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 560px) {
  .sell-widget {
    padding: 18px;
  }
  .sell-lead {
    font-size: 15px;
  }
}

/* Четыре шага в сетке на три колонки оставляют одинокую карточку во втором
   ряду. На странице продажи шагов ровно четыре, поэтому на широком экране
   раскладываем их 2×2, а ниже 1080px оставляем одну колонку — как на
   остальных страницах. */
.sell-steps {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1080px) {
  .sell-steps {
    grid-template-columns: 1fr;
  }
}
/* Атрибут hidden означает «не показывать», но браузерное правило для него
   проигрывает любому авторскому display. У блоков ниже display задан, поэтому
   без этой строки скрытый оверлей просмотра и скрытая сетка страницы всё равно
   оставались видимыми и перекрывали содержимое. */
[hidden] {
  display: none !important;
}

/* ============================================================================
   Страница предмета, личный кабинет и документация API.

   Классы названы отдельно от витрины: у этих страниц своя разметка, и старые
   правила их не задевают.
   ========================================================================== */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 26px 0 18px;
  font-size: 13px;
  color: var(--muted);
}

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

.crumbs a:hover {
  color: var(--ice);
}

.crumbs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}

.skeleton.sk-title {
  height: 34px;
  max-width: 460px;
  margin-bottom: 18px;
}

.skeleton.sk-art {
  height: 340px;
  border-radius: var(--r-lg);
}

.skeleton.sk-row {
  height: 64px;
  margin-bottom: 10px;
  border-radius: var(--r);
}

/* Каркас витрины: габариты те же, что у настоящей карточки, иначе список
   прыгал бы, когда придут данные. */
.sk-card {
  pointer-events: none;
}

.sk-art,
.sk-line {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

.sk-art {
  height: 174px;
  border-radius: 0;
}

.sk-line {
  height: 13px;
  border-radius: 6px;
}

.sk-line.sk-short {
  width: 55%;
}

.sk-line.sk-price {
  height: 20px;
  width: 40%;
  margin-top: 6px;
  border-radius: 7px;
}

/* Список при смене фильтра остаётся на месте, но видно, что он обновляется. */
.cards.is-busy {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .sk-art,
  .sk-line {
    animation: none;
  }
}

/* --------------------------------------------------------------- предмет */

.item-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 46px;
}

.art-frame {
  position: relative;
  margin: 0;
  padding: 26px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(127, 178, 255, 0.1), transparent 62%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.art-frame .rarity-bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
}

.art-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  /* Без min-width:0 картинка задаёт минимальную ширину колонки своей
     натуральной шириной, и сетка страницы распирает окно. */
  min-width: 0;
}

.art-image {
  width: 100%;
  max-width: min(520px, 100%);
  height: auto;
  filter: drop-shadow(0 24px 34px rgba(3, 8, 22, 0.62));
}

.art-slot .item-icon {
  width: 74%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 4 / 3;
  color: color-mix(in srgb, var(--wear, var(--blue)) 62%, var(--muted));
}

.inspect-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ice);
  background: rgba(10, 14, 24, 0.72);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.inspect-btn:hover {
  border-color: var(--accent);
  color: #fff;
}

.inspect-btn .icon {
  width: 14px;
  height: 14px;
}

.art-note {
  margin: 12px 2px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Float: шкала повторяет деление износа в CS2 — 0.00–0.07–0.15–0.38–0.45–1.00. */
.float-block {
  margin-top: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.float-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.float-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.float-value {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ice);
}

.float-track {
  position: relative;
  display: flex;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.fs-seg {
  height: 100%;
}

.fs-seg:first-child {
  border-radius: 999px 0 0 999px;
}

.fs-seg:last-of-type {
  border-radius: 0 999px 999px 0;
}

.fs-fn { background: #2dd4bf; }
.fs-mw { background: #4ade80; }
.fs-ft { background: #facc15; }
.fs-ww { background: #fb923c; }
.fs-bs { background: #f43f5e; }

/* Зона, в которую попала метка, — единственная яркая: остальные притушены.
   Так видно, что 0.3280 — это «полевые испытания», даже не сверяя подписи. */
.float-track[data-zone] .fs-seg {
  opacity: 0.32;
  transition: opacity 0.2s ease;
}
.float-track[data-zone='fn'] .fs-fn,
.float-track[data-zone='mw'] .fs-mw,
.float-track[data-zone='ft'] .fs-ft,
.float-track[data-zone='ww'] .fs-ww,
.float-track[data-zone='bs'] .fs-bs {
  opacity: 1;
}

.fs-marker {
  position: absolute;
  top: -5px;
  width: 3px;
  height: 22px;
  margin-left: -1.5px;
  background: var(--ice);
  border-radius: 2px;
  box-shadow: 0 0 0 3px rgba(10, 12, 18, 0.75), 0 0 12px rgba(234, 242, 255, 0.55);
}

/* Подписи зон: каждая стоит под своей зоной, серединами на её середине.
   Первая прижата к левому краю, последняя — к правому: иначе длинные
   подписи вылезали бы за карточку. Узкие зоны (MW и WW) уходят на вторую
   строку, чтобы подписи не наезжали друг на друга. */
.float-legend {
  position: relative;
  height: 34px;
  margin-top: 12px;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--muted);
}

.float-legend span {
  position: absolute;
  top: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}

.float-legend [data-zone='fn'] {
  left: 0;
  transform: none;
}
.float-legend [data-zone='mw'] {
  left: 11%;
  top: 15px;
}
.float-legend [data-zone='ft'] {
  left: 26.5%;
}
.float-legend [data-zone='ww'] {
  left: 41.5%;
  top: 15px;
}
.float-legend [data-zone='bs'] {
  left: 100%;
  transform: translateX(-100%);
}

.float-legend span.is-active {
  color: var(--ice);
  font-weight: 600;
}

.float-legend b {
  color: var(--text-2);
  font-family: var(--mono);
  font-weight: 500;
}

.float-legend span.is-active b {
  color: var(--ice);
}

.float-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.item-view,
.item-side {
  min-width: 0;
}

.item-side h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.badge.st {
  color: #ff9a3c;
  border-color: rgba(255, 154, 60, 0.32);
  background: rgba(255, 154, 60, 0.08);
}

.badge.sv {
  color: #ffd76e;
  border-color: rgba(255, 215, 110, 0.32);
  background: rgba(255, 215, 110, 0.08);
}

/* Наклейки на предмете: заметно, но не спорит с износом и рангом. */
.badge.sticker {
  color: #c9a6ff;
  border-color: rgba(201, 166, 255, 0.32);
  background: rgba(201, 166, 255, 0.08);
}

/* Ликвидность: это не украшение, а характеристика риска, поэтому цвет
   приглушённый — чтобы плашка не спорила со скидкой. */
/* Трейд-защита: предмет у владельца, но передать его Steam не даёт до срока.
   Метка нужна отдельная: такие предметы присылает браузер продавца, и без неё
   они не отличимы от остальных заблокированных — а срок и выплата у них свои. */
.badge.hold {
  color: var(--warn);
  border-color: rgba(255, 180, 84, 0.3);
  background: rgba(255, 180, 84, 0.08);
}

.badge.volume {
  color: #7fd4c1;
  border-color: rgba(127, 212, 193, 0.28);
  background: rgba(127, 212, 193, 0.07);
}

.buy-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(91, 157, 255, 0.06), transparent 40%), var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.buy-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.bp-now {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--fade-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bp-steam {
  font-size: 13px;
  color: var(--muted);
}

.bp-steam s {
  opacity: 0.75;
}

.buy-save {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ok);
}

.buy-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.buy-facts > div {
  padding: 12px 14px;
  background: var(--surface);
}

.buy-facts dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.buy-facts dd {
  margin: 5px 0 0;
  font-size: 13.5px;
  color: var(--text);
}

.buy-cta {
  display: grid;
  gap: 12px;
}

.buy-cta .btn {
  width: 100%;
  justify-content: center;
}

.buy-field span {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  color: var(--text-2);
}

.buy-field input {
  width: 100%;
}

.buy-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.buy-blocked {
  margin: 0;
  font-size: 13px;
  color: var(--warn);
}

.buy-result:empty {
  display: none;
}

.buy-result {
  margin-top: 14px;
}

/* Задержка обмена. Строка стоит между условиями и кнопкой: про неё надо
   узнать до оплаты, а не из отказа после. Левый край окрашен, поэтому строку
   видно и когда её не читают целиком. */
.buy-lock {
  margin: 14px 0 0;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--warn) 32%, transparent);
  border-left-width: 3px;
  border-radius: 10px;
  background-image: linear-gradient(
    92deg,
    color-mix(in srgb, var(--warn) 13%, transparent),
    transparent 68%
  );
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
}

/* Обмен уже открылся — часы сменились на замок: цвет уходит в зелёный. */
.buy-lock.is-open {
  border-color: color-mix(in srgb, var(--ok) 30%, transparent);
  background-image: linear-gradient(
    92deg,
    color-mix(in srgb, var(--ok) 11%, transparent),
    transparent 68%
  );
}

.buy-guarantee {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line-soft);
}

.bg-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Внутри панели у списка нет своего верхнего отступа: отбивку держит
   заголовок, иначе между ними появляется двойной пробел. */
.buy-guarantee .buy-trust {
  margin-top: 0;
}

.bg-more {
  margin: 12px 0 0;
  font-size: 12.5px;
}

.bg-more a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.bg-more a:hover {
  border-bottom-color: var(--accent);
}

.buy-trust {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.buy-trust li {
  display: flex;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.buy-trust .icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--accent);
}

.spec-block {
  margin-bottom: 46px;
}

.spec-block h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.spec-table {
  width: 100%;
  min-width: 0;
  font-size: 13.5px;
}

.spec-table td {
  padding: 13px 20px;
}

.spec-table .spec-key {
  width: 34%;
  color: var(--muted);
  font-weight: 500;
}

/* ------------------------------------------------------------ предложения */

.offers {
  margin-bottom: 46px;
}

.offers-head {
  margin-bottom: 14px;
}

.offers-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.offers-sub {
  margin: 0;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.offers-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.of-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 122px;
}

.of-field span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.of-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.of-field input:focus {
  outline: none;
  border-color: rgba(127, 178, 255, 0.55);
  background: var(--accent-soft);
}

.of-reset {
  margin-bottom: 1px;
}

/* Кнопка опта закрывает ряд фильтров и стоит справа от них. */
.of-bulk-open {
  margin-left: auto;
  margin-bottom: 1px;
}

.offers-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(127, 178, 255, 0.28);
  border-radius: var(--r-lg);
  background: var(--accent-soft);
}

.of-pick-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}

.of-bulk-sum {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.btn.active {
  border-color: rgba(127, 178, 255, 0.55);
  background: var(--accent-soft);
  color: var(--ice);
}

/* Таблица книги повторяет общий стиль .compare — здесь только своё. */
.offers-table .of-pick-col {
  width: 46px;
}

.offers-table .of-float-col {
  white-space: nowrap;
}

.offers-table a.of-float {
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  border-bottom: 1px dashed rgba(127, 178, 255, 0.3);
}
.offers-table a.of-float:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.offers-table .muted {
  color: var(--muted);
}

.offers-table .of-nametag {
  min-width: 220px;
  color: var(--muted);
}

/* Метка продавца: обычный текст в рамке — видно, что это подпись, а не скин. */
.of-nametag-name {
  display: inline-block;
  margin: 2px 6px 2px 0;
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(150, 180, 255, 0.06);
  color: var(--text);
  font-size: 12px;
}

/* Наклейки лота: чипы с именем и типом — по ним и ценят вторичный рынок. */
.of-sticker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 2px 6px 2px 0;
  padding: 2px 8px;
  border: 1px solid rgba(127, 178, 255, 0.18);
  border-radius: 999px;
  background: rgba(127, 178, 255, 0.08);
  color: var(--text-2);
  font-size: 11px;
  white-space: nowrap;
}
.of-sticker b {
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}
.of-sticker-icon {
  width: 11px;
  height: 11px;
  color: var(--blue);
}

.offers-table .of-price {
  color: var(--text);
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.offers-table thead th:last-child,
.offers-table .of-action {
  text-align: right;
  white-space: nowrap;
}

.offers-table .of-look {
  margin-right: 6px;
}
.offers-table .of-look .icon {
  width: 14px;
  height: 14px;
}

.lb-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
}
.lb-link:hover {
  color: var(--ice);
}

.offers-table .of-wait {
  white-space: nowrap;
}

.of-tag {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.offers-empty {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.offers-result {
  margin-top: 14px;
}

.offers-result .alert {
  margin: 0;
}

@media (max-width: 640px) {
  .of-bulk-open {
    margin-left: 0;
  }
  .of-bulk-sum {
    margin-left: 0;
  }
}

/* -------------------------------------------------------------- варианты */

.variants {
  margin-bottom: 46px;
}

.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.variant-card {
  --rarity: var(--blue);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--rarity);
  border-radius: var(--r);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.variant-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.v-art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 12px;
  background: radial-gradient(100% 80% at 50% 0%, rgba(127, 178, 255, 0.09), transparent 60%);
}

.v-art img {
  width: 100%;
  height: auto;
}

.v-art .item-icon {
  width: 60%;
  height: auto;
  aspect-ratio: 4 / 3;
  color: var(--muted);
}

.v-body {
  display: grid;
  gap: 7px;
  padding: 12px 14px 14px;
}

.v-name {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text);
}

.v-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.v-float {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.v-price {
  font-size: 16px;
  font-weight: 650;
  color: var(--ice);
}

/* ---------------------------------------------------------------- осмотр */

body.lb-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 4vw;
  background: rgba(4, 6, 12, 0.9);
  backdrop-filter: blur(6px);
}

.lb-figure {
  margin: 0;
  /* Кадр осмотра собирается на canvas в 1200x630 — это шире рендера Steam,
     поэтому окну просмотра даём больше места. */
  max-width: min(1080px, 94vw);
  text-align: center;
}

.lb-figure img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
}

.lb-figure figcaption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-2);
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ice);
  background: rgba(16, 19, 28, 0.8);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  cursor: pointer;
}

.lb-close:hover {
  border-color: var(--accent);
}

/* Кнопки под кадром осмотра: скачать скриншот и скопировать ссылку. */
.lb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

/* Атрибут hidden должен побеждать display: flex выше. */
.lb-actions[hidden] {
  display: none;
}

/* «Ниже Steam на … · −15,1%» выглядит как текст, но ведёт в лот на Steam. */
.steam-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(150, 180, 255, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.steam-link:hover {
  color: var(--ice);
  border-bottom-color: var(--accent);
}

/* -------------------------------------------------------------- кабинет */

.account-page {
  padding-bottom: 40px;
}

.gate {
  max-width: 620px;
  margin: 60px auto;
  padding: 40px 34px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.gate-icon {
  width: 46px;
  height: 46px;
  color: var(--accent);
}

.gate h1 {
  margin: 16px 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
}

.gate .lead {
  margin: 0 0 22px;
}

.gate .btn {
  margin-bottom: 18px;
}

.profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 26px 0;
  padding: 24px;
  background: linear-gradient(120deg, rgba(91, 157, 255, 0.08), transparent 55%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.ph-avatar img,
.ph-avatar-empty {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--surface-3);
}

.ph-text h1 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.ph-sub {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--mono);
}

.ph-badges {
  margin: 10px 0 0;
}

.ph-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, auto));
  gap: 14px 26px;
  margin: 0;
}

.ph-stats dt {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.ph-stats dd {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 650;
  color: var(--ice);
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

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

.tab.active {
  color: var(--ice);
  border-bottom-color: var(--accent);
}

.tab .icon {
  width: 15px;
  height: 15px;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.panel h3 {
  margin: 28px 0 10px;
  font-size: 15px;
}

.panel-lead {
  margin: 0 0 18px;
  max-width: 76ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.sc-label {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.sc-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--ice);
  overflow-wrap: anywhere;
}

/* Счётчики статистики: крупная цифра, значок и подпись — как в кабинете
   lis-skins. Отдельные карточки вместо одной строки «квадратом»: у каждого
   показателя своё место, и цифру легко прочитать. */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.stat-card.big {
  gap: 10px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(21, 25, 36, 0.72), rgba(16, 19, 28, 0.72));
  border-radius: var(--r-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.stat-card.big:hover {
  border-color: rgba(127, 178, 255, 0.35);
  transform: translateY(-2px);
}

.stat-card.big .sc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(127, 178, 255, 0.1);
  border: 1px solid rgba(127, 178, 255, 0.16);
  color: var(--ice-2);
}
.stat-card.big .sc-icon .icon {
  width: 18px;
  height: 18px;
}

.stat-card.big .sc-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--fade-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card.big .sc-label {
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.sc-value.accent {
  color: var(--accent);
  font-size: 22px;
}

.rows {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* Строки «Личной информации». Селекторы привязаны к .rows намеренно: класс
   .row-item есть ещё у списка позиций в первом экране, и без привязки его
   фиксированная высота 67px давила эти строки — текст вылезал на соседнюю. */
.rows .row-item {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 20px 22px;
  background: var(--surface);
}

/* Подпись слева не должна растягиваться на всю высоту строки: значение бывает
   в три раза выше, и подпись уезжает к середине. */
.ri-key {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  padding-top: 2px;
}

.ri-val {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Подсказка встречается и вне .rows — в карточках «Безопасности», поэтому
   селектор общий, без привязки к контейнеру. */
.ri-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 66ch;
}

.ri-edit {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ri-edit input {
  flex: 1 1 260px;
  min-width: 0;
  /* Поле ввода выше кнопки: иначе строка выглядит приплюснутой. */
  padding: 11px 13px;
}

.ri-result {
  margin-top: 8px;
  font-size: 12.5px;
}

/* На узком экране две колонки превращаются в одну: подпись над значением. */
@media (max-width: 640px) {
  .rows .row-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 16px 18px;
  }
  .rows .ri-key {
    padding-top: 0;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
}

.ok-text {
  color: var(--ok);
}

.err-text {
  color: var(--err);
}

.panel .note {
  margin: 16px 0 0;
  max-width: 82ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.rules {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
}

.ref-field {
  max-width: 620px;
  margin-bottom: 6px;
}

.ref-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}

.empty {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

table.compare.wide {
  min-width: 720px;
}

table.compare .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.compare .neg {
  color: var(--err);
}

table.compare td a {
  color: var(--text);
}

table.compare td a:hover {
  color: var(--accent);
}

.inv-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 16px;
}

.inv-filters .field {
  margin: 0;
}

/* ============================================ оценка покупки звёздами

   Компонент взят с uiverse.io (SelfMadeSystem, «Star Radio Buttons», MIT) и
   подогнан под наши переменные: те же штриховые звёзды, та же анимация
   «чертится и лопается» при выборе. Менять порядок звёзд в разметке нельзя:
   ряд развёрнут (row-reverse), и заполнение «выбранная звезда и все левее»
   держится на соседнем селекторе `input:checked ~ label`. Поэтому в HTML
   звёзды идут от пятой к первой. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.3rem;
  --stroke: #666;
  --fill: #ffc73a;
}

/* Сам инпут не показываем, но не через display: none — иначе он выпадает из
   обхода с клавиатуры, и оценку нельзя поставить стрелками. */
.rating input {
  appearance: none;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.rating label {
  cursor: pointer;
  line-height: 0;
}

.rating svg {
  width: 2.2rem;
  height: 2.2rem;
  overflow: visible;
  fill: transparent;
  stroke: var(--stroke);
  stroke-linejoin: bevel;
  stroke-dasharray: 12;
  animation: idle 4s linear infinite;
  transition: stroke 0.2s, fill 0.5s;
}

@keyframes idle {
  from {
    stroke-dashoffset: 24;
  }
}

.rating label:hover svg {
  stroke: var(--fill);
}

.rating input:focus-visible + label svg {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.rating input:checked ~ label svg {
  transition: 0s;
  animation: idle 4s linear infinite, yippee 0.75s backwards;
  fill: var(--fill);
  stroke: var(--fill);
  stroke-opacity: 0;
  stroke-dasharray: 0;
  stroke-linejoin: miter;
  stroke-width: 8px;
}

@keyframes yippee {
  0% {
    transform: scale(1);
    fill: var(--fill);
    fill-opacity: 0;
    stroke-opacity: 1;
    stroke: var(--stroke);
    stroke-dasharray: 10;
    stroke-width: 1px;
    stroke-linejoin: bevel;
  }

  30% {
    transform: scale(0);
    fill: var(--fill);
    fill-opacity: 0;
    stroke-opacity: 1;
    stroke: var(--stroke);
    stroke-dasharray: 10;
    stroke-width: 1px;
    stroke-linejoin: bevel;
  }

  30.1% {
    stroke: var(--fill);
    stroke-dasharray: 0;
    stroke-linejoin: miter;
    stroke-width: 8px;
  }

  60% {
    transform: scale(1.2);
    fill: var(--fill);
  }
}

/* Уже поставленная оценка: те же звёзды, но без анимации — в таблице заказов
   движение читалось бы как «здесь что-то происходит». */
.rating-static {
  display: inline-flex;
  gap: 2px;
  vertical-align: -2px;
}

.rating-static svg {
  width: 14px;
  height: 14px;
  fill: transparent;
  stroke: var(--line);
  stroke-width: 2px;
  stroke-linejoin: round;
}

.rating-static svg.is-on {
  fill: #ffc73a;
  stroke: #ffc73a;
}

.rate-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.rate-dialog::backdrop {
  background: rgba(6, 8, 12, 0.66);
  backdrop-filter: blur(3px);
}

.rate-card {
  padding: 22px 22px 20px;
}

.rate-card h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.rate-item {
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.rate-lead {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.rate-comment-label {
  display: block;
  margin: 16px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.rate-dialog textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  resize: vertical;
}

.rate-dialog textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.rate-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.rate-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.rate-status {
  margin: 12px 0 0;
  font-size: 12.5px;
  min-height: 18px;
}

.rate-status.is-error {
  color: var(--warn);
}

.rate-status.is-ok {
  color: #7fe0b8;
}

/* Кнопка оценки в строке заказа. */
.rate-open {
  white-space: nowrap;
}

/* Отзывы на главной: оценка, текст и предмет. Пока оценок нет, блока на
   странице не существует — пустая полка «отзывов» хуже, чем её отсутствие. */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  margin-top: 22px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0));
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

/* Отзыв приподнимается под курсором, как карточка позиции: витрина должна
   вести себя одинаково во всех блоках. */
.review-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}

.review-card .rating-static svg {
  width: 16px;
  height: 16px;
}

.review-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

.review-meta {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--muted);
}

.review-meta .notranslate {
  color: var(--text-2);
}

/* Средняя оценка рядом с заголовком: крупная цифра и звёзды под ней. */
.reviews-score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-score b {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  background: var(--fade-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .rating svg,
  .rating input:checked ~ label svg {
    animation: none;
  }
}

.sec-grid {
  display: grid;
  /* min(300px, 100%), а не просто 300px: на экране уже 300 px минимум колонки
     перебивал бы ширину контейнера, и карточки вылезали бы за экран. */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.sec-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.sec-card h3 {
  margin: 0 0 12px;
}

.sec-actions {
  margin-top: 16px;
}

.badge.ok-badge {
  color: var(--ok);
  border-color: rgba(87, 217, 163, 0.3);
  background: rgba(87, 217, 163, 0.08);
}

.badge.warn-badge {
  color: var(--warn);
  border-color: rgba(255, 180, 84, 0.3);
  background: rgba(255, 180, 84, 0.08);
}

.badge.err-badge {
  color: var(--err);
  border-color: rgba(255, 107, 129, 0.3);
  background: rgba(255, 107, 129, 0.08);
}

/* ----------------------------------------------------------- документация */

.docs {
  padding-bottom: 40px;
}

.docs > h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.03em;
}

.docs > .lead {
  max-width: 78ch;
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.docs section {
  margin: 42px 0;
}

.docs h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: -0.02em;
}

.endpoint {
  margin: 22px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.endpoint h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 14.5px;
  overflow-wrap: anywhere;
}

.method {
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 5px;
  border: 1px solid currentColor;
}

.method.get {
  color: var(--ok);
}

.method.post {
  color: var(--warn);
}

.endpoint p {
  max-width: 82ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.sub {
  margin: 18px 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

pre.code {
  margin: 10px 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ice-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

pre.code code {
  font-family: inherit;
  white-space: pre;
}

table.compare.params td:first-child {
  width: 30%;
  font-weight: 500;
}

.faq-mini {
  display: grid;
  gap: 10px;
}

.faq-mini details {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.faq-mini summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.faq-mini details p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}

.docs-cta {
  padding: 30px;
  text-align: center;
  background: linear-gradient(120deg, rgba(91, 157, 255, 0.1), transparent 60%), var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}

.docs-cta h2 {
  margin-bottom: 8px;
}

.docs-cta p {
  margin: 0 auto 18px;
  max-width: 60ch;
}

/* --------------------------------------------- адаптивность новых страниц */

@media (max-width: 1000px) {
  .item-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .art-slot {
    min-height: 220px;
  }

  .profile-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ph-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .row-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .inv-filters {
    grid-template-columns: 1fr;
  }

  .buy-facts {
    grid-template-columns: 1fr;
  }

  .float-legend {
    font-size: 9.5px;
  }
}

/* На узком экране подписи под зонами не помещаются: зоны узкие, а слова
   длинные. Переключаемся на список-легенду в несколько строк с цветными
   квадратиками — привязка к шкале теряется, но читается без наложений, а
   текущая зона по-прежнему подсвечена. */
@media (max-width: 560px) {
  .float-legend {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    height: auto;
    margin-top: 12px;
  }

  .float-legend span,
  .float-legend [data-zone] {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    white-space: normal;
  }

  .float-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .float-legend span::before {
    content: '';
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--zone-color, var(--muted));
  }

  .float-legend [data-zone='fn'] {
    --zone-color: #2dd4bf;
  }
  .float-legend [data-zone='mw'] {
    --zone-color: #4ade80;
  }
  .float-legend [data-zone='ft'] {
    --zone-color: #facc15;
  }
  .float-legend [data-zone='ww'] {
    --zone-color: #fb923c;
  }
  .float-legend [data-zone='bs'] {
    --zone-color: #f43f5e;
  }
}

@media (max-width: 480px) {
  .crumbs span {
    max-width: 46vw;
  }

  .art-frame {
    padding: 16px;
  }

  .inspect-btn {
    right: 10px;
    bottom: 10px;
  }

  .profile-head {
    padding: 18px;
  }

  .ph-avatar img,
  .ph-avatar-empty {
    width: 56px;
    height: 56px;
  }

  .docs .endpoint {
    padding: 16px;
  }
}

/* Карточка ведёт на страницу предмета: подчёркивание тут лишнее, а сама
   картинка должна читаться как ссылка при наведении. */
a.item-title,
a.item-art {
  text-decoration: none;
  color: inherit;
}

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

a.item-art:hover .item-icon {
  color: var(--ice);
}

/* Ник в шапке — ссылка в кабинет: подчёркивание и смена цвета при наведении
   подсказывают, что это кликабельно. */
.user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.user-link:hover .user-nick {
  color: var(--accent);
}

/* Сумма операции: у несостоявшейся покупки деньги не уходили, поэтому она
   не красная, а с подписью, что именно произошло с деньгами. */
.muted-amount {
  color: var(--text-2);
}

.amount-note {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

/* Защита Steam у полученного предмета. Строка стоит в столбце «Передача» и
   отвечает на вопрос «почему скин нельзя продать» — поэтому цвет не серый, а
   предупреждающий, с замком. Когда срок вышел, подсказка гаснет: предмет
   свободен, и привлекать к ней внимание больше незачем. */
.hold-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--warn);
  white-space: nowrap;
}

.hold-line .icon {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}

.hold-line.is-free {
  color: var(--muted);
}

/* ------------------------------------------------- уведомления о балансе ----
   Колокольчик живёт слева внизу, и плашки встают прямо над ним — там же, где
   покупатель ждёт их увидеть. Справа внизу кнопка поддержки, и уведомления с
   ней больше не спорят. */
.bell-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 61;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--surface-3) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line-2);
  color: var(--ice-2);
  cursor: pointer;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.8);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.bell-fab:hover {
  color: var(--ice);
  border-color: rgba(127, 178, 255, 0.45);
  transform: translateY(-1px);
}
.bell-fab .icon {
  width: 21px;
  height: 21px;
}
/* Включённые уведомления помечаем точкой: состояние видно без открытия меню. */
.bell-fab::after {
  content: '';
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  transition: background 0.18s ease;
}
.bell-fab[data-on='1']::after {
  background: var(--ok);
}
.bell-fab[data-on='1'] .icon {
  color: var(--ok);
}

.toast-stack {
  position: fixed;
  left: 20px;
  bottom: 78px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.85);
  animation: toast-in 0.22s ease-out;
}

/* Значок в кружке: цвет говорит о тоне, форма остаётся спокойной. */
.toast-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(91, 157, 255, 0.14);
  color: var(--blue);
}
.toast-badge .icon {
  width: 16px;
  height: 16px;
}
.toast-ok .toast-badge {
  background: rgba(87, 217, 163, 0.14);
  color: var(--ok);
}
.toast-warn .toast-badge {
  background: rgba(255, 180, 84, 0.14);
  color: var(--warn);
}

.toast-body {
  flex: 1;
  min-width: 0;
}
.toast-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.toast-text {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Действие внутри плашки: ведёт туда, о чём уведомление («открыть корзину»). */
.toast-action {
  display: inline-block;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--blue);
}

.toast-action:hover {
  color: var(--ice);
}

/* Плашка с кнопками: благодарность за заказ и ожидание обмена. */
.toast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.toast-actions .btn {
  padding: 7px 13px;
  font-size: 12px;
  text-decoration: none;
}
.toast-timer {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--muted);
}
.toast-timer b {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.toast-count {
  color: var(--ok);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.toast-stay {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.toast-stay:hover {
  color: var(--ice);
}
/* Значок-печать у благодарности: скруглённый квадрат вместо кружка. */
.toast-badge.is-seal {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(87, 217, 163, 0.08);
}
.toast-badge.is-seal .icon {
  width: 19px;
  height: 19px;
}

.toast-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
}
.toast-close:hover {
  color: var(--ice);
}
.toast-close svg {
  width: 13px;
  height: 13px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
}

@media (max-width: 640px) {
  .bell-fab {
    left: 14px;
    bottom: 14px;
  }
  .toast-stack {
    left: 14px;
    right: 14px;
    bottom: 72px;
    width: auto;
  }
}

/* ------------------------------------------------- быстрые вопросы чата */

.sup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}
.sup-chips[hidden] {
  display: none;
}

.sup-chip {
  padding: 6px 11px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.sup-chip:hover {
  color: var(--ice);
  border-color: rgba(127, 178, 255, 0.5);
  background: var(--accent-soft);
}

/* Точка «есть ответ»: чат свернули, а помощник уже ответил. */
.sup-fab.has-unread::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--surface-2);
}

/* -------------------------------------------------- плашка курсов валют */

/* Кнопка в меню: выглядит как соседние ссылки, но открывает панель. */
.nav-rates {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-2);
  cursor: pointer;
}
.nav-rates:hover,
.nav-rates[aria-expanded='true'] {
  color: var(--ice);
}
.nav-rates.has-error {
  color: var(--warn);
}

/* Курс прямо в кнопке — собственно «плашка». */
.rates-value {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.nav-rates.has-error .rates-value {
  color: inherit;
}

.rates-panel {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 24px;
  z-index: 55;
  width: min(300px, calc(100vw - 24px));
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow), var(--glow);
}

.rp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 8px 12px;
}
.rp-head strong {
  font-size: 13.5px;
}
.rp-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
}
.rp-close:hover {
  color: var(--ice);
}
.rp-close .icon {
  width: 14px;
  height: 14px;
}

.rp-body {
  padding: 0 6px;
}

.rp-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: baseline;
  gap: 8px;
  padding: 9px 6px;
  border-top: 1px solid var(--line-soft);
}
.rp-row:first-child {
  border-top: 0;
}
.rp-code {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
}
.rp-name {
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.rp-foot {
  margin: 0;
  padding: 8px 12px 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

.rp-note {
  margin: 0;
  padding: 8px 6px;
  font-size: 12px;
  color: var(--muted);
}
.rp-note-err {
  color: var(--err);
}
.rp-note-warn {
  color: var(--warn);
}

/* Кнопка курсов в мобильном меню главной. */
.mobile-rates {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mobile-rates .rates-value {
  margin-left: 8px;
}

/* ------------------------------------------------ выбор языка интерфейса */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.lang-btn {
  padding: 3px 8px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.lang-btn:hover {
  color: var(--ice);
}
.lang-btn.is-active {
  background: var(--accent-soft);
  color: var(--ice);
}

@media (max-width: 900px) {
  /* На узком экране подписи у кнопок короче — экономить место обязательно. */
  .lang-btn {
    padding: 3px 6px;
  }
}

/* ------------------------------------------------------------------ админка */

.admin-page {
  padding: 34px 0 60px;
  min-height: 60vh;
}
.admin-gate {
  max-width: 560px;
  margin: 40px auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 16px;
}
.admin-gate h1 {
  font-size: 24px;
  margin: 0 0 12px;
}
.admin-gate p {
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 12px;
}
.admin-steamid {
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ice);
  word-break: break-all;
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.admin-head h1 {
  font-size: 26px;
  margin: 0;
}
.admin-sub {
  font-size: 16px;
  margin: 26px 0 10px;
  color: var(--text);
}
.admin-note {
  margin: 0 0 18px;
}

/* Поиск по разделу: номер заказа покупатель называет в поддержке, и найти его
   в списке оператор должен за секунду, а не глазами по двумстам строкам. */
.admin-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-search {
  flex: 0 1 420px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
}

.admin-search::placeholder {
  color: var(--muted);
}

.admin-search:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.admin-found {
  font-size: 12.5px;
  color: var(--muted);
}

/* ------------------------------------------------------- соцсети в подвале */

/* Ссылки на сообщество и канал: в подвале, потому что это не действие
   покупателя, а «где ещё нас читают». Иконки — узнаваемые контуры VK и
   Telegram, цвет берут от текста, чтобы не спорить с палитрой. */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-social-label {
  margin-right: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.soc-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(150, 180, 255, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.soc-link:hover {
  color: var(--ice);
  background: var(--accent-soft);
  border-color: rgba(127, 178, 255, 0.5);
}

.soc-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: none;
}

/* ------------------------------------------------------------------ сводка */

/* Список «что ждёт человека»: строка целиком кнопка, потому что владелец
   пришёл не читать, а идти делать. */
.sum-list {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.sum-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--warn);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.sum-item:hover {
  background: rgba(150, 180, 255, 0.05);
  transform: translateX(2px);
}

.sum-item.is-bad {
  border-left-color: var(--err);
}

.sum-count {
  flex: none;
  min-width: 30px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--ice);
  text-align: center;
}

.sum-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-2);
}

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

.sum-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(91, 157, 255, 0.06), transparent 60%), var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.sum-card-value {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ice);
}

.sum-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.sum-card-hint {
  font-size: 11.5px;
  color: var(--muted);
}

/* Казначейство: запись переводов между счетами (площадки, приём платежей, банк). */
.treasury-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 6px;
}

.treasury-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
}

.treasury-label {
  min-width: 150px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.treasury-row select,
.treasury-row input {
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
}

.treasury-row input {
  width: 130px;
}

.treasury-row select:focus-visible,
.treasury-row input:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.admin-empty {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--text-2);
  font-size: 13.5px;
}

/* Оценка в админке: те же звёзды, что у покупателя, но статикой — в таблице
   движение читалось бы как «здесь что-то происходит». */
.admin-stars {
  white-space: nowrap;
  letter-spacing: 1px;
}

.admin-star {
  color: rgba(150, 180, 255, 0.22);
}

.admin-star.is-on {
  color: #ffc73a;
}
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-2);  border-radius: 12px;
  background: var(--surface);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.admin-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admin-table tr:last-child td {
  border-bottom: 0;
}
.admin-table td .mono {
  font-size: 12px;
}
.admin-who {
  color: var(--text-2);
  font-size: 13px;
}
.nav-tab {
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.nav-tab:hover {
  color: var(--ice);
}
.nav-tab.is-active {
  background: var(--accent-soft);
  color: var(--ice);
}

/* ------------------------------------------------ поддержка в админке */

/* Список обращений: строка целиком — кнопка, поэтому и вид у неё «строка»,
   а не «карточка»: оператору важно быстро пробежать глазами, кому он не
   ответил, а не разглядывать оформление. */
.sup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.sup-row + .sup-row {
  margin-top: 8px;
}

.sup-row:hover,
.sup-row:focus-visible {
  border-color: rgba(127, 178, 255, 0.42);
  background: rgba(127, 178, 255, 0.05);
}

/* Неотвеченное видно сразу: слева акцентная полоса. */
.sup-row.is-unread {
  border-left: 3px solid var(--accent);
}

.sup-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sup-row-name {
  font-size: 13.5px;
  font-weight: 600;
}

.sup-row-text {
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sup-row-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.sup-conv {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sup-conv .sup-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 16px;
  background: rgba(7, 9, 16, 0.5);
  border: 1px solid var(--line-2);
  border-radius: 12px;
}

.sup-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 80%;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.sup-msg-role {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.sup-msg-text {
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sup-msg-user {
  align-self: flex-start;
}

.sup-msg-assistant {
  align-self: flex-start;
  border-color: rgba(127, 178, 255, 0.24);
}

/* Ответ оператора — справа: видно, где чья реплика, без чтения подписи. */
.sup-msg-operator {
  align-self: flex-end;
  background: var(--accent-soft);
  border-color: rgba(127, 178, 255, 0.35);
}

.sup-reply {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.sup-reply textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  resize: vertical;
  outline: none;
}

.sup-reply textarea:focus {
  border-color: rgba(127, 178, 255, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

@media (max-width: 640px) {
  .sup-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .sup-msg {
    max-width: 100%;
  }
}

/* Кнопки разбора в строке заказа: оператор решает исход, не уходя со страницы. */
.resolve-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.resolve-actions .btn {
  padding: 5px 10px;
  font-size: 11.5px;
}

/* --------------------------------------------------------------- корзина */

.cart-page {
  padding: 28px 0 64px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* Недоступная позиция остаётся в списке, но приглушена: покупатель должен
   видеть, что вещь была, а не обнаружить пустое место. */
.cart-row.is-unavailable {
  opacity: 0.6;
}

.cart-art {
  display: grid;
  place-items: center;
  height: 90px;
  background: rgba(127, 178, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.cart-art img {
  max-width: 100%;
  max-height: 100%;
}

.cart-art-icon {
  width: 30px;
  height: 30px;
  color: var(--ice-2);
}

.cart-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.cart-meta {
  font-size: 11.5px;
  color: var(--muted);
}

.cart-note {
  font-size: 11.5px;
  color: var(--muted);
}

.cart-note.warn {
  color: var(--err, #ff6b6b);
}

.cart-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.cart-now {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--ice);
}

.cart-steam {
  font-size: 11.5px;
  color: var(--muted);
}

.cart-save {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ok, #52d68a);
}

.cart-remove {
  padding: 6px 8px;
}

.cart-summary {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}

/* Шаги сделки над корзиной: что будет после «Оформить». */
.deal-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.deal-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 180px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.deal-step.is-now {
  border-color: rgba(127, 178, 255, 0.35);
  background: var(--accent-soft);
}
.deal-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ice);
  font-size: 12.5px;
  font-weight: 700;
  flex: none;
}
.deal-step-body {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.deal-step-body b {
  font-size: 13.5px;
}

/* Нехватка баланса: предупреждение и кнопка пополнения в сводке. */
.cart-short {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 196, 120, 0.35);
  border-radius: var(--r);
  background: rgba(255, 196, 120, 0.08);
}
.cart-short p {
  margin: 0;
}
.warn-text {
  color: var(--amber, #f5b544);
}

/* Гарантии под кнопкой: коротко, без обещаний, которых нет в механике. */
.cart-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cart-trust li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cart-trust .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex: none;
  color: var(--ok, #5ad19a);
}

/* Карточка промокодов целиком ведёт в пополнение — показываем это курсором. */
.promo-card.is-clickable {
  cursor: pointer;
}
.promo-cta {
  margin-top: 14px;
}

/* Пополнение на странице продажи: под суммой к получению, до кнопки «Продать». */
.sell-topup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}
.sell-topup-text {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.cart-summary h2 {
  margin: 0;
  font-size: 17px;
}

.cart-total {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.cart-total > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cart-total dt {
  font-size: 12.5px;
  color: var(--muted);
}

.cart-total dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
}

.cart-sum {
  font-family: var(--mono);
  font-size: 20px !important;
  color: var(--ice);
}

.cart-breakdown {
  margin-top: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}

.cart-breakdown h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.cart-breakdown .compare td.num,
.cart-breakdown .compare th {
  text-align: right;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.sk-row {
  height: 118px;
  border-radius: var(--r-lg);
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .cart-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .cart-row {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
  }
  .cart-price {
    align-items: flex-start;
    grid-column: 2;
  }
  .cart-remove {
    grid-column: 2;
    justify-self: start;
  }
}

/* Две кнопки покупки рядом: «Купить» и «В корзину». На узком экране
   складываются в столбик, чтобы не сжиматься в нечитаемое. */
.buy-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.buy-actions .btn {
  flex: 1 1 auto;
}

@media (max-width: 420px) {
  .buy-actions {
    flex-direction: column;
  }
}

/* Состояние сервиса в админке: строка на проверку, с цветом по уровню.
   Цвет здесь несёт смысл, а не украшает: «отказ» должен быть виден сразу. */
.health-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
}

.health-row + .health-row {
  margin-top: 8px;
}

.health-level {
  flex: none;
  min-width: 92px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  border-radius: 20px;
  border: 1px solid var(--line-2);
}

.health-ok .health-level {
  color: var(--ok, #52d68a);
  border-color: rgba(82, 214, 138, 0.35);
  background: rgba(82, 214, 138, 0.08);
}

.health-warn .health-level {
  color: #ffd76e;
  border-color: rgba(255, 215, 110, 0.35);
  background: rgba(255, 215, 110, 0.08);
}

.health-fail .health-level {
  color: var(--err, #ff6b6b);
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.1);
}

.health-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

/* Кнопка проверки уведомлений внутри строки состояния: тянется по ширине
   колонки, если её не ограничить. */
.health-body .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.health-title {
  font-size: 13.5px;
  font-weight: 600;
}

.health-detail {
  font-size: 12.5px;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.health-hint {
  font-size: 11.5px;
  color: var(--muted);
}

/* ------------------------------------------------------------ страница FAQ */

.faq-page {
  padding: 28px 0 72px;
}

/* Оглавление: страница длинная, по разделам быстрее найти нужное. */
.faq-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}

.faq-toc a {
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.faq-toc a:hover {
  color: var(--ice);
  border-color: rgba(127, 178, 255, 0.42);
}

.faq-group {
  margin-bottom: 30px;
}

.faq-group h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.faq-page .faq-item {
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.faq-page .faq-item summary {
  padding: 14px 18px;
}

.faq-page .faq-item .answer {
  padding: 0 18px 16px;
  max-width: 76ch;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.faq-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 26px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}

.faq-cta p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .faq-group h2 {
    font-size: 17px;
  }
}

/* Осмотр настоящего экземпляра под картинкой предмета: кнопка и пояснение. */
.lot-inspect {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 0;
}

.lot-inspect[hidden] {
  display: none;
}

/* ============================================================= баланс в шапке
   Бейдж с балансом — не просто текст, а кнопка: нажатие открывает панель
   пополнения. Три внутренних элемента: метка, сумма и плюс-круг. */
#balance-chip.is-button {
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
#balance-chip.is-button:hover,
#balance-chip.is-button:focus-visible {
  border-color: rgba(127, 178, 255, 0.45);
  background: rgba(91, 157, 255, 0.08);
}
#balance-chip.is-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.balance-label {
  color: var(--muted);
  font-weight: 500;
  font-size: inherit;
}
.balance-value {
  font-weight: 650;
  color: var(--text);
}
.balance-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ice);
  flex: none;
}
/* Плюс — иконка: текстовый глиф сидел в кружке не по центру. */
.balance-plus .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.8;
}

/* Панель пополнения баланса: пресеты сумм и способы оплаты. */
.topup-panel {
  position: fixed;
  z-index: 80;
  width: min(340px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(24, 29, 41, 0.98), rgba(16, 19, 28, 0.99));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(130%);
}
.topup-panel[hidden] {
  display: none;
}

.topup-panel .tp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 6px;
}
.topup-panel .tp-head strong {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.topup-panel .tp-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--r);
  cursor: pointer;
}
.topup-panel .tp-close:hover {
  color: var(--ice);
  background: rgba(150, 180, 255, 0.08);
}

/* Пресеты сумм: ряд кнопок 100 / 300 / 500 / 1 000 / 3 000 ₽. */
.topup-panel .tp-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
}
.tp-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tp-preset:hover {
  border-color: var(--line-2);
  background: rgba(150, 180, 255, 0.07);
}
.tp-preset:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.tp-preset.on {
  background: var(--accent-soft);
  border-color: rgba(127, 178, 255, 0.35);
  color: var(--ice);
}

/* Своя сумма: строка под пресетами, на всю ширину панели. */
.topup-panel .tp-custom-row {
  padding: 0 10px 8px;
}
.topup-panel .tp-custom {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.topup-panel .tp-custom::placeholder {
  color: var(--muted);
  font-weight: 500;
}
.topup-panel .tp-custom:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

/* Тело панели: статус или список способов оплаты. */
.topup-panel .tp-body {
  min-height: 36px;
}
.topup-panel .tp-status {
  padding: 14px 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* Способы оплаты: перечень, появляющийся после выбора суммы. */
.topup-panel .tp-methods {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 10px;
}
.tp-method {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tp-method:hover:not([disabled]) {
  background: rgba(150, 180, 255, 0.07);
  border-color: var(--line-2);
}
.tp-method:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.tp-method[disabled] {
  opacity: 0.6;
  cursor: default;
}
.tp-method .tp-method-title {
  flex: 1;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}
.tp-method .tp-method-hint {
  font-size: 11px;
  color: var(--muted);
}

/* Комиссия и сумма к оплате: покупатель должен видеть их до перехода на
   страницу провайдера, а не узнавать о них там. */
.tp-method .tp-method-fee {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
}

.tp-method[disabled] .tp-method-fee {
  color: var(--muted);
}

/* ============================================================== продажа скинов
   Инвентарь продавца в левой колонке, панель выплаты — в правой. Панель
   залипает под шапкой: отмечая предметы, человек должен видеть, сколько
   получит, не прокручивая страницу. */

/* section.block задаёт отступы секций (58px) и по весу селектора перебивает
   одиночный класс — поэтому здесь именно section.sell-hero / section.sell-shell. */
section.sell-hero {
  padding-bottom: 0;
}

.sell-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
}

/* Общий стиль .sell-lead уже есть выше — здесь только отступ в новой сетке. */
section.sell-shell {
  padding-top: 26px;
}

.sell-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 28px;
  align-items: start;
}

.sell-main {
  min-width: 0;
}

/* ----------------------------------------------------------- панель инструментов */

.sell-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sell-games {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  /* На узком экране ряд игр не влезает: он прокручивается внутри себя, а не
     растягивает страницу. */
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sell-games::-webkit-scrollbar {
  display: none;
}

.sell-game {
  flex: none;
  position: relative;
  padding: 8px 15px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.sell-game:hover:not(:disabled):not(.is-active) {
  color: var(--ice);
  background: rgba(150, 180, 255, 0.06);
}

.sell-game.is-active {
  color: var(--ice);
  background: linear-gradient(135deg, rgba(91, 157, 255, 0.24), rgba(74, 140, 255, 0.13));
  box-shadow: inset 0 0 0 1px rgba(127, 178, 255, 0.38);
}

.sell-game:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Метка «скоро» — общая для игр и способов выплаты. */
.sell-soon {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warn);
  background: rgba(255, 180, 84, 0.12);
  vertical-align: 1px;
}

.sell-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.sell-toolbar .btn.is-missing {
  color: var(--warn);
  border-color: rgba(255, 180, 84, 0.35);
}

/* Обновление инвентаря: пока идёт чтение, иконка крутится — иначе кнопка
   просто гаснет, и непонятно, идёт работа или нажатие потерялось. */
.sell-refresh[data-busy='1'] .icon {
  animation: sell-spin 0.9s linear infinite;
}

@keyframes sell-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sell-refresh[data-busy='1'] .icon {
    animation: none;
  }
}

.sell-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.sell-sort select {
  padding: 8px 10px;
  font: inherit;
  font-size: 12.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}

.sell-sort select:hover,
.sell-sort select:focus-visible {
  border-color: var(--line-2);
  outline: none;
}

.sell-note {
  margin: 0 0 14px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
  background: rgba(150, 180, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.sell-note[hidden] {
  display: none;
}

/* Приглашение подключить инвентарь из браузера. Стоит рядом с подписью о том,
   сколько предметов Steam не отдал, и отличается от неё акцентом: это не
   объяснение, а действие, которое человек может сделать прямо сейчас. */
.sell-connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: -4px 0 14px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
  background: rgba(90, 220, 170, 0.06);
  border: 1px solid rgba(90, 220, 170, 0.28);
  border-radius: 10px;
}

.sell-connect[hidden] {
  display: none;
}

.sell-connect-text {
  flex: 1 1 320px;
  margin: 0;
}

.sell-connect-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.sell-connect-steps .btn {
  margin-right: 10px;
}

.sell-connect-code {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-2);
  background: rgba(6, 9, 16, 0.6);
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.sell-connect-code[hidden] {
  display: none;
}

/* ------------------------------------------------------------------- карточки */

.sell-grid {
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 16px;
}

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

.sell-card:hover {
  border-color: rgba(127, 178, 255, 0.42);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.sell-card:has(.sell-input:checked) {
  border-color: rgba(127, 178, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(127, 178, 255, 0.55),
    0 16px 36px rgba(6, 16, 40, 0.55);
}

.sell-card:has(.sell-input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sell-card.is-blocked {
  opacity: 0.55;
  cursor: default;
}

.sell-card.is-blocked:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

/* Настоящий чекбокс прячем, но оставляем фокусируемым: с клавиатуры выбор
   работает, а вид карточки рисует метка. */
.sell-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sell-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 128px;
  padding: 10px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(127, 178, 255, 0.09), transparent 70%),
    radial-gradient(90% 80% at 50% 100%, color-mix(in srgb, var(--rarity, #7fb2ff) 15%, transparent), transparent 72%);
  border-bottom: 1px solid var(--line);
}

.sell-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(2, 5, 14, 0.5));
}

.sell-img-fallback {
  width: 42px;
  height: 42px;
  color: var(--muted);
  opacity: 0.7;
}

.sell-amount {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ice);
  background: rgba(10, 12, 18, 0.82);
  border: 1px solid var(--line-2);
}

/* Кружок выбора: пустой — «можно взять», с галочкой — выбран. */
.sell-pick {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: transparent;
  background: rgba(10, 12, 18, 0.78);
  border: 1px solid var(--line-2);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.sell-pick svg {
  width: 14px;
  height: 14px;
}

.sell-card:not(.is-blocked):hover .sell-pick {
  border-color: rgba(127, 178, 255, 0.6);
}

.sell-card:has(.sell-input:checked) .sell-pick {
  color: #08101f;
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.05);
}

.sell-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 13px 13px;
}

.sell-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 33px;
  font-size: 13px;
  line-height: 1.28;
}

.sell-prefix {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.sell-weapon {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.sell-skin {
  font-weight: 650;
  color: var(--text);
}

.sell-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 18px;
}

.sell-meta .badge {
  padding: 2px 7px;
  font-size: 10px;
}

.sell-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 8px;
  margin-top: 1px;
}

.sell-price {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 650;
  color: var(--ice);
}

.sell-price.is-blocked {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(140, 154, 180, 0.5);
}

.sell-perunit {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.sell-block {
  flex-basis: 100%;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--warn);
}

/* Метка спроса: объясняет, почему за предмет дают больше или меньше обычного.
   Показывается только у отклонений от обычного спроса, поэтому глаз за неё
   не цепляется на каждой карточке. */
.sell-demand {  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: var(--text-2);
  background: rgba(150, 180, 255, 0.06);
  border: 1px solid var(--line);
}

.sell-demand.is-high,
.sell-demand.is-medium {
  color: #7fe0b8;
  background: rgba(87, 217, 163, 0.08);
  border-color: rgba(87, 217, 163, 0.28);
}

.sell-demand.is-low,
.sell-demand.is-unknown {
  color: var(--warn);
  background: rgba(255, 180, 84, 0.07);
  border-color: rgba(255, 180, 84, 0.28);
}

/* Наклейки, патчи и брелоки этого экземпляра — из описания Steam. Маленькие
   картинки с подписью в title: человек видит, за что ему платят больше. */
.sell-stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.sell-sticker {
  width: 28px;
  height: 21px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(150, 180, 255, 0.05);
  border: 1px solid var(--line);
}

.sell-sticker-text {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Бирка с именем: редкость и повод показать её отдельно от прочих меток. */
.sell-nametag {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  color: #ffd479;
  background: rgba(255, 212, 121, 0.08);
  border: 1px solid rgba(255, 212, 121, 0.3);
}

/* «Осмотреть» ведёт в игру: только там видно точный float и наклейки, которых
   нет в инвентаре. Ссылка стоит в стороне от цены, чтобы её не нажимали
   случайно вместо выбора предмета. */
.sell-inspect {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px dashed currentColor;
  cursor: pointer;
}

.sell-inspect:hover {
  color: var(--accent-2, var(--accent));
}

/* Пояснение про спрос под условиями выплаты. */
.sell-demand-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(150, 180, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* --------------------------------------------------------------------- нижняя планка */

.sell-bar {
  position: sticky;
  bottom: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 10px 16px;
  background: rgba(16, 19, 28, 0.94);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(130%);
}

.sell-bar[hidden] {
  display: none;
}

.sell-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}

.sell-all input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.sell-count {
  margin-right: auto;
  font-size: 13px;
  color: var(--muted);
}

/* Кнопка «К выплате» нужна только там, где панель уехала под сетку. */
.sell-goto {
  display: none;
}

/* ------------------------------------------------------------------- панель выплаты */

.sell-side {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  min-width: 0;
}

.sell-side-inner {
  padding: 20px;
  background: linear-gradient(180deg, rgba(21, 25, 36, 0.78), rgba(16, 19, 28, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.sell-side-title {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.sell-groups {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.sell-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-2);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.sell-group:hover:not(:disabled):not(.is-active) {
  border-color: var(--line-2);
  background: rgba(150, 180, 255, 0.05);
}

.sell-group.is-active {
  border-color: rgba(127, 178, 255, 0.55);
  background: rgba(91, 157, 255, 0.09);
}

.sell-group:disabled {
  opacity: 0.62;
  cursor: default;
}

.sell-group-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
}

.sell-group-hint {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

.sell-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.sell-method {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 11px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text-2);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.sell-method:hover:not(:disabled):not(.is-active) {
  border-color: var(--line-2);
}

.sell-method.is-active {
  border-color: rgba(127, 178, 255, 0.6);
  background: var(--accent-soft);
}

.sell-method:disabled {
  opacity: 0.6;
  cursor: default;
}

.sell-method-title {
  display: flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text);
}

.sell-method-hint {
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--muted);
}

/* Реквизиты выплаты: появляются у методов, которым нужен телефон, карта или
   кошелёк. Поле одно: у каждого метода своё, и путать их нельзя. */
.sell-details {
  margin: -4px 0 16px;
  padding: 12px 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.sell-details[hidden] {
  display: none;
}

.sell-details-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sell-details-input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}

.sell-details-input:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.sell-details-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

/* --------------------------------------------------------------- расчёт выплаты */

.sell-quote {
  display: grid;
  gap: 9px;
  margin: 4px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.sell-quote-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sell-quote-row dt {
  font-size: 13px;
  color: var(--muted);
}

.sell-quote-row dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text-2);
}

.sell-quote-total {
  margin-top: 4px;
  padding-top: 11px;
  border-top: 1px dashed var(--line-2);
}

.sell-quote-total dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.sell-quote-total dd {
  font-size: 20px;
  font-weight: 700;
  color: var(--ice);
}

.sell-min {
  margin: 13px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--warn);
}

.sell-min[hidden] {
  display: none;
}

.sell-submit {
  width: 100%;
  margin-top: 14px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
}

.sell-terms {
  margin: 11px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

/* ------------------------------------------------------------- состояния и успех */

.sell-state {
  margin-bottom: 18px;
}

.sell-state[hidden] {
  display: none;
}

.sell-state-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.sell-state-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}

.sell-state-icon .icon {
  width: 20px;
  height: 20px;
}

.sell-state-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 650;
}

.sell-state-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.sell-state-card .btn {
  margin-top: 12px;
}

.sell-loading {
  margin: 0;
  padding: 26px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

.sell-success {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(87, 217, 163, 0.35);
  border-radius: var(--r-lg);
  background: rgba(87, 217, 163, 0.07);
}

.sell-success-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--ok);
  background: rgba(87, 217, 163, 0.12);
}

.sell-success h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 650;
}

.sell-success p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ------------------------------------------------------------------- мои заявки */

.sell-requests {
  margin-top: 44px;
}

.sell-requests[hidden] {
  display: none;
}

.sell-requests-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.sell-requests-list {
  display: grid;
  gap: 8px;
}

.sell-request {
  display: grid;
  grid-template-columns: 158px 104px minmax(0, 1fr) 148px auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
}

.sell-request-no {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.sell-request-date,
.sell-request-items {
  font-size: 12px;
  color: var(--muted);
}

.sell-request-net {
  font-family: var(--mono);
  font-weight: 650;
  color: var(--ice);
  text-align: right;
}

/* Настоящая сумма выплаты и причина от оператора: строка идёт во всю ширину
   карточки заявки, потому что это пояснение к ней, а не ещё одна колонка. */
.sell-request-note {
  grid-column: 1 / -1;
  margin-top: -2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* -------------------------------------------------------------------- адаптив */

@media (max-width: 1180px) {
  .sell-layout {
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 20px;
  }
  .sell-grid {
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  }
}

@media (max-width: 980px) {
  .sell-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sell-side {
    position: static;
  }
  .sell-goto {
    display: inline-flex;
  }
  .sell-request {
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
  }
  .sell-request-date,
  .sell-request-items {
    grid-column: 1;
  }
  .sell-request-net {
    grid-column: 2;
    grid-row: 1;
  }
  .sell-request .badge {
    grid-column: 2;
    grid-row: 2 / span 2;
    justify-self: end;
    align-self: center;
  }
}

@media (max-width: 560px) {
  .sell-games {
    width: 100%;
  }
  .sell-tools {
    width: 100%;
    margin-left: 0;
  }
  .sell-sort {
    margin-left: auto;
  }
  .sell-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .sell-art {
    height: 106px;
  }
  .sell-methods {
    grid-template-columns: 1fr;
  }
  .sell-bar {
    flex-wrap: wrap;
    gap: 10px 14px;
  }
  .sell-count {
    margin-right: 0;
  }
}

/* ================================================= заявки на продажу в админке */

/* Карточка, а не строка таблицы: у заявки есть список предметов и до четырёх
   действий, в строку это не влезает без потери читаемости. */
.sell-admin {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
}

.sell-admin + .sell-admin {
  margin-top: 12px;
}

.sell-admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 14px;
}

.sell-admin-sum {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ice);
}

.sell-admin-who {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}

.sell-admin-who a {
  color: var(--blue);
}

.sell-admin-payout {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-2);
}

.sell-admin-payout .mono {
  color: var(--ice);
}

.sell-admin-items {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.sell-admin .resolve-actions {
  margin-top: 12px;
}

/* ============================================================================
   Мягкие эффекты интерфейса (см. effects.js).

   Только оформление: появление блоков, отклик на наведение, прогресс чтения.
   Всё выключается системной настройкой «меньше движения» — и через media, и
   через класс .fx-reveal, который скрипт вовсе не ставит при reduce-motion.
   ========================================================================= */

html {
  scroll-behavior: smooth;
}

.fx-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.fx-reveal.fx-in {
  opacity: 1;
  transform: none;
}

/* Прогресс прокрутки: тонкая полоса сверху, растёт по мере чтения. */
.fx-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--ice, var(--accent)));
  opacity: 0.85;
  pointer-events: none;
}

/* Отклик на действия: кнопки и карточки чуть «подыгрывают» нажатию. */
.btn {
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

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

.btn-primary:hover {
  box-shadow: 0 10px 26px -12px var(--accent);
}

.card {
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fx-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .card {
    transition: none;
  }
}

/* Появление карточек каталога каскадом (см. effects.js). */
@keyframes fx-card-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.item-card.fx-card-in {
  animation: fx-card-in 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* Кнопка «наверх». */
.fx-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line, #2a2f3a);
  background: var(--panel, #14181f);
  color: var(--text, #e6e9ef);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}

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

.fx-top:hover {
  border-color: var(--accent, #5b9dff);
}

.fx-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .item-card.fx-card-in {
    animation: none;
  }
  .fx-top {
    transition: none;
  }
}

/* ------------------------------------------------------- подтвердите обмен ----
   Самый важный шаг покупки — подтвердить обмен в Steam — живёт не на сайте,
   а в Steam. Поэтому в кабинете это отдельный блок: шаги сделки, срок обмена
   крупными цифрами, две ссылки на подтверждение и предупреждение проверить
   отправителя. Строка в таблице заказов этого не расскажет. */
.trade-callouts {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}
.trade-callout {
  display: grid;
  gap: 14px;
  padding: 18px 20px 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line-2);
}

/* Шаги сделки: оплата пройдена, обмен ждёт покупателя, предмет — следующим. */
.tc-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
}
.tc-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.tc-step i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-style: normal;
  font-size: 10px;
}
.tc-step i .icon {
  width: 11px;
  height: 11px;
}
.tc-step.done {
  color: var(--text-2);
}
.tc-step.done i {
  background: rgba(87, 217, 163, 0.16);
  border-color: rgba(87, 217, 163, 0.4);
  color: var(--ok);
}
.tc-step.now {
  color: var(--ice-2);
}
.tc-step.now i {
  background: rgba(91, 157, 255, 0.16);
  border-color: rgba(91, 157, 255, 0.45);
  color: var(--blue);
}
.tc-step-line {
  flex: 1;
  min-width: 16px;
  height: 1px;
  background: var(--line-2);
}

.tc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(91, 157, 255, 0.14);
  border: 1px solid var(--line-2);
  color: var(--blue);
}
.tc-icon .icon {
  width: 20px;
  height: 20px;
}
.tc-head-text {
  min-width: 0;
}
.tc-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tc-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.tc-sub b {
  color: var(--text-2);
  font-weight: 600;
}

.tc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}
.tc-facts {
  display: grid;
  gap: 8px;
  align-content: start;
}
.tc-fact {
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--line-soft);
}
.tc-fact-key {
  font-size: 11px;
  color: var(--muted);
}
.tc-fact-val {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.tc-timer {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(87, 217, 163, 0.1);
  border: 1px solid rgba(87, 217, 163, 0.28);
}
.tc-timer.late {
  background: rgba(255, 180, 84, 0.1);
  border-color: rgba(255, 180, 84, 0.3);
}
.tc-timer-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.tc-timer.late .tc-timer-value {
  color: var(--warn);
}
.tc-timer-text {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-2);
}

.tc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tc-actions .btn {
  text-decoration: none;
}

.tc-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 180, 84, 0.1);
  border: 1px solid rgba(255, 180, 84, 0.25);
  color: var(--warn);
  font-size: 12.5px;
  line-height: 1.45;
}
.tc-warning .icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

@media (max-width: 720px) {
  .trade-callout {
    padding: 16px;
  }
  .tc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tc-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================================
   Живая витрина: карточка отвечает на курсор.

   Здесь только оформление — свет под курсором, наклон, блик по кадру. Ни одна
   из анимаций не меняет размеры и положение соседних блоков: двигаются
   прозрачность, тень и трансформация. Поэтому сетка из шестидесяти карточек не
   «плывёт» при прокрутке и не грузит слабые машины. Координаты курсора пишет
   effects.js в переменные --mx/--my (проценты) и --rx/--ry (наклон), а стили их
   только читают: без скрипта карточка остаётся статичной, но не ломается.

   Про «меньше движения». Раньше эта настройка выключала на сайте всё до
   последнего эффекта, и получалось, что человек видел мёртвую страницу (в
   Windows она включается галочкой «Показывать анимацию в Windows», и её очень
   часто снимают ради скорости). Теперь разделено по смыслу: то, что двигается
   само — подъём, наклон, бегущий блик, дыхание фона — выключается, а свет и
   свечение в ответ на курсор остаются. Это не движение: страница не «плывёт»
   сама, она только отзывается на действие человека. Появление карточек при
   этом остаётся, но становится чистым проявлением без сдвига.
   ========================================================================== */

/* Каскадное появление: карточки приходят снизу и чуть «наплывают» на место.
   Прежний размах (10px за 0.42s) на глаз не читался — здесь он вдвое больше. */
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* То же появление при выключенной анимации: только проявление, без сдвига. */
@keyframes cardFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.item-card.fx-card-in {
  animation: cardIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .item-card.fx-card-in {
    animation: cardFade 0.4s ease both;
  }
}

/* Свет под курсором: мягкое пятно ходит за мышью по поверхности. Список
   поверхностей — в effects.js (LIVE_SURFACES): это плитки статистики, шаги
   доставки, карточки помощи и панель первого экрана. */
.stat,
.step,
.trust-item,
.help-card,
.promo-card,
.cta-band,
.card,
.hero-panel {
  position: relative;
}

.item-card::after,
.stat::after,
.step::after,
.trust-item::after,
.help-card::after,
.promo-card::after,
.cta-band::after,
.card::after,
.hero-panel::after,
.art-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 0%),
    rgba(150, 195, 255, 0.14),
    transparent 66%
  );
}

/* Недоступная позиция не зовёт к себе: свет по ней не бегает. */
.item-card.ineligible::after {
  display: none;
}

/* Рамка и свечение в цвете редкости предмета — это отклик, а не движение,
   поэтому остаются при любой настройке движения. */
.item-card:hover::after,
.stat:hover::after,
.step:hover::after,
.trust-item:hover::after,
.help-card:hover::after,
.promo-card:hover::after,
.cta-band:hover::after,
.card:hover::after,
.hero-panel:hover::after,
.art-frame:hover::after {
  opacity: 1;
}

/* Плитка «Гарантии» отвечает на курсор свечением: поднимать её не статично —
   это не ссылка, а утверждение, и прыгающая строка читалась бы как кнопка. Но
   светлое пятно под курсором показывает, что страница живая. */
.trust-item {
  transition: background 0.2s ease;
}

.item-card:hover {
  border-color: color-mix(in srgb, var(--rarity, #7fb2ff) 58%, transparent);
  box-shadow:
    0 28px 54px -28px rgba(2, 5, 14, 0.95),
    0 0 0 1px color-mix(in srgb, var(--rarity, #7fb2ff) 26%, transparent),
    0 0 44px -14px color-mix(in srgb, var(--rarity, #7fb2ff) 62%, transparent);
  z-index: 2;
}

/* Кадр предмета: полоса света проходит по нему один раз — как отражение на
   витрине. Именно один проход, а не бесконечная бегущая полоса: повторяющийся
   блик на шестидесяти карточках превращается в мигание. */
.item-art::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    100deg,
    transparent 38%,
    rgba(234, 242, 255, 0.16) 50%,
    transparent 62%
  );
  transform: translateX(-110%);
}

@keyframes artShine {
  0% {
    opacity: 0;
    transform: translateX(-110%);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(110%);
  }
}

@keyframes barFlow {
  0%,
  100% {
    box-shadow: none;
    opacity: 0.95;
  }
  50% {
    box-shadow: 0 0 16px 1px var(--rarity, #7fb2ff);
    opacity: 1;
  }
}

@keyframes btnShine {
  from {
    transform: translateX(-130%);
  }
  to {
    transform: translateX(130%);
  }
}

@keyframes priceSheen {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -130% 0;
  }
}

@keyframes aurora {
  from {
    transform: translate3d(-2%, -6px, 0) scale(1);
    opacity: 0.72;
  }
  to {
    transform: translate3d(3%, 18px, 0) scale(1.07);
    opacity: 1;
  }
}

/* Кнопки карточки: у нажатия есть отдача, у «Купить» — блик по синему. */
.item-actions .btn {
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.16s ease;
}

/* Блик по основной кнопке: полоса света проходит по синему. Работает на всех
   страницах — кнопка «Купить» в витрине, «Найти» на первом экране, оформление
   заказа, админка: один и тот же отклик на наведение. */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 34%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 66%
  );
  transform: translateX(-130%);
}

.item-card:hover .item-actions .btn-primary {
  box-shadow: 0 12px 28px -10px rgba(74, 140, 255, 0.7);
}

/* Свечение витрины: два медленных пятна света в подложке сетки. Стоит позади
   карточек и не перехватывает мышь — это фон, а не элемент интерфейса. */
.cards {
  position: relative;
}

.cards::before {
  content: '';
  position: absolute;
  /* По краям сетки, а не за ними: свечение с отрицательными отступами тянуло
     за собой горизонтальную прокрутку на всех страницах с витриной. */
  left: 0;
  right: 0;
  top: -110px;
  height: 520px;
  pointer-events: none;
  background:
    radial-gradient(46% 58% at 16% 24%, rgba(91, 157, 255, 0.13), transparent 70%),
    radial-gradient(42% 54% at 82% 6%, rgba(126, 92, 255, 0.1), transparent 72%);
  filter: blur(12px);
}

/* Предмет приподнимается над подложкой и подсвечивается цветом редкости. */
.item-icon-img {
  transition:
    transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.34s ease;
}

/* ---------------------------------------------------------------------------
   Всё, что двигается само. Выключается настройкой «меньше движения».
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .cards::before {
    animation: aurora 26s ease-in-out infinite alternate;
  }

  /* Наклон вслед за курсором (до 3°) на подъёме: карточка разворачивается к
     покупателю. */
  .item-card:hover {
    transform: perspective(1100px) translateY(-7px) rotateX(var(--rx, 0deg))
      rotateY(var(--ry, 0deg));
  }

  .item-card:hover .item-art::before {
    animation: artShine 0.95s cubic-bezier(0.33, 0, 0.2, 1);
  }

  .item-card:hover .item-icon-img {
    transform: translateY(-9px) scale(1.08);
    filter: drop-shadow(0 18px 26px rgba(2, 5, 14, 0.5))
      drop-shadow(0 0 20px color-mix(in srgb, var(--rarity, #7fb2ff) 50%, transparent));
  }

  /* Полоска редкости под током: короткий разряд при наведении. */
  .item-card:hover .rarity-bar {
    animation: barFlow 1.6s ease-in-out infinite;
  }

  .item-card:hover .item-actions .btn-primary::after,
  .btn-primary:hover::after {
    animation: btnShine 0.8s ease 0.06s;
  }

  .item-actions .btn:hover {
    transform: translateY(-1px);
  }

  .item-actions .btn:active {
    transform: translateY(0) scale(0.985);
  }

  /* Цена на наведении: по цифрам бежит холодный градиент. Внутри @supports —
     без поддержки background-clip текст остался бы прозрачным, то есть пропал
     бы, а цена не то место, где можно этим рисковать. */
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .item-card:hover .price-row .price {
      background: linear-gradient(
        100deg,
        var(--ice) 0%,
        #ffffff 38%,
        var(--blue) 62%,
        var(--ice) 100%
      );
      background-size: 240% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
      animation: priceSheen 2.4s linear infinite;
    }
  }
}

/* При выключенном движении блики не прячем совсем: они остаются статичными,
   поэтому карточка всё равно «отзывается», просто без бегущего света. */
@media (prefers-reduced-motion: reduce) {
  .item-card:hover .item-icon-img {
    filter: drop-shadow(0 14px 22px rgba(2, 5, 14, 0.5))
      drop-shadow(0 0 18px color-mix(in srgb, var(--rarity, #7fb2ff) 45%, transparent));
  }
}

/* Заголовок витрины — холодным градиентом, как надпись на главной. Это покраска,
   а не движение: видна при любой системной настройке движения. Внутри
   @supports, чтобы при отсутствии background-clip заголовок не пропал. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .catalog-title {
    background: var(--fade-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* ============================================================================
   Богатая поверхность: первый экран, ритм разделов, главные цифры.

   Задача — чтобы страница выглядела сделанной, а не собранной из готовых
   блоков: у первого экрана свои источники света и фактура, у разделов общий
   ритм, у главных чисел — вес. Двигается только то, что можно выключить: при
   «меньше движения» подсветка остаётся, а самопроизвольное движение уходит.
   ========================================================================== */

/* --- первый экран --------------------------------------------------------- */

/* Сияние за текстом. Первый экран уже обрезает всё по своим краям
   (`overflow: hidden`), поэтому подсветка не тянет горизонтальную прокрутку. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 20% 16%, rgba(91, 157, 255, 0.22), transparent 68%),
    radial-gradient(30% 40% at 76% 4%, rgba(126, 92, 255, 0.16), transparent 70%),
    radial-gradient(26% 34% at 54% 62%, rgba(90, 220, 255, 0.09), transparent 72%);
  filter: blur(18px);
}

/* Сетка точек под текстом: даёт техническую фактуру и держит взгляд. Гаснет к
   краям маской, чтобы не читалась как рамка. */
.hero-grid {
  position: relative;
}

.hero-grid::before {
  content: '';
  position: absolute;
  inset: -30px 0 auto 0;
  height: 520px;
  pointer-events: none;
  background-image: radial-gradient(rgba(150, 180, 255, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 80% at 32% 42%, #000 0%, transparent 74%);
  mask-image: radial-gradient(70% 80% at 32% 42%, #000 0%, transparent 74%);
  opacity: 0.7;
}

/* Надпись над заголовком — с живой точкой, как у панели позиций. */
.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-copy .eyebrow::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes eyebrowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 157, 255, 0.5), 0 0 10px 2px rgba(91, 157, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(91, 157, 255, 0), 0 0 10px 2px rgba(91, 157, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(91, 157, 255, 0), 0 0 10px 2px rgba(91, 157, 255, 0.5);
  }
}

/* Заголовок отделён от фона дальним свечением. */
.hero h1 {
  text-shadow: 0 0 70px rgba(91, 157, 255, 0.28);
}

/* Панель справа — как стекло: светлая кромка сверху, синяя тень под ней. */
.hero-panel {
  box-shadow:
    inset 0 1px 0 rgba(234, 242, 255, 0.07),
    0 40px 80px -50px rgba(2, 5, 14, 0.95),
    0 0 60px -30px rgba(91, 157, 255, 0.5);
}

.section-head h2 {
  text-shadow: 0 0 50px rgba(91, 157, 255, 0.18);
}

/* --- ритм разделов -------------------------------------------------------- */

/* Тонкая фейд-линия над каждым следующим разделом: страница читается как набор
   глав, а не как одна длинная простыня. Первый раздел линии не получает — она
   уже есть под первым экраном. */
.block + .block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fade-line);
  opacity: 0.6;
}

/* --- главные цифры -------------------------------------------------------- */

/* Значения в полосе фактов — градиентом: это главные числа страницы, и читаться
   они должны как витрина, а не как служебная строка. Срок передачи (`.mono`)
   остаётся текстом. Внутри @supports: без поддержки background-clip цифры
   пропали бы совсем, а это цена и счётчик позиций. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stats .stat .value:not(.mono) {
    background: var(--fade-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* Значок в плитке факта: свет изнутри кружка. */
.stats .stat-icon {
  box-shadow: inset 0 0 12px rgba(127, 178, 255, 0.18);
}

/* --- самопроизвольное движение (выключается настройкой) ------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: aurora 30s ease-in-out infinite alternate;
  }
  .hero-copy .eyebrow::before {
    animation: eyebrowPulse 2.4s ease-out infinite;
  }
}

/* --- подсказки поиска на первом экране ------------------------------------ */

/* Список появляется под полем поиска и показывает те же данные, что витрина:
   цену, скидку к Steam и цену самой Steam. Отдельные классы (.sug-*), а не
   классы строки панели: те привязаны к своей прокрутке и своей высоте строки,
   и общая разметка связала бы два разных места. */
.hero-search {
  position: relative;
}

.hero-suggest {
  /* Позиция считается скриптом от окна: первый экран обрезает всё лишнее
     (overflow: hidden), и список внутри него обрывался бы на середине. */
  position: fixed;
  z-index: 30;
  max-height: 368px;
  overflow-y: auto;
  padding: 6px;
  /* Фон непрозрачный: сквозь полупрозрачный список просвечивали цифры полосы
     фактов и текст читался хуже. */
  background: linear-gradient(180deg, #151924, #10131c);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow:
    0 34px 70px -34px rgba(2, 5, 14, 0.95),
    0 0 40px -24px rgba(91, 157, 255, 0.5);
}

.hero-suggest .sug-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

/* Выбранная стрелками строка подсвечена так же, как строка под курсором:
   клавиатура и мышь должны выглядеть одинаково. */
.hero-suggest .sug-row:hover,
.hero-suggest .sug-row.is-active {
  background: var(--accent-soft);
}

.hero-suggest .sug-art {
  display: block;
  width: 56px;
  height: 42px;
  object-fit: contain;
}

.hero-suggest .sug-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hero-suggest .sug-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-suggest .sug-meta {
  font-size: 11px;
  color: var(--wear, var(--muted));
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-suggest .sug-prices {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
}

.hero-suggest .sug-price {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ice);
}

.hero-suggest .discount {
  padding: 1px 6px;
  font-size: 10px;
}

.hero-suggest .sug-steam {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(140, 154, 180, 0.6);
}

.hero-suggest .sug-empty {
  display: grid;
  gap: 4px;
  padding: 14px;
  font-size: 13px;
  color: var(--text-2);
}

.hero-suggest .sug-empty b {
  font-weight: 650;
  color: var(--ice);
}

.hero-suggest .sug-empty span {
  font-size: 12px;
  color: var(--muted);
}

.hero-suggest .sug-empty a {
  font-size: 12.5px;
  color: var(--blue);
}

/* --- полоса шагов сделки (кабинет) ---------------------------------------- */

/* Заказ и заявка на продажу идут по шагам, и покупателю важно видеть, на каком
   именно он ждёт: «Передаётся» одинаково выглядит и когда предмет ещё
   закупают, и когда он уже лежит в обмене. Пройденные шаги залиты синим,
   текущий светится и пульсирует, будущие — тонкая линия. */
.order-track {
  display: flex;
  gap: 3px;
  max-width: 190px;
  margin-top: 8px;
}

.ot-seg {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--line-2);
}

.ot-seg.is-done {
  background: linear-gradient(90deg, var(--blue-2), var(--blue));
}

.ot-seg.is-now {
  background: linear-gradient(90deg, var(--blue), var(--ice));
  box-shadow: 0 0 10px 1px rgba(91, 157, 255, 0.6);
}

/* Сорвавшийся шаг — красный: место отказа видно сразу, без чтения причины. */
.ot-seg.is-fail {
  background: var(--err);
  box-shadow: 0 0 10px 1px rgba(255, 107, 129, 0.5);
}

@keyframes segPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ot-seg.is-now {
    animation: segPulse 2s ease-in-out infinite;
  }
}

/* --- книга лотов на странице предмета ------------------------------------- */

/* Сюда приходят выбирать конкретный экземпляр: float, метку, наклейки. Список
   был ровными строками, и лучшая цена в нём ничем не отличалась от прочих,
   кроме значка. Теперь лучший лот помечен полосой слева, оттенком и светящейся
   ценой, а строка отвечает на наведение тем же светом, что карточка витрины:
   покупатель ведёт курсор по книге и видит, какую строку он читает. */
/* Заливка наведения живёт на ячейках, а не на строке: у `<tr>` в Chromium
   переход `background-color` не проигрывается, и строка так и остаётся
   прозрачной — проверено замером (с `transition` значение равно «прозрачно»,
   без него — целевому цвету). Лучший лот исключён: у него своя заливка,
   и наложение на неё убивало бы пометку. */
.offers-table tbody td {
  position: relative;
  transition: background-color 0.18s ease;
}

.offers-table tbody tr:not(.of-best):hover td {
  background-color: rgba(150, 180, 255, 0.05);
}

/* Свет — один на всю строку, а не по ячейкам: у каждой ячейки свой процент
   ширины, и в каждой свет загорался бы заново, разрывая пятно на стыках
   столбцов. Фоном строки этот градиент рисуется нормально (в отличие от
   перехода заливки выше), поэтому координаты берутся от строки целиком. */
.offers-table tbody tr {
  --row-light: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(150, 195, 255, 0.14),
    transparent 70%
  );
}

.offers-table tbody tr:not(.of-best):hover {
  background-image: var(--row-light);
}

.offers-table tbody tr:hover .of-price {
  color: var(--ice);
}

.offers-table tbody tr.of-best {
  background-image: linear-gradient(
    90deg,
    rgba(91, 157, 255, 0.13),
    rgba(91, 157, 255, 0.03) 48%,
    transparent 78%
  );
}

.offers-table tbody tr.of-best td:first-child {
  box-shadow: inset 3px 0 0 var(--blue);
}

.offers-table tbody tr.of-best .of-price {
  color: var(--ice);
  text-shadow: 0 0 22px rgba(127, 178, 255, 0.45);
}

.offers-table tbody tr.of-best .of-tag {
  box-shadow:
    0 0 0 1px rgba(127, 178, 255, 0.22),
    0 0 18px rgba(91, 157, 255, 0.22);
}

/* По лучшей строке раз в несколько секунд проходит блик — тот же приём, что на
   витрине, и так же только там, где система не просила меньше движения. */
@keyframes ofBestSweep {
  from {
    background-position: 100% 0, 0 0;
  }
  to {
    background-position: 0% 0, 0 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .offers-table tbody tr.of-best {
    background-image:
      linear-gradient(100deg, transparent 38%, rgba(140, 190, 255, 0.1) 50%, transparent 62%),
      linear-gradient(
        90deg,
        rgba(91, 157, 255, 0.13),
        rgba(91, 157, 255, 0.03) 48%,
        transparent 78%
      );
    background-size: 220% 100%, 100% 100%;
    background-repeat: no-repeat;
    animation: ofBestSweep 6.5s ease-in-out infinite;
  }
}

/* --- живой холст предмета -------------------------------------------------- */

/* Страница предмета — та, где покупатель решает, и холст с картинкой был в ней
   самым статичным местом: ровная рамка и рендер. Теперь за предметом светит его
   редкость, картинка чуть разворачивается за курсором, по холсту ходит свет и
   проходит блик — теми же приёмами, что на витрине, чтобы страница предмета не
   выглядела сделанной отдельно от остального сайта. */
.art-frame {
  /* Первый градиент — прежний холодный фейд, второй — свет редкости. */
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgba(127, 178, 255, 0.1), transparent 62%),
    radial-gradient(
      58% 52% at 50% 34%,
      color-mix(in srgb, var(--rarity, #7fb2ff) 26%, transparent),
      transparent 72%
    );
  background-color: var(--surface);
  transition: border-color 0.25s ease;
}

/* Кромка отвечает редкостью — как рамка карточки на витрине. */
.art-frame:hover {
  border-color: color-mix(in srgb, var(--rarity, #7fb2ff) 42%, transparent);
}

.art-slot {
  position: relative;
  z-index: 1;
}

/* Наклон: картинка разворачивается внутри холста, поэтому рамка остаётся на
   месте и ничего не выезжает за её края. При «меньше движения» переменные не
   ставятся вовсе — изображение просто стоит ровно. */
.art-slot .art-image,
.art-slot .item-icon {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-origin: 50% 52%;
  will-change: transform;
}

/* Блик по холсту: один проход на наведение, а не бесконечная анимация —
   иначе страница предмета превращалась бы в карусель. */
.art-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    112deg,
    transparent 40%,
    rgba(190, 220, 255, 0.12) 50%,
    transparent 60%
  );
  background-size: 240% 240%;
  background-position: 130% 0;
  transition: opacity 0.3s ease;
}

.art-frame:hover .art-slot::after {
  opacity: 1;
}

@keyframes artGlare {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -30% 0;
  }
}

/* Дыхание полоски редкости: свет по кромке, а не движение самого предмета. */
@keyframes rarityBreathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    box-shadow: 0 0 20px 1px color-mix(in srgb, var(--rarity, #7fb2ff) 55%, transparent);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .art-frame:hover .art-slot::after {
    animation: artGlare 1.5s ease-out;
  }

  .art-frame .rarity-bar {
    animation: rarityBreathe 7s ease-in-out infinite;
  }
}
