/* Магазин: Mini App, тёмная витрина коллекционных подарков Telegram.
   Палитра своя и всегда тёмная: тёплый графит и один акцент (шампань).
   Цвет шапки и фона клиента Telegram app.js красит в --bg. Шрифт системный
   (SF Pro / Roboto / Segoe UI), без внешних файлов: всё грузится в РФ. */

:root {
  --bg: #0c0b0a;
  --bg-raised: #121110;
  --surface: #171513;
  --surface-2: #1f1c19;
  --surface-3: #2a2622;
  --line: rgba(245, 238, 225, 0.08);
  --line-strong: rgba(245, 238, 225, 0.14);

  --text: #f6f1e7;
  --text-2: #c3bbad;
  --text-dim: #8f887c;

  --gold: #e4c07a;
  --gold-hi: #f3dca6;
  --gold-lo: #c79d55;
  --gold-ink: #1d1609;
  --gold-soft: rgba(228, 192, 122, 0.12);
  --gold-line: rgba(228, 192, 122, 0.32);

  --ok: #8fd6a8;
  --danger: #ff8f80;
  --danger-soft: rgba(255, 143, 128, 0.1);

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: inset 0 1px 0 rgba(255, 248, 235, 0.05), 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --shadow-float: 0 24px 60px -20px rgba(0, 0, 0, 0.85);

  /* Safe area: вырез устройства плюс кнопки Telegram в полноэкранном режиме
     (переменные --tg-* ставит telegram-web-app.js). */
  --safe-top: calc(max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));

  --z-sticky: 20;
  --z-dock: 30;
  --z-sheet: 40;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

/* Мягкий свет сверху страницы: единственный «декор» фона. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 520px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(90% 70% at 50% -20%, rgba(228, 192, 122, 0.12), transparent 70%);
}

img { max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

/* iOS Safari зумит страницу при фокусе на поле с font-size < 16px:
   держим минимум 16px на всех полях ввода (ревью round 1, п.4). */
input, select, textarea { font-size: 16px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 12px) 16px calc(var(--safe-bottom) + 32px);
}

/* Появление блоков только сдвигом, без прозрачности (этап E, раунд 3): если
   webview не выпускает кадры, анимация стоит на первом кадре, и блок с
   opacity 0 остался бы невидимым. Со сдвигом он просто на 10px ниже. */
.enter {
  animation: rise 0.45s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes rise {
  from { transform: translateY(10px); }
  to { transform: none; }
}

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

.icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: none;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

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

.num-tabular { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--gold);
}

.eyebrow .icon { width: 14px; height: 14px; }

.page-head { margin: 4px 2px 18px; }

.page-title {
  font-size: 28px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.028em;
  margin-top: 6px;
  text-wrap: balance;
}

.page-head .page-title:first-child { margin-top: 0; }

.page-sub {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 14px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin: 26px 2px 8px;
}

.section-title {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

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

.link-btn {
  appearance: none;
  border: none;
  background: none;
  color: var(--gold);
  font-weight: 600;
  font-size: 14.5px;
  min-height: 44px;
  padding: 0 2px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

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

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

.btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  min-height: 48px;
  padding: 0 20px;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--ease-out), filter 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn .icon { width: 18px; height: 18px; }
.btn:active:not(:disabled) { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-lo) 100%);
  color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 28px -10px rgba(228, 192, 122, 0.55);
}

.btn-primary:disabled {
  background: var(--surface-3);
  color: var(--text-dim);
  box-shadow: none;
  cursor: default;
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-muted {
  background: var(--surface-3);
  color: var(--text-2);
}

.btn-block { width: 100%; }

/* ---------- картинки подарков ---------- */

.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
  isolation: isolate;
}

.media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(228, 192, 122, 0.42);
  background: radial-gradient(circle at 50% 40%, #2d2821, #181613 75%);
}

.media-fallback .icon {
  width: 34%;
  height: 34%;
  max-width: 56px;
  max-height: 56px;
}

/* Картинка рисуется поверх заглушки сразу, как только готова: без
   проявления через opacity и без decoding="async". Иначе в скрытом или ещё
   не показанном webview на её месте долго остаётся заглушка (этап E, раунд 3). */
.media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media img.is-broken { display: none; }

