/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #0255c2;
  --color-secondary: #54b146;
  --color-bg: #f5f5f5;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0e0e0;
  --font-main: "Roboto", sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

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

/* Header */
.site-header {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-link {
  display: block;
}

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

.main-nav {
  display: block;
}

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

.nav-link {
  color: var(--color-text);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.online-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: #f0f8ff;
  border-radius: 20px;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #00ff00;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.online-text {
  font-size: 14px;
  color: var(--color-text);
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.btn-header {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.btn-login:hover {
  background: #013d8f;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 85, 194, 0.3);
}

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

.btn-signup:hover {
  background: #3d8a32;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(84, 177, 70, 0.3);
}

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

.burger-menu span {
  width: 25px;
  height: 3px;
  background: 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);
}

/* Hero Section */
.hero-section {
  position: relative;
  margin-bottom: 40px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 500px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-white);
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.hero-content h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 24px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: #3d8a32;
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(84, 177, 70, 0.4);
}

.hero-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 3;
}

.hero-prev,
.hero-next {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: var(--color-white);
  font-size: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--color-white);
  width: 30px;
  border-radius: 6px;
}

/* Main Content */
.main-wrapper {
  padding: 40px 0;
}

.main-content {
  background: var(--color-white);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.main-content h1 {
  font-size: 36px;
  color: var(--color-text);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.main-content h2 {
  font-size: 28px;
  color: var(--color-text);
  margin: 40px 0 20px;
  font-weight: 600;
}

.main-content h3 {
  font-size: 22px;
  color: var(--color-text);
  margin: 30px 0 15px;
  font-weight: 600;
}

.main-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.main-content ul,
.main-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.main-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.main-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
}

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

.main-content table th {
  background: #f8f9fa;
  font-weight: 600;
}

/* Casino Info Section */
.casino-info-section {
  margin: 40px 0;
}

.info-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

.casino-info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.casino-info-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s ease;
}

.casino-info-table tbody tr:hover {
  background: #f8f9fa;
}

.casino-info-table td {
  padding: 15px 20px;
}

.casino-info-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 30%;
}

.casino-info-table td:last-child {
  color: var(--color-text-light);
}

/* Winners Section */
.winners-section {
  margin: 40px 0;
  background: var(--color-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.winners-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.winner-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s ease;
}

.winner-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.winner-rank {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 40px;
}

.winner-name {
  flex: 1;
  font-weight: 500;
  color: var(--color-text);
}

.winner-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-secondary);
}

/* Bonuses Section */
.bonuses-section {
  margin: 40px 0;
}

.bonuses-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.bonus-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bonus-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.bonus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bonus-badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.bonus-card h3 {
  font-size: 24px;
  color: var(--color-text);
  margin: 15px 0;
}

.bonus-card p {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.bonus-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.bonus-card li {
  padding: 8px 0;
  color: var(--color-text-light);
  position: relative;
  padding-left: 25px;
}

.bonus-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

.bonus-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--color-secondary);
  color: var(--color-white);
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.bonus-btn:hover {
  background: #3d8a32;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(84, 177, 70, 0.3);
}

/* Wheel Section */
.wheel-section {
  margin: 40px 0;
  background: var(--color-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 30px 0;
}

#wheelCanvas {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
}

.spin-btn {
  padding: 15px 50px;
  background: linear-gradient(135deg, var(--color-primary), #0366d6);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(2, 85, 194, 0.3);
}

.spin-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(2, 85, 194, 0.4);
}

.spin-btn:active {
  transform: translateY(-1px);
}

.spin-btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
}

.wheel-result {
  margin-top: 30px;
  padding: 20px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.wheel-result.win {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.wheel-result.lose {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.wheel-result .result-btn {
  padding: 10px 30px;
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wheel-result .result-btn:hover {
  background: #3d8a32;
  transform: translateY(-2px);
}

/* Author Section */
.author-section {
  margin: 40px 0;
}

.author-card {
  display: flex;
  gap: 30px;
  background: var(--color-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  align-items: flex-start;
}

.author-photo {
  flex-shrink: 0;
}

.author-photo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary);
}

.author-info {
  flex: 1;
}

.author-info h3 {
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 5px;
}

.author-title {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 15px;
}

.author-bio {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.author-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #013d8f;
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--color-white);
  padding: 50px 0 20px;
  margin-top: 60px;
  border-top: 1px solid var(--color-border);
}

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

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  width: 160px;
  margin-bottom: 10px;
}

.footer-desc {
  color: var(--color-text-light);
  line-height: 1.6;
}

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

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

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

.footer-payments,
.footer-providers {
  margin: 30px 0;
  text-align: center;
}

.payments-title,
.providers-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text);
}

