/* ──────────────────────────────────────────────────────────────
   ИГРОСКЛАД — каталог PS · стили
   Палитра: жёлтый бренд #F7C911 + чёрный + белый + нейтрали
   Шрифты: Inter (текст), Press Start 2P (пиксельные акценты)
   ────────────────────────────────────────────────────────────── */

:root{
  --y: #F7C911;
  --y-grad: linear-gradient(180deg, #FFB200 0%, #F7D917 100%);
  --y-soft: #FFF6CF;
  --y-tint: #FFFBEC;
  --k: #000;
  --k-2: #1a1a1a;
  --w: #fff;
  --n-50: #fafafa;
  --n-100: #f3f3f3;
  --n-150: #ececec;
  --n-200: #e6e6e6;
  --n-300: #cfcfcf;
  --n-500: #808080;
  --n-700: #4a4a4a;
  --red: #E63946;
  --green: #0aa55b;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-1: 0 1px 4px rgba(0,0,0,.08);
  --shadow-2: 0 4px 18px rgba(0,0,0,.10);
  --shadow-3: 0 10px 40px rgba(0,0,0,.18);
  --container: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body{
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--k);
  background: var(--w);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}
img, svg { display:block; max-width:100%; }
button{ font: inherit; color: inherit; background:none; border:0; padding:0; cursor:pointer; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
input, select, textarea{ font: inherit; color: inherit; }

.pixel{ font-family: 'Press Start 2P', monospace; letter-spacing:.02em; }

/* ============== Header ============== */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: var(--w);
  border-bottom: 1px solid var(--n-150);
}
.topbar{
  background: var(--k);
  color: var(--w);
  font-size: 12px;
}
.topbar__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.topbar__item{ display: inline-flex; align-items: center; gap: 8px; color: #ddd; }
.topbar__item--accent{ color: var(--y); font-weight: 600; }
.topbar__item:hover{ color: var(--y); }
.topbar__sep{ width:1px; height:14px; background: #333; }
.topbar__contacts{ margin-left: auto; display: inline-flex; gap: 16px; align-items: center; }

.header-main{
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.logo-block{ display: inline-flex; align-items: center; gap: 14px; }
.logo-svg{ width: 180px; height: auto; color: var(--k); }
.logo-svg path{ fill: var(--k); }
.logo-tag{
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--k);
  background: var(--y);
  padding: 4px 6px;
  border: 2px solid var(--k);
  letter-spacing: .05em;
  line-height: 1;
}

.searchbar{
  position: relative;             /* якорь для выпадающих подсказок */
  display: flex; align-items: center;
  background: var(--n-100);
  border-radius: 14px;
  padding: 0 16px;
  height: 50px;
  border: 2px solid transparent;
  transition: border-color .15s;
}
.searchbar:focus-within{ border-color: var(--k); background: var(--w); }
.searchbar > svg{ flex: 0 0 22px; color: var(--k); }   /* только лупа слева; иконка в .searchbar__filters наследует свой цвет */
.searchbar input{
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  padding: 0 12px; height: 100%;
  font-size: 15px;
}
.searchbar__filters{
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--k);
  color: var(--y);
  display: inline-flex; align-items: center; justify-content: center;
}

/* Кнопка «×» очистки запроса (появляется когда поле непустое) */
.searchbar__clear{
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; color: var(--n-600);
  background: transparent;
  transition: background .12s, color .12s;
}
.searchbar__clear:hover{ background: var(--n-200); color: var(--k); }

/* Живые подсказки под поисковой строкой */
.search-sugg{
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: var(--w);
  border: 1px solid var(--n-200);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  padding: 6px;
  max-height: 460px; overflow-y: auto;
  z-index: 60;
  display: flex; flex-direction: column; gap: 2px;
}
.search-sugg__item{
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background .1s;
}
.search-sugg__item:hover{ background: var(--n-100); }
.search-sugg__cover{
  width: 40px; height: 40px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--w); font-weight: 800; font-size: 18px;
  text-transform: uppercase;
  overflow: hidden;
  flex-shrink: 0;
}
.search-sugg__cover img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.search-sugg__body{ display: flex; flex-direction: column; min-width: 0; }
.search-sugg__title{
  font-weight: 600; font-size: 14px; color: var(--k);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-sugg__meta{ font-size: 12px; color: var(--n-600); }
.search-sugg__price{
  font-weight: 700; font-size: 14px; color: var(--k); white-space: nowrap;
}
.search-sugg__all{
  margin-top: 2px;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  color: var(--k);
  background: var(--n-100);
  transition: background .12s;
}
.search-sugg__all:hover{ background: var(--y); }

.header-actions{ display: inline-flex; align-items: center; gap: 12px; }
.header-btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--n-100);
  font-weight: 500;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.header-btn:hover{ background: var(--k); color: var(--y); }
.header-btn--cart{ background: var(--y); color: var(--k); font-weight: 700; }
.header-btn--cart:hover{ background: var(--k); color: var(--y); }

/* PS Plus — фирменно-синяя «акционная» кнопка, выделяется из ряда */
.header-btn--psplus{
  background: linear-gradient(135deg, #0070cc 0%, #00a3ff 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 10px 16px 10px 12px;
  box-shadow: 0 4px 14px rgba(0, 115, 204, 0.35);
  transition: background .18s, box-shadow .18s, transform .18s;
}
.header-btn--psplus::before{
  content: '+';
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff; color: #0070cc;
  font-weight: 900; font-size: 15px; line-height: 1;
  margin-right: 4px;
}
.header-btn--psplus:hover{
  background: linear-gradient(135deg, #0080e6 0%, #1fb8ff 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 115, 204, 0.5);
  transform: translateY(-1px);
}
.header-btn__count{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px;
  background: var(--k);
  color: var(--y);
  font-size: 12px;
  font-weight: 700;
}
.header-btn--cart .header-btn__count{ background: var(--w); color: var(--k); }

/* Платформа-свитч PS4/PS5 */
.platform-row{
  background: var(--n-100);
  border-bottom: 1px solid var(--n-150);
}
.platform-row__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex; align-items: center; gap: 18px;
}
.platform-row__label{ font-size: 13px; color: var(--n-500); font-weight: 500; }
.platform-switch{
  display: inline-flex; gap: 4px;
  background: var(--w);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--n-200);
}
.platform-switch__btn{
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--n-500);
}
.platform-switch__btn--active{
  background: var(--k);
  color: var(--y);
}
.platform-row__hint{ font-size: 12px; color: var(--n-500); margin-left: auto; }

