* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #17161b;
  color: #eceaf1;
  line-height: 1.55;
  font-size: 16px;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  font-family: "Arial Black", Arial, "Helvetica Neue", sans-serif;
  color: #f4f3f7;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.08;
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
}

h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
}

p {
  margin: 0 0 16px;
  color: #c9c6d4;
}

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

p a {
  color: #cfccdc;
  text-decoration: underline;
  text-decoration-color: rgba(207,204,220,0.4);
  text-underline-offset: 3px;
}

p a:hover,
p a:focus-visible {
  color: #f4f3f7;
}

ul, ol {
  padding-left: 20px;
  color: #c9c6d4;
  margin: 0 0 16px;
}

li {
  margin-bottom: 8px;
}

section {
  padding: 72px 0;
}

@media (max-width: 768px) {
  section {
    padding: 44px 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border-color: #4a4756;
  color: #eceaf1;
}

.btn-outline:hover {
  border-color: #cfccdc;
  transform: translateY(-1px);
}

.btn-solid {
  background: #9c2b3a;
  border-color: #9c2b3a;
  color: #fff;
}

.btn-solid:hover {
  background: #b3323f;
  box-shadow: 0 8px 18px rgba(156,43,58,0.35);
  transform: translateY(-1px);
}

.btn-primary {
  background: #cfccdc;
  border-color: #cfccdc;
  color: #17161b;
}

.btn-primary:hover {
  background: #f4f3f7;
  box-shadow: 0 10px 20px rgba(207,204,220,0.25);
  transform: translateY(-2px);
}

.btn-lg {
  height: 52px;
  padding: 0 30px;
  font-size: 16px;
  border-radius: 16px;
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 12px;
}

.btn:focus-visible,
.btn-icon:focus-visible,
.tab:focus-visible,
.fav-btn:focus-visible,
.slider-arrow:focus-visible,
.review-dot:focus-visible {
  outline: 2px solid #cfccdc;
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(0);
}

.btn-play {
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: #17161b;
  border: 1px solid #4a4756;
  color: #f4f3f7;
  font-size: 14px;
  width: 100%;
}

.btn-play:hover {
  background: #9c2b3a;
  border-color: #9c2b3a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #141318;
  border-bottom: 1px solid #2b2933;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #f4f3f7;
}

.main-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  font-size: 15px;
  color: #c9c6d4;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #f4f3f7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid #4a4756;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #eceaf1;
  margin: 0 8px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #17161b;
  padding-top: 76px;
}

.table-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(90deg, transparent 49.6%, rgba(156,43,58,0.28) 49.9%, rgba(156,43,58,0.28) 50.1%, transparent 50.4%),
    linear-gradient(0deg, transparent 92%, rgba(156,43,58,0.16) 92.4%);
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: #a9a4bf;
  margin: 0 0 14px;
  font-weight: 700;
}

.hero-lead {
  font-size: 18px;
  max-width: 520px;
}

.hero-cta {
  margin-top: 28px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 340px;
}

.card-stack {
  position: relative;
  width: 260px;
  height: 320px;
}

.stack-card {
  position: absolute;
  width: 190px;
  height: 260px;
  border-radius: 18px;
  background: #f4f3f7;
  border: 3px solid #1c1b22;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 16px;
  font-size: 34px;
  font-weight: 900;
  color: #9c2b3a;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.stack-card-a {
  top: 40px;
  left: 0;
  transform: rotate(-12deg);
  color: #4a4756;
}

.stack-card-b {
  top: 10px;
  left: 40px;
  transform: rotate(4deg);
}

.stack-card-c {
  top: 60px;
  left: 60px;
  transform: rotate(-3deg);
  color: #1c1b22;
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 32px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #3a3844;
  background: transparent;
  color: #c9c6d4;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.catalog {
  background: #f4f3f7;
  color: #1c1b22;
}

.catalog h2,
.catalog h3 {
  color: #1c1b22;
}

.catalog p {
  color: #4a4756;
}

.catalog .tab {
  border-color: #d6d3e0;
  color: #4a4756;
}

.catalog .tab.is-active {
  background: #1c1b22;
  color: #f4f3f7;
  border-color: #1c1b22;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  grid-auto-rows: 1fr;
}

.game-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e0ea;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(28,27,34,0.14);
}

.game-card[hidden] {
  display: none;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transform: rotate(-4deg);
  color: #fff;
}

