/* ==========================================================
   TRUST CARDS — sklep z kartami do gier
   Samodzielna strona: własny motyw, nie korzysta z assetów
   sklepu iPhoria. Czerń i złoto, karty w stylu gamingowym.
   ========================================================== */

:root {
  --bg: #07070a;
  --bg-soft: #0d0c0e;
  --panel: #131114;
  --line: #322b20;
  --line-soft: #241f17;
  --text: #f4f1ea;
  --muted: #948c7d;

  /* Золото: от светлого шампанского к глубокому тёмному */
  --gold-1: #f6e3b0;
  --gold-2: #d9ab45;
  --gold-3: #96691a;

  /* Прежние имена сохранены, чтобы вся вёрстка перекрасилась разом */
  --neon: var(--gold-2);
  --neon-2: var(--gold-1);
  --neon-3: #e0563f;
  --gold: var(--gold-2);
  --ok: var(--gold-1);

  --radius: 20px;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Фон: тёплое золотое свечение + едва заметная сетка */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 480px at 8% -8%, rgba(217, 171, 69, .16), transparent 70%),
    radial-gradient(780px 540px at 96% 4%, rgba(246, 227, 176, .10), transparent 70%),
    radial-gradient(620px 430px at 50% 108%, rgba(150, 105, 26, .16), transparent 70%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(1000px 700px at 50% 0%, #000 20%, transparent 85%);
  mask-image: radial-gradient(1000px 700px at 50% 0%, #000 20%, transparent 85%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; }
h2 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p  { margin: 0 0 14px; }

.lead { color: var(--muted); font-size: 17px; max-width: 62ch; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 12px;
  font-weight: 700;
}

.neon-text {
  background: linear-gradient(92deg, #fff 6%, var(--neon) 46%, var(--neon-2) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(217, 171, 69, .40));
}

/* ---------------- Шапка ---------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 7, 10, .84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.logo__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: linear-gradient(140deg, var(--neon), var(--neon-2));
  box-shadow: 0 0 20px rgba(217, 171, 69, .50);
  color: #06060b;
  font-weight: 900;
}
.logo__text {
  background: linear-gradient(96deg, #fff, var(--neon) 55%, var(--neon-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14.5px;
  color: var(--muted);
}
.nav a { transition: color .2s var(--ease); }
.nav a:hover { color: var(--text); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { border-color: #4b402d; background: rgba(255, 255, 255, .06); }
.btn:active { transform: translateY(1px); }

.btn--neon {
  border: 0;
  color: #05050a;
  font-weight: 800;
  background: linear-gradient(100deg, var(--neon), var(--neon-2));
  box-shadow: 0 10px 34px rgba(217, 171, 69, .30);
}
.btn--neon:hover { filter: brightness(1.08); box-shadow: 0 12px 40px rgba(217, 171, 69, .42); }

.btn--wide { width: 100%; }
.btn--sm { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 11px; }

.btn-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 17px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}
.btn-cart:hover { border-color: var(--neon); }
.btn-cart__count {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #05050a;
  background: linear-gradient(120deg, var(--neon), var(--neon-2));
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.burger__bars, .burger__bars::before, .burger__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
}
.burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; }
.burger__bars::before { top: -6px; }
.burger__bars::after  { top: 6px; }

/* ---------------- Секции ---------------- */

.section { padding: 84px 0 0; }
.section--tight { padding-top: 62px; }

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  padding: 66px 22px 24px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
}
.hero__stats b {
  display: block;
  font-size: 22px;
  letter-spacing: -.02em;
  background: linear-gradient(100deg, #fff, var(--neon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stats span { font-size: 13px; color: var(--muted); }

/* Веер из трёх карт на первом экране */
.hero__deck {
  position: relative;
  height: 430px;
  perspective: 1400px;
}
.hero__deck .gcard {
  position: absolute;
  width: 78%;
  left: 11%;
  transition: transform .55s var(--ease);
}
.hero__deck .gcard:nth-child(1) { top: 12px;  transform: rotate(-11deg) translateX(-46px) scale(.92); z-index: 1; }
.hero__deck .gcard:nth-child(2) { top: 66px;  transform: rotate(-1deg)  translateY(10px);             z-index: 3; }
.hero__deck .gcard:nth-child(3) { top: 120px; transform: rotate(10deg)  translateX(46px) scale(.92);  z-index: 2; }
.hero__deck:hover .gcard:nth-child(1) { transform: rotate(-16deg) translateX(-92px) scale(.94); }
.hero__deck:hover .gcard:nth-child(3) { transform: rotate(15deg)  translateX(92px)  scale(.94); }

/* ==========================================================
   САМА КАРТА
   ========================================================== */

/* Карта: чёрный корпус, золото в рамке, тиснении и фольге.
   --c1 — светлое шампанское, --c2 — основное золото, --c3 — тёмное. */
.gcard {
  --c1: #f6e3b0;
  --c2: #d9ab45;
  --c3: #96691a;

  position: relative;
  /* Точка отсчёта для cqw внутри карты. Containment отключает влияние
     содержимого на ширину, поэтому ширину задаём явно — иначе карта
     схлопывается в контейнерах с выравниванием по центру. */
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 1.586;
  border-radius: 18px;
  padding: 20px 22px;
  color: var(--c1);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  background:
    linear-gradient(152deg, #131114 0%, #08080a 48%, #17130b 100%) padding-box,
    linear-gradient(140deg, var(--c1) 0%, var(--c2) 38%, var(--c3) 70%, var(--c1) 100%) border-box;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, .68),
    0 0 0 1px rgba(0, 0, 0, .55) inset,
    0 0 52px -18px var(--c2);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Тёплое золотое свечение и тиснёные полосы по чёрному корпусу */
.gcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(130% 120% at 12% -12%, rgba(246, 227, 176, .17), transparent 52%),
    radial-gradient(95% 95% at 106% 112%, rgba(150, 105, 26, .34), transparent 62%),
    repeating-linear-gradient(115deg, rgba(246, 227, 176, .05) 0 1px, transparent 1px 8px);
}

/* Золотой блик фольги */
.gcard::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  pointer-events: none;
  background: conic-gradient(from 210deg,
    transparent 0deg,
    rgba(246, 227, 176, .28) 32deg,
    transparent 74deg,
    rgba(217, 171, 69, .20) 150deg,
    transparent 210deg);
  filter: blur(26px);            /* размываем клинья в мягкую волну по фольге */
  opacity: .55;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.gcard:hover::after { opacity: .9; transform: rotate(26deg); }

/* Шестиугольная сетка поверх фона */
.gcard__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .38;
  pointer-events: none;
  background-image:
    linear-gradient(60deg,  rgba(246, 227, 176, .13) 1px, transparent 1px),
    linear-gradient(-60deg, rgba(246, 227, 176, .13) 1px, transparent 1px),
    linear-gradient(rgba(246, 227, 176, .08) 1px, transparent 1px);
  background-size: 26px 45px, 26px 45px, 100% 45px;
  -webkit-mask-image: linear-gradient(120deg, #000 15%, transparent 78%);
  mask-image: linear-gradient(120deg, #000 15%, transparent 78%);
}

.gcard > * { position: relative; z-index: 2; }

/* Начинка карты меряется в cqw — процентах от ширины самой карты.
   Пропорции взяты от эталонной ширины 470px, поэтому карта одинаково
   собрана и в веере на 260px, и в каталоге на 470px, и ничего не
   упирается в нижний край при фиксированном соотношении сторон.
   Перед каждым cqw идёт px-запас для браузеров без контейнерных
   запросов — там карта останется в «настольных» размерах. */

.gcard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  gap: 2.81cqw;
}

.gcard__brand {
  font-size: 13.5px;
  font-size: 3.17cqw;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
.gcard__brand small {
  display: block;
  font-size: 9.5px;
  font-size: max(8px, 2.46cqw);
  letter-spacing: .34em;
  font-weight: 700;
  opacity: .75;
  margin-top: 2px;
}

.gcard__tier {
  font-size: 10.5px;
  font-size: max(8px, 2.46cqw);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 11px;
  padding: 1.17cqw 2.58cqw;
  border-radius: 999px;
  color: var(--c1);
  border: 1px solid var(--c2);
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.gcard__mid {
  margin-top: auto;
  margin-bottom: 9px;
  margin-bottom: 2.10cqw;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  gap: 3.29cqw;
}

/* Чип */
.gcard__chip {
  width: 46px;
  width: 10.80cqw;
  height: 35px;
  height: 8.22cqw;
  border-radius: 8px;
  border-radius: 1.88cqw;
  background: linear-gradient(140deg, #f6dc9a, #c69a3e 45%, #ffeec2 78%, #b8862c);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .25) inset;
  position: relative;
  flex: none;
}
.gcard__chip::before,
.gcard__chip::after {
  content: "";
  position: absolute;
  background: rgba(90, 62, 12, .65);
}
.gcard__chip::before { left: 0; right: 0; top: 50%; height: 1.5px; }
.gcard__chip::after  { top: 18%; bottom: 18%; left: 50%; width: 1.5px; }

/* Голограмма */
.gcard__holo {
  width: 40px;
  width: 9.39cqw;
  height: 40px;
  height: 9.39cqw;
  border-radius: 10px;
  border-radius: 2.35cqw;
  flex: none;
  background: conic-gradient(#8a6a12, #f6e3b0, #c8952f, #fff6dc, #a87c1c, #f0d68f, #8a6a12);
  opacity: .95;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35) inset;
  position: relative;
  overflow: hidden;
}
.gcard__holo::after {
  content: "\25B2";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-size: max(11px, 3.52cqw);
  color: rgba(8, 8, 18, .62);
}

.gcard__nominal {
  font-size: 30px;
  font-size: 7.04cqw;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--c1);
  text-shadow: 0 3px 18px rgba(0, 0, 0, .7);
}
/* Знак доллара — приставка перед номиналом */
.gcard__nominal span {
  font-size: 17px;
  font-size: 3.99cqw;
  font-weight: 700;
  opacity: .8;
  margin-right: 2px;
}

/* Номер карты */
.gcard__num {
  font-family: var(--mono);
  font-size: 19px;
  font-size: max(12px, 4.46cqw);
  font-weight: 700;
  letter-spacing: .09em;
  margin: 16px 0 12px;
  margin: 3.75cqw 0 2.81cqw;
  display: flex;
  flex-wrap: wrap;
  gap: .7em;
  color: #fffaf0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8), 0 0 20px rgba(217, 171, 69, .45);
}

.gcard__bottom {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  gap: 5.16cqw;
}

.gcard__field small {
  display: block;
  font-size: 8.5px;
  font-size: max(7.5px, 2.00cqw);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c2);
  font-weight: 700;
  line-height: 1.4;
}
.gcard__field b {
  font-family: var(--mono);
  font-size: 15px;
  font-size: max(11px, 3.52cqw);
  font-weight: 700;
  letter-spacing: .08em;
  color: #fffaf0;
}

.gcard__sign {
  margin-left: auto;
  font-size: 9.5px;
  font-size: max(8px, 2.46cqw);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c2);
  opacity: .8;
  font-weight: 700;
  text-align: right;
}

/* Размеры карты */
.gcard--lg { max-width: 470px; }
.gcard--sm { max-width: 320px; padding: 15px 16px; border-radius: 15px; }

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

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 34px;
  margin-top: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  position: relative;
  overflow: hidden;
}
.product::before {
  content: "";
  position: absolute;
  top: -1px; left: 34px; right: 34px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--neon)), transparent);
  opacity: .8;
}
.product__stage {
  display: grid;
  place-items: center;
  padding: 10px;
  perspective: 1200px;
}
.product__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0 18px;
  flex-wrap: wrap;
}
.product__price b {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.product__price s { color: var(--muted); font-size: 16px; }
.product__price .save {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ok);
  border: 1px solid rgba(217, 171, 69, .38);
  background: rgba(217, 171, 69, .09);
  padding: 3px 9px;
  border-radius: 999px;
}