/* ============== Hero ============== */
.hero{
  position: relative;
  overflow: hidden;
  background: var(--w);
}
.hero--compact .hero__inner{
  padding: 20px 24px 24px;
  grid-template-columns: 1.5fr .9fr;
  gap: 20px;
  align-items: stretch;
}
.hero__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 56px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: stretch;
}
.hero__main{
  position: relative;
  background: var(--k);
  color: var(--w);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 220px;
  isolation: isolate;
}
.hero__main-text{ display: flex; flex-direction: column; gap: 12px; max-width: 540px; }
.hero__bg-sun{
  position: absolute;
  left: -160px; top: -120px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFB200, #F7D917 50%, rgba(247,217,23,0));
  filter: blur(2px);
  z-index: -1;
}
.hero__bg-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(247,201,17,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,201,17,.08) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: -1;
  mask-image: radial-gradient(ellipse at 50% 50%, black, transparent 70%);
}
.hero__eyebrow{
  display: inline-flex; gap: 8px; align-items: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--y);
  padding: 6px 8px;
  border: 1.5px solid var(--y);
  width: max-content;
  letter-spacing: .1em;
}
.hero__h1{
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__sub{
  font-size: 14px;
  color: #cfcfcf;
  margin: 0;
}
.hero__cta{
  display: inline-flex; gap: 10px; flex-wrap: wrap;
  margin-top: 4px;
}
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .12s, background .15s, color .15s;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn--primary{ background: var(--y); color: var(--k); }
.btn--primary:hover{ background: #ffd923; }
.btn--dark{ background: var(--k); color: var(--y); }
.btn--ghost{ background: transparent; color: var(--w); border: 2px solid #333; }
.btn--ghost:hover{ background: #1a1a1a; }
.btn--block{ width: 100%; justify-content: center; }
.btn--lg{ height: 60px; font-size: 17px; padding: 0 28px; }
.btn--sm{ height: 40px; font-size: 13px; padding: 0 14px; }

.hero__stats{
  display: flex; gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed #333;
}
.hero__stat{ display: flex; flex-direction: column; gap: 4px; }
.hero__stat-n{ font-family: 'Press Start 2P', monospace; font-size: 18px; color: var(--y); }
.hero__stat-l{ font-size: 12px; color: #aaa; }

/* Compact hero girl mini-block */
.hero__girl-mini{
  position: relative;
  width: 200px; height: 100%; min-height: 200px;
  background: var(--y);
  border-radius: 14px;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  flex-shrink: 0;
}
.hero__girl-mini::before{
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 8px, rgba(0,0,0,.05) 8px, rgba(0,0,0,.05) 9px),
    repeating-linear-gradient(90deg, transparent 0, transparent 8px, rgba(0,0,0,.05) 8px, rgba(0,0,0,.05) 9px);
}
.hero__girl-mini .hero__girl{
  position: relative;
  height: 100%;
  max-height: none;                         /* перебиваем 360px из общего правила .hero__girl */
  width: auto;
  object-fit: contain;
  object-position: bottom center;            /* «феи» всегда у нижнего края */
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.16));
  animation: float 6s ease-in-out infinite;
  /* мягкое затухание низа в жёлтый — маскирует обрезанный край исходного PNG */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

/* Hero side: video + girl (legacy/full) */
.hero__side{
  position: relative;
  display: grid;
  grid-template-rows: 1.2fr 1fr;
  gap: 20px;
}
.hero__video{
  position: relative;
  background: var(--y);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 220px;
  cursor: pointer;
  display: block;
  border: 0;
  width: 100%;
  padding: 0;
  color: var(--k);
  text-align: left;
}
.hero__video-eyebrow{
  position: absolute; left: 20px; top: 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--k);
  letter-spacing: .1em;
  z-index: 2;
}
.hero__video-poster{
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(0,0,0,.15), transparent 50%),
    linear-gradient(135deg, #FFB200 0%, #F7D917 60%, #FFE055 100%);
}
.hero__video-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero__video-play{
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--k);
  color: var(--y);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .15s;
}
.hero__video:hover .hero__video-play{ transform: translate(-50%, -50%) scale(1.08); }
.hero__video-label{
  position: absolute; left: 20px; bottom: 16px;
  background: var(--k); color: var(--w);
  font-size: 12px; font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex; gap: 6px; align-items: center;
}
.hero__video-label::before{
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s infinite;
}
@keyframes pulse{
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.hero__girl-block{
  position: relative;
  background: var(--y);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 220px;
}
.hero__girl-block::before{
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 7px, rgba(0,0,0,.04) 7px, rgba(0,0,0,.04) 8px),
    repeating-linear-gradient(90deg, transparent 0, transparent 7px, rgba(0,0,0,.04) 7px, rgba(0,0,0,.04) 8px);
}
.hero__girl-block .hero__girl, .hero__girl{
  position: relative;
  height: 110%;
  max-height: 360px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));
  animation: float 6s ease-in-out infinite;
}
@keyframes float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}
.hero__coin{
  position: absolute;
  width: 18px; height: 18px;
  background: var(--k);
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: var(--y);
  display: inline-flex; align-items: center; justify-content: center;
  animation: coin 4s ease-in-out infinite;
}
.hero__coin--1{ left: 14%; top: 18%; animation-delay: 0s; }
.hero__coin--2{ right: 18%; top: 22%; animation-delay: .6s; }
.hero__coin--3{ left: 12%; bottom: 22%; animation-delay: 1.2s; }
.hero__coin--4{ right: 12%; bottom: 26%; animation-delay: 1.8s; }
@keyframes coin{
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(45deg); }
}

