/* TPL-12: Neon Grid Cyberpunk */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600&display=swap");

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

html {
  scroll-behavior: smooth;
}

/* Глобальные отступы */
body {
  font-family: "Rajdhani", sans-serif;
  background: #0a0a0a;
  color: #00ffff;
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
  padding: 20px; /* добавил базовый отступ по краям */
}

/* Wrapper */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px; /* внутренний отступ */
  position: relative;
  z-index: 1;
}

/* Header */
header {
  background: linear-gradient(135deg, #1a0033, #330066);
  border-bottom: 2px solid #ff0080;
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
  position: relative;
  padding: 20px; /* внутренний отступ */
  margin-bottom: 40px; /* внешний отступ снизу */
}

/* Main Content */
main {
  padding: 40px 20px; /* внутренние отступы сверху и снизу */
}

h1,
h2,
h3 {
  font-family: "Orbitron", monospace;
  color: #ff0080;
  margin: 30px 0 20px; /* сверху больше отступа, снизу меньше */
  text-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

/* Casino Cards */
.casino-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin: 40px 0; /* внешний отступ сверху и снизу */
}

.casino-card {
  flex: 0 0 calc(33.333% - 20px);
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 1px solid #00ffff;
  border-radius: 10px;
  padding: 30px; /* больше внутреннего отступа */
  margin-bottom: 20px; /* между карточками по вертикали */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* FAQ Section */
.faq-section {
  margin: 60px 0; /* отступ сверху и снизу для раздела */
  padding: 20px; /* внутренние отступы */
}

.faq-item {
  margin-bottom: 20px; /* больше пространства между FAQ */
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #1a1a2e;
}

.faq-answer.active {
  padding: 20px;
  max-height: 200px;
  margin-top: 10px; /* небольшой зазор при открытии */
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a0033, #330066);
  border-top: 2px solid #ff0080;
  padding: 40px 20px; /* внутренние отступы */
  text-align: center;
  margin-top: 60px; /* внешний отступ от предыдущего блока */
}

/* Animated Grid Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  z-index: -2;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Neon Scanlines */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 0, 255, 0.03) 2px,
    rgba(255, 0, 255, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1000;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(4px);
  }
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  background: linear-gradient(135deg, #1a0033, #330066);
  border-bottom: 2px solid #ff0080;
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  animation: headerSweep 3s ease-in-out infinite;
}

@keyframes headerSweep {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

.logo {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  font-weight: 900;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
  animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from {
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
  }
  to {
    text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff;
  }
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: #ff0080;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 20px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 128, 0.2), transparent);
  transition: left 0.5s ease;
}

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

nav a:hover {
  color: #00ffff;
  border-color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  text-shadow: 0 0 10px #00ffff;
}

/* Main Content */
main {
  padding: 40px 0;
}

h1,
h2,
h3 {
  font-family: "Orbitron", monospace;
  color: #ff0080;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

h1 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 40px;
  animation: titleFlicker 3s ease-in-out infinite;
}

@keyframes titleFlicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  51% {
    opacity: 1;
  }
  52% {
    opacity: 0.8;
  }
  53% {
    opacity: 1;
  }
}

/* Casino Cards */
.casino-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin: 40px 0;
}

.casino-card {
  flex: 0 0 calc(33.333% - 20px);
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 1px solid #00ffff;
  border-radius: 10px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.casino-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff0080, #00ffff, #ff0080);
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.casino-card:hover::before {
  opacity: 1;
}

.casino-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.casino-logo {
  width: 360px;
  height: 120px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 2px solid #ff0080;
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
}

.casino-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #00ffff;
}

.casino-description {
  margin-bottom: 20px;
  color: #cccccc;
  line-height: 1.6;
}

.casino-button {
  display: inline-block;
  background: linear-gradient(45deg, #ff0080, #8000ff);
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.casino-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.casino-button:hover::before {
  left: 100%;
}

.casino-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 0, 128, 0.6);
  border-color: #00ffff;
}

/* FAQ Section */
.faq-section {
  margin: 60px 0;
}

.faq-item {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid #ff0080;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  background: linear-gradient(90deg, #2d1b69, #1a0033);
  color: #00ffff;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
}

.faq-question:hover {
  background: linear-gradient(90deg, #3d2b79, #2a0043);
  box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #1a1a2e;
}

.faq-answer.active {
  padding: 20px;
  max-height: 200px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a0033, #330066);
  border-top: 2px solid #ff0080;
  padding: 40px 0;
  text-align: center;
  margin-top: 60px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff0080, #00ffff, #8000ff, #ff0080);
  animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 2px solid #00ffff;
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #ff0080;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.popup-close:hover {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}

/* Glitch Effect */
.glitch {
  animation: glitch 2s infinite;
}

@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

/* Neon Particles */
.neon-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #00ffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffff;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-100px) rotate(180deg);
    opacity: 0.5;
  }
}

/* FAQ статичный режим */
.accordion-question {
all: unset;
display: block;
font-family: var(--font-family);
font-size: 1.8rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 10px;
}

.accordion-icon {
display: none;
}

.accordion-answer,
.static-answer {
max-height: none !important;
padding: 0 0 1.5rem 0;
color: var(--text-secondary);
overflow: visible;
transition: none !important;
}

/* Quick Navigation */
.quick-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #1a0033, #330066);
  border-bottom: 2px solid #ff0080;
  box-shadow: 0 4px 20px rgba(255, 0, 128, 0.3);
  padding: 10px 0;
  margin-bottom: 20px; /* отступ от хедера */
  position: relative;
  z-index: 2;
}

.quick-nav-list {
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-nav-list li {
  position: relative;
}

.quick-nav-list a {
  display: inline-block;
  font-family: "Orbitron", monospace;
  font-weight: 600;
  font-size: 1rem;
  color: #00ffff;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Glowing Border on Hover */
.quick-nav-list a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 0, 128, 0.3), rgba(0, 255, 255, 0.3));
  transition: left 0.5s ease;
  z-index: -1;
}

.quick-nav-list a:hover::before {
  left: 100%;
}

.quick-nav-list a:hover {
  color: #ff0080;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(255, 0, 128, 0.5);
  text-shadow: 0 0 5px #00ffff, 0 0 10px #ff0080;
  transform: scale(1.05);
}

footer .icon use {

fill: #00e8ff !important;