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

:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --paper: #f2f2f0;
  --grey: #8a8a86;
  --accent: #002fa7;         /* Klein Blue — не используется (сайт монохром) */
  --accent-hi: #0041e8;
  --red: #e0392c;            /* красный маркера бренда — цифры каунтдауна */
  --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;
}
/* Пока грузится интро — скролл заблокирован */
body.is-loading { overflow: hidden; height: 100vh; }

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

::-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-слоя поверх всего. Тёплый зернистый шум (как в ExitBid light-physics):
   grayscale fractalNoise, подкрашенный сепией в тёплый янтарь — даёт органическое
   киношное тепло и на тёмных, и на белой секции. Дёшево: анимируется только transform. */
.noise {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
  /* тёплый оттенок зерна + мягкое смешивание с тонами */
  filter: sepia(.7) saturate(1.8) brightness(1.03);
  mix-blend-mode: soft-light;
  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(120% 85% at 50% -5%, rgba(255,214,170,.10), rgba(255,214,170,0) 55%),
    radial-gradient(ellipse 105% 90% at 50% 48%, rgba(10,10,10,0) 52%, rgba(10,10,10,.34) 82%, rgba(10,10,10,.6) 100%);
  mix-blend-mode: multiply;
}
/* верхний тёплый wash отдельным слоем, чтобы не гасился multiply-виньеткой */
.film-vignette::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,206,150,.07), transparent 55%);
  mix-blend-mode: soft-light;
}

/* ---------- ЗАГРУЗОЧНЫЙ ЭКРАН (интро-ролик) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity .7s var(--ease-out);
}
.loader.is-done { opacity: 0; pointer-events: none; }
.loader__video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: grayscale(1) contrast(1.15) brightness(.9);
}
.loader__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(242, 242, 240, .15);
}
.loader__bar span {
  display: block; height: 100%; width: 0;
  background: var(--red);   /* прогресс — красный, в цвет знака бренда */
}
/* Мобилка: видео на весь экран; герб в кадре на ~47% — сдвигаем окно, чтобы он был по центру */
@media (max-width: 760px) {
  .loader__video { object-fit: cover; object-position: 48% center; }
}

/* ---------- Кнопки: жёсткая брутальная механика ---------- */
.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 — МОНОХРОМ. Hover: лёгкий подъём + ГЛИЧ (текст рвётся на смещённые полосы). */
.btn--cta {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  border: none;
  box-shadow: none;                      /* без серой подложки/тени */
  padding: 19px 42px;
  letter-spacing: .14em;
  transition: transform .18s var(--ease-out);
}
.btn--cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: none; }
.btn--cta:active { transform: translateY(0) scale(.99); }

/* Глич-слои: копии текста, при hover рвутся на смещённые горизонтальные полосы.
   background/color: inherit — полосы выглядят как «оторванные» куски самой кнопки,
   поэтому работает и на белой, и на чёрной версии. */
.btn--cta[data-text]::before,
.btn--cta[data-text]::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: inherit; color: inherit;
  font: inherit; font-weight: 700; letter-spacing: inherit; text-transform: uppercase;
  opacity: 0; pointer-events: none;
}
.btn--cta[data-text]:hover::before { opacity: 1; animation: cta-glitch-a .45s steps(2) infinite; }
.btn--cta[data-text]:hover::after  { opacity: 1; animation: cta-glitch-b .45s steps(2) infinite; }
@keyframes cta-glitch-a {
  0%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
  30% { clip-path: inset(2% 0 60% 0);  transform: translate(-5px, -1px); }
  60% { clip-path: inset(15% 0 55% 0); transform: translate(5px, 1px); }
}
@keyframes cta-glitch-b {
  0%, 100% { clip-path: inset(100% 0 0 0); transform: translate(0, 0); }
  35% { clip-path: inset(58% 0 0 0);  transform: translate(5px, 1px); }
  70% { clip-path: inset(66% 0 8% 0); transform: translate(-5px, -1px); }
}

