@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Base & Reset */
:root {
  /* Color System */
  --color-bg-primary: #121726;
  --color-bg-secondary: #1a1f30;
  --color-bg-tertiary: #252a3b;
  --color-text-primary: #ffffff;
  --color-text-secondary: #b3b9c5;
  --color-text-tertiary: #8891a9;
  --color-accent: #ff6b00;
  --color-primary: #007aff;
  --color-success: #21d07b;
  --color-warning: #ffcc00;
  --color-error: #ff3b30;
  --color-dark: #0b0e19;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-medium: 300ms ease;
  --transition-slow: 500ms ease;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden;
}

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* App Container */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 240px;
  padding: 0;
  transition: margin var(--transition-medium);
  width: 100%;
  max-width: 100%;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  background-color: var(--color-bg-secondary);
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.burger-menu {
  display: none;
  font-size: 24px;
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.burger-menu:hover {
  color: var(--color-accent);
}

.search-container {
  position: relative;
  width: 240px;
}

.search-input {
  width: 100%;
  padding: var(--space-sm) var(--space-lg);
  padding-right: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-bg-tertiary);
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.search-button:hover {
  color: var(--color-text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.language-selector {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.language-selector:hover {
  background-color: var(--color-bg-tertiary);
}

/* Buttons */
.btn {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: #0062cc;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--color-text-primary);
  transform: translateY(-2px);
}

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

.btn-accent:hover {
  background-color: #e05e00;
  transform: translateY(-2px);
}

.btn-play, .btn-demo {
  padding: var(--space-xs) var(--space-md);
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-play {
  background-color: var(--color-accent);
}

.btn-demo {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Promotional Section */
.promo-section {
  padding: var(--space-xl) var(--space-xl);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.carousel {
  display: flex;
  transition: transform var(--transition-medium);
  height: 220px;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
}

.promo-card {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.promo-content {
  position: relative;
  z-index: 2;
  max-width: 50%;
}

.promo-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.promo-content p {
  font-size: 16px;
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

.carousel-dots {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-xl);
  display: flex;
  gap: var(--space-sm);
  z-index: 3;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  background-color: var(--color-text-primary);
  transform: scale(1.2);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all var(--transition-fast);
}

.carousel-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-arrow.prev {
  left: var(--space-md);
}

.carousel-arrow.next {
  right: var(--space-md);
}

/* Games Section */
.games-section {
  padding: var(--space-xl) var(--space-xl);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  width: 100%;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-header h2 i {
  color: var(--color-accent);
}

.section-header.centered {
  justify-content: center;
}

.view-all {
  color: var(--color-text-tertiary);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.view-all:hover {
  color: var(--color-text-primary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
  width: 100%;
}

.game-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-bg-secondary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.game-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  width: 100%;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.game-card:hover .game-image img {
  transform: scale(1.05);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-info {
  padding: var(--space-sm);
  text-align: center;
}

.game-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-info p {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* Tournament Section */
.tournament-section {
  padding: var(--space-xl) var(--space-xl);
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  margin: 0 var(--space-xl) var(--space-xl);
  position: relative;
  overflow: visible;
  width: calc(100% - var(--space-xl) * 2);
}

.tournament-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/pexels-photo-3045826.jpeg') no-repeat center/cover;
  opacity: 0.1;
  z-index: 0;
}

.tournament-carousel {
  position: relative;
  z-index: 1;
  margin: var(--space-lg) 0;
  width: 100%;
}

.tournament-card {
  display: none;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.tournament-card.active {
  display: block;
}

.tournament-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.tournament-info {
  flex: 1;
}

.tournament-info h3 {
  font-size: 24px;
  margin-bottom: var(--space-xs);
}

.tournament-date {
  color: var(--color-text-tertiary);
  font-size: 14px;
  margin-bottom: var(--space-md);
}

.prize-pool {
  margin-bottom: var(--space-md);
}

.prize-pool span {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
}

.tournament-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.tournament-image img {
  max-width: 200px;
  height: auto;
  border-radius: var(--radius-md);
}

.tournament-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.tournament-dots {
  display: flex;
  gap: var(--space-sm);
}

.tournament-footer {
  text-align: center;
  margin-top: var(--space-lg);
}

.view-all-tournaments {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-text-tertiary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-size: 14px;
}

.view-all-tournaments:hover {
  border-color: var(--color-text-primary);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  margin-top: auto;
  background-color: var(--color-dark);
  padding: var(--space-xl);
  width: 100%;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  width: 100%;
}

.footer-logo img {
  max-width: 120px;
}

.footer-links {
  display: flex;
  gap: var(--space-xxl);
}

.footer-column h4 {
  font-size: 16px;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-column ul li a {
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
  font-size: 14px;
}

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

.footer-middle {
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-lg);
  width: 100%;
}

.payment-methods {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.payment-methods img {
  height: 32px;
  width: auto;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 12px;
  width: 100%;
}

.footer-bottom p:not(:last-child) {
  margin-bottom: var(--space-sm);
}

/* Sidebar */
.sidebar {
  width: 240px;
  background-color: var(--color-bg-secondary);
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-medium);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo img {
  max-width: 120px;
}

.close-sidebar {
  display: none;
  font-size: 20px;
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.close-sidebar:hover {
  color: var(--color-text-primary);
}

.sidebar-nav {
  padding: var(--space-md) 0;
}

.sidebar-nav ul li {
  transition: background-color var(--transition-fast);
}

.sidebar-nav ul li:hover, .sidebar-nav ul li.active {
  background-color: var(--color-bg-tertiary);
}

.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.sidebar-nav ul li:hover a, .sidebar-nav ul li.active a {
  color: var(--color-text-primary);
}

.sidebar-nav ul li.active a i {
  color: var(--color-accent);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 90;
  display: none;
  backdrop-filter: blur(2px);
}

.overlay.active {
  display: block;
}

/* Media Queries */
@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  
  .promo-content {
    max-width: 70%;
  }
}

@media (max-width: 992px) {
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .burger-menu {
    display: block;
  }
  
  .close-sidebar {
    display: block;
  }
  
  .footer-top {
    flex-direction: column;
    gap: var(--space-xl);
  }
  
  .footer-links {
    justify-content: space-between;
  }
  
  .overlay.active {
    display: block;
  }
}

@media (max-width: 768px) {
  .header {
    padding: var(--space-md);
  }
  
  .search-container {
    width: 180px;
  }
  
  .promo-section, .games-section {
    padding: var(--space-md);
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .tournament-section {
    margin: 0 var(--space-md) var(--space-md);
    padding: var(--space-md);
    width: calc(100% - var(--space-md) * 2);
  }
  
  .tournament-content {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .tournament-image {
    justify-content: center;
  }
  
  .promo-content {
    max-width: 100%;
  }
  
  .promo-content h2 {
    font-size: 24px;
  }
  
  .footer {
    padding: var(--space-lg);
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-lg);
  }
}

@media (max-width: 576px) {
  .header-right {
    gap: var(--space-sm);
  }
  
  .language-selector {
    display: none;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-sm);
  }
  
  .btn {
    padding: var(--space-xs) var(--space-md);
    font-size: 12px;
  }
  
  .promo-card {
    padding: var(--space-md);
  }
  
  .carousel-arrow {
    width: 32px;
    height: 32px;
  }
  
  .promo-content h2 {
    font-size: 20px;
  }
  
  .promo-content p {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    align-items: center;
  }

  .footer-column ul {
    align-items: center;
  }
}
.tournament-description-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

.tournament-description-text {
  flex: 1 1 400px;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

.tournament-description-text strong {
  color: #ffcc00;
  font-weight: 600;
}

.tournament-description-text em {
  font-style: italic;
  color: #ffffffcc;
}

.tournament-description-images {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tournament-description-images img {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.tournament-cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
}
.tournament-description-images img {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.tournament-description-images a {
  position: relative;
  z-index: 10;
  display: inline-block;
  pointer-events: auto;
}
.custom-text-section {
  background-color: #2c222f;
  color: #e0e0e0;
  margin: 0 var(--space-xl); /* ← это даёт горизонтальные отступы */
  width: calc(100% - var(--space-xl) * 2); /* ← и это подгоняет ширину */
  padding: var(--space-xl);
  border-radius: 12px;
  margin-top: 3rem;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
}


.custom-text-section .section-header h2 {
  color: #ffcc00;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  text-align: center;
}

.custom-text-content {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.custom-text-content a {
  color: #ffcc00;
  text-decoration: underline;
}

.custom-text-content ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.custom-text-content li {
  margin-bottom: 0.5rem;
}

.custom-button-container {
  margin-top: 2rem;
  text-align: center;
}

.custom-text-content .custom-flat-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #ff6600;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  text-decoration: none !important;
  cursor: pointer;
}
.custom-text-content table.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 16px;
  color: #fff;
}

.custom-text-content table.custom-table thead {
  background-color: #ffb400; /* ярко-жёлтый фон */
  color: #000;
  text-align: left;
}

.custom-text-content table.custom-table th,
.custom-text-content table.custom-table td {
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-text-content table.custom-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05); /* зебра-эффект */
}

.custom-text-content table.custom-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.1); /* подсветка строки при наведении */
  transition: background-color 0.2s ease-in-out;
}

@media screen and (max-width: 768px) {
  .custom-text-content table.custom-table {
    font-size: 14px;
  }

  .custom-text-content table.custom-table th,
  .custom-text-content table.custom-table td {
    padding: 10px 8px;
  }
}
/* Обёртка для прокрутки */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Стилизация таблицы внутри обёртки */
.table-responsive table.custom-table {
  width: 100%;
  min-width: 600px; /* важный момент – ширина больше экрана, чтобы появился скролл */
  border-collapse: collapse;
  font-size: 16px;
  color: #fff;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 10px;
}

.faq-question {
  background: none;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 0;
  text-align: left;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #ffb400;
}

.faq-answer {
  display: none;
  padding: 0 0 12px 0;
  color: #ccc;
  font-size: 16px;
}

.faq-item.open .faq-answer {
  display: block;
}
.main-title-section {
  padding: 40px 20px 20px;
  text-align: center;
  color: #fff;
}

.main-title-section h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.main-title-section .lead {
  font-size: 18px;
  color: #ccc;
  max-width: 720px;
  margin: 0 auto;
}
.about-section {
  padding: 50px 20px;
  background-color: #141414;
  color: #eee;
  text-align: center;
}

.about-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.about-section p {
  max-width: 800px;
  margin: 0 auto 16px auto;
  font-size: 16px;
  line-height: 1.6;
  color: #ccc;
}


