/* == Base: imports, reset, variables =================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #121212; color: #e8e8e8; line-height: 1.55; min-height: 100vh;
}

:root {
  --nt-primary:#7709FF;
  --nt-primary-hover:#8321fa;
  --nt-primary-dark: #5c00cc;
  --nt-bg: #11131a;
  --nt-bg-light: #1a1d26;
  --nt-border: rgba(255,255,255,.08);
  --nt-card-bg: #1b1e28;
  --nt-text: #e8e8e8;
  --nt-text-dim: #b0b3c7;
  --nt-radius: 8px;
  --nt-radius-lg: 12px;
  --nt-shadow: 0 4px 10px rgba(0,0,0,.45);
  --nt-transition: .24s cubic-bezier(.25,.8,.25,1);

  --content-max: 1654px;            /* so at 1920px gutters ≈ 133px */
}

/* == Utilities & global layout ======================================== */
/* Центровочный контейнер — ровно как в шапке */
.wrap, .container {
  width: 100%;
  max-width: 100vw;
  margin-inline: 0;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}
.wrap{
  width: 100% !important;
  padding-inline: var(--page-gutter) !important;
  overflow: visible !important;
}
.wrap > .wrap-inner{
  max-width: var(--content-max);
  margin-inline: auto;   /* центрируем всё как в шапке */
}

/* Внутренний ограничитель ширины для контента */
.wrap-inner, .container-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Удалить .wrap-inner, .container-inner — больше не нужны */

/* Внутренний ограничитель ширины для контента */
.text-center { text-align: center; }

@media (min-width: 1600px) {
  .wrap { width: min(88vw, 1680px); }
}
@media (min-width: 2560px) {
  html { font-size: 18px; } /* prevent tiny text on 4K */
}

/* Section vertical rhythm */
main > section {
  padding-block: 4rem;
  animation: fadeUp .8s ease-out both;
}
main > section:last-of-type { border-bottom: none; }
@media (max-width: 600px) {
  main > section { padding-block: 3rem; }
}

