/* ===== Design Tokens ===== */
:root{
  /* Палитра, близкая к скрину */
  --color-bg: rgb(26, 24, 24);        /* фон страницы */
  --color-surface: #142233;   /* панели/карточки */
  --color-elev: #0b1320;      /* более тёмные участки */
  --color-text: #cfe4ff;      /* основной текст */
  --color-muted: #8fa7c4;     /* вторичный текст */
  --color-border: #223446;    /* бордеры */
  --color-accent: #2b7fff;    /* синие акценты/кнопки */
  --color-success: #2ad47c;   /* зелёная точка онлайна */

  --radius: 14px;
  --shadow: 0 6px 18px rgba(0,0,0,.25);
  --sidebar-width: 260px;

  --fs-12: .75rem;
  --fs-14: .875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-32: 2rem;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--color-text);
  background:  var(--color-bg);
}

/* ===== Sidebar (fixed) ===== */
.sidebar{
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--color-elev) 0%, var(--color-surface) 100%);
  border-right: 1px solid var(--color-border);
  padding: 16px;
  overflow-y: auto;
}


/* ===== Buttons ===== */
.btn{
padding: 12px 30px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; border: 1px solid transparent;
  background: rgb(255, 30, 0);
  color: #fff; text-decoration: none; font-weight: 600;
  transition: .15s ease; box-shadow: var(--shadow);
}
.btn:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.btn--ghost{ background: transparent; color: var(--color-text); box-shadow: none; }

@media (max-width: 767px) {
    .btn {
        font-size: 12px;
		  padding: 2px 10px;
}}


/* ===== Burger ===== */

/* ===== Offcanvas (mobile) ===== */
.offcanvas{
  position: fixed; inset: 0 0 0 0; background: rgba(0,0,0,.35);
  display: none; z-index: 40;
}

/* ===== Main ===== */
.main{
  margin-left: var(--sidebar-width);
  padding: 28px 28px 80px;
}

/* Cards grid */

/* ===== Responsive ===== */
/* ≥1440 — сетка увеличится автоматически через контейнеры, явных правил не нужно */

/* ≤1024 */

/* ≤768 */
@media (max-width: 768px){
  :root{ --sidebar-width: 248px; }
  .sidebar{ display: none; }           /* на планшетах/мобиле скрываем фикс */
  .main{ margin-left: 0; padding: 16px 14px 60px; }
}

/* ≤480 */

/* ===== Header ===== */
.header{
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center;
  height: 64px; padding: 0 16px;
  box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
  background: rgb(26, 24, 24);
}
.header__left{ display: flex; align-items: center; gap: 12px; margin-right: 20px; }
.header__right{ display: flex; justify-content: flex-end; gap: 10px; }
.header__brand{ display: inline-flex; justify-self: center; }
.header__brand img{ height: 34px; display: block; }

/* segmented control "Казино / Спорт" */
.segmented{
  display: inline-flex; gap: 8px; 
  padding: 4px; border-radius: 14px;
}
.segmented__item{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 86px; height: 34px; padding: 0 12px;
  background: rgba(255,255,255,.06);
  color: var(--color-text); text-decoration: none; font-weight: 700; border-radius: 12px;
  transition: .15s ease;
}
.segmented__item:hover{ filter: brightness(1.05); }
.segmented__item--active{ background: #2b7fff; color: #fff; }

/* burger */

/* ===== Sidebar ===== */
.sidebar{
  position: fixed; left: 0; top: 64px; bottom: 0; width: 268px;
  padding: 12px; overflow-y: auto;
  background: #0E0C0C;
  border-right: 1px solid var(--color-border);
}

.sidebox__sep{ border: 0; border-top: 1px solid var(--color-border); margin: 10px 0; opacity: .8; }

.sideitem{
  position: relative;
  display: grid;  align-items: center; gap: 10px;
  padding: 12px 0px; color: var(--color-text); text-decoration: none;
  transition: .15s ease; user-select: none;
}
.sideitem:hover{ background: rgba(255,255,255,.06); }

/* ===== Offcanvas (mobile) ===== */
.offcanvas{ position: fixed; inset: 0; display: none; background: rgba(0,0,0,.45); z-index: 70; }

/* ===== Layout comp ===== */
.main{ margin-left: 268px; padding: 20px; }

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .sidebar{ display: none; }
  .main{ margin-left: 0; }
} 