/* ---------- главная ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--gold-ink);
  background: linear-gradient(160deg, var(--gold-hi), var(--gold-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-mark .icon { width: 19px; height: 19px; }

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px 0 11px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 600;
}

.balance-pill .icon { width: 16px; height: 16px; color: var(--gold); }

.hero {
  appearance: none;
  border: none;
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  cursor: pointer;
  padding: 0 20px 22px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(228, 192, 122, 0.2), transparent 60%),
    linear-gradient(180deg, #1d1a16 0%, #131110 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 248, 235, 0.08), var(--shadow-float);
  transition: transform 0.2s var(--ease-out);
}

.hero:active:not(:disabled) { transform: scale(0.985); }
.hero.is-disabled { cursor: default; }

.hero-stage {
  position: relative;
  display: block;
  height: 232px;
  margin: 0 -20px 4px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 192, 122, 0.3), transparent 65%);
  z-index: -1;
}

.hero-gift {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112px;
  aspect-ratio: 1;
}

.hero-gift.is-left { transform: translate(-128%, -42%) rotate(-9deg); }
.hero-gift.is-right { transform: translate(28%, -42%) rotate(9deg); }
.hero-gift.is-center { width: 150px; z-index: 2; transform: translate(-50%, -54%); }

.hero-gift-media {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  box-shadow: 0 22px 40px -14px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-gift.is-center .hero-gift-media {
  border-radius: 32px;
  animation: float 6s ease-in-out infinite;
}

.hero-gift.is-left .hero-gift-media,
.hero-gift.is-right .hero-gift-media { filter: saturate(0.9) brightness(0.88); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-spark {
  position: absolute;
  color: var(--gold-hi);
  opacity: 0.7;
}

.hero-spark.is-a { width: 18px; height: 18px; top: 34px; left: calc(50% + 92px); }
.hero-spark.is-b { width: 12px; height: 12px; top: 176px; left: calc(50% - 104px); opacity: 0.5; }

.hero-copy { display: block; position: relative; }

.hero-title {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.06;
  font-weight: 750;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.hero-sub {
  display: block;
  margin-top: 10px;
  max-width: 42ch;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
}

.hero-stat {
  color: var(--text-dim);
  font-size: 13px;
}

.hero-stat:empty { display: none; }

.home-section { margin-top: 4px; }

.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  margin: 0 -16px;
  padding: 2px 16px 8px;
  scrollbar-width: none;
}

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

.rail-card {
  appearance: none;
  border: none;
  flex: 0 0 148px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  padding: 7px 7px 12px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
  transition: transform 0.18s var(--ease-out), box-shadow 0.2s ease;
}

.rail-card:active { transform: scale(0.97); }

.rail-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
}

.rail-title {
  display: block;
  margin: 10px 4px 0;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-meta {
  display: flex;
  flex-direction: column;
  margin: 2px 4px 0;
  font-size: 13px;
}

.rail-count { color: var(--text-dim); }

.price-from { color: var(--gold); font-weight: 600; }

.steps {
  list-style: none;
  margin: 0;
  padding: 6px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13.5px;
  top: 44px;
  bottom: -6px;
  width: 1px;
  background: linear-gradient(var(--gold-line), transparent);
}

.step-num {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold-line);
  font-variant-numeric: tabular-nums;
}

.step-text { display: block; min-width: 0; padding-top: 3px; }
.step-title { display: block; font-weight: 600; font-size: 15px; }
.step-sub { display: block; margin-top: 2px; color: var(--text-dim); font-size: 13.5px; line-height: 1.4; }

.group {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
}

.group-row {
  appearance: none;
  border: none;
  background: transparent;
  position: relative;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.group-row + .group-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 66px;
  right: 0;
  height: 1px;
  background: var(--line);
}

.group-row:active { background: var(--surface-2); }

.row-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
}

.row-text { flex: 1; min-width: 0; }
.row-title { display: block; font-weight: 600; font-size: 15px; }
.row-sub { display: block; margin-top: 1px; color: var(--text-dim); font-size: 13px; }
.row-chevron { width: 18px; height: 18px; color: var(--text-dim); }

/* ---------- список коллекций ---------- */

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