/* ============== Trust strip ============== */
.trust-strip{
  background: var(--k);
  color: var(--w);
  overflow: hidden;
}
.trust-strip__track{
  display: flex; gap: 64px;
  padding: 14px 0;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}
.trust-strip__item{
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px;
  color: var(--y);
}
.trust-strip__item span{ color: var(--w); font-weight: 400; font-size: 13px; }
@keyframes marquee{
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============== Category strip (horizontal) ============== */
.cat-strip{
  background: var(--w);
  border-bottom: 1px solid var(--n-150);
}
.cat-strip__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-strip__inner::-webkit-scrollbar{ display: none; }
.cat-pill{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--n-100);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.cat-pill:hover{ background: var(--n-200); }
.cat-pill--active{ background: var(--k); color: var(--y); }
.cat-pill--active .cat-pill__icon{ background: var(--y); }
.cat-pill__icon{
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--w);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ============== Catalog preset tabs ============== */
.catalog__preset-tabs{
  display: flex; gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--n-150);
  overflow-x: auto;
  scrollbar-width: none;
}
.catalog__preset-tabs::-webkit-scrollbar{ display: none; }
.preset-tab{
  padding: 12px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--n-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s;
}
.preset-tab:hover{ color: var(--k); }
.preset-tab--active{
  color: var(--k);
  border-bottom-color: var(--y);
}
.preset-tab__count{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 18px; padding: 0 6px;
  border-radius: 9px;
  background: var(--n-150);
  color: var(--n-700);
  font-size: 11px; font-weight: 700;
}
.preset-tab--active .preset-tab__count{
  background: var(--y); color: var(--k);
}
.section{
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px;
}
.section--tight{ padding: 32px 24px; }
.section-head{
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 24px; gap: 16px;
}
.section-head h2{
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}
.section-head__sub{ color: var(--n-500); font-size: 14px; margin-top: 6px; }
.section-head__link{ display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--k); font-size: 14px; }
.section-head__link:hover{ color: var(--y); }

.categories-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.cat-tile{
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  padding: 22px 12px 18px;
  border-radius: var(--r-md);
  background: var(--n-100);
  transition: background .15s, transform .12s;
  text-align: center;
  border: 2px solid transparent;
}
.cat-tile:hover{
  background: var(--y);
  transform: translateY(-2px);
}
.cat-tile__icon{
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
}
.cat-tile__title{ font-weight: 700; font-size: 14px; }