@media (max-width: 767px) {
  /* прячем только табы, бургер оставляем */
  .segmented {
    display: none;
  }

  .header {
    grid-template-columns: auto 1fr;
  }

  .header__brand {
    justify-self: center;
    margin-right: 0;
  }
}

.imgleft img {
    margin-bottom: 10px;
    width: 90%;
    height: auto;
}

/* ===== BOTTOM NAV (mobile) ===== */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: #0f1926;
  display: none;               /* по умолчанию скрыт, покажем только на мобилке */
  align-items: center;
  justify-content: space-around;
  z-index: 80;
}

.bottom-nav__item {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  color: #cfe4ff;
  text-decoration: none;
  font-size: 11px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

/* показать только на мобилке */
@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }

  /* чтобы контент не заезжал под нижний бар */
  .main {
    padding-bottom: 80px;
  }
}

/* ===== BOTTOM NAV (mobile) ===== */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: #0E0C0C;
  display: none;               /* по умолчанию скрыт */
  align-items: center;
  justify-content: space-around;
  z-index: 80;
}

.bottom-nav__item {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  color: #cfe4ff;
  text-decoration: none;
  font-size: 11px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}
.sidebar a {
    text-decoration: none;
    color: inherit;
}


@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    z-index: 9999999999999999;
  }

  /* чтобы контент не уезжал под нижний бар */
  .main {
    padding-bottom: 80px;
  }
} 

/* ===== текстовый блок ===== */

/* адаптив */

.container {
    width: 100%;
    max-width: 1500px; /* выбери 1200 / 1300 / 1400 по вкусу */
    margin: 0 auto;
}
.segmented__item--active {
    padding: 16px 38px;
    line-height: 24px;
    color: rgb(255, 255, 255);
    border: 1px solid rgb(255, 255, 255);
    margin: 0px;
    font-size: 14px;
    transition: 0.4s;
    white-space: nowrap;
    border-radius: 12px;
    -webkit-box-pack: start;
    justify-content: flex-start;
    background-color: rgb(17, 15, 15);
}

.btn--ghostflag img {
    width: 20px;
    height: 14px;
    object-fit: cover;
}


.btn--ghostflag{
    width: 200px;
    height: 44px;
    font-size: 12px;
    background: linear-gradient(90deg, rgba(255, 30, 0, 0.6) 0%, rgba(255, 30, 0, 0) 100%);
    font-weight: 400;
    line-height: 16px;
    transition: color 0.2s, filter 0.2s;

}

.header__rightcenter {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 767px) {
    .header__rightcenter, .segmented, .burger {
        display: none;
 } .header__brand img {
        height: 20px;
        width: auto;
}}

/* BURGER */
.burger{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:10px; border:1px solid #223446;
  background:#0f1926; cursor:pointer; gap:4px;
}
.burger span{ width:18px; height:2px; background:#cfe4ff; border-radius:2px; display:block; }
.burger span:nth-child(2){ opacity:.9; }
.burger span:nth-child(3){ opacity:.75; }

/* OFFCANVAS (overlay + panel) */
.offcanvas{ position:fixed; inset:0; display:none; background:rgba(0,0,0,.55); z-index:220; }
.offcanvas__panel{
  position:absolute; left:0; right:0; bottom:0;
  background:#0E0C0C; border-top:1px solid #223446;
  border-top-left-radius:18px; border-top-right-radius:18px;
  padding:10px 12px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .28s ease;
  min-height:64vh; max-height:86vh; overflow:auto;
}
.offcanvas[aria-hidden="false"] .offcanvas__panel{ transform: translateY(0); }

/* Когда открыт offcanvas — прячем нижний бар, чтобы не перекрывал панель */
body.off-open .bottom-nav{
  transform: translateY(110%); opacity:0; pointer-events:none;
  transition: transform .25s ease, opacity .2s ease;
}

/* Хедер — чуть компактнее на мобиле, чтобы всё помещалось */
@media (max-width: 767px){
  .header{ height:56px; padding:0 10px; }
  .header__brand img{ height:20px; z-index: 9999999999;}
  /* НЕ прячем бургер на мобиле */
  .header__rightcenter, .segmented{ display:none; }
  .burger{ display:inline-flex; }
}

/* === DRAWER как ПК-сайдбар: слева, на всю высоту === */
:root{ --drawer-w: var(--sidebar-w, 280px); }

.drawer{ position: fixed; inset:0; z-index: 220; display:none; }
.drawer[aria-hidden="false"]{ display:block; }

.drawer__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
}