.collection-card {
  appearance: none;
  border: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  padding: 7px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
  transition: transform 0.18s var(--ease-out), box-shadow 0.2s ease;
}

.collection-card:active { transform: scale(0.975); }

.collection-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
}

.collection-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 10px 6px 5px;
}

.collection-title {
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-size: 13px;
}

.collection-count { color: var(--text-dim); white-space: nowrap; }

.collection-card.is-featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 9px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(228, 192, 122, 0.12), transparent 60%),
    var(--surface);
}

.collection-card.is-featured .collection-media { width: 46%; flex: none; border-radius: 19px; }
.collection-card.is-featured .collection-body { gap: 6px; padding: 4px 6px 4px 0; }

.collection-card.is-featured .collection-title {
  font-size: 21px;
  line-height: 1.12;
  white-space: normal;
  text-wrap: balance;
}

.collection-card.is-featured .collection-meta {
  flex-direction: column;
  align-items: flex-start;
  font-size: 14px;
}

.feature-badge {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--gold-hi);
  background: var(--gold-soft);
}

.collection-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

.collection-go .icon { width: 16px; height: 16px; }

.stale-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 12px;
}

.stale-note .icon { width: 16px; height: 16px; color: var(--gold); }

/* ---------- коллекция: шапка и фильтры ---------- */

.collection-hero {
  position: relative;
  isolation: isolate;
  margin: calc(-12px - var(--safe-top)) -16px 0;
  padding: calc(var(--safe-top) + 20px) 16px 16px;
  overflow: hidden;
}

.collection-hero-bg {
  position: absolute;
  inset: -60px;
  z-index: -2;
  opacity: 0.5;
  filter: blur(46px) saturate(1.25);
}

.collection-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collection-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.25) 0%, var(--bg) 96%);
}

.collection-hero-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.collection-avatar-slot { flex: none; }

.collection-avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.collection-hero-text { min-width: 0; }
.collection-hero .page-title { font-size: 26px; margin-top: 4px; }

.filter-bar {
  position: sticky;
  top: var(--safe-top);
  z-index: var(--z-sticky);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px 12px;
  padding: 10px 16px;
  scrollbar-width: none;
  background: rgba(12, 11, 10, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}

.filter-bar::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  appearance: none;
  border: none;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 0 12px 0 16px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.12s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.chip:active { transform: scale(0.96); }

.chip.is-active {
  background: var(--gold-soft);
  color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}

.chip-caret { width: 16px; height: 16px; opacity: 0.6; }

.chip-reset {
  width: 44px;
  padding: 0;
  justify-content: center;
  color: var(--text-2);
}

.chip-reset .icon { width: 18px; height: 18px; }

/* ---------- сетка лотов ---------- */

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

.lot-card {
  appearance: none;
  border: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
  animation: rise 0.42s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 32ms);
  transition: transform 0.18s var(--ease-out), box-shadow 0.2s ease;
}

.lot-card:active { transform: scale(0.97); }

.lot-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 17px;
}