/* Тёмная версия CTA — на белых поверхностях (секция лонга, окно оформлення). */
.artefact__cta, .checkout__pay {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- ХЕДЕРА НЕТ: только плавающая кнопка КОШИК справа сверху ---------- */
.header {
  position: fixed; top: 0; right: 0;
  z-index: 100;
  padding: 16px 20px;
  display: flex;
}
.header__cart {
  position: relative;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--paper);
  width: 46px; height: 46px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  transition: background .15s, color .15s;
}
.header__cart[hidden] { display: none; }   /* скрыта, пока корзина пуста */
.header__cart:hover { background: var(--paper); color: var(--ink); }
.header__cart-icon { display: block; }
/* красный кружок-бейдж — сигнал, что в корзине есть товар */
.header__cart-count {
  position: absolute; top: -8px; right: -8px;
  background: var(--red); color: var(--paper);
  font-weight: 700; font-size: 12px;
  min-width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.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: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  /* ч/б драма без волнистого варпа */
  filter: grayscale(1) contrast(1.22) brightness(.82);
}
.hero__scrim {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 62% 54% at 50% 42%, 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__content {
  position: relative; z-index: 1;
  text-align: center;
  padding: 0 16px;
}
/* Рукописный лого MUMGA — вырезан из фото маркера, белый на прозрачном.
   Живая уникальная подпись бренда вместо наборного шрифта. */
.hero__title { margin: 0; line-height: 0; }
.hero__logo-hand {
  width: min(78vw, 720px); height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .55));
}
.hero__cta { margin-top: 40px; font-size: 17px; padding: 18px 40px; }

/* ---------- MARQUEE (бегущая строка) ---------- */
.marquee {
  overflow: hidden;
  background: var(--ink);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 12px 0;
  white-space: nowrap;
}
.marquee__phrase { flex: 0 0 auto; 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%); }
}

/* Строка, приклеенная к низу экрана (стиль нижней/футерной — медленная, серая) */
.ticker {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  border-top: none; border-bottom: none;   /* без белой полоски сверху */
  color: var(--grey);
}

/* ---------- Секции ---------- */
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: 74px; }
/* число = две рукописные цифры-картинки (кастомный набор бренда).
   Каждая цифра — в слоте ФИКСИРОВАННОЙ ширины и центрирована, чтобы при смене
   значения секундомер не дёргался (ширина строки постоянна). */
.countdown__cell span { display: inline-flex; align-items: flex-end; gap: 3px; height: clamp(40px, 6vw, 60px); }
.countdown__cell span img {
  height: 100%;
  width: clamp(26px, 4vw, 40px);         /* фиксированный слот */
  object-fit: contain; object-position: center bottom;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5));
}
.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; } }

/* ---------- АРТЕФАКТ: БЕЛАЯ секция-лукбук ----------
   Чистый белый фон без зерна; вещь стоит статично. */
/* Секция лонга: фон СВЕТЛЕЕТ — сверху сквозь виден видеофон, ниже белый.
   Вещь вырезана (PNG), поэтому белого квадрата при смене градиента не видно. */
.artefact {
  color: var(--ink);
  background: linear-gradient(180deg,
    rgba(255,255,255,0) 0,
    rgba(255,255,255,.55) 140px,
    #fff 340px, #fff 100%);
}
.artefact__sticky {
  position: relative; z-index: 1;
  padding: clamp(96px, 16vh, 180px) 20px clamp(72px, 12vh, 130px);
  display: flex; align-items: center; justify-content: center;
}
/* Скрытый контейнер 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;
  background: transparent;   /* вещь вырезана (PNG) — фон не нужен, белый квадрат не вылазит */
  flex-shrink: 0;
}
.artefact__img { width: 100%; height: 100%; object-fit: contain; }
.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: 12px;
}
/* Подзаголовок «LONGSLEEVE» — тип товара, чуть мельче под именем */
.artefact__subname {
  display: block;
  font-weight: 800;
  font-size: clamp(14px, 1.7vw, 20px);
  letter-spacing: .22em;
  color: #7a7a76;
  margin-top: 10px;
}
.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; }
/* Цена — блоком под «LONGSLEEVE», перед размерами */
.artefact__price { display: block; font-family: var(--font-display); font-weight: 900; font-size: 30px; color: var(--ink); white-space: nowrap; margin-bottom: 26px; }
.btn--cta:disabled { opacity: .28; cursor: not-allowed; transform: none; }
.btn--cta:disabled::before { display: none; }
.btn--cta:disabled::after { animation: none; opacity: 0; }
.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; }