.drawer__panel{
  position:absolute; left:0; top:0; bottom:0;
  width: var(--drawer-w);
  background: linear-gradient(180deg, #111216 0%, #0e0f13 100%);
  border-right: 1px solid var(--color-border);
  transform: translateX(-100%);
  transition: transform .28s ease;
  overflow: auto;
  /* отступы такие же, как у сайдбара */
  padding: 18px 14px;
}
.drawer[aria-hidden="false"] .drawer__panel{ transform: translateX(0); }

/* клонированный сайдбар внутри дроуэра — без изменений стилей */
.drawer__content .sidebar{ padding:0; background:transparent; border:0; height:auto; }

/* Когда открыт drawer — прячем нижний бар, отключаем прокрутку фона */
body.drawer-open .mobile-bar{
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .2s ease;
}
body.drawer-open{ overflow: hidden; }

/* Адаптив: на мобиле скрываем настоящий .sidebar, показываем нижний бар */
@media (max-width: 768px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ display:none; }
  .mobile-bar{ display:flex; }
  body{ padding-bottom: 78px; }
}

/* Хедер на мобиле — компактнее, чтобы влезал */
@media (max-width: 768px){
  .header__inner{ padding: 8px 10px; gap:10px; }
  .h-brand__logo{ height:20px; }
  .btn--deposit{ height:40px; }
}

/* Бургер: показываем только на мобиле */
.burger{ display:none; }
@media (max-width: 1024px){
  .burger{
    display:inline-flex; align-items:center; justify-content:center;
    width:40px; height:40px; border-radius:10px; border:1px solid #223446;
    background:#0f1926; gap:4px;
  }
  .burger span{ width:18px; height:2px; background:#cfe4ff; border-radius:2px; display:block; }
}

/* Drawer (левый выезд как ПК-сайдбар) */
:root{ --drawer-w: var(--sidebar-w, 280px); }
.drawer{ position:fixed; inset:0; z-index:220; display:none; }
.drawer[aria-hidden="false"]{ display:block; }
.drawer__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.55); }
.drawer__panel{
  position:absolute; left:0; top:54px; bottom:0; width:100%;
  background: linear-gradient(180deg, #111216 0%, #0e0f13 100%);
  border-right:1px solid var(--color-border);
  transform: translateX(-100%); transition: transform .28s ease;
  overflow:auto; padding:18px 14px;
}
.drawer[aria-hidden="false"] .drawer__panel{ transform: translateX(0); }

/* Прячем нижний бар, когда открыт drawer */
body.drawer-open .mobile-bar{ transform: translateY(110%); opacity:0; pointer-events:none; transition:transform .25s ease, opacity .2s ease; }

/* Клон сайдбара внутри drawer — без лишних оберток */
.drawer__content .sidebar{ padding:0; background:transparent; border:0; height:auto; }

/* Адаптив: на мобиле скрыть настоящий сайдбар */
@media (max-width: 768px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ display:none; }
  .mobile-bar{ display:flex; }
  body{ padding-bottom: 78px; }
}

/* ДОЛЖНО БЫТЬ */
@media (max-width: 768px){
  .layout > .sidebar{ display:none; }   /* прячем только левую колонку */
  .mobile-bar{ display:flex; }
  body{ padding-bottom: 78px; }
}
/* показываем клон сайдбара внутри drawer */
.drawer__content .sidebar{ 
  display:block !important;   /* перекрываем медиаправило */
  padding:0; background:transparent; border:0; height:auto;
}

.burger{ display:none; }
@media (max-width:1024px){
  .burger{ display:inline-flex; }
}

@media (max-width: 767px) {
    .burger {
        display: none;
}.btn {
        font-size: 10px;
        padding: 6px 12px;
}.header__left {
    margin-right: 0;
}}

