/* ============================================================
   MUMGA — брутализм + драма концерта
   Палитра: чернила / бумага / глубокий синий (синий — ТОЛЬКО CTA)
   Мир сайта ч/б, единственный цвет — Klein Blue. Драма через сдержанность.
   Шрифты: Unbounded (дисплей), IBM Plex Mono (текст)
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --paper: #f2f2f0;
  --grey: #8a8a86;
  --accent: #002fa7;         /* Klein Blue — акцент, только CTA */
  --accent-hi: #0041e8;      /* hover-вспышка синего */
  --border: 3px solid var(--paper);
  --border-ink: 3px solid var(--ink);
  /* Montserrat Black — ближайший к принту на MUMGA FIN LONG шрифт с кириллицей */
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Атрибут hidden всегда сильнее классовых display (иначе .checkout{display:flex} его перебьёт) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--paper); }

::-webkit-scrollbar { width: 10px; background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--paper); border: 2px solid var(--ink); }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- ПЛЁНКА: зерно / виньетка / мерцание / царапины ----------
   Четыре fixed-слоя поверх всего. Дёшево для GPU: анимируются только
   transform и opacity, никаких фильтров на большой площади. */

/* Зерно (крупнее и заметнее — 35мм) */
.noise {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise-shift 0.5s steps(5) infinite;
}
@keyframes noise-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* Виньетка — затемнение краёв кадра, даёт глубину каждому экрану */
.film-vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(ellipse 105% 90% at 50% 48%,
    rgba(10,10,10,0) 52%, rgba(10,10,10,.34) 82%, rgba(10,10,10,.62) 100%);
}

/* Мерцание проектора — едва заметное дрожание света */
.film-flicker {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9996;
  background: #0a0a0a;
  opacity: 0;
  animation: flicker 4.2s steps(1) infinite;
}
@keyframes flicker {
  0% { opacity: 0; }
  7% { opacity: .035; }
  9% { opacity: 0; }
  31% { opacity: .05; }
  33% { opacity: .012; }
  36% { opacity: 0; }
  58% { opacity: .04; }
  60% { opacity: 0; }
  83% { opacity: .025; }
  86% { opacity: 0; }
}

/* Царапины — две тонкие вертикальные линии, вспыхивают редко и в разных местах */
.film-scratch {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  background:
    linear-gradient(90deg, transparent 0, rgba(242,242,240,.55) 50%, transparent 100%) no-repeat 22vw 0 / 1px 100%,
    linear-gradient(90deg, transparent 0, rgba(242,242,240,.35) 50%, transparent 100%) no-repeat 71vw 0 / 1px 100%;
  opacity: 0;
  animation: scratch 9s steps(1) infinite;
}
@keyframes scratch {
  0% { opacity: 0; }
  12% { opacity: .5; background-position: 22vw 0, 71vw 0; }
  12.8% { opacity: 0; }
  13.4% { opacity: .3; background-position: 23vw 0, 70vw 0; }
  14% { opacity: 0; }
  47% { opacity: .4; background-position: 64vw 0, 12vw 0; }
  47.7% { opacity: 0; }
  78% { opacity: .35; background-position: 40vw 0, 88vw 0; }
  78.6% { opacity: 0; }
  79.1% { opacity: .2; background-position: 41vw 0, 87vw 0; }
  79.6% { opacity: 0; }
}

/* ---------- Кнопки: жёсткая брутальная механика ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: var(--border-ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(242, 242, 240, .35);
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out);
  user-select: none;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 rgba(242, 242, 240, .5); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 rgba(0,0,0,0); }

/* CTA — единственное место с цветом. Кинематографично: без комиксовых теней,
   глубокий синий с медленно дышащим свечением, как луч рампы */