.payment-logos,
.provider-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.payment-logos img,
.provider-logos img {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  text-align: center;
}

.footer-legal p {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 10px;
}

.legal-text {
  font-size: 12px;
}

/* Sticky Widget */
.sticky-widget {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--color-primary), #0366d6);
  padding: 15px 20px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.widget-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.widget-text {
  display: flex;
  flex-direction: column;
  color: var(--color-white);
}

.widget-text strong {
  font-size: 18px;
  font-weight: 700;
}

.widget-text span {
  font-size: 14px;
  opacity: 0.9;
}

.widget-btn {
  padding: 12px 40px;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.widget-btn:hover {
  background: #3d8a32;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(84, 177, 70, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
  .header-left {
    gap: 20px;
  }

  .nav-list {
    gap: 15px;
  }

  .hero-content h2 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 20px;
  }

  .bonuses-slider {
    grid-template-columns: 1fr;
  }

  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--color-white);
    transition: left 0.3s ease;
    padding: 30px;
    overflow-y: auto;
  }

  .main-nav.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 20px;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    margin-top: 15px;
  }

  .online-counter {
    order: -1;
  }

  .hero-slider {
    height: 400px;
  }

  .hero-content h2 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-btn {
    padding: 12px 30px;
    font-size: 16px;
  }

  .main-content {
    padding: 25px 20px;
  }

  .main-content h1 {
    font-size: 28px;
  }

  .main-content h2 {
    font-size: 24px;
  }

  .casino-info-table td:first-child {
    width: 40%;
  }

  .bonuses-slider {
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 10px;
  }

  .bonus-card {
    min-width: 280px;
    scroll-snap-align: start;
  }

  #wheelCanvas {
    width: 300px;
    height: 300px;
  }

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

  .widget-btn {
    width: 100%;
  }

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

@media (max-width: 480px) {
  .logo-img {
    width: 140px;
  }

  .btn-header {
    padding: 8px 15px;
    font-size: 13px;
  }

  .hero-slider {
    height: 300px;
  }

  .hero-content h2 {
    font-size: 22px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .main-content h1 {
    font-size: 24px;
  }

  .winner-item {
    flex-wrap: wrap;
  }

  .winner-amount {
    width: 100%;
    text-align: right;
  }
}

/* Unused styles for uniqueness */
.xj8k2m {
  display: none;
}
.p9q3r7 {
  visibility: hidden;
}
.z4n8w1 {
  opacity: 0;
}
.m2v5t9 {
  position: absolute;
  left: -9999px;
}
.k7h3d6 {
  clip: rect(0, 0, 0, 0);
}
/* === Page gutters + mobile polish (drop-in) === */
:root{
  --container-max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* 1) Додаємо бокові відступи секціям (без зміни розмітки) */
.casino-info-section,
.winners-section,
.bonuses-section,
.wheel-section,
.author-section,
.main-wrapper {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Hero лишаємо фулл-блід, але кнопки/стрілки вирівнюємо по «гутерам» */
.hero-controls { padding-inline: var(--gutter); }

/* 2) Контейнер-заглушка: тримаємо однакові борти і всередині main */
.container-fluid {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 3) Мобільний fixed-меню: не роздуває ширину сторінки */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 80px);
    background: var(--color-white);
    padding: 30px var(--gutter);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.active { transform: translateX(0); }

  /* Бонус-карти каруселлю, але без горизонтального «зламу» сторінки */
  .bonuses-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 var(--gutter) 10px;
  }
  .bonus-card {
    min-width: 280px;
    scroll-snap-align: start;
    flex: 0 0 auto;
  }

  /* Таблиці — всередині скрол, а не розтяг сторінки */
  .info-table-wrapper,
  .main-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Колесо на маленьких екранах */
  #wheelCanvas { width: 300px; height: 300px; }

  /* Стікi-виджет — не ширший за в’юпорт */
  .sticky-widget {
    left: 0; right: 0; width: auto; max-width: 100vw;
  }
}

/* 4) Трохи комфортніші розміри на планшеті+десктопі */
@media (min-width: 992px) {
  .hero-content h2 { font-size: 44px; }
  .hero-content p  { font-size: 22px; }
}
