:root {
  --bg-primary: #0d0d0f;
  --bg-secondary: #1a1a1d;
  --bg-tertiary: #2c2e3a;
  --text-primary: #f5f5f7;
  --text-secondary: #a0a0a0;
  --text-dark: #111;
  --accent-red: #e52e3d;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --sidebar-width: 250px;
  --transition: 0.3s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Manrope", sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}

/* МАКЕТ, САЙДБАР, КНОПКИ... */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--bg-secondary);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--bg-tertiary);
  z-index: 1001;
}
.main-content {
  margin-left: var(--sidebar-width);
  padding: 15px 30px;
}
.sidebar__link--user {
  background-color: var(--bg-tertiary);
  border: 1px solid #4a4a4a;
  margin-bottom: 15px;
}
.sidebar__deposit-btn {
  width: 100%;
  margin-bottom: 20px;
}
.sidebar-promo {
  background: linear-gradient(135deg, var(--accent-red), #5e35b1);
  padding: 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 10px 0 20px 0;
}
.sidebar-promo h4 {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 5px;
}
.sidebar-promo strong {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px var(--accent-red);
  margin-bottom: 5px;
  display: block;
}
.sidebar-promo p {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 15px;
}
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--transition);
}
.sidebar__link:hover {
  background-color: var(--bg-tertiary);
}
.sidebar__link.active {
  background-color: var(--accent-red);
  color: white;
  font-weight: 700;
}
.sidebar__link i {
  font-size: 18px;
  color: var(--text-secondary);
  width: 20px;
  text-align: center;
}
.sidebar__link.active i {
  color: white;
}
.sidebar__link .arrow {
  margin-left: auto;
}
.sidebar__nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.badge {
  margin-left: auto;
  background-color: var(--accent-red);
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 50px;
}
.sidebar-apps {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
  flex-direction: column;
}
.sidebar-apps img {
  height: 40px;
}
.badge--alt {
  margin-left: auto;
  background-color: var(--accent-red);
  padding: 5px 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
}
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.btn:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}
.btn--secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}
.btn--primary {
  background-color: var(--accent-red);
  color: white;
}
.btn--light {
  background-color: white;
  color: var(--text-dark);
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* ================== ШАПКА ================== */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 15px;
}
.logo {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
/* НОВОЕ ПРАВИЛО для SVG в шапке */
.logo object {
  height: 32px;
  width: auto;
  display: block;

  pointer-events: none;
}
.user-actions {
  flex-shrink: 0;
}
.main-nav {
  display: none;
}
.int {
  margin-right: 10px;
}

/* ================== ПРОМО-СЛАЙДЕР ================== */
.promo-section {
 
}
.promo-slider {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}
.swiper-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  background-color: var(--bg-tertiary);
}
.promo-slide-1 {
  background-image: url(img/cisa-3230_2400x395_4.svg);
}
.promo-slide-2 {
  background-image: url("img/cisa-3310-2400x395-v3-1.svg");
}
.promo-slide-3 {
  background-image: url("img/cisa-3233_2400x395_rub.svg");
}
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(50deg, rgba(1, 0, 1, 0.8) 2%, transparent 60%);
  z-index: 1;
}
.promo-text {
  position: relative;
  z-index: 2;
  max-width: 70%;
}
.promo-text h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.swiper-pagination {
  position: absolute;
  bottom: 15px !important;
}
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  width: 10px;
  height: 10px;
  transition: all var(--transition);
}
.swiper-pagination-bullet-active {
  background: var(--accent-red);
  width: 25px;
  border-radius: 5px;
}

/* ================== ОБЩИЕ СТИЛИ СЕКЦИЙ ================== */

/* Общее правило для отступов между секциями */
main.main-content > section:not(:last-child) {
  margin-bottom: 60px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: 22px;
  font-weight: 800;
}
.section-header h2 i {
  margin-right: 10px;
  color: var(--accent-red);
}
.section-nav a,
.section-nav-link {
  color: var(--text-secondary);
  font-weight: 700;
  text-decoration: none;
}