/* ============== Shelf (карусель карточек) ============== */
.shelf{ margin-bottom: 16px; }
.shelf-row{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.card{
  position: relative;
  background: var(--w);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--n-150);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  cursor: pointer;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--k);
}
.card__cover{
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--n-100);
}
.card__cover svg{ width:100%; height:100%; }
.card__badges{
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: space-between;
  pointer-events: none;
}
.card__badges-right{ display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.badge{
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .02em;
}
.badge--sale{ background: var(--y); color: var(--k); }
.badge--psplus{ background: var(--w); color: var(--k); }
.badge--psplus-deluxe{ background: var(--k); color: var(--y); }
.badge--ea{ background: var(--red); color: var(--w); }
.badge--new{ background: var(--k); color: var(--y); }
.badge--platform{ background: rgba(0,0,0,.7); color: var(--w); backdrop-filter: blur(4px); }

.card__fav{
  position: absolute; right: 10px; bottom: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform .12s, background .15s;
}
.card__fav:hover{ background: var(--y); transform: scale(1.08); }
.card__fav svg{ width: 18px; height: 18px; }

.card__body{
  padding: 14px;
  display: flex; flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card__title{
  font-weight: 700; font-size: 15px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.card__meta{
  display: flex; gap: 8px; align-items: center;
  font-size: 11px; color: var(--n-500); font-weight: 500;
}
.card__meta-age{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 18px; padding: 0 4px;
  border-radius: 4px;
  border: 1px solid var(--n-300);
  font-size: 10px; font-weight: 700;
  color: var(--n-700);
}
.card__price-row{
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; margin-top: auto;
}
.card__price{
  font-weight: 800; font-size: 20px;
  letter-spacing: -0.01em;
}
.card__price-old{ color: var(--n-500); text-decoration: line-through; font-size: 13px; font-weight: 500; }
.card__price-region{ font-size: 11px; color: var(--n-500); font-weight: 500; }
.card__regions{
  display: flex; gap: 4px;
  font-size: 11px;
  margin-top: 2px;
}
.card__region-chip{
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--n-100);
  color: var(--n-700);
  font-weight: 600;
}
.card__region-chip strong{ color: var(--k); font-weight: 700; }
.card__buy{
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px;
  border-radius: 10px;
  background: var(--y);
  color: var(--k);
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
  transition: background .15s, color .15s;
}
.card__buy:hover{ background: var(--k); color: var(--y); }
.card__buy--in-cart{ background: var(--k); color: var(--y); }

/* Cover keeps clean — no inner title (we show it under). Hide platform stamp on small variants. */
.card__cover svg text{ display: none; }
/* Card extended layout */
.card--extended .card__cover{ aspect-ratio: 16 / 11; }
.card--extended .card__title{ font-size: 17px; min-height: 0; -webkit-line-clamp: 1; }
.card--extended .card__regions{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }

/* ============== Featured ============== */
.section--featured{
  padding: 24px 24px 0;
  max-width: var(--container);
  margin: 0 auto;
}
.featured-slide{
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 32px 36px;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--w);
  cursor: pointer;
}
.featured-slide__bg{
  position: absolute; inset: 0;
  z-index: 0;
}
.featured-slide__bg::after{
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.4) 100%);
}
.featured-slide__inner{ position: relative; z-index: 1; max-width: 560px; }
.featured-slide__meta{
  display: flex; gap: 8px; align-items: center;
  font-size: 13px;
  margin-bottom: 14px;
  color: #ddd;
  flex-wrap: wrap;
}
.featured-slide__price-row{
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 18px;
}
.featured-slide__price-label{ font-size: 13px; color: #aaa; }
.featured-slide__price{
  font-family: 'Press Start 2P', monospace;
  font-size: 22px;
  color: var(--y);
}
.featured-slide{
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 40px;
  min-height: 360px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--w);
}
.featured-slide__bg{
  position: absolute; inset: 0;
  z-index: 0;
}
.featured-slide__bg::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.78) 100%);
}
.featured-slide__inner{ position: relative; z-index: 1; max-width: 60%; }
.featured-slide__eyebrow{
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--y);
  margin-bottom: 14px;
  letter-spacing: .1em;
}
.featured-slide__title{
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.featured-slide__sub{ font-size: 15px; color: #ddd; margin-bottom: 18px; max-width: 460px; }
.featured-slide__cta{ display: inline-flex; gap: 12px; }

.featured-slide__sale{
  position: absolute; right: 28px; top: 24px;
  background: var(--y);
  color: var(--k);
  font-weight: 800;
  font-size: 22px;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 2;
  transform: rotate(-2deg);
}
.featured-slide__sale small{ display: block; font-size: 10px; font-weight: 600; }

/* ============== Catalog layout ============== */
.catalog{
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 64px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
.catalog__sidebar{
  position: sticky; top: 96px;
  background: var(--w);
  border: 1px solid var(--n-150);
  border-radius: var(--r-md);
  padding: 18px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.catalog__sidebar h3{
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--n-500);
  margin: 0 0 12px;
}
.filter-group{
  border-bottom: 1px solid var(--n-150);
  padding: 16px 0;
}
.filter-group:first-child{ padding-top: 0; }
.filter-group:last-child{ border-bottom: 0; }
.filter-group h3{ margin-bottom: 10px; }
.filter-list{ display: flex; flex-direction: column; gap: 8px; }
.filter-list label{
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 14px;
  padding: 4px 0;
}
.filter-list input[type=checkbox]{ accent-color: var(--k); width: 16px; height: 16px; }
.filter-list .count{ margin-left: auto; color: var(--n-500); font-size: 12px; }

.catalog__main{ min-width: 0; }
.catalog__top{
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-bottom: 22px;
}
.catalog__title{
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}
.catalog__count{ color: var(--n-500); font-size: 14px; margin-left: 8px; font-weight: 500; }
.catalog__sort{ margin-left: auto; display: inline-flex; gap: 12px; align-items: center; }
.select{
  height: 42px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--n-200);
  border-radius: 10px;
  background: var(--w) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>") no-repeat right 12px center;
  appearance: none;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
}
.view-toggle{
  display: inline-flex; gap: 4px;
  background: var(--n-100);
  border-radius: 10px;
  padding: 4px;
}
.view-toggle button{
  width: 36px; height: 34px;
  border-radius: 7px;
  color: var(--n-500);
  display: inline-flex; align-items: center; justify-content: center;
}
.view-toggle button.is-active{ background: var(--k); color: var(--y); }

.chip-row{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--n-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.chip button{
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--k); color: var(--y);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.chip-clear{ background: var(--y); font-weight: 700; }

.catalog__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.catalog__grid--list{ grid-template-columns: 1fr; }
.catalog__grid--list .card{ flex-direction: row; }
.catalog__grid--list .card__cover{ width: 160px; aspect-ratio: 3 / 4; flex-shrink: 0; }
.catalog__grid--list .card__body{ padding: 18px 22px; flex-direction: row; gap: 24px; align-items: center; flex-wrap: wrap; }
.catalog__grid--list .card__title-block{ flex: 1; min-width: 240px; }
.catalog__grid--list .card__buy{ margin-top: 0; width: 140px; }

/* ============== Game modal ============== */
.modal-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px;
  overflow-y: auto;
  animation: fadeIn .2s;
}
@keyframes fadeIn{ from{ opacity: 0; } to{ opacity: 1; } }
.modal{
  background: var(--w);
  border-radius: var(--r-lg);
  width: 100%; max-width: 1080px;
  overflow: hidden;
  margin: auto;
  animation: slideUp .25s ease-out;
}
@keyframes slideUp{ from{ transform: translateY(20px); opacity: 0; } to{ transform: translateY(0); opacity: 1; } }

.modal__close{
  position: absolute; right: 28px; top: 28px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--w);
  z-index: 5;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-2);
}
.modal__close:hover{ background: var(--k); color: var(--y); }

