/* PS SHOP — дизайн-токены.
   Концепция: витрина «ночного неона» из фирменного стиля канала — глубокий индиго-чёрный фон,
   мягкое фиолетово-голубое свечение, стеклянные карточки с тонкой светящейся кромкой.
   Яркость тратим в одном месте: градиентные цифры (таймер, цены, сроки). Остальное спокойное. */
:root {
  --void: #07061a;          /* фон страницы */
  --deep: #0e0c2a;          /* приподнятые поверхности */
  --glass: rgba(34, 29, 92, .38);
  --glass-hi: rgba(52, 44, 130, .45);
  --edge: rgba(150, 138, 255, .20);
  --edge-hi: rgba(170, 150, 255, .55);
  --text: #f2efff;
  --muted: #a9a3d4;
  --faint: #6f6a9c;
  --violet: #b24dff;
  --indigo: #5d4dff;
  --cyan: #2bc8ff;
  --grad: linear-gradient(100deg, #c35cff 0%, #6a55ff 48%, #2bc8ff 100%);
  --ok: #45e3a4;
  --warn: #ffc54d;
  --sale: #ff6b95;

  --f-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 12px; --r: 18px; --r-lg: 26px;
  --max: 1240px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(140, 60, 255, .28), transparent 60%),
    radial-gradient(800px 600px at 105% 30%, rgba(40, 120, 255, .20), transparent 60%),
    var(--void);
  background-attachment: fixed;
  color: var(--text); font: 500 16px/1.55 var(--f-body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.num { font-variant-numeric: tabular-nums; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- стекло ---------- */
.glass {
  background: linear-gradient(160deg, rgba(60, 50, 150, .30), rgba(20, 16, 60, .30)), var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 700 16px/1 var(--f-body); white-space: nowrap;
  border: 1px solid var(--edge); background: var(--glass-hi);
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { border-color: var(--edge-hi); }
.btn:active { transform: scale(.98); }
.btn-main {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 8px 28px rgba(110, 80, 255, .45);
}
.btn-main:hover { box-shadow: 0 10px 34px rgba(110, 80, 255, .65); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.is-in { background: rgba(69, 227, 164, .14); border-color: rgba(69, 227, 164, .5); color: var(--ok); box-shadow: none; }
.link-quiet { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.link-quiet:hover { color: var(--text); }

/* ---------- шапка ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--void); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(7, 6, 26, .72); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(150, 138, 255, .12);
}
.top-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 4px 14px rgba(120, 80, 255, .55)); }
.brand b { font: 800 17px/1 var(--f-display); letter-spacing: .02em; }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(120, 100, 255, .16); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search { position: relative; width: 280px; }
.search input {
  width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--edge);
  background: rgba(20, 17, 56, .7); padding: 0 16px 0 42px; outline: none; font-size: 15px;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--edge-hi); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 18px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--edge); background: rgba(20, 17, 56, .7); font-size: 20px;
}
.icon-btn:hover { border-color: var(--edge-hi); }
.cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
  background: var(--grad); color: #fff; font: 800 12px/21px var(--f-body); text-align: center; border: 2px solid var(--void);
}
.search-open { display: none; }

/* ---------- заголовки секций ---------- */
.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2, .h2 { font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--f-display); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.sec-head a { color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; }
.sec-head a:hover { color: var(--text); }

/* ---------- герой GTA 6 ---------- */
.hero { position: relative; margin-top: 22px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; border: 1px solid var(--edge); }
.hero-bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center 30%; filter: blur(26px) saturate(150%) brightness(.55); transform: scale(1.08); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 7, 32, .96) 0%, rgba(9, 7, 32, .78) 48%, rgba(9, 7, 32, .25) 100%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: center; padding: clamp(24px, 4vw, 48px); }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hero h1 { font: 800 clamp(34px, 5.4vw, 64px)/1 var(--f-display); margin: 0 0 6px; letter-spacing: -.02em; }
.hero-sub { color: var(--muted); font-size: 17px; margin: 0 0 22px; max-width: 34em; }
.timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 520px; margin-bottom: 22px; }
.timer-cell { text-align: center; padding: 14px 6px 12px; border-radius: var(--r); }
.timer-cell b { display: block; font: 800 clamp(30px, 4.6vw, 52px)/1 var(--f-display); font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timer-cell span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.timer-done { font: 700 clamp(22px, 3vw, 30px)/1.2 var(--f-display); margin: 0 0 22px; }
.hero-buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-price { font: 700 24px/1.1 var(--f-display); }
.hero-price small { display: block; font: 600 13px/1.4 var(--f-body); color: var(--muted); }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.hero-cover { justify-self: end; width: min(330px, 100%); }
.hero-cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r); box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px var(--edge); }

.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(140, 120, 255, .16); color: #d6d0ff; white-space: nowrap; }
.tag-pre { background: rgba(255, 197, 77, .16); color: var(--warn); }
.tag-hit { background: rgba(255, 107, 149, .16); color: #ff9db8; }
.tag-new { background: rgba(69, 227, 164, .14); color: var(--ok); }

/* ---------- геймпад ---------- */
.hero-art { position: relative; justify-self: end; width: min(330px, 100%); }
.hero-art .hero-cover { width: 100%; }
.pad { position: absolute; left: -42%; bottom: -6%; width: 78%; pointer-events: none; perspective: 700px; z-index: 2; }
.pad-tilt { transform-style: preserve-3d; transition: transform .35s var(--ease); }
.pad-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 30px rgba(20, 10, 60, .65)) drop-shadow(0 0 26px rgba(120, 90, 255, .55)); }
@media (prefers-reduced-motion: no-preference) {
  .pad { animation: pad-in 1.4s cubic-bezier(.16, .9, .25, 1.05) .35s both; }
  .pad-svg { animation: pad-float 5s ease-in-out 1.8s infinite; }
}
@keyframes pad-in {
  0% { opacity: 0; transform: translate(140%, 90%) rotate(38deg) scale(.55); }
  70% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) rotate(-12deg) scale(1); }
}
@keyframes pad-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(2deg); } }
.pad { transform: rotate(-12deg); }