.field-label {
  display: block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 9px;
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.chip {
  padding: 9px 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.chip:hover { border-color: #4b402d; }
.chip[aria-pressed="true"] {
  border-color: transparent;
  color: #05050a;
  background: linear-gradient(100deg, var(--accent, var(--neon)), var(--accent2, var(--neon-2)));
}

.specs { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.specs li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}
.specs li::before {
  content: "\25B8";
  color: var(--accent, var(--neon));
  font-size: 12px;
  line-height: 1.7;
}

.product__buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  height: 46px;
}
.qty button {
  width: 40px;
  height: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  font-family: inherit;
}
.qty button:hover { background: rgba(255, 255, 255, .06); }
.qty span {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------------- Плитки, шаги, FAQ ---------------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 16px;
  margin-top: 26px;
}
.tile {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.tile:hover { border-color: #453a29; transform: translateY(-3px); }
.tile p { color: var(--muted); font-size: 14.5px; margin: 0; }
.tile__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--neon);
  border: 1px solid rgba(217, 171, 69, .30);
  background: rgba(217, 171, 69, .08);
}
.tile__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--neon);
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 10px;
  display: block;
}

.faq { margin-top: 24px; border-top: 1px solid var(--line-soft); }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--neon); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); margin: 12px 0 0; font-size: 15px; max-width: 78ch; }

