:root {
  --bg-deep: #06041a;
  --bg-card: #12102a;
  --border: rgba(30, 26, 58, 0.95);
  --cyan: #00e5ff;
  --purple: #9d50bb;
  --text: #e8e6f2;
  --muted: #9b96b5;
  --gradient: linear-gradient(105deg, var(--cyan), var(--purple));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #1a0f3d 0%, var(--bg-deep) 45%, #030210 100%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* Плашка перехода на рефку (5 сек), стиль сайта */
.redirect-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(180deg, #0a042d 0%, #07051f 100%);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.redirect-bar.is-hidden {
  display: none;
}

body.has-redirect-bar {
  padding-top: 56px;
}

@media (max-width: 720px) {
  body.has-redirect-bar {
    padding-top: 96px;
  }
}

.redirect-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 56px;
  padding: 0.5rem 0;
  padding-left: 2.5rem;
  position: relative;
}

.redirect-bar-close {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.redirect-bar-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.redirect-bar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.redirect-bar-brand .logo-icon {
  width: 26px;
  height: 26px;
}

.redirect-bar-brand-text {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.redirect-bar-brand-text .atom {
  color: var(--cyan);
}

.redirect-bar-brand-text .casino {
  color: #fff;
}

.redirect-bar-msg {
  flex: 1 1 200px;
  margin: 0;
  font-size: 0.82rem;
  color: rgba(232, 230, 242, 0.92);
  line-height: 1.4;
}

.redirect-bar-msg strong {
  color: #fff;
}

.redirect-bar-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 229, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.redirect-bar-timer .redirect-count {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.redirect-bar-cta {
  flex-shrink: 0;
  padding: 0.5rem 1.15rem;
  font-size: 0.82rem;
  white-space: nowrap;
  background: linear-gradient(105deg, #00e5ff, #9d50bb);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 2px 16px rgba(157, 80, 187, 0.35);
  text-decoration: none;
  transition: filter 0.2s, transform 0.15s;
}

.redirect-bar-cta:hover {
  filter: brightness(1.08);
}

.redirect-bar-cta:active {
  transform: scale(0.98);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 4, 26, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo span:first-of-type {
  color: var(--cyan);
}

.logo span:last-of-type {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-main a {
  color: var(--muted);
  transition: color 0.2s;
}

.nav-main a:hover {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 229, 255, 0.55);
}

.btn-ghost:hover {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
  border-color: var(--cyan);
}

.btn-gradient {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(157, 80, 187, 0.35), 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-gradient:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 32px rgba(157, 80, 187, 0.45), 0 0 28px rgba(0, 229, 255, 0.3);
}

/* Ticker */
.ticker {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 8, 30, 0.6);
  padding: 0.5rem 0;
}

.ticker-viewport {
  overflow: hidden;
  width: 100%;
}

.ticker-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  width: max-content;
  animation: ticker-marquee 45s linear infinite;
  animation-delay: 0s;
  will-change: transform;
}

.ticker-strip img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

@keyframes ticker-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-25%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-strip {
    animation: none;
  }
}

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 900px;
  margin-inline: auto;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.75rem;
  font-size: 1rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 120px;
  text-align: center;
}

.trust-item svg {
  width: 28px;
  height: 28px;
  color: var(--cyan);
}

/* Banner */
.banner-block {
  margin: 0 auto 3rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.banner-block img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

/* Section titles */
.section {
  padding: 2.5rem 0 3rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.65rem;
}

.section-head p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Bonus cards */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .bonus-grid {
    grid-template-columns: 1fr;
  }
}

.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bonus-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.08);
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.pill-blue {
  background: rgba(0, 229, 255, 0.15);
  color: var(--cyan);
}

.pill-purple {
  background: rgba(157, 80, 187, 0.2);
  color: #d4a8ff;
}

.pill-gold {
  background: rgba(255, 180, 72, 0.18);
  color: #ffc46b;
}

.bonus-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.bonus-big {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  margin: 0 0 1rem;
}

.bonus-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex-grow: 1;
  font-size: 0.88rem;
  color: var(--muted);
}

.bonus-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
}

.bonus-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 800;
}

.bonus-card .btn {
  width: 100%;
}

/* Game grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.game-card:hover {
  border-color: rgba(0, 229, 255, 0.55);
  transform: translateY(-2px);
}

.game-card a {
  display: block;
  color: inherit;
}

.game-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-tag {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

.game-body {
  padding: 1rem 1.1rem 1.15rem;
}

.game-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.game-body p {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.stat-pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 229, 255, 0.18);
  color: var(--cyan);
}

.catalog-cta {
  text-align: center;
  margin-top: 2rem;
}

.catalog-cta .btn {
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
}

/* SEO article */
.article {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
}

.article-inner {
  max-width: 800px;
  margin-inline: auto;
}

.article h2 {
  font-size: 1.65rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article h2:first-child {
  margin-top: 0;
}

.article p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.article ul {
  color: var(--muted);
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

/* FAQ (ТЗ: toggleFaq) */
.faq-list {
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  margin: 0;
  padding: 1rem 1.15rem;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(0, 229, 255, 0.06);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: background 0.2s;
}

.faq-q::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cyan);
  line-height: 1;
}

.faq-item.is-open .faq-q::after {
  content: "−";
}

.faq-q:hover {
  background: rgba(0, 229, 255, 0.1);
}

.faq-a {
  display: none;
  padding: 0 1.15rem 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.faq-item.is-open .faq-a {
  display: block;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .nav-main {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .header-inner {
    justify-content: center;
  }
}