.lot-num {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  color: #fff;
  background: rgba(10, 9, 8, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-variant-numeric: tabular-nums;
}

.lot-signed-dot {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-hi);
  background: rgba(10, 9, 8, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.lot-signed-dot .icon { width: 14px; height: 14px; }

.lot-body {
  display: block;
  min-width: 0;
  padding: 10px 6px 6px;
}

.lot-price {
  display: block;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.lot-model {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lot-signed {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: var(--text-dim);
}

.lot-signed.is-signed { color: var(--gold); }

.scroll-sentinel { height: 1px; }

/* ---------- скелетоны загрузки ---------- */

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.skeleton {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: var(--r-lg);
}

.skeleton-pill { width: 96px; height: 36px; border-radius: 999px; }
.skeleton-brand { width: 128px; }
.skeleton-hero { height: 440px; border-radius: var(--r-xl); }
.skeleton-rail { display: flex; gap: 12px; overflow: hidden; margin-top: 78px; }
.skeleton-rail .skeleton, .skeleton-rail-card { flex: 0 0 148px; height: 206px; }
.skeleton-row { height: 64px; border-radius: 16px; }
.skeleton-card { aspect-ratio: 3 / 4; }
.skeleton-feature { grid-column: 1 / -1; height: 190px; border-radius: 24px; }
.skeleton-stage { aspect-ratio: 1; border-radius: var(--r-xl); margin-bottom: 18px; }
.skeleton-title { height: 30px; width: 62%; border-radius: 10px; margin-bottom: 16px; }
.skeleton-attr { height: 64px; border-radius: 16px; }
.skeleton-summary { height: 96px; margin-bottom: 12px; }
.skeleton-form { height: 180px; margin-bottom: 12px; }
.skeleton-method { height: 60px; border-radius: 16px; }
.skeleton-status { height: 360px; border-radius: var(--r-xl); }

/* ---------- пустые состояния и ошибки ---------- */

.empty-state,
.error-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 48px 24px;
}

.error-screen {
  min-height: 62vh;
  justify-content: center;
}

.empty-state p,
.error-screen p {
  margin: 0;
  max-width: 30ch;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}

.state-orb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--gold);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.state-orb .icon { width: 28px; height: 28px; }

/* ---------- нижний лист (sheet) ---------- */

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  background: rgba(0, 0, 0, 0.55);
  animation: overlay-in 0.2s ease;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  max-width: 560px;
  margin: 0 auto;
  max-height: 78vh;
  max-height: 78dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--safe-bottom);
  border-radius: 26px 26px 0 0;
  background: #181614;
  box-shadow: inset 0 1px 0 var(--line-strong), 0 -20px 50px rgba(0, 0, 0, 0.6);
  animation: sheet-in 0.3s var(--ease-out);
}

@keyframes sheet-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
  margin: 8px auto 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 10px 6px 20px;
}

.sheet-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.sheet-close {
  appearance: none;
  border: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.sheet-close .icon { width: 20px; height: 20px; }

.sheet-search-wrap {
  position: relative;
  margin: 0 16px 8px;
}

.sheet-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.sheet-search {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px 10px 40px;
  border-radius: 14px;
  border: none;
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.sheet-search::placeholder { color: var(--text-dim); }
.sheet-search:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--gold); }

.sheet-list {
  overflow-y: auto;
  padding: 4px 8px 14px;
}

.sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  border: none;
  background: none;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  transition: background 0.15s ease;
}

.sheet-item:active { background: var(--surface-2); }
.sheet-item.is-selected { background: var(--gold-soft); }

.sheet-item-label { flex: 1; min-width: 0; }
.sheet-item-count { color: var(--text-dim); font-size: 13px; white-space: nowrap; }

.sheet-check {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--gold);
}

.sheet-check .icon { width: 20px; height: 20px; }