.sidebar img {
    width: 100%;
    height: auto;
    /* margin-bottom: 10px; */
}
.sideitem {
    display: flex; align-items: center; gap: 10px;
}
.sideitem img {
    width: 20px;
    height: auto;
}
@media (max-width: 767px) {
    .drawer__content .sidebar {
       padding: 20px;
    width: 100%;
}
.imgleft {
    display: none;
}}

/* === Крестик закрытия меню === */
.drawer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .2s ease, transform .2s ease;
}
.drawer__close:hover { background: rgba(255,255,255,0.15); transform: scale(1.05); }
.drawer__close span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: #cfe4ff;
  border-radius: 2px;
}
.drawer__close span:first-child { transform: rotate(45deg); }
.drawer__close span:last-child { transform: rotate(-45deg); }

/* слйдер */
/* === ДВА СЛАЙДЕРА === */
.dual-sliders__grid{
  display:grid; gap: 20px;
  grid-template-columns: 1fr 1fr;
}

/* Карточка-герой */
.hero-slider{
  position:relative; border-radius:18px;
  background: #13151b; 
  overflow:hidden;  min-height:250px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.hero-slider__viewport{ position:relative; height:100%; }
.hero-slide{
  position:absolute; inset:0; padding:18px; display:grid; align-content:flex-start; gap:14px;
  background: radial-gradient(100% 100% at 80% 50%, rgba(0,0,0,.4), rgba(0,0,0,.6)),
              var(--bg) center/cover no-repeat;
  border-radius:16px; opacity:0; pointer-events:none; transform: scale(.98);
  transition: opacity .35s ease, transform .35s ease;
}
.hero-slide.is-active{ opacity:1; pointer-events:auto; transform: scale(1); }

/* декоративные «срезы» как на макете */
.hero-slide::before, .hero-slide::after{
  content:""; position:absolute; background:#0e0f13; opacity:.9;
}
.hero-slide::before{ top:0; left:0; width:72px; height:18px; border-bottom-right-radius:12px; }
.hero-slide::after{ bottom:-1px; right:-1px; width:110px; height:28px; border-top-left-radius:16px; }

/* затемнение под текст */
.hero-slide__mask{
  position:absolute; inset:0;
  background: radial-gradient(60% 70% at 12% 20%, rgba(0,0,0,.55), transparent 60%);
  pointer-events:none;
}

/* Текст */
.hero-kicker{ display:inline-block; font-weight:600; font-size:13px; color:#cfd3de; }
.hero-slide__title{ margin:0; font-size:20px; line-height:1.2; text-shadow:0 2px 8px rgba(0,0,0,.5); }
.hero-slide__cta{ width:max-content; margin-top:6px; }

/* Навигация */
.hero-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:32px; height:32px; border-radius:50%;
  border:1px solid var(--color-border); background:rgba(0,0,0,.45);
  backdrop-filter: blur(4px); cursor:pointer;
}
.hero-nav--prev{ left:8px; }
.hero-nav--next{ right:8px; }
.hero-nav::before{
  content:""; display:block; width:8px; height:8px; border:2px solid #fff;
  border-top:0; border-right:0; margin:10px auto 0; transform: rotate(45deg);
}
.hero-nav--next::before{ transform: rotate(-135deg); }

/* Точки */
.hero-dots{
  position:absolute; left:0; right:0; bottom:10px; display:flex; gap:8px; justify-content:center;
}
.hero-dots button{
  width:22px; height:6px; border-radius:999px; border:0; background:#2a2c36; opacity:.6; cursor:pointer;
}
.hero-dots button[aria-selected="true"]{ opacity:1; background:#666d7d; }

/* адаптив */
@media (max-width: 1024px){
  .hero-slide__title{ font-size:18px; }
}
@media (max-width: 768px){
  .dual-sliders__grid{ grid-template-columns: 1fr; }
  .hero-slider{ min-height:200px; }
}

/* --- Скрываем правый слайдер на мобильных --- */
@media (max-width: 768px) {
  .dual-sliders__grid > .hero-slider:last-child {
    display: none;
  }
}

/* ==== LINKS SLIDER (image-only) ==== */
.links-slider{ margin-top:18px; }
.ls-wrap{ position:relative; }
.ls-view{ overflow:hidden; }
.ls-track{
  display:flex; gap:12px;
  will-change: transform;
  transition: transform .35s ease;
}

/* Слайд-картинка */
.ls-slide{
  position:relative; flex: 0 0 calc(25% - 9px); /* 4 на десктопе */
  display:block; border-radius:16px; overflow:hidden;
}
.ls-slide img{
  width:100%; height:100%; display:block; object-fit:cover;
  aspect-ratio: 3.9 / 1;              /* широкая «пилюля» как на скрине */
  filter: saturate(1.05);
}

/* Стрелки */
.ls-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:32px; height:32px; border-radius:50%;
  border:1px solid var(--color-border); background:rgba(0,0,0,.45);
  backdrop-filter: blur(4px); cursor:pointer; z-index:2;
}
.ls-nav--prev{ left:-6px; }
.ls-nav--next{ right:-6px; }
.ls-nav::before{
  content:""; display:block; width:8px; height:8px; border:2px solid #fff;
  border-top:0; border-right:0; margin:10px auto 0; transform: rotate(45deg);
}
.ls-nav--next::before{ transform: rotate(-135deg); }

/* Точки */
.ls-dots{ display:flex; gap:8px; justify-content:center; margin-top:10px; }
.ls-dots button{
  width:22px; height:6px; border-radius:999px; border:0; background:#2a2c36; opacity:.5; cursor:pointer;
}
.ls-dots button[aria-selected="true"]{ opacity:1; background:#666d7d; }

/* Адаптив: планшет/мобила */
@media (max-width: 1280px){
  .ls-slide{ flex: 0 0 calc(33.333% - 8px); } /* 3 */
}
@media (max-width: 768px){
  .ls-wrap{ margin: 0 -16px; }      /* на всю ширину экрана */
  .ls-view{ padding: 0 16px; }
  .ls-slide{ flex: 0 0 85%; }        /* по одному крупно, с peek */
  .ls-nav{ display:none; }           /* свайп вместо стрелок */
}

/* ==== PROMO SLIDER ==== */
.promo-wrap { position: relative; margin-top: 24px; }
.promo-view { overflow: hidden; }
.promo-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
  gap: 16px;
}

/* Слайд */
.promo-slide {
  flex: 0 0 48%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg, #222);
  border-radius: 16px;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}
.promo-slide:hover { transform: scale(1.02); transition: transform 0.3s ease; }

/* Левая часть (текст) */
.promo-text {
  max-width: 75%;
  z-index: 2;
}
.promo-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0px;
}
.promo-sub {
  font-size: 14px;
  opacity: .85;
  margin-bottom: 5px;
  margin-top: 0;

}
.promo-text .btn {
  background: #ff2d00;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 14px;
  color: #fff;
}

