
:root {
  /* Цветовая палитра */
  --primary-color: #ff5722;
  --primary-hover: #e64a19;
  --secondary-color: #7b1fa2;
  --accent-color: #ffd700;
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --bg-header: #0f0f0f;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --border-color: #333;
  --success-color: #4caf50;
  --gradient-btn: linear-gradient(135deg, #ff5722 0%, #ff8a65 100%);
  --gradient-nav: linear-gradient(90deg, #1a1a1a 0%, #2c2c2c 100%);
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.5);
  
  /* Размеры и отступы */
  --container-width: 1200px;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
}

/* Сброс и базовые стили */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Утилиты сетки и Flexbox (упрощенная версия Bootstrap классов) */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.9375rem; /* 15px */
  margin-left: -0.9375rem;
}

.no-gutters {
  margin-right: 0;
  margin-left: 0;
}

.no-gutters > .col,
.no-gutters > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

.col, .col-12, .col-md-4, .col-lg-4, .col-lg, .col-auto, .col-md-auto, .col-6, .col-md {
  position: relative;
  width: 100%;
  padding-right: 0.9375rem;
  padding-left: 0.9375rem;
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.text-center { text-align: center !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.text-left { text-align: left !important; }

/* Медиазапросы для сетки */
@media (min-width: 768px) {
  .d-md-block { display: block !important; }
  .d-md-none { display: none !important; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
  .text-md-left { text-align: left !important; }
  .text-md-right { text-align: right !important; }
  .col-md { flex-basis: 0; flex-grow: 1; max-width: 100%; }
}

@media (min-width: 992px) {
  .d-lg-block { display: block !important; }
  .d-lg-none { display: none !important; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
  .col-lg { flex-basis: 0; flex-grow: 1; max-width: 100%; }
}

/* Отступы */
.pt-5 { padding-top: 5px; }
.pt-10 { padding-top: 0.625rem; }
.pb-10 { padding-bottom: 0.625rem; }
.pt-20 { padding-top: 1.25rem; }
.pb-20 { padding-bottom: 1.25rem; }
.pb-30 { padding-bottom: 1.875rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-15 { margin-top: 0.9375rem; }

/* Хедер */
.heder {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

/* Кнопки */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-regist {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.btn-regist:hover {
  background: linear-gradient(135deg, #e64a19 0%, #ff7043 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
}

.btn-voiti {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  margin-left: 0.625rem;
}

.btn-voiti:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Навигация */
.navigation {
  background: var(--gradient-nav);
  border-bottom: 1px solid var(--border-color);
}

.navigation-bg {
  display: flex;
  justify-content: center;
}

.navigation .item {
  padding: 1rem;
  text-align: center;
}

.navigation .main {
  color: var(--text-main);
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 5px;
}

.navigation .main::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent-color);
  transition: width 0.3s ease, left 0.3s ease;
}

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

.navigation .main:hover::after {
  width: 100%;
  left: 0;
}

/* Меню игр */
.games_menu {
  background-color: var(--bg-card);
  margin-top: 1rem;
  padding: 0.5rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.games_menu .item {
  padding: 0.75rem;
  text-align: center;
}

.games_menu .item a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: color 0.3s;
}

.games_menu .item a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(255, 87, 34, 0.3);
}

/* Баннеры */
.baner {
  position: relative;
  overflow: hidden;
}

.owl-carousel .item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.owl-carousel .item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.owl-carousel .item:hover img {
  transform: scale(1.02);
}

.baner .btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--gradient-btn);
  color: white;
  padding: 10px 30px;
  border-radius: 30px;
}

.baner span.black {
  position: absolute;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  font-weight: bold;
  line-height: 1.2;
}

.baner span.black.left { top: 20%; left: 5%; display: flex; flex-direction: column; }
.baner span.black.right { top: 20%; right: 5%; text-align: right; display: flex; flex-direction: column;}

/* Счетчики победителей */
.main_menu_winners {
  background: linear-gradient(to bottom, #1a1a1a, #252525);
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.menu_winners-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.main_menu_winners-call {
  display: flex;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--accent-color);
  background: #000;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #444;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.cifra, .brecpoint, .valuta {
  padding: 0 2px;
  text-shadow: 0 0 5px var(--accent-color);
}

/* Список игр */
.games_list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.games_list .col-12 {
  width: 100% !important; /* Переопределение сетки для грида */
  max-width: 100% !important;
  flex: auto !important;
}

.games_list .item {
  position: relative;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.games_list .item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  z-index: 10;
}

.games_list .item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--secondary-color);
}

.games_list .title {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  flex-grow: 1;
}

.games_list .item .btn {
  margin: 0 1rem 1rem 1rem;
  opacity: 0.9;
}

.games_list .item:hover .btn {
  opacity: 1;
}

.plau-game {
  background-color: var(--success-color);
  color: white;
  border: none;
}

.plau-game:hover {
  background-color: #43a047;
}

.plau-demo {
  background-color: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
}

.plau-demo:hover {
  border-color: #fff;
  color: #fff;
}

.plau-game-solo {
  width: calc(100% - 2rem);
}

/* Контент и Типографика */
.main_content h1, .main_content h2, .main_content h3 {
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.main_content h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  margin-top: 2rem;
  background: -webkit-linear-gradient(#fff, #999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main_content h2 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--accent-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

.main_content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Таблицы */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

table td[colspan="2"] p {
  text-align: center;
  font-weight: bold;
  color: var(--primary-color);
  margin: 0;
}

/* Форма подписки */
.content-form {
  background: linear-gradient(135deg, #2c0e38 0%, #1a1a1a 100%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  text-align: center;
  border: 1px solid var(--secondary-color);
  box-shadow: 0 0 20px rgba(123, 31, 162, 0.2);
}

.content-form .h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.form-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.subscribe-form .form-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
}

.btn-green {
  width: 100%;
  background-color: var(--success-color);
  color: white;
  border: none;
  font-weight: bold;
}

.btn-green:hover {
  background-color: #43a047;
  transform: translateY(-2px);
}

/* Оглавление */
.toc_container {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--secondary-color);
  margin-bottom: 2rem;
}

.toc_title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.toc_list {
  padding-left: 1.5rem;
}

.toc_list li {
  margin-bottom: 0.5rem;
  list-style-type: decimal;
}

.toc_list span {
  color: var(--primary-color);
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: all 0.2s;
}

.toc_list span:hover {
  border-bottom-color: var(--primary-color);
}

/* FAQ Аккордеон */
.accord-group {
  margin-top: 2rem;
}

.accord-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accord-block-header {
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.02);
  transition: background-color 0.3s;
}

.accord-block-header:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
}

.accord-block-content {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  /* По умолчанию скрыто, здесь нужна JS логика, но добавим стили */
  display: block; 
}

/* Футер */
.footer {
  background-color: #000;
  padding-top: 3rem;
  margin-top: 4rem;
  border-top: 2px solid var(--secondary-color);
  font-size: 0.9rem;
}

.row-menu-footer {
  margin-bottom: 2rem;
  text-align: center;
}

.row-menu-footer a {
  color: var(--text-muted);
  display: block;
  padding: 0.5rem;
  transition: color 0.3s;
}

.row-menu-footer a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-content {
  color: #d2a4f7;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 1rem;
}

.dmca-wrapper {
  margin-top: 1.5rem;
  text-align: center;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  :root {
    --container-width: 100%;
  }

  .baner span.black {
    display: none; /* Скрываем текст на баннере для моб */
  }

  .games_list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* 2 колонки на телефоне */
    gap: 10px;
  }
  
  .games_list .item img {
    height: 120px;
  }
  
  .games_list .title {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
  
  .subscribe-form .form-box {
    flex-direction: column;
  }
  
  .navigation {
    display: none; /* Скрываем десктопное меню, подразумевается наличие бургера */
  }

  .logo img {
    height: 40px;
  }
  
  .btn-regist, .btn-voiti {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.main_content {
  animation: fadeIn 0.8s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
