/* ============================================
   БАЗОВЫЕ СТИЛИ И CSS ПЕРЕМЕННЫЕ
   ============================================ */
:root {
  --main-color: #2a1854;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gold-gradient: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  --purple-gradient: linear-gradient(217deg, #8108e0 0%, #ff39b0 100%);
  --dark-bg: #0a0a0f;
  --card-bg: rgba(20, 20, 30, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #b8b8d4;
  --accent-purple: #8434fd;
  --accent-gold: #ffd600;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark-bg);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  padding: 0 15px 20px;
}

/* ============================================
   АНИМИРОВАННЫЙ ФОН С ЧАСТИЦАМИ
   ============================================ */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0b2e 50%, #0a0a0f 100%);
}

.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(132, 52, 253, 0.6) 0%, rgba(132, 52, 253, 0) 70%);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 15%;
  animation-delay: 4s;
}

.particle:nth-child(3) {
  width: 250px;
  height: 250px;
  bottom: 20%;
  left: 50%;
  animation-delay: 8s;
}

.particle:nth-child(4) {
  width: 180px;
  height: 180px;
  top: 30%;
  right: 30%;
  animation-delay: 12s;
}

.particle:nth-child(5) {
  width: 220px;
  height: 220px;
  bottom: 10%;
  left: 20%;
  animation-delay: 16s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(50px, -50px) scale(1.1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-30px, 50px) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translate(40px, 30px) scale(1.05);
    opacity: 0.6;
  }
}

/* ============================================
   HEADER С ЭФФЕКТАМИ
   ============================================ */
header {
  max-width: 1280px;
  margin: 0 auto 20px;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(12, 13, 34, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(132, 52, 253, 0.2);
  border: 1px solid rgba(132, 52, 253, 0.3);
  position: relative;
  z-index: 100;
  transition: var(--transition-smooth);
}

header:hover {
  box-shadow: 0 12px 48px rgba(132, 52, 253, 0.4);
  transform: translateY(-2px);
}

.logo-wrapper {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.logo-wrapper:hover {
  transform: scale(1.05) rotate(2deg);
}

.logo-img {
  height: 45px;
  filter: drop-shadow(0 4px 12px rgba(132, 52, 253, 0.5));
}

/* Кнопки в хедере */
.btn-act {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn-act a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-act a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: -1;
}

.btn-act a:hover::before {
  transform: translateX(100%);
}

.btn-register {
  background: var(--accent-gold);
  color: #111;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 4px 15px rgba(255, 214, 0, 0.4);
}

.btn-register:hover {
  background: #ffed4e;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 214, 0, 0.6);
}

.btn-login {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent-purple);
  box-shadow: 0 4px 15px rgba(132, 52, 253, 0.3);
}

.btn-login:hover {
  background: var(--accent-purple);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(132, 52, 253, 0.5);
}

/* ============================================
   НАВИГАЦИЯ
   ============================================ */
nav {
  max-width: 1280px;
  margin: 0 auto 30px;
  padding: 0 15px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

nav ul li {
  list-style: none;
}

nav ul li a {
  display: inline-block;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(132, 52, 253, 0.1);
  border: 1px solid rgba(132, 52, 253, 0.3);
  border-radius: 8px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

nav ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(132, 52, 253, 0.4), transparent);
  transition: left 0.5s;
}

nav ul li a:hover::before {
  left: 100%;
}

nav ul li a:hover {
  background: rgba(132, 52, 253, 0.3);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(132, 52, 253, 0.4);
}

/* ============================================
   ОСНОВНОЙ КОНТЕНТ - HERO СЕКЦИЯ
   ============================================ */
.start-content {
  max-width: 1280px;
  margin: 0 auto 50px;
  padding: 50px 40px;
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  border: 1px solid rgba(132, 52, 253, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.start-content::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(132, 52, 253, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   БОНУС БАННЕР
   ============================================ */
.bonus {
  background: url('../img/bg-bonus.png') center/cover no-repeat, 
              linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  max-width: 90%;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(132, 52, 253, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  z-index: 1;
}

.bonus::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.bonus:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(132, 52, 253, 0.6);
}

.bonus-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
  flex: 1;
}

.bonus-text {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

.bonus-btn a {
  display: inline-block;
  background: #fff;
  color: #764ba2;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.bonus-btn a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(118, 75, 162, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.bonus-btn a:hover::before {
  width: 300px;
  height: 300px;
}

.bonus-btn a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.bonus-img {
  flex: 1;
  z-index: 2;
}

.bonus-img img {
  width: 100%;
  max-width: 400px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ============================================
   ЗАГОЛОВКИ И ТЕКСТ
   ============================================ */
.start-content h1 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.3;
  margin: 30px 0;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, #a265ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(162, 101, 255, 0.5);
  position: relative;
  z-index: 1;
}

.start-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 25px;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.start-content ul {
  list-style: none;
  text-align: left;
  max-width: 800px;
  margin: 25px auto;
  position: relative;
  z-index: 1;
}

.start-content ul li {
  padding: 12px 0 12px 35px;
  font-size: 16px;
  color: var(--text-secondary);
  position: relative;
}

.start-content ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent-purple);
  font-size: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* ============================================
   ТАБЛИЦА
   ============================================ */
.table-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  overflow-x: auto;
  border-radius: 15px;
  background: rgba(20, 20, 30, 0.8);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

thead th {
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  border: none;
}

tbody tr {
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(132, 52, 253, 0.2);
}

tbody tr:nth-child(even) {
  background: rgba(132, 52, 253, 0.05);
}

tbody tr:hover {
  background: rgba(132, 52, 253, 0.15);
  transform: scale(1.01);
}

tbody td {
  padding: 16px 18px;
  font-size: 15px;
  color: var(--text-secondary);
  border: none;
}

tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   ГЛАВНАЯ КНОПКА ДЕЙСТВИЯ
   ============================================ */
.goto {
  display: inline-block;
  padding: 18px 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #8108e0 0%, #ff39b0 100%);
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(129, 8, 224, 0.5);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 30px;
}

.goto::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.goto:hover::before {
  left: 100%;
}

.goto:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 50px rgba(129, 8, 224, 0.7);
}

/* ============================================
   КОНТЕНТНЫЕ КАРТОЧКИ
   ============================================ */
.content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
}

.content-card {
  background: rgba(20, 20, 30, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid rgba(132, 52, 253, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(132, 52, 253, 0.1), transparent);
  transition: left 0.8s;
}

.content-card:hover::before {
  left: 100%;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(132, 52, 253, 0.4);
  border-color: var(--accent-purple);
}

.content-card h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, #a265ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.content-card h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--purple-gradient);
  margin-top: 15px;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(132, 52, 253, 0.6);
}

.content-card p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

.content-card ul li {
  padding: 10px 0 10px 35px;
  font-size: 16px;
  color: var(--text-secondary);
  position: relative;
  line-height: 1.6;
  transition: var(--transition-smooth);
}

.content-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-purple);
  font-size: 20px;
  transition: var(--transition-smooth);
}