.btn--cta {
  background: var(--accent);
  color: var(--paper);
  border: none;
  padding: 19px 42px;
  letter-spacing: .14em;
  box-shadow: 0 0 34px rgba(0, 47, 167, .5);
  animation: cta-breathe 3s ease-in-out infinite;
}
.btn--cta:hover {
  background: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 0 70px rgba(0, 65, 232, .8);
  animation: none;
}
.btn--cta:active { transform: translateY(1px) scale(.99); box-shadow: 0 0 20px rgba(0, 47, 167, .5); }
@keyframes cta-breathe {
  50% { box-shadow: 0 0 60px rgba(0, 65, 232, .75); }
}

/* ---------- HEADER ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 20px;
  border-bottom: 3px solid transparent;
  transition: background .25s, border-color .25s;
}
.header--solid {
  background: var(--ink);
  border-bottom-color: var(--paper);
}
.header__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .02em;
}
.header__cart {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700; font-size: 13px; letter-spacing: .08em;
  background: none; color: var(--paper);
  border: 2px solid var(--paper);
  padding: 8px 14px;
  display: flex; align-items: center; gap: 8px;
  transition: background .15s, color .15s;
}
.header__cart:hover { background: var(--paper); color: var(--ink); }
.header__cart-count {
  background: var(--accent); color: var(--paper);
  font-weight: 700;
  min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.header__cart-count.bump { animation: bump .3s var(--ease-out); }
@keyframes bump { 50% { transform: scale(1.6) rotate(-8deg); } }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* ч/б драма + живой плёночный варп (SVG-фильтр) + редкий горизонтальный сдвиг-глитч */
  filter: url(#film-warp) grayscale(1) contrast(1.25) brightness(.82);
  animation: hero-jitter 6.5s steps(1) infinite;
}
@keyframes hero-jitter {
  0%, 93% { transform: translate(0, 0); }
  93.4% { transform: translate(-7px, 1px); }
  93.8% { transform: translate(5px, -1px); }
  94.2% { transform: translate(-3px, 0); }
  94.6%, 100% { transform: translate(0, 0); }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 62% 54% at 50% 50%, rgba(10,10,10,.5) 0%, rgba(10,10,10,0) 68%),
    linear-gradient(180deg, rgba(10,10,10,.62) 0%, rgba(10,10,10,.22) 40%, rgba(10,10,10,.86) 100%);
}

/* Сканлайны — тонкие горизонтальные линии кинескопа */
.hero__scan {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.32) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: .55;
}
/* VHS-полоса трекинга — светлая размытая лента медленно скользит вниз */
.hero__track {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
}
.hero__track::before {
  content: ''; position: absolute; left: 0; right: 0; height: 20%;
  background: linear-gradient(180deg, transparent, rgba(242,242,240,.05) 42%, rgba(242,242,240,.12) 50%, rgba(242,242,240,.05) 58%, transparent);
  filter: blur(3px);
  animation: vhs-roll 7.5s linear infinite;
}
@keyframes vhs-roll { from { top: -22%; } to { top: 104%; } }
.hero__content {
  position: relative; z-index: 3;
  text-align: center;
  padding: 0 16px;
}
.hero__kicker {
  font-size: 13px; letter-spacing: .5em; font-weight: 700;
  margin-bottom: 8px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 16vw, 190px);
  line-height: .95;
  letter-spacing: -.01em;
}
.hero__sub {
  font-size: clamp(11px, 1.6vw, 16px);
  letter-spacing: .34em;
  font-weight: 500;
  margin-top: 14px;
}
.hero__cta { margin-top: 36px; font-size: 17px; padding: 18px 36px; }

