/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d0f14;
  --bg2:         #151820;
  --bg3:         #1c2030;
  --surface:     #1e2235;
  --border:      #2a2f45;
  --gold:        #f0b429;
  --gold-dark:   #c8941a;
  --green:       #2ecc71;
  --green-dark:  #27ae60;
  --accent:      #4f6ef7;
  --accent-dark: #3a55d4;
  --text:        #e8eaf0;
  --text-muted:  #7b8299;
  --text-dim:    #4a5070;
  --red:         #e74c3c;
  --radius:      10px;
  --radius-lg:   16px;
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: url('background.webp');
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.82);
  z-index: 0;
  pointer-events: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 20px; }
li { margin-bottom: 4px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--text-muted); }

.btn--gold {
  background: var(--gold);
  color: #1a1200;
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn--lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn--full { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 44px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav__link:hover, .nav__link.active {
  color: var(--text);
  background: var(--surface);
}

.header__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  gap: 4px;
}
.mobile-menu a {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-muted);
}
.mobile-menu a:hover { color: var(--text); background: var(--surface); }
.mobile-menu.open { display: flex; }

/* ===== TICKER ===== */
.ticker-wrap {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  height: 40px;
  overflow: hidden;
}

.ticker-label {
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  background: var(--bg2);
  z-index: 2;
}

.ticker {
  display: flex;
  gap: 0;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
}
.ticker__item .nick { color: var(--text); font-weight: 600; }
.ticker__item .amount { color: var(--green); font-weight: 700; }
.ticker__item .game { color: var(--text-dim); }

/* ===== MAIN & PAGES ===== */
.main { position: relative; z-index: 1; }
.page { animation: fadein 0.3s ease; }
.page.hidden { display: none; }

@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== HERO ===== */
.hero {
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 60% 50%, rgba(79,110,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero__badge {
  display: inline-block;
  background: rgba(240,180,41,0.15);
  color: var(--gold);
  border: 1px solid rgba(240,180,41,0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero__bonus {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 40px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color var(--transition);
}
.feature:hover { border-color: var(--accent); }

.feature__icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border-radius: 12px;
}

.feature__text { display: flex; flex-direction: column; }
.feature__text strong { font-size: 14px; font-weight: 700; color: var(--text); }
.feature__text span { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ===== SECTION ===== */
.section {
  padding: 40px 0;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section__link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  transition: color var(--transition);
}
.section__link:hover { color: #7a94ff; }

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.games-grid--full {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
  aspect-ratio: 3/4;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.game-card:hover .game-card__overlay { opacity: 1; }

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 20, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity var(--transition);
}

.game-card__name {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 0 12px;
}

.game-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: #1a1200;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.game-card__badge--new { background: var(--green); color: #fff; }
.game-card__badge--live { background: var(--red); color: #fff; }

/* ===== PROMO BANNER ===== */
.promo-banner {
  padding: 0 0 40px;
}

.promo-banner__inner {
  background: linear-gradient(135deg, var(--bg3) 0%, #1a2040 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.promo-banner__inner::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(240,180,41,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.promo-banner__left h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.promo-banner__left p { color: var(--text-muted); margin-bottom: 20px; }

.promo-percent {
  font-size: 80px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  opacity: 0.8;
}

.promo-fs {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.7;
  text-align: center;
}

/* ===== APP SECTION ===== */
.app-section {
  padding: 0 0 40px;
}

.app-section__inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.app-section__inner h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.app-section__inner p { color: var(--text-muted); margin-bottom: 20px; }
.app-section__phones { font-size: 60px; }

/* ===== SEO SECTION ===== */
.seo-section {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
}

.seo-section h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}

.seo-section > p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 800px;
  margin-bottom: 32px;
}

.seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.seo-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.seo-block h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--gold); }
.seo-block p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.seo-block ol, .seo-block ul { font-size: 14px; color: var(--text-muted); }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; margin-bottom: 10px; }
.page-hero p { font-size: 16px; color: var(--text-muted); }

/* ===== FILTERS ===== */
.filters {
  display: flex;
  gap: 8px;
  padding: 24px 0 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== LIVE CATEGORIES ===== */
.live-categories {
  display: flex;
  gap: 14px;
  padding: 28px 0 0;
  flex-wrap: wrap;
}

.live-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 28px;
  cursor: pointer;
  transition: all var(--transition);
  min-width: 110px;
}
.live-cat:hover, .live-cat--active {
  border-color: var(--accent);
  background: rgba(79,110,247,0.1);
}

.live-cat__icon { font-size: 28px; }
.live-cat span { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.live-cat--active span { color: var(--text); }

/* ===== LIVE INFO ===== */
.live-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 0 60px;
}

.live-info__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.live-info__card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--accent); }
.live-info__card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== BONUSES GRID ===== */
.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 0 60px;
}