/* Правая часть (фото) */
.promo-img {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.promo-img img {
  width: 60px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Навигация */
.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.4);
  cursor: pointer;
}
.promo-nav--prev { left: -8px; }
.promo-nav--next { right: -8px; }
.promo-nav::before {
  content:""; display:block; width:8px; height:8px; border:2px solid #fff;
  border-top:0; border-right:0; margin:10px auto 0;
  transform: rotate(45deg);
}
.promo-nav--next::before { transform: rotate(-135deg); }

/* Точки */
.promo-dots {
  display:flex; justify-content:center;
  gap:8px; margin-top:10px;
}
.promo-dots button {
  width:22px; height:6px; border:0;
  background:#2a2c36; border-radius:999px;
  cursor:pointer; opacity:.5;
}
.promo-dots button[aria-selected="true"] {
  opacity:1; background:#666d7d;
}

/* ==== MOBILE ==== */
@media (max-width: 1024px) {
  .promo-slide { flex: 0 0 80%; padding: 18px; }
  .promo-title { font-size: 18px;margin-top: 0; }
}
@media (max-width: 768px) {
  .promo-track { gap: 12px; }
  .promo-slide {
    flex: 0 0 88%;
    flex-direction: row;
    justify-content: space-between;
    padding: 8px;
  }
  .promo-text { max-width: 100%; }
  .promo-img img { width: 100px; }
  .promo-nav { display:none; }
}