.modal__variant-tabs{
  display: flex; gap: 0;
  border-bottom: 1px solid var(--n-150);
  padding: 12px 24px 0;
  background: var(--n-50);
}
.modal__variant-tab{
  padding: 12px 18px;
  font-size: 13px; font-weight: 600;
  color: var(--n-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.modal__variant-tab.is-active{
  color: var(--k);
  border-bottom-color: var(--y);
}
.modal__variant-tab span{
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  background: var(--n-150);
  color: var(--n-700);
  vertical-align: middle;
}
.modal__variant-tab.is-active span{ background: var(--y); color: var(--k); }

/* Variant A — компактный */
.modal-a{ display: grid; grid-template-columns: 380px 1fr; gap: 0; }
.modal-a__cover{
  position: relative;
  min-height: 100%;            /* растягиваем на всю высоту модалки (grid stretch) */
  overflow: hidden;
  background: var(--n-100);
}
.modal-a__cover svg{ width: 100%; height: 100%; }
.modal-a__body{ padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.modal-a__head{ display: flex; flex-direction: column; gap: 8px; }
.modal-a__platform{
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 12px; color: var(--n-500); font-weight: 600;
}
.modal-a__title{
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.modal-a__badges{ display: flex; gap: 8px; flex-wrap: wrap; }
.modal-a__regions{
  display: flex; gap: 0;
  background: var(--n-100);
  border-radius: 10px;
  padding: 4px;
}
.modal-a__region-tab{
  flex: 1;
  padding: 10px 14px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.modal-a__region-tab.is-active{ background: var(--w); box-shadow: var(--shadow-1); }
.modal-a__price-block{
  background: var(--n-50);
  border-radius: 14px;
  padding: 20px;
}
.modal-a__price-main{
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.modal-a__price-now{
  font-size: 36px; font-weight: 800;
  letter-spacing: -0.02em;
}
.modal-a__price-was{ color: var(--n-500); text-decoration: line-through; font-size: 17px; font-weight: 500; }
.modal-a__price-original{ font-size: 13px; color: var(--n-500); margin-top: 6px; }
.modal-a__bonus{
  background: var(--y-tint);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 12px;
  display: flex; gap: 8px; align-items: center;
}
.modal-a__bonus svg{ flex-shrink: 0; }
.modal-a__actions{ display: flex; gap: 10px; margin-top: auto; }
.modal-a__actions .btn{ flex: 1; }

.modal-a__specs{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.modal-a__spec{
  display: flex; justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--n-150);
}
.modal-a__spec-l{ color: var(--n-500); }
.modal-a__spec-v{ font-weight: 600; }

/* Variant B — расширенный с регионами разложенными — НЕ рендерится, оставлено в CSS на будущее */
.modal__variant-tabs{ display: none; }
.modal-b{ display: none; }

/* Modal description block */
.modal-a__desc{
  background: var(--n-50);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 4px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.modal-a__desc h4{
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--n-500);
  margin: 0;
}
.modal-a__desc p{
  font-size: 14px;
  line-height: 1.55;
  color: var(--k);
  margin: 0;
  text-wrap: pretty;
}
.modal-a__desc-note{
  font-size: 12px !important;
  color: var(--n-500) !important;
  padding-top: 10px;
  border-top: 1px dashed var(--n-200);
}

.modal-b{ padding: 0; }
.modal-b__hero{
  position: relative;
  height: 300px;
  overflow: hidden;
}
.modal-b__hero svg{ width: 100%; height: 100%; }
.modal-b__hero::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7));
}
.modal-b__hero-text{
  position: absolute; left: 36px; bottom: 24px; right: 100px;
  color: var(--w); z-index: 2;
}
.modal-b__hero-text h2{
  font-size: 36px; font-weight: 800; margin: 0;
  letter-spacing: -0.02em; line-height: 1.1;
}
.modal-b__hero-meta{
  display: flex; gap: 12px; margin-top: 8px;
  font-size: 14px; color: #ddd; flex-wrap: wrap;
}
.modal-b__hero-meta strong{ color: var(--y); }
.modal-b__hero-badges{
  position: absolute; right: 36px; top: 24px;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  z-index: 2;
}
.modal-b__body{
  padding: 32px 36px 36px;
}
.modal-b__h{
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  color: var(--n-500); letter-spacing: .08em;
  margin: 0 0 14px;
}
.modal-b__regions{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.region-card{
  position: relative;
  background: var(--n-50);
  border: 2px solid var(--n-150);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, transform .12s;
  cursor: pointer;
}
.region-card:hover{ border-color: var(--k); transform: translateY(-2px); }
.region-card--best{
  border-color: var(--y);
  background: var(--y-tint);
}
.region-card--best::before{
  content: 'Лучшая цена';
  position: absolute; right: 12px; top: -10px;
  background: var(--y);
  color: var(--k);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .04em;
}
.region-card__head{ display: flex; gap: 8px; align-items: center; }
.region-card__flag{ font-size: 22px; line-height: 1; }
.region-card__name{ font-weight: 700; font-size: 16px; }
.region-card__price{
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.02em;
}
.region-card__price-was{ color: var(--n-500); text-decoration: line-through; font-size: 14px; font-weight: 500; margin-left: 6px; }
.region-card__orig{ font-size: 12px; color: var(--n-500); }
.region-card__bonus{
  font-size: 12px;
  color: var(--n-700);
  padding-top: 8px;
  border-top: 1px dashed var(--n-200);
  margin-top: auto;
  display: flex; gap: 6px;
  align-items: flex-start;
}
.region-card__bonus svg{ flex-shrink: 0; color: var(--y); }
.region-card__btn{
  margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px;
  border-radius: 8px;
  background: var(--k);
  color: var(--y);
  font-weight: 700;
  font-size: 13px;
}
.region-card--best .region-card__btn{ background: var(--y); color: var(--k); }
.region-card__btn:hover{ background: var(--k); color: var(--y); }
.region-card--best .region-card__btn:hover{ background: var(--k); color: var(--y); }

.modal-b__specs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
  background: var(--n-50);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.modal-b__spec{ display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--n-150); }
.modal-b__spec:last-child, .modal-b__spec:nth-last-child(2){ border-bottom: 0; }
.modal-b__spec-l{ color: var(--n-500); }
.modal-b__spec-v{ font-weight: 600; }

.modal-b__desc{ font-size: 15px; line-height: 1.6; color: var(--n-700); margin-bottom: 24px; }

/* ============== Subscriptions (Figma key-art style) ============== */
.subs{
  background: var(--n-50);
  padding: 64px 0;
  border-top: 1px solid var(--n-150);
}
.subs__inner{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.subs__head{ text-align: center; margin-bottom: 28px; }
.subs__title-row{
  display: inline-flex; align-items: center; gap: 18px;
  margin-bottom: 6px;
}
.subs__glyph{ flex-shrink: 0; }
.subs__head h2{
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}
.subs__intro{ color: var(--n-500); margin: 0 auto; max-width: 600px; font-size: 14px; }

/* PS Plus / EA Play tabs */
.subs__tabs{
  display: flex; gap: 4px;
  max-width: 480px;
  margin: 0 auto 24px;
  padding: 4px;
  background: var(--w);
  border-radius: 999px;
  border: 1px solid var(--n-150);
}
.subs__tab{
  flex: 1;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  color: var(--n-500);
  transition: background .15s, color .15s;
}
.subs__tab:hover{ color: var(--k); }
.subs__tab--active{ background: var(--y); color: var(--k); }

/* Period switcher (Neucha pills with offset shadow) */
.subs__period-row{
  display: flex; gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.subs__period{
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--k);
  background: var(--w);
  border: 1.5px solid var(--k);
  transition: background .15s, transform .12s, box-shadow .12s;
  font-family: 'Neucha', 'Inter', cursive;
  letter-spacing: .04em;
  box-shadow: 0 0 0 transparent;
}
.subs__period:hover{ background: var(--n-100); }
.subs__period--active{
  background: var(--y);
  box-shadow: 3px 3px 0 var(--k);
  transform: translate(-1px, -1px);
}

/* 3-column grid of cards */
.subs__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.sub-card{
  display: flex; flex-direction: column;
  background: var(--w);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--n-150);
  transition: transform .15s, box-shadow .15s;
}
.sub-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-2); }

/* Key-art — 1:1 квадратная «обложка» тарифа */
.sub-art{
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.sub-art--split{ background: var(--w); }
.sub-art--split .sub-art__split{ position: absolute; inset: 0; }
.sub-art--split .sub-art__split-l{ position: absolute; left: 0; top: 0; bottom: 0; width: 50%; background: var(--k); }
.sub-art--split .sub-art__split-r{ position: absolute; right: 0; top: 0; bottom: 0; width: 50%; background: var(--w); }
.sub-art--yellow{ background: linear-gradient(135deg, #FFB200 0%, #F7D917 60%, #FFE055 100%); }
.sub-art--dark{ background: #131313; }

.sub-art__girl{
  position: absolute;
  right: -5%;
  bottom: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));
}
.sub-art--yellow .sub-art__girl{ right: -8%; }

.sub-art__ps-logo{
  position: absolute;
  left: 18px; top: 16px;
  width: 56px; height: auto;
  z-index: 3;
  opacity: .9;
}
.sub-art--dark .sub-art__ps-logo{ filter: brightness(0) invert(1); opacity: .85; }
.sub-art--split .sub-art__ps-logo{ filter: brightness(0) invert(1); }

.sub-art__name{
  position: absolute;
  left: 16px; right: 16px;
  bottom: 88px;
  font-family: 'Neucha', 'Inter', cursive;
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--w);
  z-index: 3;
  line-height: 1;
}
.sub-art--split .sub-art__name{
  color: var(--w);
  text-shadow: 1.5px 1.5px 0 var(--k), -1.5px -1.5px 0 var(--k), 1.5px -1.5px 0 var(--k), -1.5px 1.5px 0 var(--k);
}
.sub-art--yellow .sub-art__name{ color: var(--w); text-shadow: 2px 2px 0 rgba(0,0,0,.1); }
.sub-art--dark .sub-art__name{ color: var(--y); }

/* Period pill (Neucha) */
.sub-art__period{
  position: absolute;
  left: 16px; bottom: 18px;
  z-index: 3;
  background: var(--w);
  border: 2px solid var(--k);
  border-radius: 12px;
  padding: 8px 22px;
  font-family: 'Neucha', 'Inter', cursive;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--k);
  box-shadow: 3px 3px 0 var(--k);
}

/* Body of the card (prices + features) */
.sub-card__body{
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--w);
}
.sub-card__title{
  font-size: 22px; font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}