/* ---------- преимущества ---------- */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.perk { display: flex; gap: 14px; align-items: center; padding: 16px 18px; }
.perk-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #cfc6ff; background: rgba(120, 100, 255, .16); border: 1px solid var(--edge); flex: none; }
.perk b { display: block; font-size: 15px; line-height: 1.3; }
.perk span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* ---------- полки и карточки ---------- */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 16px; overflow-x: auto; padding: 4px 0 12px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(150, 138, 255, .3) transparent; }
.shelf > * { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; }
.card-img { display: block; aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; background: var(--deep); border: 1px solid var(--edge); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.card-media:hover .card-img { transform: translateY(-3px); border-color: var(--edge-hi); box-shadow: 0 16px 40px rgba(60, 40, 180, .35); }
.card-tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.card-tags .tag { height: 24px; padding: 0 9px; font-size: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background-color: rgba(10, 8, 34, .72); }
.card-add {
  position: absolute; right: 8px; bottom: 8px; width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(10, 8, 34, .78); border: 1px solid var(--edge-hi); color: #fff; font-size: 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s;
}
.card-add:hover { background: var(--indigo); }
.card-add.is-in { background: var(--ok); border-color: transparent; color: #05221a; }
.card-body { padding: 10px 2px 0; display: grid; gap: 4px; }
.card-title { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 13px; color: var(--faint); font-weight: 600; }
.price { font: 700 17px/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.price small { font: 600 12px var(--f-body); color: var(--muted); margin-left: 3px; }
.price .from { font: 600 13px var(--f-body); color: var(--muted); margin-right: 4px; }
.price s { font: 600 13px var(--f-body); color: var(--faint); margin-right: 6px; }

/* ---------- промо ---------- */
.promo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.promo-card { position: relative; overflow: hidden; padding: 26px; display: grid; gap: 12px; align-content: start; }
.promo-card::before { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(140, 80, 255, .35), transparent 65%); pointer-events: none; }
.promo-card.is-blue::before { background: radial-gradient(circle, rgba(43, 200, 255, .28), transparent 65%); }
.promo-card h3 { font: 700 22px/1.2 var(--f-display); margin: 0; }
.promo-card p { margin: 0; color: var(--muted); max-width: 30em; }
.big-num { font: 800 clamp(34px, 4vw, 46px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.big-num small { font: 700 15px var(--f-body); color: var(--muted); -webkit-text-fill-color: var(--muted); margin-left: 6px; }
.promo-card .btn { justify-self: start; margin-top: 6px; }

/* ---------- каталог ---------- */
.page-head { padding-top: 34px; }
.page-head h1 { font: 800 clamp(28px, 4vw, 44px)/1.08 var(--f-display); margin: 0 0 8px; letter-spacing: -.02em; text-wrap: balance; }
.page-head p { margin: 0; color: var(--muted); max-width: 40em; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 24px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; }
.chip { height: 38px; padding: 0 15px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--muted); border: 1px solid var(--edge); background: rgba(20, 17, 56, .6); white-space: nowrap; flex: none; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: #fff; background: var(--grad); border-color: transparent; }
.select { height: 38px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(20, 17, 56, .6); padding: 0 34px 0 15px; font-size: 14px; font-weight: 700; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a3d4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 28px 18px; }
.found { color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.empty { padding: 34px 26px; text-align: center; display: grid; gap: 12px; justify-items: center; max-width: 560px; margin: 10px auto; }
.empty h3 { font: 700 22px/1.25 var(--f-display); margin: 0; }
.empty p { margin: 0; color: var(--muted); }
.more { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- страница игры ---------- */
.game { position: relative; isolation: isolate; }
.game-bg { position: absolute; inset: -80px 0 auto; height: 620px; z-index: -1; background-size: cover; background-position: center; filter: blur(60px) saturate(150%) brightness(.45); opacity: .7; mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-image: linear-gradient(#000 40%, transparent); }
.game-in { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: 30px; align-items: start; }
.game-cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px var(--edge); }
.crumbs { font-size: 14px; color: var(--faint); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.game h1 { font: 800 clamp(28px, 4vw, 46px)/1.05 var(--f-display); margin: 12px 0 22px; letter-spacing: -.02em; text-wrap: balance; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.opt { min-width: 132px; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--edge); background: rgba(20, 17, 56, .6); text-align: left; transition: border-color .2s, background .2s; }
.opt b { display: block; font-size: 15px; }
.opt span { display: block; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt[aria-checked="true"] { border-color: transparent; background: linear-gradient(var(--deep), var(--deep)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.buy { padding: 22px; max-width: 560px; display: grid; gap: 16px; }
.buy-price { font: 800 clamp(32px, 4vw, 42px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.buy-price small { font: 700 16px var(--f-body); -webkit-text-fill-color: var(--muted); color: var(--muted); margin-left: 6px; }
.buy-note { margin: -8px 0 0; color: var(--muted); font-size: 14px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 560px; margin-top: 18px; border-top: 1px solid var(--edge); }
.fact { padding: 14px 0; border-bottom: 1px solid var(--edge); }
.fact:nth-child(odd) { padding-right: 16px; }
.fact span { display: block; font-size: 13px; color: var(--faint); font-weight: 600; }
.fact b { font-size: 15px; }
.note { max-width: 560px; margin-top: 14px; padding: 12px 16px; border-radius: var(--r-sm); background: rgba(255, 197, 77, .10); border: 1px solid rgba(255, 197, 77, .28); color: #ffe2a6; font-size: 14px; }
.game-links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- подписки ---------- */
.subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.subs-ea { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.sub { padding: 22px; display: grid; gap: 16px; }
.sub header { display: grid; gap: 6px; }
.sub-kind { font-size: 13px; font-weight: 700; color: var(--faint); }
.sub h3 { margin: 0; font: 700 22px/1.2 var(--f-display); }
.sub header p { margin: 0; color: var(--muted); font-size: 14px; }
.sub-rows { display: grid; gap: 8px; }
.sub-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--edge); background: rgba(14, 12, 42, .55); }
.sub-row b { font-size: 15px; }
.sub-row .btn { grid-column: 1 / -1; }
.sub-price { font: 700 19px/1.1 var(--f-display); text-align: right; }
.sub-price small { font: 600 12px var(--f-body); color: var(--muted); margin-left: 4px; }
.sub-row.is-best { border: 1.5px solid transparent; background: linear-gradient(#17134a, #120f38) padding-box, var(--grad) border-box; box-shadow: 0 10px 30px rgba(110, 80, 255, .25); }
.sub-row.is-best .sub-price { font-size: 23px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub-row.is-best .sub-price small { -webkit-text-fill-color: var(--muted); }
.best-pill { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.ea-games ul { margin: 0; padding: 0; list-style: none; columns: 2 200px; column-gap: 24px; font-size: 14px; color: var(--muted); }
.ea-games li { padding: 4px 0; break-inside: avoid; }

/* ---------- гарантии и установка ---------- */
.gcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gcard { padding: 20px; display: grid; gap: 10px; align-content: start; }
.gcard h3 { margin: 0; font: 700 17px/1.25 var(--f-display); }
.gcard p { margin: 0; color: var(--muted); font-size: 14px; }
.isteps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 860px; }
.istep { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 20px 22px; align-items: start; }
.istep > b { font: 800 46px/1 var(--f-display); }
.istep h3 { margin: 4px 0 6px; font: 700 19px/1.25 var(--f-display); }
.istep p { margin: 0; color: var(--muted); max-width: 60ch; }

/* ---------- отзывы ---------- */
.shelf.revs { grid-auto-columns: minmax(300px, 360px); }
.rev { padding: 20px; display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
.rev-text { margin: 0; font-size: 15px; line-height: 1.55; color: #e4e0ff; }
.rev-text::before { content: "“"; display: block; font: 800 40px/0.6 var(--f-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.rev-text.is-clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rev footer { display: flex; gap: 12px; align-items: center; }
.rev footer > span:nth-child(2) { display: grid; min-width: 0; }
.rev footer b { font-size: 15px; }
.rev footer small { color: var(--faint); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rev-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font: 800 16px var(--f-display); color: #fff; flex: none; }
.rev-src { margin-left: auto; color: var(--faint); font-size: 20px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.rev-src:hover { color: var(--text); background: rgba(120, 100, 255, .16); }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 26px; align-items: start; }

/* ---------- аренда ---------- */
.rent-cta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.incl { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.incl li { display: flex; gap: 10px; align-items: center; padding: 14px 16px; font-size: 15px; font-weight: 600; }
.incl svg { color: var(--ok); font-size: 20px; }
.rent-list { display: grid; gap: 12px; max-width: 860px; }
.rent-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 24px; }
.rent-days { display: flex; align-items: baseline; gap: 8px; }
.rent-days b { font: 800 52px/1 var(--f-display); }
.rent-days span { color: #c9c2ff; font-weight: 700; }
.rent-price { font: 800 28px/1 var(--f-display); }
.rent-price small { font: 700 14px var(--f-body); color: #8fd8ff; margin-left: 6px; }
.rent-save { display: grid; gap: 6px; justify-items: end; font-size: 14px; }
.save-pill { padding: 6px 14px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.book { max-width: 860px; text-align: center; padding: 26px; display: grid; gap: 8px; }
.book p { margin: 0; color: var(--muted); }
.book .big-num { font-size: clamp(44px, 7vw, 72px); }
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; max-width: 860px; }
.steps li { display: flex; gap: 16px; align-items: center; padding: 16px 20px; font-weight: 600; }
.steps b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font: 800 16px var(--f-display); flex: none; }

/* ---------- корзина ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(3, 2, 14, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.drawer {
  position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: linear-gradient(180deg, #151138, #0b0924); border-left: 1px solid var(--edge);
  display: flex; flex-direction: column; transform: translateX(102%); transition: transform .3s var(--ease);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--edge); }
.drawer-head h2 { margin: 0; font: 700 20px var(--f-display); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 28px; overscroll-behavior: contain; }
.line { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--edge); }
.line .ph { display: grid; place-items: center; font: 800 14px var(--f-display); color: #d6d0ff; border: 1px solid var(--edge); }
.line img, .line .ph { width: 54px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--deep); }
.line b { display: block; font-size: 14px; line-height: 1.3; }
.line span { font-size: 13px; color: var(--muted); }
.line-price { font: 700 15px var(--f-display); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.line-rm { font-size: 13px; color: var(--faint); margin-top: 4px; }
.line-rm:hover { color: var(--sale); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; font-weight: 700; }
.total b { font: 800 26px var(--f-display); }
.form { display: grid; gap: 14px; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; height: 48px; border-radius: var(--r-sm); border: 1px solid var(--edge); background: rgba(20, 17, 56, .7); padding: 0 14px; outline: none; }
.field input:focus { border-color: var(--edge-hi); }
.field input[aria-invalid="true"] { border-color: var(--sale); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; height: 48px; border-radius: var(--r-sm); border: 1px solid var(--edge); background: rgba(20, 17, 56, .7); font-weight: 700; cursor: pointer; }
.seg input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.err { font-size: 13px; color: var(--sale); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cart-empty { text-align: center; padding: 56px 8px; display: grid; gap: 14px; justify-items: center; color: var(--muted); }
.done { display: grid; gap: 14px; padding: 20px 0; }
.done h3 { margin: 0; font: 700 22px var(--f-display); }
.done p { margin: 0; color: var(--muted); }

/* ---------- уведомление ---------- */
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: #f2efff; color: #120f33; font-weight: 700; font-size: 15px; transition: .25s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- подвал ---------- */
.foot { margin-top: 80px; border-top: 1px solid var(--edge); background: rgba(8, 6, 26, .7); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot-in { display: grid; grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 30px; }
.foot p { color: var(--muted); font-size: 14px; margin: 12px 0 0; max-width: 30em; }
.foot h3 { font: 700 15px var(--f-display); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.foot ul a { color: var(--muted); }
.foot ul a:hover { color: var(--text); }
.foot-note { font-size: 13px; color: var(--faint); padding-bottom: 28px; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) { .gcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .subs, .subs-ea { grid-template-columns: 1fr; }
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rent-row { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 8px 14px; }
  .rent-days b { font-size: 40px; }
  .rent-price { font-size: 22px; text-align: right; }
  .rent-save { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .incl { grid-template-columns: 1fr; }
  .gcards { grid-template-columns: 1fr; }
  .istep { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; }
  .istep > b { font-size: 34px; }
  .top-in { height: 62px; gap: 10px; }
  .search { display: none; position: absolute; left: 0; right: 0; top: 62px; width: auto; padding: 10px var(--gut-r) 12px var(--gut); background: rgba(7, 6, 26, .96); border-bottom: 1px solid var(--edge); }
  .search.is-open { display: block; }
  .search svg { left: calc(var(--gut) + 15px); }
  .search-open { display: grid; }
  .brand b { font-size: 15px; }
  .hero::after { background: linear-gradient(180deg, rgba(9, 7, 32, .55) 0%, rgba(9, 7, 32, .92) 45%, rgba(9, 7, 32, .97) 100%); }
  .hero-in { grid-template-columns: 1fr; gap: 20px; padding: 22px 18px 24px; }
  .hero-art { order: -1; justify-self: start; width: 140px; }
  .pad { left: auto; right: -122%; bottom: 8%; width: 108%; }
  .hero-sub { font-size: 15px; }
  .timer { gap: 8px; }
  .timer-cell { padding: 12px 4px 10px; border-radius: 14px; }
  .timer-cell span { font-size: 12px; }
  .hero-buy .btn { flex: 1 1 auto; }
  .sec { margin-top: 44px; }
  .shelf { grid-auto-columns: 148px; gap: 12px; margin-right: calc(-1 * var(--gut-r)); padding-right: var(--gut-r); }
  .perks { gap: 10px; }
  .perk { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .promo { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut-r)) 0 calc(-1 * var(--gut)); padding: 2px var(--gut-r) 2px var(--gut); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .game-in { grid-template-columns: 1fr; padding-top: 18px; }
  .game-cover { max-width: 240px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .buy-actions { grid-template-columns: 1fr; }
  .brand b { display: none; }
}
@media (max-width: 760px) {
  .shelf.revs { grid-auto-columns: 86%; gap: 12px; }
  .rev { padding: 18px; }
  .rev-text { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