/* Колонки: 4 / 3 / 1 */
.promo-track{ --promo-gap:16px; gap: var(--promo-gap); }

.promo-slide{
  /* 4 карточки в ряд: (100% - 3 промежутка) / 4 */
  flex: 0 0 calc((100% - var(--promo-gap) * 3) / 4);
}

@media (max-width: 1280px){
  /* 3 карточки: (100% - 2 промежутка) / 3 */
  .promo-slide{ flex: 0 0 calc((100% - var(--promo-gap) * 2) / 3); }
}
@media (max-width: 768px){
  /* 1 карточка на мобиле */
  .promo-wrap{ margin: 0 -16px; }
  .promo-view{ padding: 0 16px; }
  .promo-slide{ flex: 0 0 100%; }
  .promo-nav{ display:none; } /* на мобиле свайп */
}

/* Две колонки: узкая под фото + широкая под текст */
.promo-slide{
  display: grid;
  grid-template-columns: 90px 1fr;   /* ← ширина колонки с фото */
  align-items: center;
  gap: 16px;
}

.promo-slide .promo-img{ justify-self: start; }
.promo-slide .promo-img img{ width: 100%; height: auto; }

/* Мобилка — чуть меньше фото */
@media (max-width: 768px){
  .promo-slide{ grid-template-columns: 52px 1fr; }
}


/* ====== GAMES CATEGORIES ====== */
.games-cats {
  margin: 24px 0;
  overflow: hidden;
}
.games-cats__wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}
.games-cats__wrap::-webkit-scrollbar { display: none; }

.games-cat {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  color: #ccc;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  transition: all 0.25s ease;
}
.games-cat img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter: brightness(0.9);
}
.games-cat:hover img {
  filter: brightness(1.1);
}
.games-cat:hover span {
  color: #fff;
}
.games-cat.is-active {
  color: #fff;
  /* box-shadow: 0 0 8px rgba(255, 255, 255, 0.15); */
}
.games-cat.is-active img {
  filter: none;
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
  .games-cats__wrap {
    overflow-x: auto;
    padding: 0 12px;
    scroll-snap-type: x mandatory;
  }

  .games-cat {
    scroll-snap-align: center;
    flex: 0 0 auto;
    min-width: 70px;
    gap: 4px;
  }

  .games-cat img {
    width: 26px;
    height: 26px;
  }
}

