:root {
  --color-primary: #e50539;
  --color-secondary: #28a909;
  --color-bg: #0e0e0e;
  --color-nav: #1b1c1d;
  --color-text: #ffffff;
  --color-text-muted: #b0b0b0;
  --color-border: #2a2a2a;
  --color-card: #1a1a1a;
  --color-bronze: #cd7f32;
  --color-silver: #c0c0c0;
  --color-gold: #ffd700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.fixed {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background-color: var(--color-nav);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
}

.header-logo img {
  display: block;
  height: 50px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-icon {
  flex-shrink: 0;
}

.nav-extras {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-selector {
  position: relative;
}

.lang-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--color-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}

.lang-button:hover {
  border-color: var(--color-primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-nav);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  min-width: 160px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.lang-dropdown.active {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.lang-option:hover,
.lang-option.active {
  background-color: rgba(229, 5, 57, 0.1);
}

.online-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.online-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 15px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: #c70431;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 5, 57, 0.4);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: #229007;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 169, 9, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/hero-banner.jpg") center / cover no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  margin-bottom: 60px;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--color-text-muted);
  margin-bottom: 30px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.main-content {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.jackpots-section {
  margin-bottom: 80px;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(229, 5, 57, 0.05), rgba(40, 169, 9, 0.05));
  border-radius: 20px;
}

.jackpots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.jackpot-card {
  background: var(--color-card);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.jackpot-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.jackpot-card:hover::before {
  opacity: 1;
}

.jackpot-bronze {
  border-color: rgba(205, 127, 50, 0.3);
  color: var(--color-bronze);
}

.jackpot-silver {
  border-color: rgba(192, 192, 192, 0.3);
  color: var(--color-silver);
}

.jackpot-gold {
  border-color: rgba(255, 215, 0, 0.3);
  color: var(--color-gold);
}

.jackpot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.jackpot-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.jackpot-amount {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-text);
  text-shadow: 0 2px 10px currentColor;
}

.jackpot-label {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.jackpot-winners h4 {
  color: var(--color-text);
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.winner-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
  color: var(--color-text);
}

.winner-rank {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: currentColor;
  color: var(--color-bg);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}

.winner-name {
  text-align: left;
  font-weight: 500;
}

.winner-prize {
  font-weight: 700;
  color: var(--color-secondary);
}

.video-section,
.demo-section {
  margin-bottom: 80px;
}

.video-container,
.demo-container {
  max-width: 1000px;
  margin: 0 auto;
}

.video-wrapper,
.demo-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.video-wrapper iframe,
.demo-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.demo-actions {
  text-align: center;
  margin-top: 30px;
}

.content-section {
  margin-bottom: 80px;
}

.content-wrapper {
  background: var(--color-card);
  padding: 50px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.content-wrapper h2 {
  font-size: 32px;
  margin-bottom: 25px;
  margin-top: 40px;
  color: var(--color-text);
}

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

.content-wrapper h3 {
  font-size: 26px;
  margin-bottom: 20px;
  margin-top: 35px;
  color: var(--color-text);
}

.content-wrapper p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.content-wrapper ul,
.content-wrapper ol {
  margin-bottom: 25px;
  padding-left: 30px;
}

.content-wrapper li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.content-wrapper strong {
  color: var(--color-text);
  font-weight: 600;
}

.content-wrapper a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.content-wrapper a:hover {
  border-bottom-color: var(--color-primary);
}

.content-wrapper table {
  width: 100%;
  margin: 30px auto;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
}

.content-wrapper th,
.content-wrapper td {
  padding: 15px;
  text-align: left;
  border: 1px solid var(--color-border);
}

.content-wrapper th {
  background: rgba(229, 5, 57, 0.1);
  font-weight: 600;
  color: var(--color-text);
}

.content-wrapper td {
  color: var(--color-text-muted);
}

.strategies-section {
  margin-bottom: 80px;
}

.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.strategy-card {
  background: var(--color-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--color-primary);
}

.strategy-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.strategy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.strategy-card:hover .strategy-image img {
  transform: scale(1.1);
}

.strategy-content {
  padding: 25px;
}

.strategy-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-text);
}

.strategy-description {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.faq-section {
  margin-bottom: 80px;
  padding: 60px 20px;
  background: var(--color-card);
  border-radius: 20px;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--color-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 25px 20px 25px;
}

.faq-answer p {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.footer {
  background-color: var(--color-nav);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 45px;
  width: auto;
}

.footer-description {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: var(--color-primary);
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.payment-logos img {
  height: 32px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.payment-logos img:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.footer-licenses {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-licenses img {
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-licenses img:hover {
  opacity: 1;
}

.footer-legal {
  text-align: center;
}

.footer-legal p {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-disclaimer {
  color: #ffcc00 !important;
  font-weight: 500;
}

.fixed-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--color-primary), #ff1744);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(229, 5, 57, 0.5);
  z-index: 999;
  max-width: 350px;
  animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.fixed-widget.hidden {
  display: none;
}

.widget-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.widget-bonus {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.widget-icon {
  font-size: 32px;
}

.widget-text {
  display: flex;
  flex-direction: column;
}

.widget-label {
  font-size: 13px;
  opacity: 0.9;
}

.widget-amount {
  font-size: 22px;
  font-weight: 800;
}

.widget-button {
  padding: 12px 24px;
  background: white;
  color: var(--color-primary);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.widget-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.widget-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.widget-close:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: rotate(90deg);
}

.wp-block-library {
  display: none;
}

.elementor-widget-container {
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 38px;
  }

  .section-title {
    font-size: 32px;
  }

  .content-wrapper {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .header-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-nav);
    flex-direction: column;
    padding: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .header-nav.active {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link {
    padding: 15px 0;
    width: 100%;
  }

  .nav-extras {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    margin-top: 20px;
  }

  .burger-menu {
    display: flex;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section-title {
    font-size: 28px;
  }

  .jackpots-grid,
  .strategies-grid {
    grid-template-columns: 1fr;
  }

  .content-wrapper {
    padding: 30px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .fixed-widget {
    left: 10px;
    right: 10px;
    max-width: none;
  }

  .widget-content {
    flex-direction: column;
    gap: 15px;
  }

  .widget-button {
    width: 100%;
    text-align: center;
  }

  .content-wrapper table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-section {
    min-height: 400px;
    padding: 60px 20px;
  }

  .jackpot-amount {
    font-size: 32px;
  }

  .section-title {
    font-size: 24px;
  }

  .btn-large {
    padding: 14px 24px;
    font-size: 15px;
  }
}
/* ===== FULL-HEIGHT GAME on MOBILE ===== */
:root{
  --header-h: 80px;      /* у тебе header-nav top:80px => хедер ~80px */
  --demo-actions-h: 88px;/* запас під кнопку + відступи */
}

/* на desktop лишаємо як є (16:9) */
@media (max-width: 768px) {

  /* секція і контейнер без зайвих відступів, щоб влізло */
  .demo-section{
    margin-bottom: 40px;
    padding: 0 12px;
  }

  .section-header{
    margin-bottom: 16px;
  }

  .section-title{ font-size: 22px; }
  .section-subtitle{ font-size: 14px; }

  /* головне: замість 56.25% робимо реальну висоту */
  .demo-wrapper{
    padding-bottom: 0 !important;
    height: calc(100dvh - var(--header-h) - var(--demo-actions-h)) !important;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
  }

  .demo-wrapper iframe{
    position: relative !important; /* можна лишити absolute, але так простіше */
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }

  .demo-actions{
    margin-top: 12px;
  }

  .demo-actions .btn{
    width: 100%;
    justify-content: center;
  }
}

/* якщо є iPhone safe-area — щоб не різало низ */
@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .demo-wrapper{
      height: calc(100dvh - var(--header-h) - var(--demo-actions-h) - env(safe-area-inset-bottom)) !important;
    }
  }
}