.bonus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color var(--transition);
}
.bonus-card:hover { border-color: var(--accent); }

.bonus-card--featured {
  border-color: var(--gold);
  background: rgba(240,180,41,0.04);
}
.bonus-card--featured:hover { border-color: var(--gold-dark); }

.bonus-card__badge {
  position: absolute;
  top: -1px;
  right: 20px;
  background: var(--gold);
  color: #1a1200;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bonus-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bonus-card__icon { font-size: 28px; }
.bonus-card__header h3 { font-size: 17px; font-weight: 800; }

.bonus-card__amount {
  font-size: 30px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.bonus-card--featured .bonus-card__amount { font-size: 36px; }

.bonus-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.bonus-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.bonus-card__list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  margin: 0;
}
.bonus-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 40px 0 60px;
}

.faq-group {
  margin-bottom: 40px;
}

.faq-group__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color var(--transition);
  overflow: hidden;
}
.faq-item:hover { border-color: var(--accent); }
.faq-item.open { border-color: var(--accent); }

.faq-item__q {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item__q::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-item__q::after {
  transform: rotate(45deg);
}

.faq-item__a {
  display: none;
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-item.open .faq-item__a { display: block; }

.faq-contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}
.faq-contact h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.faq-contact p { color: var(--text-muted); margin-bottom: 20px; }

/* ===== WINNERS PANEL ===== */
.winners-panel {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  width: 280px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.winners-panel__header {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.winners-panel__dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.winners-panel__list {
  max-height: 260px;
  overflow: hidden;
  position: relative;
}

.winner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  animation: slideIn 0.4s ease;
  transition: background var(--transition);
}
.winner-item:last-child { border-bottom: none; }
.winner-item:hover { background: var(--surface); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.winner-item__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.winner-item__info { flex: 1; min-width: 0; }
.winner-item__nick {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.winner-item__game {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-item__win {
  font-size: 14px;
  font-weight: 800;
  color: var(--green);
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer__inner { padding: 60px 20px 32px; }

.footer__top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer__brand { }
.footer__logo { height: 40px; margin-bottom: 16px; }
.footer__brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__bottom p { font-size: 13px; color: var(--text-dim); }

.footer__disclaimer {
  font-size: 12px !important;
  color: var(--text-dim) !important;
  line-height: 1.5;
}
.footer__disclaimer a { color: var(--text-dim); text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .bonuses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .live-info { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .seo-grid { grid-template-columns: 1fr; }
  .promo-banner__inner { flex-direction: column; text-align: center; }
  .promo-percent { font-size: 60px; }
}

@media (max-width: 768px) {
  .nav, .header__actions { display: none; }
  .burger { display: flex; }

  .features { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .bonuses-grid { grid-template-columns: 1fr; }
  .live-info { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .live-categories { gap: 8px; }
  .live-cat { padding: 14px 20px; min-width: 90px; }

  .winners-panel { width: 240px; bottom: 16px; left: 16px; }
}

@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__nav { grid-template-columns: 1fr; }
  .promo-banner__inner { padding: 24px; }
  .app-section__inner { flex-direction: column; text-align: center; }
  .winners-panel { display: none; }
}