/* Глитч тайтла: срабатывает волнами, не постоянно */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  opacity: 0;
}
.glitch::before {
  color: var(--accent);
  animation: glitch-a 4s infinite steps(2);
  clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%);
}
.glitch::after {
  color: var(--paper);
  animation: glitch-b 4s infinite steps(2);
  clip-path: polygon(0 60%, 100% 60%, 100% 85%, 0 85%);
}
@keyframes glitch-a {
  0%, 6% { opacity: 0; transform: none; }
  7% { opacity: .9; transform: translate(-8px, 3px); }
  9% { opacity: .9; transform: translate(6px, -2px); }
  11%, 100% { opacity: 0; transform: none; }
}
@keyframes glitch-b {
  0%, 8% { opacity: 0; transform: none; }
  9% { opacity: .8; transform: translate(7px, -3px) skewX(4deg); }
  11% { opacity: .8; transform: translate(-5px, 2px); }
  13%, 100% { opacity: 0; transform: none; }
}
.glitch-hover:hover { animation: shake .25s steps(3); }
@keyframes shake {
  33% { transform: translate(-2px, 1px); }
  66% { transform: translate(2px, -1px); }
}

/* ---------- MARQUEE (бегущая строка) ---------- */
.marquee {
  overflow: hidden;
  background: var(--ink);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 12px 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 18s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .06em;
}
.marquee__track--slow { animation-duration: 30s; font-size: 15px; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.hero__marquee {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  border-bottom: none;
}

/* ---------- Секции ---------- */
section { position: relative; }

/* ---------- COUNTDOWN (до відкриття передзамовлення) ---------- */
.countdown { margin-top: 34px; }
.countdown__label {
  font-size: 11px; letter-spacing: .32em; font-weight: 700;
  color: var(--grey); margin-bottom: 12px;
}
.countdown__grid { display: flex; justify-content: center; align-items: flex-start; gap: 10px; }
.countdown__cell { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.countdown__cell span {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 5vw, 54px); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__cell em {
  font-style: normal; font-size: 10px; letter-spacing: .26em;
  color: var(--grey); margin-top: 6px;
}
.countdown__sep {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(24px, 4vw, 42px); line-height: 1.15; opacity: .45;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .08; } }

/* ---------- АРТЕФАКТ: БЕЛАЯ секция-лукбук ----------
   Вещь стоит на месте сразу (без скролл-камеры). Живёт сама: медленный
   idle-флоат + световой блик по ткани + 3D-наклон за курсором (десктоп). */
.artefact { background: #fff; color: var(--ink); }
.artefact__sticky {
  padding: clamp(72px, 12vh, 130px) 20px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1100px;   /* глубина для 3D-наклона вещи за курсором */
}
/* Скрытый контейнер SVG-фильтров — не занимает места */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.artefact__stage {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(20px, 3.5vh, 40px);
  width: 100%; max-width: 640px; text-align: center;
}
.artefact__frame {
  position: relative;
  height: min(46vh, 460px); aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  transform: rotateX(0) rotateY(0);
  transition: transform .5s var(--ease-out);   /* плавный возврат после наведения */
  will-change: transform;
}
/* Световой блик, медленно проходит по ткани — виден только на чёрном лонге */
.artefact__frame::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.4) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: garment-sheen 6.5s ease-in-out infinite;
}
@keyframes garment-sheen {
  0%, 68% { transform: translateX(-130%); }
  86%, 100% { transform: translateX(130%); }
}
.artefact__img {
  width: 100%; height: 100%; object-fit: cover;
  /* лёгкое дыхание вещи — покачивание вверх-вниз */
  animation: garment-float 5.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes garment-float {
  0%, 100% { transform: translateY(0) rotate(-.5deg) scale(1); }
  50% { transform: translateY(-12px) rotate(.5deg) scale(1.012); }
}
.artefact__panel { width: 100%; }
.artefact__chapter { font-size: 11px; letter-spacing: .3em; color: #7a7a76; font-weight: 700; margin-bottom: 12px; }
.artefact__name {
  font-family: var(--font-display); font-weight: 900; color: var(--ink);
  font-size: clamp(34px, 4.6vw, 60px); line-height: .95;
  margin-bottom: 26px;
}
.artefact__sizes { display: flex; gap: 10px; margin-bottom: 24px; justify-content: center; }
.artefact__buy { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.artefact__price { font-family: var(--font-display); font-weight: 900; font-size: 30px; color: var(--ink); white-space: nowrap; }
.artefact__cta:disabled { opacity: .28; cursor: not-allowed; animation: none; box-shadow: none; transform: none; }
.artefact__lock { margin-top: 16px; font-size: 12px; letter-spacing: .14em; color: #7a7a76; font-weight: 700; }
.artefact__lock span { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Пилюли размеров (SIZE 1/2/3) — тёмные на белой секции ---------- */
.size-pill {
  border: 2px solid var(--ink); background: none; color: var(--ink);
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  padding: 12px 22px;
  transition: background .1s, color .1s;
}
.size-pill:hover { background: var(--ink); color: var(--paper); }
.size-pill.sel { background: var(--ink); color: var(--paper); }

/* ---------- FOOTER ---------- */
.footer { border-top: var(--border); }
.footer__marquee { border: none; border-bottom: var(--border); color: var(--grey); }
.footer__grid {
  max-width: 1400px; margin: 0 auto;
  padding: 44px 20px 60px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
}
.footer__brand {
  font-family: var(--font-display); font-weight: 900; font-size: 28px;
  grid-column: 1 / -1;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 13px; letter-spacing: .08em; }
.footer__links a { border-bottom: 1px solid transparent; width: fit-content; }
.footer__links a:hover { border-bottom-color: var(--paper); }
.footer__meta { color: var(--grey); font-size: 12px; text-align: right; display: flex; flex-direction: column; gap: 8px; }

/* ---------- CART DRAWER ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 10, .7);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s;
}
.overlay.show { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(440px, 100vw);
  background: var(--ink);
  border-left: var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--ease-out);
}
.cart.show { transform: translateX(0); }
.cart__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: var(--border);
}
.cart__head h3, .checkout__head h3 { font-family: var(--font-display); font-weight: 900; font-size: 22px; }
.cart__close {
  background: none; border: 2px solid var(--paper); color: var(--paper);
  width: 36px; height: 36px; font-size: 16px; font-weight: 700;
  transition: background .12s, color .12s, transform .12s;
}
.cart__close:hover { background: var(--paper); color: var(--ink); transform: rotate(90deg); }
.cart__items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px;
  padding: 14px 0; border-bottom: 2px solid var(--ink-2);
  align-items: center;
}
.cart-item__img { width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--paper); }
.cart-item__name { font-weight: 700; font-size: 13px; text-transform: uppercase; }
.cart-item__meta { color: var(--grey); font-size: 12px; margin-top: 2px; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item__qty button {
  background: none; border: 2px solid var(--paper); color: var(--paper);
  width: 26px; height: 26px; font-weight: 700; line-height: 1;
}
.cart-item__qty button:hover { background: var(--paper); color: var(--ink); }
.cart-item__price { font-weight: 700; white-space: nowrap; }
.cart-item__rm {
  background: none; border: none; color: var(--grey);
  font-size: 15px; margin-top: 8px;
}
.cart-item__rm:hover { color: var(--paper); }
.cart__empty { text-align: center; padding: 60px 20px; color: var(--grey); font-weight: 700; letter-spacing: .1em; }
.cart__foot { border-top: var(--border); padding: 18px 20px; }
.cart__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.cart__note { color: var(--grey); font-size: 11.5px; margin-bottom: 14px; }
.cart__checkout { width: 100%; text-align: center; }

/* ---------- CHECKOUT (инверсия: бумага) ---------- */
.checkout {
  position: fixed; inset: 0; z-index: 300;
  overflow-y: auto;
  background: rgba(10, 10, 10, .8);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 16px 40px;
}
.checkout__box {
  background: var(--paper); color: var(--ink);
  border: var(--border-ink);
  box-shadow: 12px 12px 0 rgba(242, 242, 240, .25);
  width: min(560px, 100%);
  animation: pop-in .25s var(--ease-out);
}
@keyframes pop-in { from { transform: translateY(30px) scale(.97); opacity: 0; } }
.checkout__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: var(--border-ink);
}
.checkout__head .cart__close { border-color: var(--ink); color: var(--ink); }
.checkout__head .cart__close:hover { background: var(--ink); color: var(--paper); }
.checkout form { padding: 22px; }
.checkout fieldset { border: var(--border-ink); padding: 18px; margin-bottom: 20px; }
.checkout legend {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .1em; padding: 0 10px;
}
.checkout label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  margin-bottom: 14px; position: relative;
}
.checkout input, .checkout select {
  display: block; width: 100%;
  margin-top: 6px;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--font-mono); font-size: 15px;
  padding: 12px;
  border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.checkout input:focus, .checkout select:focus {
  outline: 3px solid var(--ink); outline-offset: 2px;
}
.checkout select:disabled { color: var(--grey); border-color: var(--grey); }
.np-suggest {
  position: absolute; left: 0; right: 0; z-index: 5;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink);
  max-height: 220px; overflow-y: auto;
}
.np-suggest button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; color: var(--paper);
  font-family: var(--font-mono); font-size: 13px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink-2);
}
.np-suggest button:hover { background: var(--paper); color: var(--ink); }
.checkout__total {
  display: flex; justify-content: space-between;
  font-weight: 700; font-size: 20px; margin: 6px 0 16px;
}
.checkout__err {
  background: var(--ink); color: var(--paper);
  font-size: 12.5px; font-weight: 700;
  padding: 10px 14px; margin-bottom: 14px;
}
.checkout__pay {
  width: 100%; text-align: center; font-size: 17px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.checkout__pay-mono { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: none; }
.checkout__pay:disabled { opacity: .6; cursor: wait; transform: none; }
.checkout .cart__note { color: #6a6a66; text-align: center; margin-top: 10px; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; z-index: 400;
  transform: translateX(-50%);
  background: var(--accent); color: var(--paper);
  border: 3px solid var(--paper);
  box-shadow: 6px 6px 0 rgba(0, 47, 167, .45);
  font-weight: 700; font-size: 14px; letter-spacing: .06em;
  padding: 14px 24px;
  animation: toast-in .25s var(--ease-out);
}
@keyframes toast-in { from { transform: translate(-50%, 80px); opacity: 0; } }

/* ---------- Reveal-анимации при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Мобилка ---------- */
@media (max-width: 860px) {
  .header { padding: 0 14px; gap: 14px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__meta { text-align: left; }
  .checkout { padding: 0; }
  .checkout__box { min-height: 100%; border: none; box-shadow: none; }

  /* Артефакт: вещь по центру, панель под ней.
     Всё вместе обязано влезать в 100svh (sticky-кадр), иначе фото режется. */
  .artefact__stage { gap: 22px; }
  .artefact__frame { height: auto; width: min(62vw, 330px); }
  .artefact__panel { padding: 0 4px; }
  .artefact__chapter { margin-bottom: 8px; }
  .artefact__name { font-size: clamp(28px, 8.5vw, 40px); margin-bottom: 16px; }
  .artefact__sizes { margin-bottom: 16px; justify-content: center; }
  .size-pill { font-size: 13px; padding: 9px 16px; }
  .artefact__buy { gap: 16px; justify-content: center; }
  .artefact__price { font-size: 24px; }
  .artefact__cta { padding: 14px 24px; font-size: 13px; }
  .countdown__cell { min-width: 52px; }
}

/* ---------- Доступность: меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .noise, .marquee__track, .glitch::before, .glitch::after, .btn--cta,
  .film-flicker, .film-scratch, .hero__track::before, .hero__video,
  .artefact__img, .artefact__frame::after { animation: none !important; }
  .film-flicker, .film-scratch, .hero__scan, .hero__track { display: none; }
  /* видео без живого варпа — только ч/б */
  .hero__video { filter: grayscale(1) contrast(1.2) brightness(.85) !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .artefact__img, .artefact__frame::after { transform: none !important; }
  * { transition-duration: .01s !important; }
}
