/* ===== Базовые настройки ===== */
:root {
  --bg-main: #120020;
  --bg-card: #26123b;
  --bg-card-alt: #2f1547;
  --accent: #ff1f9a;
  --accent-soft: #ffb100;
  --text-main: #ffffff;
  --text-muted: #c5b7e3;
  --border-radius: 14px;
  --transition-fast: 0.2s ease-in-out;
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.5);
  --sidebar-width: 240px;
  --max-width: 1280px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #26123b 0, #120020 45%, #050009 100%);
  color: var(--text-main);
  min-height: 100vh;
}

/* ===== Верхняя панель ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;          /* шапка по центру */
  gap: 16px;
  padding: 10px 16px;
  background: linear-gradient(90deg,#1c0630,#220839);
  box-shadow: 0 4px 18px rgba(0,0,0,0.7);
}

.topbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 20%, #ffe082, #ff1f9a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #120020;
}

.logo-text {
  font-size: 15px;
}

.topbar__search {
  flex: 0 1 460px;
}

.topbar__search input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  background: #2b1541;
  color: #fff;
  font-size: 14px;
}

.topbar__search input::placeholder {
  color: #8d7fb0;
}

.topbar__actions {
  display: flex;
  gap: 8px;
}

.topbar__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.topbar__burger span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
  transition: var(--transition-fast);
}

/* ===== Кнопки ===== */
.btn {
  border-radius: 999px;
  border: none;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.btn--primary {
  background: linear-gradient(135deg,#ff1f9a,#ffb100);
  color: #120020;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--ghost {
  background: transparent;
  border: 1px solid #3f275e;
  color: var(--text-main);
}

.btn--ghost:hover {
  background: #3f275e;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* ===== Лэйаут ===== */
.layout {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;         /* центрируем весь контент */
  padding: 16px;
  gap: 16px;
}

/* ===== Сайдбар ===== */
.sidebar {
  width: var(--sidebar-width);
  background: #1a082e;
  border-radius: 20px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 60px;
  height: max-content;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.sidebar__link:hover {
  background: #2b1541;
  color: #fff;
}

.sidebar__link--active {
  background: linear-gradient(135deg,#ff1f9a,#ffb100);
  color: #120020;
  font-weight: 600;
}

.sidebar__lang {
  margin-top: 12px;
}

.lang-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #3f275e;
  background: #220839;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.lang-flag {
  font-size: 16px;
}

/* ===== Основной контент ===== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;      /* центрируем заголовки и текстовые блоки */
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1.7fr);
  gap: 16px;
  background: radial-gradient(circle at left,#43144d,#1a082e 55%,#14041f 100%);
  border-radius: 24px;
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-soft);
}

.hero__content h1 {
  font-size: 26px;
  margin: 0 0 10px;
}

.hero__content p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center; /* кнопки под заголовком по центру */
}

/* Promo cards */
.hero__promo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hero-card {
  border-radius: 20px;
  padding: 14px 16px;
  background: linear-gradient(135deg,#1b0b2c,#39206c);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.hero-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.hero-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-card--cashback {
  background: linear-gradient(135deg,#1a3c34,#2a1142);
}

/* Секции */
.section {
  background: #1a082e;
  border-radius: 20px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-soft);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  text-align: left;   /* заголовок + ссылка: выравнивание внутри строки */
}

.section__head h2 {
  font-size: 18px;
  margin: 0;
}

.section__more {
  font-size: 13px;
  color: var(--accent-soft);
  text-decoration: none;
}

/* Сетка игр */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.game-card {
  background: radial-gradient(circle at top,#3c215e,#220839 55%,#1a082e 100%);
  border-radius: var(--border-radius);
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.7);
}

.game-card__thumb {
  border-radius: 12px;
  height: 120px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 8px;
}

/* заглушки картинок */
.game-card__thumb--sbx { background-image: linear-gradient(135deg,#ff5ac3,#ffc078); }
.game-card__thumb--gate { background-image: linear-gradient(135deg,#ffb100,#ff5e00); }
.game-card__thumb--wolf { background-image: linear-gradient(135deg,#4dd0ff,#805bff); }
.game-card__thumb--bigbass { background-image: linear-gradient(135deg,#37c978,#1c89ff); }

.game-card__thumb--roulette { background-image: linear-gradient(135deg,#ff4b6b,#ffd452); }
.game-card__thumb--baccarat { background-image: linear-gradient(135deg,#ff1f9a,#8e24aa); }
.game-card__thumb--blackjack { background-image: linear-gradient(135deg,#29b6f6,#ab47bc); }
.game-card__thumb--mega-roulette { background-image: linear-gradient(135deg,#ff7043,#ffa726); }

.game-card__thumb--cabana { background-image: linear-gradient(135deg,#ff9a9e,#fad0c4); }
.game-card__thumb--pigfarm { background-image: linear-gradient(135deg,#ffd452,#ff9a3c); }
.game-card__thumb--fire3 { background-image: linear-gradient(135deg,#f83600,#f9d423); }
.game-card__thumb--spinman { background-image: linear-gradient(135deg,#3f51b5,#00bcd4); }

.game-card__title {
  font-size: 14px;
  margin: 0 0 2px;
}

.game-card__provider {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* SEO секция */
.section--seo p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== Футер ===== */
.footer {
  max-width: var(--max-width);
  margin: 24px auto 16px;
  padding: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}

.footer__grid h3 {
  margin-top: 0;
  font-size: 14px;
  color: #fff;
}

.footer__grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__grid a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
}

.footer__grid a:hover {
  color: #fff;
}

.footer__copy {
  text-align: center;
  margin-top: 12px;
  opacity: 0.7;
}

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .layout {
    padding: 12px;
  }
  .games-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
  .hero {
    grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  }
}

@media (max-width: 768px) {
  .topbar {
    justify-content: space-between; /* чтобы бургер не уезжал */
  }

  .topbar__search {
    display: none;
  }

  .layout {
    padding: 10px;
  }

  .sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 220px;
    transform: translateX(-100%);
    transition: transform var(--transition-fast);
    height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 25;
  }

  .sidebar--open {
    transform: translateX(0);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .layout {
    flex-direction: column;
  }

  .hero__content h1 {
    font-size: 20px;
  }

  .hero-card {
    padding: 12px;
  }

  .games-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-card__thumb {
    height: 96px;
  }

  .btn {
    padding: 7px 14px;
    font-size: 13px;
  }
}
/* ===== Нижнее мобильное меню ===== */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: #220124;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: none;                 /* по умолчанию скрыто на десктопе */
  align-items: center;
  justify-content: space-around;
  padding: 6px 8px 8px;
  z-index: 30;
}

.bottom-nav__item {
  position: relative;
  flex: 1;
  max-width: 80px;
  border: none;
  background: transparent;
  color: #e0d2ff;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.bottom-nav__icon {
  font-size: 18px;
  line-height: 1;
}

.bottom-nav__label {
  font-size: 11px;
}

.bottom-nav__item--active .bottom-nav__label {
  color: #ffffff;
}

/* центральная кнопка Deposit */
.bottom-nav__item--center {
  max-width: none;
}

.bottom-nav__plus {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ff5ac3, #ffb100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #220124;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: -2px;
  box-shadow: 0 0 0 4px #220124, 0 8px 18px rgba(0,0,0,0.8);
}

/* показываем только на мобилках */
@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 70px; /* чтобы контент не прятался под меню */
  }
}