.content-card ul li:hover {
  color: var(--text-primary);
  padding-left: 40px;
}

.content-card ul li:hover::before {
  color: var(--accent-gold);
  transform: translateX(5px);
}

/* ============================================
   FAQ СЕКЦИЯ - АККОРДЕОН
   ============================================ */
.casino-faq {
  margin: 60px 0;
}

.faq-block {
  max-width: 1100px;
  margin: 0 auto;
}

.faq-block h2 {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, #a265ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-item {
  background: rgba(20, 20, 30, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(132, 52, 253, 0.2);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 10px 30px rgba(132, 52, 253, 0.3);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  background: rgba(132, 52, 253, 0.1);
}

.faq-question h4 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.faq-icon {
  font-size: 28px;
  font-weight: 300;
  color: var(--accent-purple);
  transition: transform 0.3s;
  margin-left: 20px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 30px;
}

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

.faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  max-width: 1280px;
  margin: 50px auto 0;
  padding: 40px 30px;
  background: rgba(12, 13, 34, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(132, 52, 253, 0.2);
  text-align: center;
}

footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

footer ul li a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  padding: 8px 15px;
  border-radius: 8px;
  display: inline-block;
}

footer ul li a:hover {
  color: var(--accent-purple);
  background: rgba(132, 52, 253, 0.1);
}

footer small {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 20px;
}

footer small b {
  color: var(--text-primary);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media screen and (max-width: 1280px) {
  header, nav, .start-content, .content, footer {
    max-width: 1100px;
  }
}

@media screen and (max-width: 1100px) {
  header, nav, .start-content, .content, footer {
    max-width: 100%;
  }
  
  .bonus {
    max-width: 95%;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding: 0 10px 20px;
  }

  header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

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

  .btn-act .btn-login {
    display: none;
  }

  nav {
    display: none;
  }

  .bonus {
    flex-direction: column;
    max-width: 100%;
    padding: 25px;
  }

  .bonus-content {
    align-items: center;
    text-align: center;
  }

  .bonus-text {
    font-size: 24px;
  }

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

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

  .start-content p {
    font-size: 15px;
  }

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

  .content-card h2 {
    font-size: 26px;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-question h4 {
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
  }

  footer {
    padding: 25px 20px;
  }

  footer ul {
    flex-direction: column;
    gap: 10px;
  }
}

@media screen and (max-width: 425px) {
  .start-content h1 {
    font-size: 24px;
  }

  .bonus-text {
    font-size: 20px;
  }

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

  .goto {
    padding: 15px 35px;
    font-size: 16px;
  }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ
   ============================================ */
.content img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.content img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(132, 52, 253, 0.4);
}

/* Эффект при прокрутке */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-card, .faq-item {
  animation: fadeInUp 0.6s ease-out;
}

/* Гладкие переходы для всех элементов */
* {
  transition: color 0.2s ease, background-color 0.2s ease;
}