.cta {
  margin-top: 70px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  background:
    radial-gradient(600px 200px at 12% 0%, rgba(150, 105, 26, .28), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
}
.cta h2 { margin-bottom: 6px; }
.cta p { color: var(--muted); margin: 0; }

/* Плашка демо-режима */
.notice {
  margin-top: 22px;
  border: 1px dashed rgba(224, 86, 63, .38);
  background: rgba(224, 86, 63, .07);
  color: #ffd786;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
}
.notice b { color: var(--gold); }

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

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}
.drawer.is-open { display: block; }
.drawer__back {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 5, .72);
  backdrop-filter: blur(4px);
}
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(430px, 100%);
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  animation: slideIn .32s var(--ease);
  overflow-y: auto;
}
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.drawer__head h3 { margin: 0; }
.drawer__close {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
}

.citem {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.citem__pic {
  width: 54px;
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--c1, #d9ab45), var(--c2, #96691a));
  box-shadow: 0 0 14px -4px var(--c1, #d9ab45);
}
.citem__name { font-weight: 700; font-size: 14.5px; }
.citem__opts {
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}
.citem__opts b { color: var(--text); font-variant-numeric: tabular-nums; min-width: 12px; text-align: center; }
.citem__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Шаг количества — отдельные кнопки: в текстовые «−/+» на телефоне не попасть */
.citem__qty {
  width: 30px;
  height: 30px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.citem__qty:hover { border-color: var(--neon); color: var(--neon); }

.citem__del {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 2px;
}
.citem__del:hover { color: var(--neon-3); }

.drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 20px 0 16px;
  font-size: 15px;
}
.drawer__total b { font-size: 24px; font-weight: 800; }

.empty { color: var(--muted); text-align: center; padding: 40px 0; font-size: 15px; }

/* ---------------- Оформление заказа ---------------- */

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 26px;
  align-items: start;
  margin-top: 26px;
}
.card-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
}
.card-panel + .card-panel { margin-top: 18px; }