.swatch {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.sheet-empty {
  padding: 28px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- лот ---------- */

.lot-stage {
  position: relative;
  margin: 0 0 18px;
}

.lot-stage::before {
  content: "";
  position: absolute;
  inset: 12% 10% -4%;
  z-index: 0;
  border-radius: 50%;
  background: var(--glow, var(--gold));
  filter: blur(46px);
  opacity: 0.4;
}

.lot-media-large {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lot-media-large .lot-num {
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  font-size: 13px;
}

.lot-head { margin: 0 2px 16px; }

.lot-title {
  font-size: 27px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.lot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.tag .icon { width: 14px; height: 14px; }

.tag.is-gold {
  color: var(--gold-hi);
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}

.tag-sm {
  margin-top: 8px;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 8px;
}

.tag-sm .icon { width: 12px; height: 12px; }

.attr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.attr-tile {
  min-width: 0;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.attr-label { font-size: 12px; color: var(--text-dim); }

.attr-value {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.attr-value-text {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.attr-swatch {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.signed-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-2);
  background: linear-gradient(180deg, rgba(228, 192, 122, 0.08), rgba(228, 192, 122, 0.03));
  box-shadow: inset 0 0 0 1px rgba(228, 192, 122, 0.18);
}

.signed-note .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--gold); }
.signed-note-compact { margin-bottom: 12px; }

/* ---------- нижняя панель с ценой и кнопкой ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-dock);
  padding: 18px 12px calc(12px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(12, 11, 10, 0) 0%, rgba(12, 11, 10, 0.9) 40%, var(--bg) 100%);
  pointer-events: none;
}

.dock-inner {
  pointer-events: auto;
  max-width: 536px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 18px;
  border-radius: 24px;
  background: rgba(33, 30, 27, 0.88);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 20px 40px -18px rgba(0, 0, 0, 0.9);
}

.dock-price {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-width: 0;
}

.dock-price-label { font-size: 12px; color: var(--text-dim); }

.dock-price-value {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-price-value.is-pending { color: var(--text-dim); }

.dock .btn {
  flex: 1 0 auto;
  min-width: 132px;
  min-height: 52px;
  border-radius: 17px;
}

.dock-spacer { height: calc(92px + var(--safe-bottom)); }

/* Баннер исхода оплаты висит в панели над кнопкой: плотный фон, потому что
   под ним прокручивается форма. */
.dock .banner {
  pointer-events: auto;
  max-width: 536px;
  margin: 0 auto 8px;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.9);
}

.dock .banner-info {
  background: #2b241a;
  box-shadow: inset 0 0 0 1px var(--gold-line), 0 16px 34px -16px rgba(0, 0, 0, 0.9);
}

.dock .banner-error {
  background: #2c1815;
  box-shadow: inset 0 0 0 1px rgba(255, 143, 128, 0.3), 0 16px 34px -16px rgba(0, 0, 0, 0.9);
}

/* ---------- оформление ---------- */

.summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 8px;
  margin-bottom: 12px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
}

.lot-thumb {
  width: 80px;
  height: 80px;
  flex: none;
  border-radius: 16px;
}

.summary-text { min-width: 0; flex: 1; }

.lot-summary-title {
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.lot-summary-meta {
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.35;
}

.form-card {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
}

.form-hint {
  padding: 2px;
  color: var(--text-dim);
  font-size: 14px;
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 15px;
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}

.segment {
  flex: 1;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-dim);
  border-radius: 11px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.segment .icon { width: 17px; height: 17px; }

.segment.is-active {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px -4px rgba(0, 0, 0, 0.6);
}

.recipient-friend-block { margin-top: 12px; }

.field-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 0.18s ease;
}

.field-input::placeholder { color: var(--text-dim); }
.field-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--gold); }

.recipient-status {
  min-height: 20px;
  margin-top: 8px;
  padding: 0 2px;
  font-size: 13px;
  color: var(--text-dim);
}

.recipient-status.is-ok { color: var(--ok); }
.recipient-status.is-error { color: var(--danger); }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.toggle-row-label { font-size: 15px; line-height: 1.35; }

.toggle-switch {
  position: relative;
  flex: none;
  width: 50px;
  height: 30px;
}

.toggle-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.2s ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f6f1e7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s var(--ease-out);
}

.toggle-input:checked + .toggle-track { background: var(--gold); }
.toggle-input:checked + .toggle-track::after { transform: translateX(20px); background: #fffaf0; }
.toggle-input:focus-visible + .toggle-track { outline: 2px solid var(--gold); outline-offset: 2px; }

.payment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-method-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 14px 10px 10px;
  border: none;
  border-radius: 16px;
  background: var(--bg-raised);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.18s ease, background 0.18s ease;
}

.payment-method-row.is-selected {
  background: rgba(228, 192, 122, 0.06);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.payment-method-row.is-disabled {
  opacity: 0.45;
  cursor: default;
}

.pm-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--text-2);
  transition: background 0.18s ease, color 0.18s ease;
}

.payment-method-row.is-selected .pm-icon { background: var(--gold-soft); color: var(--gold); }

.pm-text { flex: 1; min-width: 0; }
.payment-method-label { display: block; font-size: 15px; font-weight: 600; }
.payment-method-hint { display: block; margin-top: 1px; font-size: 12.5px; color: var(--text-dim); }

.radio {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow 0.2s var(--ease-out);
}

.payment-method-row.is-selected .radio { box-shadow: inset 0 0 0 7px var(--gold); }

.banner-slot:empty { display: none; }

.banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  animation: rise 0.3s var(--ease-out);
}

.banner .icon { width: 18px; height: 18px; margin-top: 1px; }

.banner-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

/* Тексты API приходят с абзацами через пустую строку (\n\n): держим переносы. */
.banner-text,
.order-status-sub,
.recipient-status,
.error-screen p {
  white-space: pre-line;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14.5px;
}

.order-details {
  width: 100%;
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.order-detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}