/* INFO — маленькая кнопка под CTA + выпадающая таблица размеров */
.artefact__info-btn {
  margin-top: 16px;
  background: none; border: none;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  letter-spacing: .18em; color: #7a7a76;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.artefact__info-btn:hover { color: var(--ink); border-bottom-color: var(--ink); }
.artefact__info-btn[aria-expanded="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.artefact__info {
  margin-top: 16px;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  text-align: left;
  animation: info-in .28s var(--ease-out);
}
@keyframes info-in { from { opacity: 0; transform: translateY(-6px); } }
.artefact__info-mat {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  letter-spacing: .16em; color: var(--ink); margin-bottom: 12px;
}
.size-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); }
.size-table th, .size-table td {
  padding: 8px 6px; text-align: center; font-size: 12px;
  border-bottom: 1px solid #dededa;
}
.size-table th {
  font-weight: 700; letter-spacing: .06em; color: #7a7a76;
  font-size: 9.5px; text-transform: uppercase;
}
.size-table td:first-child, .size-table th:first-child { text-align: left; font-weight: 700; color: var(--ink); }
.size-table td { color: var(--ink); font-weight: 500; }
.size-table tbody tr:last-child td { border-bottom: none; }
.artefact__info-note { margin-top: 10px; font-size: 10px; letter-spacing: .1em; color: #9a9a96; }

/* ---------- Пилюли размеров (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 ---------- */
/* Футер непрозрачный + запас снизу под приклеенную строку .ticker, чтобы за ним
   не проглядывал фикс-фон видео (ink покрывает область до самого низа экрана). */
.footer { position: relative; z-index: 1; background: var(--ink); border-top: var(--border); }
.footer__grid {
  max-width: 1400px; margin: 0 auto;
  padding: 44px 20px 74px;
  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, .82);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 16px 40px;
}
.checkout__box {
  background: var(--paper); color: var(--ink);
  width: min(540px, 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  animation: pop-in .28s 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: 20px 24px;
  background: var(--ink); color: var(--paper);
}
.checkout__head h3 { color: var(--paper); }
.checkout__head .cart__close { border-color: rgba(242, 242, 240, .45); color: var(--paper); }
.checkout__head .cart__close:hover { background: var(--paper); color: var(--ink); }
.checkout form { padding: 28px 24px 24px; }
.checkout fieldset { border: none; padding: 0; margin: 0 0 28px; }
.checkout legend {
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  letter-spacing: .18em; color: var(--ink);
  width: 100%; padding: 0 0 9px;
  border-bottom: 2px solid var(--ink); margin-bottom: 18px;
}
.checkout legend span { color: var(--red); }   /* номер шага — красный */
.checkout label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em;
  color: #7a7a76; margin-bottom: 20px; position: relative;
}
/* поля — подчёркнутые, без коробок; фокус подсвечивается красным */
.checkout input, .checkout select {
  display: block; width: 100%;
  margin-top: 8px;
  background: transparent; color: var(--ink);
  border: none; border-bottom: 2px solid #d3d3ce;
  font-family: var(--font-mono); font-size: 16px; font-weight: 500;
  padding: 8px 2px;
  border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s;
}
.checkout input::placeholder { color: #b6b6b0; letter-spacing: normal; font-weight: 400; }
.checkout input:focus, .checkout select:focus {
  outline: none; border-bottom-color: var(--red);
}
.checkout select:disabled { color: var(--grey); border-bottom-color: #e2e2dd; }
.np-suggest {
  position: absolute; left: 0; right: 0; z-index: 5;
  background: var(--ink); color: var(--paper);
  border: none; box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  margin-top: 4px;
  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: 11px 14px;
  border-bottom: 1px solid var(--ink-2);
  transition: background .12s, color .12s;
}
.np-suggest button:hover { background: var(--red); color: var(--paper); }
.checkout__total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  letter-spacing: .1em;
  border-top: 2px solid var(--ink); padding-top: 18px; margin: 4px 0 18px;
}
.checkout__total span:last-child { font-size: 26px; }
.checkout__err {
  background: var(--red); color: var(--paper);
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  padding: 12px 14px; margin-bottom: 16px;
}
.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: #7a7a76; text-align: center; margin-top: 12px; }
.checkout .cart__note a { color: var(--ink); text-decoration: underline; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; z-index: 400;
  transform: translateX(-50%);
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 0 0 30px rgba(242, 242, 240, .35);
  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(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* Лого «проявляется» как кадр плёнки: из размытия и глубины в резкость */
.reveal--logo {
  transform: translateY(20px) scale(.92);
  filter: blur(14px);
}
.reveal--logo.in { transform: none; filter: blur(0); }

/* ---------- Мобилка ---------- */
@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; }
  /* фикс-фон видео + светлеющая секция лонга теперь в базовом CSS (общие для десктопа и мобилки) */

  /* Артефакт: вещь по центру, панель под ней. */
  .artefact__stage { gap: 22px; }
  .artefact__frame { height: auto; width: min(64vw, 340px); }
  .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, .btn--cta { animation: none !important; }
  /* без глича CTA */
  .btn--cta:hover::before, .btn--cta:hover::after { animation: none !important; opacity: 0 !important; }
  /* видео без живого варпа — только ч/б */
  .hero__video { filter: grayscale(1) contrast(1.2) brightness(.85) !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01s !important; }
}