.form-row { margin-bottom: 16px; }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .18s var(--ease);
}
.input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(217, 171, 69, .14); }
.input::placeholder { color: #6b6153; }
.err { color: var(--neon-3); font-size: 13px; margin: 6px 0 0; display: none; }
.err.is-on { display: block; }

.pay-list { display: grid; gap: 10px; }
.pay {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  background: rgba(255, 255, 255, .02);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.pay:hover { border-color: #4b402d; }
.pay input { accent-color: var(--neon); width: 17px; height: 17px; }
.pay b { font-size: 15px; }
.pay small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.pay.is-sel { border-color: var(--neon); background: rgba(217, 171, 69, .07); }

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--muted);
}
.sum-row span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.sum-row--total {
  border-top: 1px solid var(--line-soft);
  margin-top: 10px;
  padding-top: 16px;
  font-size: 17px;
  color: var(--text);
  font-weight: 700;
}
.sum-row--total span:last-child { font-size: 24px; font-weight: 800; }

/* Экран с выданными картами */
.issued__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-top: 26px;
}
.issued__item { display: grid; gap: 10px; }
.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .025);
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: .06em;
}
.copy-row > span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
}
.copy-row > b { margin-left: auto; }

.ok-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(217, 171, 69, .38);
  background: rgba(217, 171, 69, .09);
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

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

