:root {
  --bg-deep: #05140a;
  --bg-card: #1a422a;
  --bg-elevated: #143224;
  --accent: #f7d251;
  --accent-soft: #fceea3;
  --accent-dark: #c9a41e;
  --text: #e8f0ea;
  --text-muted: #9cb0a0;
  --border: rgba(247, 210, 81, 0.14);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.ref-link {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

a:hover .ref-link {
  text-decoration: underline;
}

a.btn,
a.btn:hover,
a.game-card,
a.game-card:hover {
  text-decoration: none;
}

a.btn:hover .ref-link,
a.game-card:hover .ref-link {
  text-decoration: none;
}

.btn-primary .ref-link--btn,
.btn-primary .ref-link {
  color: #1a1408;
}

.btn-ghost .ref-link {
  color: var(--accent);
}

.promo-banner__link {
  position: relative;
  display: block;
}

.promo-banner__link-text {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.seo-article .ref-link,
.faq .ref-link,
.footer-disclaimer .ref-link {
  color: var(--accent);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(5, 20, 10, 0.97) 0%, rgba(5, 20, 10, 0.9) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-wrap {
  display: flex;
  align-items: center;
}

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

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  display: block;
}

.hero .btn-ghost {
  background: rgba(5, 20, 10, 0.45);
  backdrop-filter: blur(6px);
}

.brand-mark {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.nav-main {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-main a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

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

.btn-ghost:hover {
  border-color: rgba(247, 210, 81, 0.4);
  color: var(--accent-soft);
}

.btn-primary {
  background: linear-gradient(135deg, #fceea3 0%, #f7d251 45%, #c9a41e 100%);
  color: #05140a;
  box-shadow: 0 4px 20px rgba(247, 210, 81, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(247, 210, 81, 0.32);
}

.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.hero {
  padding: 28px 20px 56px;
  text-align: left;
}

.hero-surface {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background-color: var(--bg-deep);
  background-image: url("../img-gen/banner-2.webp");
  background-size: cover;
  background-position: 82% center;
  background-repeat: no-repeat;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  min-height: min(480px, 82vw);
}

@media (max-width: 600px) {
  .hero-surface {
    border-radius: 18px;
    min-height: min(420px, 88vh);
  }
}

.hero-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    rgba(5, 20, 10, 0.92) 0%,
    rgba(5, 20, 10, 0.72) 32%,
    rgba(5, 20, 10, 0.35) 58%,
    rgba(5, 20, 10, 0.2) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: min(38em, 94%);
  margin: 0;
  margin-right: auto;
  padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 52px);
  text-align: left;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5.2vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero .tagline {
  color: rgba(232, 240, 234, 0.9);
  font-size: clamp(1.08rem, 2.4vw, 1.3rem);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 42ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
}

.hero .btn {
  padding: 16px 36px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  border-radius: 14px;
  min-height: 52px;
}

@media (max-width: 480px) {
  .hero .btn {
    padding: 14px 24px;
    min-height: 48px;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

.stats {
  max-width: 900px;
  margin: -24px auto 0;
  padding: 0 20px 48px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px;
}

.section-wide {
  max-width: 1200px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.section-sub {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
  }
}

.feature-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-visual {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #1f4d32 0%, #05140a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-visual .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(247, 210, 81, 0.18);
  color: var(--accent-soft);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.feature-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-body h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-body p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px 20px;
}

.game-card {
  background: transparent;
  border-radius: 12px;
  border: 1px solid rgba(247, 210, 81, 0.1);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

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

a.game-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.game-card:hover {
  border-color: rgba(247, 210, 81, 0.22);
}

.game-thumb {
  aspect-ratio: 16 / 10;
  background: #0a1f14;
  overflow: hidden;
  display: block;
  position: relative;
  border-radius: 10px 10px 0 0;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.game-card:hover .game-thumb img {
  transform: scale(1.02);
}

/* Promo full-width banner */
.promo-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 32px;
}

.promo-banner__link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.promo-banner__link:hover {
  border-color: rgba(247, 210, 81, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.promo-banner__link img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* CTA: компактна карусель зліва, текст і кнопки справа */
.cta-strip {
  padding-top: 8px;
  padding-bottom: 40px;
}

.cta-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(260px, 40%) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: stretch;
}

.cta-strip__media {
  min-width: 0;
  width: 100%;
  max-width: 440px;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  height: 100%;
}

.cta-strip .cta-carousel {
  border-radius: 12px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cta-strip .cta-carousel__viewport {
  flex: 1 1 auto;
  width: 100%;
  min-height: 220px;
  max-height: none;
  aspect-ratio: unset;
  align-self: stretch;
}

.cta-strip .cta-carousel__prev,
.cta-strip .cta-carousel__next {
  width: 34px;
  height: 34px;
  font-size: 1.15rem;
}

.cta-strip .cta-carousel__prev {
  left: 6px;
}

.cta-strip .cta-carousel__next {
  right: 6px;
}

@media (max-width: 900px) {
  .cta-strip__inner {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 600px;
  }

  .cta-strip__media {
    max-width: none;
    justify-self: stretch;
  }

  .cta-strip .cta-carousel__viewport {
    min-height: min(200px, 42vw);
    aspect-ratio: unset;
  }
}

.cta-strip__eyebrow {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cta-strip__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.cta-strip__text h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--accent-soft);
}

.cta-strip__copy {
  margin: 0 0 20px;
}

.cta-strip__copy p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.6;
  max-width: 58ch;
}

.cta-strip__copy p:last-child {
  margin-bottom: 0;
}

.cta-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
}

.cta-strip__actions .btn {
  padding: 12px 22px;
  font-size: 0.95rem;
  border-radius: 11px;
}

.cta-carousel {
  --carousel-slides: 3;
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  overflow: hidden;
}

.cta-carousel__viewport {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(320px, 56vw);
  padding: 0;
  line-height: 0;
  position: relative;
  isolation: isolate;
  background: var(--bg-deep);
}

@media (max-width: 900px) {
  .cta-carousel__viewport {
    max-height: min(220px, 52vw);
  }
}

/* Трек на всю площу в’юпорта; кількість слайдів — у data-carousel-slides на .cta-carousel */
.cta-carousel__track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: calc(100% * var(--carousel-slides, 3));
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: transform 0.45s ease;
  z-index: 0;
}

.cta-carousel__slide {
  margin: 0;
  padding: 0;
  border: 0;
  flex: 0 0 calc(100% / var(--carousel-slides, 3));
  width: calc(100% / var(--carousel-slides, 3));
  min-width: calc(100% / var(--carousel-slides, 3));
  height: 100%;
  position: relative;
  overflow: hidden;
}

.cta-carousel__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cta-carousel__prev,
.cta-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(5, 20, 10, 0.75);
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s, color 0.2s;
}

.cta-carousel__prev:hover,
.cta-carousel__next:hover {
  background: rgba(26, 66, 42, 0.95);
  color: var(--accent-soft);
}

.cta-carousel__prev {
  left: 10px;
}

.cta-carousel__next {
  right: 10px;
}

.cta-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 10px 12px 14px;
  margin: 0;
  background: linear-gradient(to top, rgba(5, 20, 10, 0.55), transparent);
  pointer-events: none;
}

.cta-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--text-muted);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: auto;
  flex-shrink: 0;
}

.cta-carousel__dot[aria-current="true"] {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.15);
}

.game-info {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.game-title {
  font-weight: 500;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: rgba(232, 240, 234, 0.88);
  letter-spacing: 0.01em;
}

.game-provider {
  display: none;
}

.game-card .btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(247, 210, 81, 0.35);
  color: var(--accent);
  box-shadow: none;
}

.game-card:hover .btn,
.game-card .btn:hover {
  background: rgba(247, 210, 81, 0.06);
  border-color: rgba(247, 210, 81, 0.5);
  box-shadow: none;
}

.game-card .btn:active {
  transform: none;
}

.game-card .btn-primary .ref-link {
  color: var(--accent);
  font-weight: 600;
}

.seo-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}

.seo-article h2 {
  font-size: 1.25rem;
  margin: 36px 0 14px;
  color: var(--accent-soft);
}

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

.seo-article p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0 0 14px;
}