.badge-new { background: #5c5772; }
.badge-popular { background: #9c2b3a; }
.badge-jackpot { background: #1c1b22; }
.badge-live { background: #6f2632; }

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #e2e0ea;
  background: #ffffff;
  color: #c9c6d4;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.game-card.is-favorite .fav-btn {
  color: #9c2b3a;
  border-color: #9c2b3a;
}

.game-cover {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  background: #1c1b22;
  margin-bottom: 12px;
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.game-reel {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.game-reel span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 0;
  border-radius: 6px;
  background: #1c1b22;
  color: #cfccdc;
}

.game-title {
  font-size: 17px;
  margin: 0 0 12px;
  color: #1c1b22;
  flex-grow: 1;
}

.empty-state {
  color: #4a4756;
  text-align: center;
  padding: 30px 0 0;
}

.how {
  background: #1c1b22;
}

.how-intro {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.how-intro-figure img {
  width: 100%;
  height: auto;
  max-width: 420px;
  display: block;
  border-radius: 16px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.step {
  background: #232129;
  border: 1px solid #34313d;
  border-radius: 16px;
  padding: 24px;
  position: relative;
}

.step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  width: 24px;
  height: 2px;
  background: #4a4756;
}

.step:last-child::after {
  display: none;
}

.step-index {
  display: inline-block;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 26px;
  color: #9c2b3a;
  margin-bottom: 10px;
}

.reviews {
  background: #f4f3f7;
  color: #1c1b22;
}

.reviews h2,
.reviews h3 {
  color: #1c1b22;
}

.reviews p {
  color: #4a4756;
}

.reviews-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  padding: 4px;
  margin: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  scroll-snap-align: start;
  flex: 0 0 calc(25% - 15px);
  background: #ffffff;
  border: 1px solid #e2e0ea;
  border-radius: 16px;
  padding: 22px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card p {
  color: #2f2d36;
  font-size: 15px;
}

.review-name {
  font-weight: 700;
  color: #9c2b3a;
  font-size: 14px;
}

.slider-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d6d3e0;
  background: #ffffff;
  color: #1c1b22;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.slider-arrow:hover {
  background: #1c1b22;
  color: #f4f3f7;
}

.reviews-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6d3e0;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.review-dot.is-active {
  background: #9c2b3a;
  transform: scale(1.3);
}

.advantages {
  background: #1c1b22;
}

.advantages-row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: center;
}

.advantages-figure {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.advantages-figure img {
  width: 100%;
  height: auto;
  max-width: 420px;
  display: block;
}

.advantages-list li {
  border-left: 3px solid #9c2b3a;
  padding-left: 14px;
}

.faq {
  background: #f4f3f7;
  color: #1c1b22;
}

.faq h2 {
  color: #1c1b22;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e0ea;
  border-radius: 14px;
  padding: 6px 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  font-size: 16px;
  color: #1c1b22;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 20px;
  color: #9c2b3a;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  color: #4a4756;
  padding-bottom: 14px;
  margin: 0;
}

.info {
  background: #1c1b22;
}

.info h3 {
  margin-top: 32px;
}

.cta {
  background: #23121a;
  border-top: 1px solid #3a2028;
  border-bottom: 1px solid #3a2028;
}

.cta-inner {
  text-align: left;
  max-width: 640px;
}

.site-footer {
  background: #141318;
  border-top: 1px solid #2b2933;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #2b2933;
}

.footer-brand p {
  font-size: 14px;
  color: #8f8ba0;
  margin-top: 14px;
}

.footer-col h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

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

.footer-col a {
  color: #a9a4bf;
  font-size: 14px;
  display: inline-block;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #f4f3f7;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 24px;
  flex-wrap: wrap;
}

.badge-18 {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #9c2b3a;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.footer-legal {
  flex: 1 1 320px;
  color: #8f8ba0;
  font-size: 13px;
  margin: 0;
}

.footer-copy {
  color: #63607a;
  font-size: 13px;
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 90px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #1c1b22;
  border: 1px solid #4a4756;
  color: #f4f3f7;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 60;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: #9c2b3a;
  border-color: #9c2b3a;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 560px;
  margin: 0 auto;
  background: #1c1b22;
  border: 1px solid #3a3844;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 70;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 14px;
  color: #c9c6d4;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #4a4756;
  background: transparent;
  color: #c9c6d4;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  color: #f4f3f7;
  border-color: #cfccdc;
}

@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .review-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 992px) {
  .hero-grid,
  .how-intro,
  .advantages-row {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #141318;
    border-bottom: 1px solid #2b2933;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open {
    max-height: 320px;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .header-actions .btn-outline,
  .header-actions .btn-solid {
    padding: 0 14px;
    font-size: 14px;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step::after {
    display: none;
  }
  .review-card {
    flex: 0 0 calc(100% - 0px);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
  .header-actions {
    gap: 8px;
  }
  .btn-lg {
    width: 100%;
  }
}