.footer {
  margin-top: 90px;
  border-top: 1px solid var(--line-soft);
  padding: 44px 0 30px;
  background: rgba(10, 9, 11, .6);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
}
.footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer li a { color: var(--muted); font-size: 14.5px; transition: color .18s var(--ease); }
.footer li a:hover { color: var(--text); }
.footer__about { color: var(--muted); font-size: 14.5px; margin-top: 12px; max-width: 42ch; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}

/* ---------------- Уведомление ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 95;
  padding: 13px 22px;
  border-radius: 13px;
  background: rgba(16, 14, 12, .97);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .6);
  font-size: 14.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Адаптив ---------------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero__deck { height: 360px; margin-top: 10px; }
  .product { grid-template-columns: 1fr; gap: 26px; padding: 24px; }
  .checkout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .burger { display: block; order: 3; }
  .nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 22px 18px;
    background: #0a090b;         /* сплошной фон: под ним лежит контент страницы */
    border-bottom: 1px solid var(--line);
    z-index: 61;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .btn-cart { margin-left: auto; order: 2; }
  .hero__stats { grid-template-columns: 1fr; gap: 10px; }

  /* Веер сводим плотнее: на узком экране разлёт в ±46px выносил
     крайние карты за вьюпорт и давал горизонтальную прокрутку.
     Разлёт по наведению на тач-экранах отключаем — «залипший»
     hover после тапа выталкивал карту наружу. */
  .hero__deck { height: 300px; }
  .hero__deck .gcard { width: 80%; left: 10%; }
  .hero__deck .gcard:nth-child(1),
  .hero__deck:hover .gcard:nth-child(1) { transform: rotate(-8deg) translateX(-26px) scale(.92); }
  .hero__deck .gcard:nth-child(2) { transform: rotate(-1deg) translateY(8px); }
  .hero__deck .gcard:nth-child(3),
  .hero__deck:hover .gcard:nth-child(3) { transform: rotate(8deg) translateX(26px) scale(.92); }
  .footer__grid { grid-template-columns: 1fr; }
  .form-row--2 { grid-template-columns: 1fr; }
  .section { padding-top: 56px; }

  /* Поля карточки товара ужимаем — это единственный запас ширины,
     который можно отдать самой карте. Внутренние отступы карты
     не в cqw (они меряются от родителя), поэтому правим их здесь. */
  .product { padding: 20px 16px; }
  .product::before { left: 16px; right: 16px; }
  .product__stage { padding: 0; }
  .gcard { padding: 14px 15px; border-radius: 15px; }
  .gcard--sm { padding: 12px 13px; }
}

/* Узкие телефоны (320–400px): в шапке логотип, корзина и бургер
   вместе шире экрана, поэтому ужимаем всю строку разом. */
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }

  .header__inner { gap: 8px; }
  .logo { font-size: 15px; gap: 8px; }
  .logo__mark { width: 27px; height: 27px; font-size: 14px; }
  .btn-cart { height: 38px; padding: 0 12px; font-size: 13px; gap: 6px; }
  .btn-cart__count { min-width: 19px; height: 19px; font-size: 11px; }
  .burger { width: 36px; height: 36px; }
  .nav { top: 70px; padding: 8px 16px 18px; }

  .product { padding: 18px 14px; }
  .product::before { left: 14px; right: 14px; }
  .card-panel { padding: 20px 16px; }
  .cta { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