/* ====== GAMES ROW (carousel on mobile) ====== */
.games-row{ margin-top:18px; }
.gr-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:10px; }
.gr-title{ display:flex; align-items:center; gap:8px; }
.gr-title h2{ margin:0; font-size:18px; font-weight:800; }
.gr-ico{ color:#ff3b30; }
.gr-badge{ font-size:11px; padding:4px 8px; border-radius:999px; background:#1d1f26; border:1px solid #2a2c36; }

.gr-actions{ display:flex; align-items:center; gap:8px; }
.gr-all{ color:#ff3b30; text-decoration:none; font-size:12px; }
.gr-nav{
  width:26px;height:26px;border-radius:50%;border:1px solid #2a2c36;background:#14151b;
  position:relative;opacity:.9;
}
.gr-nav::before{
  content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;border:2px solid #cfd3de;border-top:0;border-right:0;transform:translate(-40%,-50%) rotate(45deg);
}
.gr-next::before{ transform:translate(-60%,-50%) rotate(-135deg); }

.gr-view{ overflow:hidden; }
.gr-track{ display:flex; gap:12px; transition:transform .35s ease; will-change:transform; }

/* карточка */
.gr-card{
  position:relative; flex:0 0 190px; display:block; color:inherit; text-decoration:none;
  background:#171821; border:1px solid #2a2c36; border-radius:14px; overflow:hidden;
}
.gr-card img{ width:100%; height:120px; object-fit:cover; display:block; }
.gr-inf{ padding:8px 10px 10px; }
.gr-name{ font-size:13px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gr-vendor{ font-size:11px; color:#a7adbb; }

/* CTA на ховер (как на скрине «Играть/Демо») */
.gr-cta{
  position:absolute; left:12px; top:12px;
  font-size:12px; padding:6px 10px; border-radius:10px; background:#ff2d00; color:#fff; border:0;
  opacity:0; transform:translateY(-4px); transition:.2s ease;
}
.gr-cta--ghost{ background:#fff; color:#111; }
.gr-card:hover .gr-cta{ opacity:1; transform:translateY(0); }

/* desktop: показываем много карточек, стрелки работают */
@media (min-width: 769px){
  .gr-card{ flex:0 0 180px; }
}

/* mobile: горизонтальный скролл/свайп одной строкой */
@media (max-width: 768px){
  .gr-view{ margin:0 -16px; }        /* на всю ширину */
  .gr-track{ padding:0 16px; }
  .gr-card{ flex:0 0 72%; }          /* крупная карточка + peek */
  .gr-actions .gr-nav{ display:none; } /* на мобиле листаем свайпом */
}

/* ===== SEO SECTION ===== */
.seo-section {
  color: #cfd3de;
  padding: 40px 0 60px;
  border-top: 1px solid #1f2228;
}

.seo-container {
  margin: 0 auto;
  padding: 0 16px;
}

.seo-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.seo-section p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
  color: #b9c1d0;
}

/* адаптив */
@media (max-width: 768px) {
  .seo-section {
    padding: 32px 0 48px;
  }
  .seo-title {
    font-size: 20px;
    text-align: center;
  }
  .seo-section p {
    font-size: 14px;
    text-align: center;
  }
}

/* ===== BONUS ROW (slider mobile, arrows desktop) ===== */
.bonus-row{ margin-top:18px; }
.br-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.br-head h2{ margin:0; font-size:16px; font-weight:800; }
.br-actions{ display:flex; align-items:center; gap:8px; }
.br-all{ color:#ff3b30; font-size:12px; text-decoration:none; }

.br-view{ overflow:hidden; }
.br-track{
  display:flex; gap:12px;
  transition:transform .35s ease; will-change:transform;
}

/* Карточка с фоном-фото */
.br-card{
  position:relative; flex:0 0 280px;
  display:block; border-radius:16px; overflow:hidden;
  background: var(--img) center/cover no-repeat #15161b;
  height:150px; color:#fff; text-decoration:none;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.br-mask{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.6));
}
.br-txt{
  position:absolute; left:18px; right:18px; bottom:18px;
}
.br-kicker{ font-size:11px; opacity:.85; display:block; margin-bottom:6px; }
.br-title{ font-size:14px; line-height:1.25; display:block; margin-bottom:10px; }
.br-btn{ padding:8px 16px; border-radius:10px; font-size:13px; }

/* info pill */
.br-i{
  position:absolute; right:14px; bottom:16px;
  width:28px;height:28px;border-radius:999px;background:rgba(255,255,255,.15);
  display:inline-grid; place-items:center; font-weight:700;
}

/* arrows (desktop) */
.br-nav{
  width:26px;height:26px;border-radius:50%;border:1px solid #2a2c36;background:#14151b;position:relative;
}
.br-nav::before{
  content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;border:2px solid #cfd3de;border-top:0;border-right:0;transform:translate(-40%,-50%) rotate(45deg);
}
.br-next::before{ transform:translate(-60%,-50%) rotate(-135deg); }

/* Desktop widths (видно много карточек) */
@media (min-width: 1025px){
  .br-card{ flex:0 0 300px; height:160px; }
}

/* Mobile: scroll-snap + «фото за фото» */
@media (max-width: 768px){
  .br-view{ margin:0 -16px; }
  .br-track{ padding:0 16px; gap:8px; overflow-x:auto; scroll-snap-type:x mandatory; }
  .br-track::-webkit-scrollbar{ display:none; }
  .br-card{ flex:0 0 86%; height:160px; scroll-snap-align:center; } /* крупно, почти на весь экран */
  .br-actions .br-nav{ display:none; } /* свайп вместо стрелок */
}

/* ===== Providers ===== */
.providers{ margin-top:18px; }
.pr-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.pr-head h2{ margin:0; font-size:16px; font-weight:800; }
.pr-all{ font-size:12px; color:#ff3b30; text-decoration:none; }

.pr-view{ overflow:hidden; }
.pr-track{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap:12px;
}

.pr-card{
  height:90px;
  border-radius:14px;
  background:#14151b;
  border:1px solid #2a2c36;
  display:flex; align-items:center; justify-content:center;
  transition:transform .15s ease, box-shadow .15s ease;
}
.pr-card:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.25); }
.pr-card img{
  max-width:72%;
  max-height:60%;
  object-fit:contain;
  filter: brightness(.98) contrast(1.05);
}

/* ===== Mobile: горизонтальная прокрутка ===== */
@media (max-width: 768px){
  .pr-view{ margin:0 -16px; }
  .pr-track{
    display:flex; gap:10px; padding:0 16px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }
  .pr-track::-webkit-scrollbar{ display:none; }

  .pr-card{
    flex:0 0 48%;              /* две карточки в экране, листаем свайпом */
    scroll-snap-align:center;
    height:96px;
  }
}
@media (max-width: 480px){
  .pr-card{ flex-basis: 60%; } /* на маленьких — крупнее */
}

/* ==== PAYBAR ==== */
.paybar{
    margin-top: 30px;
  border-top:1px solid #1e1c1c;
  border-bottom:1px solid #1e1c1c;
  padding:10px 0;
}
.paybar__view{ overflow:hidden; }
.paybar__track{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap:18px;
  align-items:center;
  padding:0 16px;
  list-style:none;
  margin:0;
}
.paybar__track a{
  display:flex; align-items:center; justify-content:center;
  height:34px;
  opacity:.55;                  /* приглушаем как на скрине */
  transition:opacity .2s ease, transform .2s ease;
}
.paybar__track a:hover{ opacity:.85; transform: translateY(-1px); }
.paybar__track img{
  max-width:110px;
  max-height:22px;
  width:auto; height:auto;
  object-fit:contain;
  filter: grayscale(1) contrast(1.05) brightness(.9); /* монохром */
}

/* мобильная прокрутка */
@media (max-width: 768px){
  .paybar__view{ margin:0 -12px; }
  .paybar__track{
    display:flex;
    gap:22px;
    padding:0 12px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }
  .paybar__track::-webkit-scrollbar{ display:none; }
  .paybar__track li{ flex:0 0 auto; scroll-snap-align:center; }
  .paybar__track a{ height:32px; }
  .paybar__track img{ max-width:96px; max-height:20px; }
}

/* ===== FOOTER ===== */
.footer{
  margin-top:24px;
  color:#b6bdc8;
}
.footer__container{
  margin:0 auto;
}

.ft-top{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin-bottom:14px;
}
.ft-brand img{ height:26px; display:block; }
.ft-aff{ padding:8px 14px; border-radius:10px; font-size:13px; background:#ff3b30; }

.ft-legal{
  font-size:12px; line-height:1.6; color:#98a1b1;
  border-top:1px solid #1e1c1c; border-bottom:1px solid #1e1c1c;
  padding:14px 0; margin-bottom:16px;
}
.ft-legal a{ color:#cfe4ff; text-decoration:underline; }

.ft-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap:18px 26px;
  margin-bottom:18px;
}
.ft-col h4{
  margin:0 0 10px; font-size:13px; font-weight:800; color:#e8edf7;
}
.ft-col ul{ list-style:none; margin:0; padding:0; }
.ft-col li + li{ margin-top:8px; }
.ft-col a{
  color:#aeb6c3; text-decoration:none; font-size:13px;
}
.ft-col a:hover{ color:#ffffff; }

.ft-bottom{
  display:flex; align-items:center; gap:14px;
  border-top:1px solid #1e1c1c; padding-top:12px;
  font-size:12px; color:#8d95a2;
}
.ft-18{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%;
  background:#1f1a1a; border:1px solid #2b2424; font-weight:800; color:#ff705e;
}
.ft-copy{ opacity:.85; }

/* адаптив */
@media (max-width: 992px){
  .ft-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px){
  .ft-top{ flex-direction:column; align-items:flex-start; gap:10px; }
  .ft-grid{ grid-template-columns: repeat(2, 1fr); }
  .ft-legal{ font-size:11px; }
}
@media (max-width: 420px){
  .ft-grid{ grid-template-columns: 1fr; }
}