.nav-arrow:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}
.games-grid {
  display: flex;
  gap: 15px;
  overflow-x: scroll;
  scroll-behavior: smooth;
  padding: 10px 4px 15px 4px;
  scrollbar-width: none;
}
.games-grid::-webkit-scrollbar {
  display: none;
}
.game-card {
  flex-shrink: 0;
  width: 160px;
  height: 210px;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  display: block; 
  overflow: hidden; 
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.game-card object {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Остальные секции */
.live-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.live-game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  height: 350px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition);
}
.live-game-card:hover {
  transform: translateY(-10px);
}
.live-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.live-game-card:hover img {
  transform: scale(1.05);
}
.live-game-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 20%, transparent 60%);
  transition: background var(--transition);
}
.live-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-red);
  color: white;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  z-index: 1;
}
.live-game-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  color: white;
}
.live-game-info h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 2px;
}
.live-game-info span {
  font-size: 14px;
  opacity: 0.8;
}
@keyframes background-pan {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes pulse-glow {
  0%,
  100% {
    text-shadow: 0 0 15px rgba(229, 46, 61, 0.4);
  }
  50% {
    text-shadow: 0 0 30px rgba(229, 46, 61, 0.8);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
.jackpot-section {
  background: linear-gradient(135deg, #0d0d0f, #431216, #0d0d0f);
  background-size: 300% 300%;
  animation: background-pan 12s ease-in-out infinite;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
 
}
.jackpot-counter {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 10px;
}
.jackpot-counter span {
  animation: pulse-glow 2.5s ease-in-out infinite;
}
.jackpot-section p {
  opacity: 0.8;
  margin-bottom: 25px;
}
.jackpot-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.jackpot-icon {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
  color: var(--accent-red);
}
.jackpot-icon.icon1 {
  top: 10%;
  left: 15%;
  font-size: 60px;
  animation-delay: 0s;
}
.jackpot-icon.icon2 {
  bottom: 15%;
  right: 20%;
  font-size: 80px;
  animation-delay: 2s;
}
.jackpot-icon.icon3 {
  top: 30%;
  right: 10%;
  font-size: 50px;
  animation-delay: 4s;
}
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  background-color: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-lg);
}
.provider-logo {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.provider-logo img {
  max-width: 120px;
  max-height: 40px;
  filter: grayscale(100%) brightness(0.7);
  transition: all var(--transition);
  cursor: pointer;
  object-fit: contain;
}
.provider-logo img:hover {
  filter: grayscale(0) brightness(1);
  transform: scale(1.1);
}
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
.winners-section {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
 
}
.winners-section__header {
  color: var(--accent-red);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
.winners-section__container {
  flex-grow: 1;
  overflow: hidden;
}
.winners-section__list {
  list-style: none;
  display: flex;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
}
.winners-section__list li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-right: 40px;
}
.winners-section__list li span {
  color: var(--text-primary);
  font-weight: 500;
}
.winners-section__list li strong {
  color: var(--accent-red);
}
.winners-section__list li em {
  color: var(--text-secondary);
  font-style: normal;
}
.how-to-start-section {
  
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background-color: var(--bg-secondary);
  padding: 25px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.step-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px auto;
  background: linear-gradient(135deg, var(--accent-red), #5e35b1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}
.step-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.step-card p {
  color: var(--text-secondary);
  line-height: 1.5;
}
.tournament-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.tournament-item {
  background-color: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-left: 4px solid var(--accent-red);
}
.tournament-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}
.tournament-info .prize-pool {
  color: var(--text-secondary);
}
.tournament-timer {
  font-size: 14px;
  color: var(--text-secondary);
}
.tournament-timer.live strong,
.tournament-timer.live i {
  color: var(--accent-red);
}
.tournament-timer.live i {
  font-size: 10px;
  vertical-align: middle;
}
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  padding: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question i {
  transition: transform 0.3s ease;
}
.faq-item[open] > .faq-question i {
  transform: rotate(180deg);
}
.faq-answer p {
  padding: 0 20px 20px 20px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background-color: var(--bg-secondary);
  padding: 30px;
  border-radius: var(--radius-lg);
}
.payment-icons i {
  font-size: 36px;
  color: var(--text-secondary);
  transition: color var(--transition), transform var(--transition);
}
.payment-icons i:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

/* ================== ФУТЕР ================== */
.main-footer {
  background-color: var(--bg-secondary);
  padding: 40px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-bottom: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--bg-tertiary);
}
.footer-logo object {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 15px;
  pointer-events: none;
}
.footer-column.about p {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
}
.footer-column h4 {
  font-size: 18px;
  margin-bottom: 20px;
}
.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-column ul a:hover {
  color: var(--accent-red);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-social .social-icon {
  width: 40px;
  height: 40px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.footer-social .social-icon:hover {
  background-color: var(--accent-red);
  color: white;
}

/* ================== МОДАЛЬНЫЕ ОКНА и АДАПТИВНОСТЬ ================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background-color: var(--bg-tertiary);
  padding: 40px;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 400px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal-overlay.visible .modal-content {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}
.modal-input {
  width: 100%;
  background-color: var(--bg-secondary);
  border: 1px solid #4a4a4a;
  color: var(--text-primary);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
}
.modal-btn {
  width: 100%;
}
[data-aos] {
  transition-property: transform, opacity;
}
.hamburger-btn,
.sidebar__close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 1003;
}
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.mobile-overlay.visible {
  display: block;
}
@media (max-width: 1200px) {
  .main-header .main-nav {
    display: none;
  }
  .main-header {
    justify-content: space-between;
  }
  .main-header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 1024px) {
  .main-content {
    margin-left: 0;
  }
  .hamburger-btn {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.4s ease;
  }
  .sidebar.visible {
    transform: translateX(0);
  }
  .sidebar__close-btn {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
  }
  .live-games-grid,
  .steps-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .main-content {
    padding: 10px 15px;
  }
  .user-actions .btn--secondary {
    display: none;
  }
  .promo-text h2 {
    font-size: 24px;
  }
  .jackpot-counter {
    font-size: 48px;
  }
  .live-game-card {
    height: 300px;
  }
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .tournament-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .tournament-item .btn {
    width: 100%;
    margin-top: 10px;
  }
  .payment-icons i {
    font-size: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .jackpot-icon {
    display: none;
  }
  .main-header .logo {
    position: static;
    transform: none;
  }
}
/* ================== ПРЕДВАРИТЕЛЬНАЯ СЕКЦИЯ С ТЕКСТОВЫМ КОНТЕНТОМ ================== */
.text-content-section {
  background-color: var(--bg-secondary);
  padding: 40px;
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}

/* Заголовки */
.text-content-section h1,
.text-content-section h2 {
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  line-height: 1.3;
}

.text-content-section h1 {
  font-size: 28px;
  margin-bottom: 15px;
}

.text-content-section h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--accent-red); 
  border-bottom: 1px solid var(--bg-tertiary);
  padding-bottom: 10px;
}

/* Параграфы и выделенный текст */
.text-content-section p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.text-content-section p span,
.text-content-section li strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Списки */
.text-content-section ul,
.text-content-section ol {
  line-height: 1.7;
  padding-left: 25px;
  margin-bottom: 20px;
}

.text-content-section li {
  margin-bottom: 10px;
}

.text-content-section li::marker {
  color: var(--accent-red);
  font-weight: 700;
}

/* Блок с бонусом
.bonus-highlight {
  background-color: var(--bg-tertiary);
  border-left: 4px solid var(--accent-red);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
} */

.bonus-highlight p {
  margin-bottom: 0;
  font-size: 16px;
}

.bonus-highlight strong {
  background-color: var(--accent-red);
  color: white;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: monospace;
}

/* Таблица */
.dark-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}

.dark-table th,
.dark-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--bg-tertiary);
}

.dark-table th {
  background-color: #2c2e3a; /* var(--bg-tertiary) */
  color: var(--text-primary);
  font-weight: 700;
}

.dark-table tr:last-child td {
  border-bottom: none;
}

.dark-table tr:hover {
  background-color: #252528; /* Немного темнее, чем bg-secondary */
}