.pay-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pay-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pay-table th,
.pay-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pay-table th {
  background: var(--bg-elevated);
  color: var(--accent-soft);
  font-weight: 600;
}

.pay-table tr:last-child td {
  border-bottom: none;
}

.pay-table td {
  color: var(--text-muted);
}

.pay-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.article-block {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-top: 24px;
}

.article-block h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--accent-soft);
}

.article-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq {
  margin-top: 8px;
  padding-bottom: 32px;
}

.faq__title {
  margin: 0 0 20px;
  font-size: clamp(1.2rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: var(--accent);
}

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

.faq__item {
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(247, 210, 81, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq__item:hover {
  border-color: rgba(247, 210, 81, 0.22);
}

.faq__item[open] {
  border-color: rgba(247, 210, 81, 0.2);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: 0.01em;
}

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

.faq__item summary::before {
  content: "";
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-top: 0.38em;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent rgba(232, 240, 234, 0.95);
  transition: transform 0.2s ease;
}

.faq__item[open] summary::before {
  transform: rotate(90deg);
}

.faq__item p {
  margin: 12px 0 0;
  padding-left: 17px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.58;
}

.site-footer {
  margin-top: 24px;
  padding: 32px 20px 40px;
  border-top: 1px solid var(--border);
  background: #030a06;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.age-badge {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-logo {
  margin: 0 auto 12px;
  height: 42px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px;
    flex-direction: column;
    gap: 16px;
  }

  .nav-wrap.is-open {
    display: flex;
  }

  .nav-main {
    flex-direction: column;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions .btn span {
    display: none;
  }
}