/* == HERO ============================================================== */
.main-hero {
  background: url('/images/hero-bg.webp') center/cover no-repeat;
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-inner { text-align: center; }
.hero-title {
  font-size: clamp(3.3rem, 5.2vw, 4.8rem);
  line-height: 1.15;
  font-weight: 700;
}
.hero-title-gradient {
  background: linear-gradient(90deg,#78a8ff 0%,#55e0ff 30%,#b385ff 60%,#ff59d2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle {
  color: var(--nt-text-dim);
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  max-width: 720px;
  margin: .9rem auto 0;
}
.highlight { color: #7709FF; }

/* == GAMES: grids & cards ============================================= */
/* Two-row layout: .games-grid.big-row (featured) and .games-grid.small-row (rest) */
.games-grid { display: grid; gap: 1.4rem; margin-top: 1.4rem; }

/* Big (featured) row */
.games-grid.big-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.6rem;
  margin-top: 2rem;
}
.big-row .game-card.featured {
  aspect-ratio: 3 / 2;
  position: relative;
  background: var(--nt-card-bg);
  border-radius: var(--nt-radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 18px rgba(0,0,0,.22);
  transition: transform var(--nt-transition), box-shadow var(--nt-transition);
}
.big-row .game-card.featured:hover { transform: translateY(-6px); box-shadow: 0 8px 32px rgba(0,0,0,.32); }
/* ← заменили селектор: раньше было ".big-row .game-card img" — это ломало иконки */
.big-row .game-card > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: relative; z-index: 1;
}


/* Overlay content (shared) */
.game-card-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 56px; display: flex; align-items: flex-end;
  padding: 0 12px 10px 12px; z-index: 2;
}
.game-card-info { display: flex; align-items: center; gap: 10px; }
.game-card-svg {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; min-width: 38px; min-height: 38px;
  background: rgba(0,0,0,0.18); border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.game-card-svg svg { width: 28px; height: 28px; display: block; }
.game-card-titles { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.game-card-title {
  font-size: 1.08rem; font-weight: 700; color: #fff; line-height: 1.18;
  margin-bottom: 2px; text-shadow: 0 2px 8px rgba(0,0,0,.32);
}
.game-card-subtitle {
  font-size: 0.98rem; color: #e8e8e8; opacity: .82; line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,.22);
}

/* Responsive tweaks */
@media (max-width: 1200px) {
  .games-grid.big-row   { grid-template-columns: repeat(3, 1fr); }
  .games-grid.small-row { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 900px) {
  .games-grid.big-row   { grid-template-columns: repeat(2, 1fr); }
  .games-grid.small-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .games-grid.big-row   { grid-template-columns: 1fr; }
  .games-grid.small-row { grid-template-columns: 1fr; }
  .game-card-overlay { height: 38px; padding: 0 8px 6px 8px; }
}

/* == DEALS (Best Deals): grid & product card ========================== */
/* Offers grid */
.offers-grid {
  display: grid;
  gap: 1.8rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(clamp(260px,20vw,320px), 1fr));
}
@media (min-width: 2000px) { .offers-grid { gap: 2.2rem; } }

/* Product card (inserted by mainPage.js) */
.product-card-new {
  background: var(--nt-card-bg);
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--nt-transition), box-shadow var(--nt-transition);
  cursor: pointer;
  box-shadow: 0 2px 18px rgba(0,0,0,.22);
  position: relative;
}
.product-card-new:hover { transform: translateY(-4px); box-shadow: var(--nt-shadow); }

/* image box */
.product-img-box { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.product-img-box img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
  display: block;
  position: relative;
  z-index: 1;
}
.product-card-new:hover .product-img-box img { transform: scale(1.06); }

/* Badge — вправо (с поддержкой цвета/иконки через CSS-переменные) */
.product-badge-new{
  position:absolute; top:.6rem; right:.6rem;
  --badge-text:#fff;
  --badge-bg:var(--nt-primary);
  --badge-icon:none;
  padding:.35rem .6rem;
  font-size:.75rem; font-weight:700; border-radius:6px;
  text-transform:uppercase;
  display:inline-flex; align-items:center; gap:.4rem;
  color:var(--badge-text);
  background:var(--badge-bg);
  z-index:2;
}
.product-badge-new .badge-ico{
  width:16px; height:16px; display:inline-block; flex:0 0 16px;
  background: currentColor;
  -webkit-mask: var(--badge-icon) no-repeat center / contain;
          mask: var(--badge-icon) no-repeat center / contain;
}
.product-badge-new .badge-label{ line-height:1; }

/* content */
.product-content {
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1rem 1rem 1.3rem;
  flex: 1;
  position: relative;
  background: #121212;
}
.product-title { font-size: 1.05rem; font-weight: 600; color: #fff; }
.product-desc {
  font-size: .95rem;
  color: var(--nt-text-dim);
  margin: 0 0 0 0;
  padding: 0 8px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
  word-break: break-word;
}

/* Цена внизу карточки, как в шапке */
.product-price-bottom {
  margin-top: auto;
  align-self: flex-start;           /* было flex-end */
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  position: static;
  text-shadow: 0 2px 8px rgba(0,0,0,.22);
}

.price-save-badge{
  display:inline-block;
  align-self:flex-start;
  background:#51cf66;       /* зелёный в стиле сайта */
  color:#0b1c0b;            /* тёмный текст читаемее */
  padding:.18rem .5rem;
  font-size:.75rem;
  font-weight:800;
  border-radius:6px;
}

.product-price-from-overlay{
  display:flex;
  align-items:baseline;
  gap:.45rem;
}

.product-price-from-overlay .from-label{
  color:#b8b8c7;
  font-weight:600;
  margin-right:.1rem;
}

.product-price-from-overlay .old-price{
  color:#9aa0a6;
  text-decoration: line-through;
  font-weight:700;
}

.product-price-from-overlay .current-price{  /* по умолчанию */
  color:#ffffff;
  font-weight:800;
}
.product-price-from-overlay.has-discount .current-price{ /* если есть старая цена */
  color:#51cf66;
}


/* Убрать кнопку Order now */
.order-btn { display: none !important; }

/* == Filter bar (Best Deals) ========================================== */
.game-filter-buttons-scroll { position: relative; }
.game-filter-buttons-outer { overflow-x: auto; scroll-behavior: smooth; }
.game-filter-buttons { display: flex; gap: .6rem; padding-block: .2rem; }
.game-filter-buttons::-webkit-scrollbar { display: none; }

.game-filter-buttons-outer{
  overflow-x: auto;
  overflow-y: hidden; 
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  user-select: none;
  scrollbar-width: none;            /* Firefox: скрыть полосу */
  -ms-overflow-style: none;         /* IE/Edge legacy */
}

.game-filter-buttons-outer::-webkit-scrollbar{ display:none; } /* WebKit */
.game-filter-buttons{
  display:flex;
  gap:.6rem;
  padding-block:.2rem;
  flex-wrap: nowrap;                /* запрещаем перенос строк */
}
.filter-btn{ white-space: nowrap; } /* текст кнопки не переносится */
.filter-btn {
  font-size: 1.08rem;
  font-weight: 700;
  padding: 0.7rem 2.2rem;
  border-radius: 999px;
  border: none;
  background: #23232b;
  color: #fff;
  margin-right: 16px;
  margin-bottom: 8px;
  box-shadow: 0 2px 12px rgba(39,16,255,.08);
  transition: background .18s, color .18s, box-shadow .18s;
  cursor: pointer;
  outline: none;
  letter-spacing: .01em;
  position: relative;
}
.filter-btn:last-child { margin-right: 0; }
.filter-btn.active,
.filter-btn:focus,
.filter-btn:hover {
  background: linear-gradient(90deg,#7709FF 0%, #23232b 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(39,16,255,.18);
}



/* стрелки по бокам, стиль как у слайдера */
.game-filter-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--nt-border);
  background: linear-gradient(145deg,#1d202a,#11131a);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  transition: opacity var(--nt-transition), transform var(--nt-transition);
}
.game-filter-arrow:hover { transform: translateY(-50%) scale(1.06); }
.game-filter-arrow:disabled { opacity: .0; pointer-events: none; }
.game-filter-arrow.left  { left: -18px; }
.game-filter-arrow.right { right: -18px; }

/* скрываем, когда «некуда крутить» — класс добавляет JS */
.game-filter-arrow.hide { display: none !important; }

/* == Why NextTier ====================================================== */

.why-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.why-card {
  position: relative;
  padding: 1.8rem 1.4rem;
  background: var(--nt-card-bg);
  border-radius: var(--nt-radius-lg);
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.why-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,153,68,.25), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.why-card:hover::before { opacity: .8; }
.why-icon { font-size: 2rem; margin-bottom: .9rem; }
.why-card h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.why-card p  { font-size: .9rem; color: var(--nt-text-dim); }

.why-nexttier { background: transparent; }
.why-row{
  display:grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
  margin-top: 18px;
}
.why-item{
  background: #1f1f24;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;        /* ← вертикально */
  align-items: flex-start;       /* ← выравнивание по левому краю */
  gap: 10px;
  min-height: 100px;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.why-item img{
  width: 50px; height: 50px;     
  margin: 0 0 6px 0;             /* отступ вниз от иконки */
  opacity: .95;
}
.why-item h4{
  margin: 0 0 6px 0;
  font-size: 1rem; font-weight: 700; color:#fff;
  text-align: left;
}
.why-item p{
  margin: 0;
  font-size: .85rem; color: var(--nt-text-dim); line-height: 1.35;
  text-align: left;
}
@media (max-width: 1100px){
  .why-row{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 700px){
  .why-row{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* === Reviews carousel ============================================== */
.reviews-section { position: relative; }
.reviews-slider{
  display: flex;
  gap: 16px;
  overflow: hidden; 
  padding-top: 10px;                
  scroll-behavior: smooth;
  user-select: none;
}

/* Ровно N карточек на экране (целое число) */
.reviews-slider > .review-card{
  flex: 0 0 calc((100% - 4 * 16px) / 5);  /* 5 на десктопе */
  max-width: calc((100% - 4 * 16px) / 5);
  min-width: calc((100% - 4 * 16px) / 5);
}
@media (max-width: 1400px){
  .reviews-slider > .review-card{
    flex: 0 0 calc((100% - 3 * 16px) / 4);
    max-width: calc((100% - 3 * 16px) / 4);
    min-width: calc((100% - 3 * 16px) / 4);
  }
}
@media (max-width: 1100px){
  .reviews-slider > .review-card{
    flex: 0 0 calc((100% - 2 * 16px) / 3);
    max-width: calc((100% - 2 * 16px) / 3);
    min-width: calc((100% - 2 * 16px) / 3);
  }
}
@media (max-width: 800px){
  .reviews-slider > .review-card{
    flex: 0 0 calc((100% - 1 * 16px) / 2);
    max-width: calc((100% - 1 * 16px) / 2);
    min-width: calc((100% - 1 * 16px) / 2);
  }
}
@media (max-width: 540px){
  .reviews-slider > .review-card{
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 100%;
  }
}

/* Точки-пагинация */
.reviews-dots{
  display: flex; justify-content: center; gap: 8px;
  margin-top: 12px;
}
.reviews-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: transform .2s, background .2s;
}
.reviews-dot.active{
  background: #fff; transform: scale(1.15);
}
/* === Reviews: frame (общий фон блока) =============================== */
.reviews-frame{
  background: #1f1f24;                    /* общий тёмный фон как на примере */
  border: 1.5px solid #23232b;
  border-radius: 28px;
  padding: 26px 28px 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}

.reviews-frame h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 22px;
  margin-top: 0;
  letter-spacing: .01em;
}

/* Карточка отзыва (ровно как на скрине) */
.review-card{
  background: #121212;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #e9e9e9;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}

/* типографика */
.review-card h4{ font-size:.9rem; font-weight:600; color:#cfcfcf; margin:0; }
.review-card h3{ font-size:1.05rem; font-weight:800; color:#fff; margin:2px 0 4px; }
.review-card p { font-size:.92rem; color:#b6b6c2; line-height:1.35; margin:0; }

/* зелёные звёзды */
.review-card .stars{
  color: #35ff70;               /* ярко-зелёные как на первом скрине */
  letter-spacing: .06em;
  font-size: 1rem;
  margin: 4px 0 2px;
}

/* Дотсы — чуть контрастнее */
.reviews-dots{ margin-top: 14px; }
.reviews-dot{ background: rgba(255,255,255,.22); }
.reviews-dot.active{ background:#fff; transform: scale(1.15); }

.review-card{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.review-card:hover,
.review-card:focus-within{
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.12);
}
.review-card:active{ transform: translateY(-1px); }
.review-card .stars{ transition: filter .18s ease; }
.review-card:hover .stars{ filter: drop-shadow(0 0 6px rgba(53,255,112,.35)); }

.why-item{
  transition: transform .18s ease, box-shadow .18s ease,
  border-color .18s ease, background-color .18s ease;
}
.why-item:hover,
.why-item:focus-within{
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.12);
  background: #222229;
}
.why-item:active{ transform: translateY(-1px); }
.why-item img{ transition: transform .18s ease; }
.why-item:hover img{ transform: translateY(-1px) scale(1.03); }

/* доступность */
.review-card:focus-visible,
.why-item:focus-visible{
  outline: 2px solid #7709FF;
  outline-offset: 2px;
}

/* уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  .review-card, .why-item, .why-item img, .review-card .stars{
    transition: none !important;
  }
}

/* == Cookie banner & Trustpilot ======================================= */
#cookieBanner {
  left: 50%; translate: -50% 0; bottom: 1rem;
  width: min(92vw, 440px);
  border-radius: var(--nt-radius);
  background: rgba(26,32,39,.97);
  padding: 1rem 1.2rem;
  color: #fff; font-size: .9rem;
  box-shadow: 0 2px 14px rgba(0,0,0,.35);
}
#cookieAccept {
  background: #3590ff; border: none; border-radius: var(--nt-radius);
  padding: .5rem 1.25rem; font-size: 1rem; font-weight: 600; color: #fff;
  cursor: pointer; transition: background .14s;
}
#cookieAccept:hover { background: #2278e7; }

.trustpilot-widget { margin: 20px auto; max-width: 1200px; }

/* == Small helpers ===================================================== */
.card-short-description { margin-left: 20px; padding: 0; }

/* == Animations ======================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
/* == Animations ======================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* --- Deals slider block --- */
.deals-slider-block {
  background: linear-gradient(180deg, #1f1f24 38.51%, #7708FE 148.11%);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(39,16,255,.18);
  border: 1.5px solid #23232b;
  padding: 38px 38px 32px 38px;
  margin-top: 0;
  position: relative;
  overflow: visible;
}

.deals-slider-block h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 22px;
  margin-top: 0;
  letter-spacing: .01em;
}

/* --- Фильтры --- */
.filter-btn {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid #ffffff;
  background: #23232b;
  color: #fff;
  margin-right: 16px;
  margin-bottom: 8px;
  box-shadow: 0 2px 12px rgba(39,16,255,.08);
  transition: background .18s, color .18s, box-shadow .18s;
  cursor: pointer;
  outline: none;
  letter-spacing: .01em;
  position: relative;
}
.filter-btn:last-child { margin-right: 0; }
.filter-btn.active,
.filter-btn:focus,
.filter-btn:hover {
  background: #7708FE;
  color: #fff; border: none;
  box-shadow: 0 4px 18px rgba(39,16,255,.18); border: 1px solid #7708FE;
}

/* --- Слайдер --- */
.deals-slider-swiper {
  position: relative;
  margin-top: 24px;
  margin-bottom: 0;
  overflow: visible;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.swiper {
  display: flex;
  gap: 24px;
  overflow: hidden;
  padding-top: 10px; 
  padding-bottom: 0;
  margin-bottom: 0;
  width: 100%;
  scroll-behavior: smooth;
  user-select: none;
  cursor: grab;
  justify-content: flex-start;
}

/* Карточка: ширина по количеству карточек */
.swiper > .product-card-new {
  flex: 0 0 calc((100% - 4 * 24px) / 5); /* 5 карточек и 4 gap */
  max-width: calc((100% - 4 * 24px) / 5);
  min-width: calc((100% - 4 * 24px) / 5);
  margin: 0;
  display: flex;
  vertical-align: top;
}

@media (max-width: 1599px) {
  .swiper > .product-card-new {
    flex: 0 0 calc((100% - 3 * 24px) / 4);
    max-width: calc((100% - 3 * 24px) / 4);
    min-width: calc((100% - 3 * 24px) / 4);
  }
}
@media (max-width: 1199px) {
  .swiper > .product-card-new {
    flex: 0 0 calc((100% - 2 * 24px) / 3);
    max-width: calc((100% - 2 * 24px) / 3);
    min-width: calc((100% - 2 * 24px) / 3);
  }
}
@media (max-width: 899px) {
  .swiper > .product-card-new {
    flex: 0 0 calc((100% - 1 * 24px) / 2);
    max-width: calc((100% - 1 * 24px) / 2);
    min-width: calc((100% - 1 * 24px) / 2);
  }
}
@media (max-width: 599px) {
  .swiper > .product-card-new {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 100%;
  }
}



/* --- Адаптив --- */
@media (max-width: 1400px) {
  .swiper > .product-card-new { min-width: 260px; max-width: 260px; }
}
@media (max-width: 900px) {
  .swiper > .product-card-new { min-width: 220px; max-width: 220px; }
}
/* --- Deals slider arrows (фикс) --- */
.deals-slider-swiper { position: relative; overflow: visible; } /* якорь */

.swiper-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nt-border);
  background: linear-gradient(145deg,#1d202a,#11131a);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  transition: opacity var(--nt-transition), transform var(--nt-transition);
  user-select: none;
}
.swiper-btn:hover { transform: translateY(-50%) scale(1.06); }
.swiper-btn:disabled { opacity: .0; pointer-events: none; }
.swiper-btn-prev { left: -18px; }
.swiper-btn-next { right: -18px; }

@media (max-width: 900px){
  .swiper-btn{ width: 32px; height: 32px; font-size: 1.1rem; }
}

/* --- Сделать Trending (deals swiper) snap-friendly --- */
.deals-slider-swiper .swiper {
  display: flex;
  gap: 24px;                /* запас - JS корректирует при необходимости */
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  align-items: stretch;
}
.deals-slider-swiper .swiper > .product-card-new {
  flex: 0 0 auto;           /* JS выставит точную ширину каждой карточке */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* При отсутствии прокрутки скрываем стрелки (класс .hide используется в JS) */
.swiper-btn.hide { display: none !important; }

/* Скрыть видимую полосу прокрутки у Trending swiper (оставляем прокрутку работоспособной) */
.deals-slider-swiper .swiper {
  scrollbar-width: none; /* Firefox */
}
.deals-slider-swiper .swiper::-webkit-scrollbar {
  height: 0px;           /* WebKit: скрываем горизонтальный скролл */
  display: none;
}

/* На мобильных/тач-устройствах гарантируем touch-scrolling без полосы */
.deals-slider-swiper .swiper {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

/* ===== STEPS (NextTier purple theme, looped & slow) ===== */
.steps-section{
  background: transparent;
  position: relative;
}
.steps-title{
  text-align:center;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 800;
  margin: 0 0 .5rem 0;
}
.steps-subtitle{
  text-align:center;
  color: var(--nt-text-dim);
  margin: 0 0 2rem 0;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}

.steps-list{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: clamp(14px, 2vw, 22px);
  align-items: start;
  padding-top: 22px;
}
@media (max-width: 800px){
  .steps-list{ grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

/* Линия (серый трек) */
.steps-line{
  position: absolute;
  top: 47px;
  left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,.12);
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
}

/* Заполняющая полоса — медленная бесконечная анимация */
.steps-line-fill{
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, #7709FF, #a166ff);
  /* единые параметры цикла (JS читает отсюда и синхронизируется) */
  --steps-duration: 10s;      
  --steps-travel-frac: 0.92;  /* доля времени, когда полоса реально "едет" (остальное — пауза) */
  animation: stepsFill var(--steps-duration) linear infinite;
}
@keyframes stepsFill{
  0%   { width: 0%; }
  92%  { width: 100%; } /* 92% времени — движение */
  100% { width: 100%; } /* 8% — пауза на полном заполнении */
}

/* Шаг */
.step{
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 10px;
}
.step-number{
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto .6rem auto;
  display: grid; place-items: center;
  background: #1f1f24;
  border: 2px solid rgba(255,255,255,.18);
  color: #cfcfcf;
  font-weight: 800;
  letter-spacing: .02em;
  position: relative;
  transition: background .35s, border-color .35s, color .35s, box-shadow .35s;
}
.step-number::after{
  content:""; position:absolute; inset:-10px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, #7709FF 40%, transparent), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.step-title{
  font-size: 1.05rem; font-weight: 700; color:#fff; margin: 0 0 .25rem 0;
}
.step-desc{
  font-size: .95rem; color: var(--nt-text-dim); margin: 0;
  max-width: 360px; margin-inline: auto;
}

/* Активное состояние шага */
.step-number.filled{
  background: #7709FF;
  border-color: #7709FF;
  color: #fff;
  box-shadow: 0 0 18px rgba(119,9,255,.45);
}
.step-number.filled::after{ opacity: .9; }

@media (prefers-reduced-motion: reduce){
  .steps-line-fill{ animation: none !important; width: 100% !important; }
  .step-number{ transition: none !important; }
}



/* === STEPS: vertical timeline for <=900px (1 column like Epiccarry) === */
@media (max-width: 900px){
  .steps-list{
    display: block;           /* одна колонка */
    padding-top: 0;
  }
  .step{
    display: grid;
    grid-template-columns: 56px 1fr; /* кружок слева + текст справа */
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 14px 0;
  }
  .step-number{ margin: 0; }
  .step-title{ margin: 0 0 4px; }
  .step-desc { margin: 0; }

  /* Вертикальная линия между кружками */
  .steps-line{
    position: absolute;
    left: 28px;   /* центр колонки кружков (56px/2) — JS все равно поставит точно */
    top: 0;       /* точные top/height выставит JS */
    width: 4px;
    height: 0;
    background: rgba(255,255,255,.12);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    display: block !important;     /* обязательно показать на мобиле */
  }
  .steps-line-fill{
    width: 4px;                     /* совпадает с .steps-line */
    height: 0%;
    background: linear-gradient(180deg, #7709FF, #a166ff);
    /* используем те же переменные скорости */
    animation-name: stepsFillY;     /* вертикальные кейфреймы */
    animation-duration: var(--steps-duration);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
}

/* Вертикальная анимация (высота вместо ширины) */
@keyframes stepsFillY{
  0%   { height: 0%; }
  92%  { height: 100%; }
  100% { height: 100%; }
}
@media (max-width: 900px){
  .steps-list{
    display: block;
    padding-top: 0;
  }

  .step{
    display: grid;
    grid-template-columns: 56px minmax(0,1fr);  /* число | текст */
    grid-auto-flow: row;
    align-items: start;
    text-align: left;
    gap: 10px 12px;
    padding: 14px 0;
  }

  /* фикс раскладки: кружок слева, и он «занимает» две строки,
     а заголовок и текст всегда справа */
  .step-number{
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
    align-self: start;
  }
  .step-title{
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 4px;
  }
  .step-desc{
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    min-width: 0;           /* чтобы текст нормально переносился */
    word-break: break-word;
  }

  /* вертикальная линия — как было */
  .steps-line{
    position: absolute;
    left: 28px;
    top: 0;
    width: 4px;
    height: 0;
    background: rgba(255,255,255,.12);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    display: block !important;
  }
  .steps-line-fill{
    width: 4px;
    height: 0%;
    background: linear-gradient(180deg, #7709FF, #a166ff);
    animation-name: stepsFillY;
    animation-duration: var(--steps-duration);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
}
/* === Background image layer under content (as on search page) === */
.page-bg-img{
  position:absolute;
  inset:0 auto auto 0;
  right:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.page-bg-img img{
  width:100%;
  height:auto;
  display:block;
}

/* === Small game "pills" (no images) =================================== */
.game-pill{
  display:flex; align-items:center; gap:.6rem;
  padding:.8rem 1rem;
  background: linear-gradient(145deg, #1d202a, #12131a);
  border:1px solid var(--nt-border);
  border-radius: 10px;
  text-decoration:none;
  color:#fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: transform var(--nt-transition), box-shadow var(--nt-transition), border-color var(--nt-transition);
  position: relative;
}
.game-pill:hover{ transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.28); border-color: rgba(255,255,255,.18); }

.game-pill .pill-svg{
  width: 32px; height: 32px; min-width:32px; min-height:32px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.18);
  border-radius: 8px;
}
.game-pill .pill-svg svg{ width: 22px; height: 22px; display:block; }
.game-pill .pill-title{
  font-weight: 800; font-size: .95rem; line-height:1.1; white-space: nowrap;
}
.game-pill .pill-badge{
  margin-left: auto;
  font-size: .75rem; font-weight: 800;
  color: #0b1c0b; background: #51cf66;
  padding: .12rem .4rem; border-radius: 6px;
}

/* под сетку маленьких игр — упростим расстояния */
.games-grid.small-row{
  display:grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 1200px){ .games-grid.small-row{ grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 900px) { .games-grid.small-row{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .games-grid.small-row{ grid-template-columns: repeat(2, 1fr); } }

/* === Hot Guides slider inherits deals slider arrows =================== */
.hot-guides-section .swiper{ display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; }
.hot-guides-section .swiper > *{ scroll-snap-align:start; }
.hot-guides-section .swiper-btn.hg-prev{ left: -18px; }
.hot-guides-section .swiper-btn.hg-next{ right: -18px; }



/* мягкий «длинный» переход к #121212 */
.page-bg-img::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:clamp(200px, 28vw, 460px); /* подлиннее перышко */
  background:linear-gradient(
    to bottom,
    rgba(18,18,18,0)    0%,
    rgba(18,18,18,0.06) 28%,
    rgba(18,18,18,0.16) 48%,
    rgba(18,18,18,0.32) 66%,
    rgba(18,18,18,0.56) 82%,
    #121212             100%
  );
  pointer-events:none;
}

/* контент над фоном */
header, main, footer { position:relative; z-index:1; }

/* Games section: единое число колонок для big/small */
.games-section .wrap-inner { --games-cols: 5; }
@media (max-width: 1200px) { .games-section .wrap-inner { --games-cols: 3; } }
@media (max-width: 900px)  { .games-section .wrap-inner { --games-cols: 2; } }
@media (max-width: 600px)  { .games-section .wrap-inner { --games-cols: 1; } }
/* Стало: одна логика колонок для обеих сеток */
.games-grid.big-row,
.games-grid.small-row{
  display: grid;
  grid-template-columns: repeat(var(--games-cols), 1fr);
}

/* оставьте индивидуальные gap/margin если нужны */
.games-grid.big-row  { gap: 1.6rem; margin-top: 2rem; }
.games-grid.small-row{ gap: 1.1rem; margin-top: 1.2rem; }
/* === Hot Guides slider: ровно 5/4/3/2/1 карточек ===================== */
.hot-guides-section .swiper > .guide-card{
  flex: 0 0 calc((100% - 4 * 24px) / 5);
  max-width: calc((100% - 4 * 24px) / 5);
  min-width: calc((100% - 4 * 24px) / 5);
  margin: 0;
}
@media (max-width: 1599px){
  .hot-guides-section .swiper > .guide-card{
    flex: 0 0 calc((100% - 3 * 24px) / 4);
    max-width: calc((100% - 3 * 24px) / 4);
    min-width: calc((100% - 3 * 24px) / 4);
  }
}
@media (max-width: 1199px){
  .hot-guides-section .swiper > .guide-card{
    flex: 0 0 calc((100% - 2 * 24px) / 3);
    max-width: calc((100% - 2 * 24px) / 3);
    min-width: calc((100% - 2 * 24px) / 3);
  }
}
@media (max-width: 899px){
  .hot-guides-section .swiper > .guide-card{
    flex: 0 0 calc((100% - 1 * 24px) / 2);
    max-width: calc((100% - 1 * 24px) / 2);
    min-width: calc((100% - 1 * 24px) / 2);
  }
}
@media (max-width: 599px){
  .hot-guides-section .swiper > .guide-card{
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 100%;
  }
}
/* === Hot Guides intro (сверху блока) ================================ */
.guides-intro { margin-bottom: 14px; }
.guides-intro .overline{
  text-transform: uppercase;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  color: rgba(255,255,255,.6); margin: 0 0 6px 0;
}
.guides-intro h2{
  margin: 0; font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 800; color: #fff;
}
.guides-intro .gradient{
  background: linear-gradient(90deg,#78a8ff 0%,#55e0ff 30%,#b385ff 60%,#ff59d2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.guides-intro .subtitle{
  color: var(--nt-text-dim);
  margin: 8px 0 14px; max-width: 780px;
}
/* Title-as-button for Guides block */
.guides-title-btn{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  padding:.6rem 1rem;
  border-radius:12px;
  text-decoration:none;
  font-weight:800;
  font-size:clamp(1.1rem,2vw,1.4rem);
  color:#fff;

  background: linear-gradient(90deg,#7709FF 0%, #5c00cc 100%);
  box-shadow: 0 8px 20px rgba(39,16,255,.25), inset 0 0 0 1px rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);

  transition: transform .18s, box-shadow .18s, background .18s;
  margin-bottom: 8px; /* чтобы визуально заменить отступ бывшего overline */
}
.guides-title-btn:hover{
  transform: translateY(-2px);
  background: linear-gradient(90deg,#8b2bff 0%, #6c19e6 100%);
  box-shadow: 0 12px 28px rgba(39,16,255,.32);
}
.guides-title-btn:focus-visible{
  outline: 2px solid #a974ff;
  outline-offset: 3px;
}
.guides-title-btn .arrow{ font-weight:900; opacity:.9; transform: translateY(1px); }
/* === Small games: show more / less ==================================== */
.small-row.collapsed .game-pill:nth-child(n+6){ display:none; } /* показываем только первые 5 */

.small-row-toggle-wrap{
  display:flex; justify-content:center; align-items:center;
  margin-top: 12px;
}
.games-toggle-btn{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.6rem 1rem;
  border-radius: 12px;
  background: transparent;
  color:#fff;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.games-toggle-btn .icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 18px; height: 18px;
}
.games-toggle-btn .icon img{
  display:block;
  width: 18px; height: 18px;
}
.games-toggle-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  background: rgba(255,255,255,.04);
}
.games-toggle-btn:active{ transform: translateY(-1px); }

/* deals-интро чуть компактнее сверху */
.deals-intro{ margin-bottom: 8px; }
/* запрет нативного drag у картинок в слайдерах (убирает «превью» при перетаскивании) */
.deals-slider-swiper .product-img-box img,
.hot-guides-section  .guide-img-box   img,
.swiper img{
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  pointer-events: none; /* кликаем по карточке, а не по картинке */
}

/* курсор во время перетаскивания */
.swiper.dragging{ cursor: grabbing; }

/* хинт для тач-скролла: горизонтальная прокрутка */
.deals-slider-swiper .swiper,
.hot-guides-section  .swiper{
  touch-action: pan-x;
}

/* Унифицируем контейнеры иконок и размеры для svg/img */
.nav-svg,
.game-card-svg,
.pill-svg{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* базовый размер */
.nav-svg svg,
.nav-svg img,
.nav-svg .nav-svg-img{
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

/* крупнее в карточках featured */
.game-card-svg svg,
.game-card-svg img,
.game-card-svg .nav-svg-img{
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

/* «пилюли» (малые игры) */
.pill-svg svg,
.pill-svg img,
.pill-svg .nav-svg-img{
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}