.order-detail dt { flex: none; color: var(--text-dim); }

.order-detail dd {
  margin: 0;
  min-width: 0;
  text-align: right;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.banner-info {
  color: var(--text);
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}

.banner-info .icon { color: var(--gold); }

.banner-error {
  color: #ffd6cf;
  background: var(--danger-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 143, 128, 0.28);
}

.banner-error .icon { color: var(--danger); }

/* ---------- статус заказа ---------- */

.status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
  padding: 30px 20px 22px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(228, 192, 122, 0.14), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
}

.status-visual { margin-bottom: 20px; }

.status-gift-wrap {
  position: relative;
  width: 136px;
  height: 136px;
}

.status-gift {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.status-check {
  position: absolute;
  right: -8px;
  bottom: -8px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b1a10;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--surface);
}

.status-check .icon { width: 22px; height: 22px; }

.status-orb {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 50% 35%, rgba(228, 192, 122, 0.22), rgba(228, 192, 122, 0.04) 70%);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}

.status-orb .icon { width: 40px; height: 40px; }

.status-orb.is-ok {
  color: var(--ok);
  background: radial-gradient(circle at 50% 35%, rgba(143, 214, 168, 0.22), rgba(143, 214, 168, 0.04) 70%);
  box-shadow: inset 0 0 0 1px rgba(143, 214, 168, 0.32);
}

.status-orb.is-danger {
  color: var(--danger);
  background: radial-gradient(circle at 50% 35%, rgba(255, 143, 128, 0.2), rgba(255, 143, 128, 0.04) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 143, 128, 0.3);
}

.status-orb.is-muted {
  color: var(--text-2);
  background: radial-gradient(circle at 50% 35%, rgba(245, 238, 225, 0.1), rgba(245, 238, 225, 0.02) 70%);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.status-progress {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.status-progress-gift {
  width: 92px;
  height: 92px;
  border-radius: 50%;
}

.status-progress-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 50% 35%, rgba(228, 192, 122, 0.2), rgba(228, 192, 122, 0.04) 70%);
}

.status-progress-icon .icon { width: 36px; height: 36px; }

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(228, 192, 122, 0.14);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.order-status-title {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.order-status-sub {
  margin-top: 8px;
  max-width: 32ch;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-2);
  text-wrap: pretty;
}

.order-steps {
  list-style: none;
  display: flex;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
}

.order-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.order-step + .order-step::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--surface-3);
}

.order-step.is-done + .order-step::before { background: var(--gold); }

.order-step-dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.order-step-dot .icon { width: 15px; height: 15px; }

.order-step.is-done { color: var(--text-2); }

.order-step.is-done .order-step-dot {
  color: var(--gold-ink);
  background: var(--gold);
  box-shadow: none;
}

.order-step.is-current { color: var(--text); font-weight: 600; }

.order-step.is-current .order-step-dot {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 5px rgba(228, 192, 122, 0.12);
}

.actions {
  display: grid;
  gap: 10px;
}

/* ---------- наведение (только мышь) ---------- */

@media (hover: hover) and (pointer: fine) {
  .rail-card:hover,
  .collection-card:hover,
  .lot-card:hover { box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line-strong); }
  .btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
  .btn-ghost:hover { background: var(--surface-3); }
  .chip:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
  .group-row:hover,
  .sheet-item:hover { background: var(--surface-2); }
  .payment-method-row:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--line-strong); }
  .payment-method-row.is-selected:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
  .link-btn:hover { color: var(--gold-hi); }
}

/* ---------- узкие экраны ---------- */

@media (max-width: 370px) {
  .hero-title { font-size: 27px; }
  .page-title { font-size: 26px; }
  .collection-card.is-featured .collection-title { font-size: 19px; }
  .dock-price-value { font-size: 19px; }
  .dock .btn { min-width: 120px; }
  .attr-tile { padding: 9px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .enter, .view-enter, .lot-card, .banner, .sheet-panel, .sheet-overlay, .hero-gift-media {
    animation: none !important;
  }
  .skeleton { animation-duration: 3s; }
  .spinner-ring { animation-duration: 2s; }
  .btn, .chip, .rail-card, .collection-card, .lot-card, .hero, .media img {
    transition-duration: 0.001ms !important;
  }
}