.sub-card__tagline{
  margin: 0; color: var(--n-500);
  font-size: 13px;
  margin-top: -8px;
}
.sub-card__prices{
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.sub-price-row{
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--n-100);
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.sub-price-row:hover{
  background: var(--w);
  border-color: var(--k);
}
.sub-price-row__flag{ font-size: 22px; line-height: 1; }
.sub-price-row__name{ font-weight: 600; font-size: 14px; flex: 1; }
.sub-price-row__price{ font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }

/* Collapsible "Что входит в ..." */
.sub-card__expand{
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--n-50);
  border: 1px solid var(--n-150);
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--k);
  margin-top: 4px;
  transition: background .15s;
  cursor: pointer;
}
.sub-card__expand:hover{ background: var(--n-100); }
.sub-card__expand-q{
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--y);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  border: 1px solid var(--k);
  flex-shrink: 0;
}
.sub-card__expand-chev{
  margin-left: auto;
  transition: transform .2s;
  display: inline-flex;
}
.sub-card__expand-chev.is-open{ transform: rotate(180deg); }

.sub-card__features{
  display: flex; flex-direction: column; gap: 8px;
  padding: 4px 4px 8px;
  margin: 0;
  list-style: none;
}
.sub-card__features li{
  display: flex; gap: 8px;
  font-size: 13px; color: var(--n-700);
  align-items: flex-start;
}
.sub-card__features li svg{ color: var(--green); margin-top: 2px; flex-shrink: 0; }

