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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  /* prevent horizontal scrolling */
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  /* ensure container doesn't exceed viewport */
  width: 100%;
}

/* Brand Colors */
:root {
  --primary-blue: #1e40af;
  --primary-red: #dc2626;
  --primary-black: #1f2937;
  --primary-white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #64748b;
  --dark-gray: #374151;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-black) 100%);
  color: var(--primary-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--primary-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.cta-button {
  background: var(--primary-red);
  color: var(--primary-white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button:hover {
  background: var(--accent-red);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-black) 100%);
  color: var(--primary-white);
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-image {
  margin: 2rem 0;
}

.hero-cta {
  background: var(--primary-red);
  color: var(--primary-white);
  padding: 1rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.hero-cta:hover {
  background: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

/* Responsive Images */
.responsive-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Sections */
section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background-color: var(--light-gray);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-black);
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-black);
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-black);
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Tables */
.overview-table-wrapper,
.bonus-table-wrapper,
.payment-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  -webkit-overflow-scrolling: touch;
  width: 100%;
  /* ensure table wrappers don't exceed container width */
  max-width: 100%;
}

.overview-table,
.bonus-table,
.payment-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--primary-white);
  /* make tables properly responsive with minimum width for mobile scrolling */
  min-width: 100%;
}

.overview-table th,
.bonus-table th,
.payment-table th {
  background: var(--primary-blue);
  color: var(--primary-white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.overview-table td,
.bonus-table td,
.payment-table td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.overview-table tr:hover,
.bonus-table tr:hover,
.payment-table tr:hover {
  background-color: var(--light-gray);
}

/* Payment Content */
.payments-content {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
  /* ensure payments content is mobile-first responsive */
  grid-template-columns: 1fr;
  width: 100%;
  /* prevent any overflow on mobile */
  max-width: 100%;
  overflow: hidden;
}

.payments-text {
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.payments-image {
  width: 100%;
  max-width: 100%;
}

.payment-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  -webkit-overflow-scrolling: touch;
  width: 100%;
  /* ensure table wrappers don't exceed container width */
  max-width: 100%;
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--primary-white);
  /* set proper minimum width for mobile horizontal scrolling */
  min-width: 500px;
}

/* mobile-first table styling */
@media (max-width: 768px) {
  .overview-table,
  .bonus-table,
  .payment-table {
    /* set minimum width for horizontal scrolling on mobile */
    min-width: 500px;
    font-size: 0.9rem;
  }

  .overview-table th,
  .bonus-table th,
  .payment-table th,
  .overview-table td,
  .bonus-table td,
  .payment-table td {
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
  }

  /* ensure payments content stacks properly on mobile */
  .payments-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* ensure payment table wrappers are properly contained */
  .payment-table-wrapper {
    margin: 1rem 0;
    border-radius: 8px;
    /* ensure proper mobile scrolling */
    width: 100%;
    max-width: 100%;
  }

  /* ensure payments text content doesn't overflow */
  .payments-text {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  /* ensure payments images are responsive */
  .payments-image {
    width: 100%;
    max-width: 100%;
  }

  /* add specific mobile styling for payments section */
  .payments {
    overflow-x: hidden;
  }

  /* ensure all content within payments section is contained */
  .payments .container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* ensure ordered lists in payments don't cause overflow */
  .payments ol,
  .payments ul {
    margin-left: 1rem;
    padding-left: 0.5rem;
  }

  /* ensure paragraphs in payments section wrap properly */
  .payments p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* Safety Points */
.safety-points {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.safety-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--primary-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.safety-icon {
  background: var(--primary-blue);
  color: var(--primary-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Promotions Grid */
.promotions-grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.promotion-card {
  background: var(--primary-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.promotion-card:hover {
  transform: translateY(-5px);
}

.promotion-icon {
  background: var(--primary-red);
  color: var(--primary-white);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

/* Casino Intro Layout */
.casino-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.casino-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.casino-text {
  flex: 1;
  text-align: left;
}

.casino-text h2 {
  text-align: left; /* переопределяем центрирование h2 */
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .casino-intro {
    flex-direction: column;
    text-align: center;
  }

  .casino-text h2 {
    text-align: center;
  }

  .casino-image {
    margin-bottom: 1.5rem;
  }
}

/* VIP Content */
.vip-content {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
}

.vip-paths {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.vip-path {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--primary-white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vip-path-icon {
  background: var(--primary-red);
  color: var(--primary-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.vip-benefits {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.vip-benefit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--primary-white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vip-benefit-icon {
  background: var(--primary-blue);
  color: var(--primary-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Registration Steps */
.registration-steps {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--primary-white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
  background: var(--primary-red);
  color: var(--primary-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

/* Mobile Content */
.mobile-content {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
}

/* Support Content */
.support-content {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
}

.support-channels {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.support-channel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--primary-white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.support-icon {
  background: var(--primary-blue);
  color: var(--primary-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Casino Categories */
.casino-categories {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.casino-category {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--primary-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-icon {
  background: var(--primary-red);
  color: var(--primary-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Section CTAs */
.section-cta {
  background: var(--primary-blue);
  color: var(--primary-white);
  padding: 1rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 2rem;
}

.section-cta:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
}

.final-cta {
  background: var(--primary-red);
  color: var(--primary-white);
  padding: 1.5rem 3rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 2rem;
}

.final-cta:hover {
  background: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.3);
}

/* FAQ */
.faq-list {
  margin: 2rem 0;
}

.faq-item {
  background: var(--primary-white);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light-gray);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #e2e8f0;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 200px;
}

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

/* Footer */
.footer {
  background: var(--primary-black);
  color: var(--primary-white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--primary-white);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--medium-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-white);
}

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

/* Lists */
ul,
ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .promotions-grid {
    grid-template-columns: 1fr;
  }

  .vip-content,
  .payments-content,
  .mobile-content,
  .support-content {
    grid-template-columns: 1fr;
  }

  .vip-content .vip-image,
  .payments-content .payments-image,
  .mobile-content .mobile-image,
  .support-content .support-image {
    order: -1;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .casino-image {
    margin: 2rem 0;
    text-align: center;
  }

  /* ensure all images are responsive on mobile */
  .responsive-img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* prevent text overflow */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    word-wrap: break-word;
    hyphens: auto;
  }

  p,
  li {
    word-wrap: break-word;
  }
}

@media (min-width: 769px) {
  .promotions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vip-content,
  .payments-content,
  .mobile-content,
  .support-content {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .safety-points {
    grid-template-columns: repeat(3, 1fr);
  }

  .vip-paths {
    grid-template-columns: repeat(2, 1fr);
  }

  .vip-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-channels {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Content Layout */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-align: left; /* убираем центрирование текста */
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-image {
    order: 2;
    margin-top: 2rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .footer,
  .cta-button,
  .hero-cta,
  .section-cta,
  .final-cta {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3,
  h4 {
    page-break-after: avoid;
  }
}