/* EA Play block */
.ea-block{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--w);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--n-150);
}
.ea-block__banner{
  background: linear-gradient(135deg, #0a0e2e 0%, #1a1e4f 50%, #4a1e2e 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  min-height: 380px;
}
.ea-block__banner img{
  max-width: 100%;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.4));
}
.ea-block__content{ padding: 32px 36px; display: flex; flex-direction: column; gap: 16px; }
.ea-block__head h3{ font-size: 30px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.ea-block__head p{ font-size: 14px; color: var(--n-500); margin: 4px 0 0; }
.subs__period-row--ea{ margin: 8px 0 4px; justify-content: flex-start; }
.ea-block__prices{ display: flex; flex-direction: column; gap: 8px; }
.sub-card__features--ea{ padding: 12px 0 0; border-top: 1px dashed var(--n-200); margin-top: 4px; }

/* ============== Cart drawer ============== */
.drawer-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 90;
  animation: fadeIn .2s;
}
.cart-drawer{
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100%;
  background: var(--w);
  z-index: 95;
  display: flex; flex-direction: column;
  animation: slideIn .25s ease-out;
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
}
@keyframes slideIn{ from{ transform: translateX(100%); } to{ transform: translateX(0); } }
.cart-drawer__head{
  padding: 22px 24px;
  border-bottom: 1px solid var(--n-150);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-drawer__head h3{ font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.cart-drawer__close{ width: 36px; height: 36px; border-radius: 50%; background: var(--n-100); display: inline-flex; align-items: center; justify-content: center; }
.cart-drawer__close:hover{ background: var(--k); color: var(--y); }
.cart-drawer__body{ flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item{
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--n-150);
  align-items: center;
}
.cart-item__cover{
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--n-100);
}
.cart-item__cover svg{ width: 100%; height: 100%; }
.cart-item__title{ font-weight: 600; font-size: 14px; line-height: 1.3; margin: 0 0 4px; }
.cart-item__region{ font-size: 12px; color: var(--n-500); }
.cart-item__price{ font-weight: 800; font-size: 16px; text-align: right; }
.cart-item__rm{
  display: block; margin-top: 4px;
  font-size: 11px; color: var(--n-500); text-align: right;
}
.cart-item__rm:hover{ color: var(--red); }

.cart-empty{
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 24px;
  text-align: center;
  color: var(--n-500);
  gap: 16px;
}

.cart-drawer__foot{
  padding: 20px 24px;
  border-top: 1px solid var(--n-150);
  background: var(--n-50);
}
.cart-summary-row{
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.cart-summary-row--total{
  font-size: 22px; font-weight: 800;
  padding-top: 12px;
  border-top: 1px dashed var(--n-200);
  margin-top: 8px;
}
.cart-form{ display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cart-form input{
  height: 44px; padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--n-200);
  background: var(--w);
  font-size: 14px;
}
.cart-form input:focus{ outline: 2px solid var(--y); border-color: var(--k); }
.cart-form__hint{ font-size: 12px; color: var(--n-500); }

/* ============== Footer ============== */
.site-footer{
  background: var(--k);
  color: #aaa;
  padding: 56px 0 28px;
}
.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4{ color: var(--w); font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.footer-col ul{ display: flex; flex-direction: column; gap: 8px; }
.footer-col a{ font-size: 13px; }
.footer-col a:hover{ color: var(--y); }
.footer-about p{ font-size: 13px; line-height: 1.6; margin: 12px 0 0; max-width: 360px; }
.footer-bottom{
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid #1a1a1a;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: #666;
}

/* ============== Mobile bottom nav ============== */
.mobile-nav{ display: none; }

/* ============== Hide things on small screens ============== */
.only-mobile{ display: none; }

/* ──────────────────────────────────────────────────────────────
   MOBILE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1023px){
  .header-main{ grid-template-columns: 1fr auto; gap: 12px; padding: 12px 16px; }
  .searchbar{ display: none; }
  .topbar__contacts{ display: none; }
  .topbar__sep{ display: none; }
  .topbar__inner{ padding: 8px 16px; gap: 14px; }

  .hero--compact .hero__inner{ grid-template-columns: 1fr; padding: 12px 16px 14px; gap: 12px; }
  .hero--compact .hero__main{ grid-template-columns: 1fr; padding: 22px; gap: 16px; min-height: 0; }
  .hero--compact .hero__h1{ font-size: 22px; }
  .hero--compact .hero__sub{ font-size: 13px; }
  .hero--compact .hero__girl-mini{
    width: 100%; min-height: 140px; height: 140px;
    order: -1; /* image first on mobile */
  }
  .hero__video{ min-height: 140px; }
  .hero__video-label{ font-size: 11px; }
  .hero__video-eyebrow{ display: none; }

  .section--featured{ padding: 14px 16px 0; }
  .featured-slide{ padding: 22px 20px; min-height: 220px; }
  .featured-slide__inner{ max-width: 100%; }
  .featured-slide__title{ font-size: 22px; }
  .featured-slide__price{ font-size: 18px; }

  .cat-strip__inner{ padding: 10px 16px; gap: 6px; }
  .cat-pill{ padding: 6px 12px 6px 8px; font-size: 12px; }
  .cat-pill__icon{ width: 24px; height: 24px; }

  .catalog__preset-tabs{ margin-bottom: 14px; }
  .preset-tab{ padding: 10px 12px; font-size: 13px; }

  .platform-row__inner{ padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .platform-row__hint{ display: none; }

  .section{ padding: 32px 16px; }
  .section-head h2{ font-size: 24px; }

  .categories-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .cat-tile{ padding: 14px 8px; }
  .cat-tile__icon{ width: 48px; height: 48px; }
  .cat-tile__title{ font-size: 12px; }

  .shelf-row{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .catalog{
    grid-template-columns: 1fr;
    padding: 18px 16px 100px;
    gap: 16px;
  }
  .catalog__sidebar{
    position: static; max-height: none;
    display: none;
  }
  .catalog__sidebar.is-open{
    display: block;
    position: fixed; inset: 0;
    z-index: 110; overflow-y: auto;
    border-radius: 0; border: 0;
    padding-bottom: 80px;
  }
  .catalog__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .catalog__grid--list .card{ flex-direction: column; }
  .catalog__grid--list .card__cover{ width: 100%; }
  .catalog__grid--list .card__body{ flex-direction: column; padding: 14px; gap: 8px; }
  .catalog__grid--list .card__buy{ width: 100%; }

  .featured-slide{ padding: 24px; min-height: 280px; }
  .featured-slide__inner{ max-width: 100%; }
  .featured-slide__title{ font-size: 24px; }

  .modal-backdrop{ padding: 0; }
  .modal{ border-radius: 0; min-height: 100vh; max-width: 100%; }
  .modal-a{ grid-template-columns: 1fr; }
  .modal-a__cover{ aspect-ratio: 4 / 3; }
  .modal-a__body{ padding: 24px 18px; }
  .modal-a__specs{ grid-template-columns: 1fr; gap: 0; }
  .modal-b__hero{ height: 220px; }
  .modal-b__hero-text{ left: 18px; right: 18px; bottom: 18px; }
  .modal-b__hero-text h2{ font-size: 26px; }
  .modal-b__hero-badges{ right: 18px; top: 18px; }
  .modal-b__body{ padding: 22px 18px 24px; }
  .modal-b__regions{ grid-template-columns: 1fr; gap: 10px; margin-bottom: 22px; }
  .modal-b__specs{ grid-template-columns: 1fr; padding: 16px; gap: 0; }
  .modal__variant-tabs{ padding: 10px 16px 0; overflow-x: auto; }
  .modal__variant-tab{ flex-shrink: 0; padding: 10px 12px; font-size: 12px; }
  .modal__close{ right: 16px; top: 16px; }

  .subs{ padding: 36px 0; }
  .subs__title-row{ gap: 12px; }
  .subs__glyph{ width: 48px; height: 48px; }
  .subs__tabs{ max-width: 100%; }
  .subs__tab{ padding: 10px 16px; font-size: 14px; }
  .subs__period{ padding: 10px 18px; font-size: 14px; }
  .subs__grid{ grid-template-columns: 1fr; gap: 18px; }
  .sub-art__name{ font-size: 48px; bottom: 80px; }
  .sub-art__period{ font-size: 18px; padding: 6px 18px; }
  .ea-block{ grid-template-columns: 1fr; gap: 0; }
  .ea-block__banner{ min-height: 240px; padding: 24px; }
  .ea-block__content{ padding: 22px; }

  .cart-drawer{ width: 100%; }

  .footer-inner{
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-about{ grid-column: 1 / -1; }

  /* Mobile bottom nav */
  /* спецификой бьём .only-mobile{display:block}, который объявлен ниже
     и иначе перебивал бы display:grid по порядку (та же специфичность) */
  .mobile-nav.only-mobile{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 8px; right: 8px; bottom: 8px;
    z-index: 60;
    background: var(--n-100);
    border-radius: 18px;
    padding: 8px 4px;
    align-items: end;
    box-shadow: var(--shadow-3);
    overflow: visible;
  }
  .mobile-nav__item{
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    gap: 3px;
    padding: 4px 2px;
    font-size: 11px;
    font-weight: 500;
    color: var(--k);
    background: transparent;
  }
  .mobile-nav__icon{
    width: 38px; height: 38px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
    color: var(--k);
  }
  .mobile-nav__item.is-active .mobile-nav__icon{
    background: var(--y);
    border: 1px solid var(--k);
  }
  .mobile-nav__label{
    line-height: 1;
    font-size: 10.5px;
  }
  .mobile-nav__badge{
    position: absolute;
    top: 0; right: 18%;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--k);
    color: var(--y);
    font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--n-100);
  }

  /* Centered raised search button */
  .mobile-nav__item--center{ align-items: center; }
  .mobile-nav__item--center .mobile-nav__icon{
    width: 52px; height: 52px;
    background: var(--y);
    border: 4px solid var(--w);
    margin-top: -22px;
    box-shadow: 0 6px 18px rgba(247,201,17,.45);
    color: var(--k);
  }
  .mobile-nav__item--center .mobile-nav__icon svg{ stroke-width: 2.4; }
  .mobile-nav__item--center .mobile-nav__label{ display: none; }

  .only-mobile{ display: block; }
  .only-desktop{ display: none; }

  body.has-mobile-nav{ padding-bottom: 90px; }
}

@media (max-width: 540px){
  .shelf-row{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__title{ font-size: 13px; min-height: 32px; }
  .card__price{ font-size: 17px; }
  .card__buy{ font-size: 12px; height: 34px; }
  .card__regions{ display: none; }
  .header-actions .header-btn:not(.header-btn--cart){ display: none; }
}

/* ============== Subscription banner (мотиватор в модалке) ============== */
.sub-banner{
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  margin: 4px 0 2px;
}
.sub-banner:hover{ transform: translateY(-1px); filter: brightness(1.06); }
.sub-banner:focus-visible{ outline: 3px solid rgba(255,255,255,.6); outline-offset: 2px; }
.sub-banner__icon{
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-weight: 800; font-size: 18px; letter-spacing: -.5px;
  background: rgba(255,255,255,.22);
  color: #fff;
}
.sub-banner__text{ min-width: 0; }
.sub-banner__title{ font-weight: 700; font-size: 15px; line-height: 1.25; }
.sub-banner__sub{
  font-size: 12.5px; line-height: 1.4; margin-top: 3px; opacity: .92;
  /* в одну-две строки максимум — на маленьких экранах подрежется */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.sub-banner__btn{
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  color: #1a1a1a;
  font-weight: 700; font-size: 13px;
  border: 0;
  transition: background .12s;
}
.sub-banner__btn:hover{ background: #fff; }
.sub-banner__btn span{ margin-left: 4px; }

/* Цвета подписок */
.sub-banner--ea{
  background: linear-gradient(135deg, #FF4747 0%, #c92c2c 100%);
}
.sub-banner--extra{
  background: linear-gradient(135deg, #0072ce 0%, #0353a0 100%);
}
.sub-banner--deluxe{
  background: linear-gradient(135deg, #F7C911 0%, #c89c0a 100%);
  color: #1a1a1a;
}
.sub-banner--deluxe .sub-banner__icon{
  background: rgba(0,0,0,.18); color: #1a1a1a;
}
.sub-banner--deluxe .sub-banner__btn{
  background: #1a1a1a; color: #F7C911;
}
.sub-banner--deluxe .sub-banner__btn:hover{ background: #2a2a2a; }

@media (max-width: 540px) {
  .sub-banner{
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 12px;
  }
  .sub-banner__icon{ width: 44px; height: 44px; font-size: 15px; }
  .sub-banner__btn{
    grid-column: 1 / -1;
    padding: 10px;
    text-align: center;
  }
}

/* ============== Skeleton (заглушки на время загрузки) ============== */
@keyframes skeleton-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.skeleton-pulse{
  background: linear-gradient(90deg,
    rgba(0,0,0,0.06) 0%,
    rgba(0,0,0,0.12) 50%,
    rgba(0,0,0,0.06) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
  border-radius: 6px;
}
.game-skel{
  display: flex; flex-direction: column;
  background: var(--w);
  border: 1px solid var(--n-150);
  border-radius: 14px;
  overflow: hidden;
}
.game-skel__cover{
  aspect-ratio: 3 / 4;
  border-radius: 0;
}
.game-skel__body{
  padding: 14px 14px 18px;
}

/* utility */
.sr{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.spacer-32{ height: 32px; }
.flex{ display: flex; }
.flex-center{ display: flex; align-items: center; justify-content: center; }
.gap-8{ gap: 8px; } .gap-12{ gap: 12px; } .gap-16{ gap: 16px; }
