/* Template 4 - Gaming Console Theme */
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Exo+2:wght@300;400;500;600;700;800&display=swap");

:root {
  --console-black: #0a0a0a;
  --console-dark: #1a1a1a;
  --console-gray: #2a2a2a;
  --console-light-gray: #3a3a3a;
  --console-green: #00ff41;
  --console-blue: #0080ff;
  --console-cyan: #00ffff;
  --console-purple: #8000ff;
  --console-red: #ff0040;
  --console-orange: #ff8000;
  --console-yellow: #ffff00;
  --console-white: #ffffff;

  --glow-green: 0 0 10px var(--console-green), 0 0 20px var(--console-green);
  --glow-blue: 0 0 10px var(--console-blue), 0 0 20px var(--console-blue);
  --glow-red: 0 0 10px var(--console-red), 0 0 20px var(--console-red);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Exo 2", sans-serif;
  line-height: 1.6;
  color: var(--console-white);
  background: var(--console-black);
  background-image: linear-gradient(90deg, var(--console-dark) 1px, transparent 1px),
    linear-gradient(0deg, var(--console-dark) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
  font-weight: 400;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 25% 25%, var(--console-green) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, var(--console-blue) 0%, transparent 50%);
  opacity: 0.05;
  z-index: -1;
  animation: consoleGlow 6s ease-in-out infinite alternate;
}

@keyframes consoleGlow {
  0% {
    opacity: 0.05;
  }
  100% {
    opacity: 0.1;
  }
}

a {
  color: var(--console-green);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--console-cyan);
  text-shadow: var(--glow-green);
}

.main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--console-dark), var(--console-gray));
  border-bottom: 3px solid var(--console-green);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 255, 65, 0.3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px var(--console-green));
}

.site-name {
  font-family: "Press Start 2P", cursive;
  font-size: 1.2rem;
  color: var(--console-green);
  text-shadow: var(--glow-green);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.site-nav a {
  color: var(--console-white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--console-green);
  background: var(--console-dark);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

.site-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--console-green);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.site-nav a:hover {
  color: var(--console-black);
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}

.site-nav a:hover::before {
  opacity: 1;
}

/* Hero Section */
.section.head {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, var(--console-gray), var(--console-light-gray));
  overflow: hidden;
}

.section.head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    var(--console-green) 2px,
    var(--console-green) 4px
  );
  opacity: 0.1;
  animation: scanlines 2s linear infinite;
}

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

.section.head h1 {
  font-family: "Press Start 2P", cursive;
  font-size: 2.5rem;
  color: var(--console-green);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: var(--glow-green);
  position: relative;
  z-index: 1;
  animation: titleBlink 3s ease-in-out infinite;
}

@keyframes titleBlink {
  0%,
  90% {
    opacity: 1;
  }
  95% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

.section.head .content p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--console-white);
  font-weight: 400;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  border: 1px solid var(--console-green);
  clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
}

/* Section Styling */
.section {
  padding: 5rem 0;
  position: relative;
}

.section:nth-child(even) {
  background: rgba(26, 26, 26, 0.5);
}

.section header h2 {
  font-family: "Press Start 2P", cursive;
  font-size: 2rem;
  color: var(--console-blue);
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: var(--glow-blue);
  position: relative;
}

.section header h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--console-blue);
  box-shadow: var(--glow-blue);
}

/* Casino List */
.casino_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.casino-item {
  width: calc(33.333% - 1.5rem);
  min-width: 320px;
  border: 2px solid var(--console-green);
  background: var(--console-dark);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
}

.casino-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--console-green), var(--console-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.casino-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--console-cyan);
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.casino-item:hover::before {
  opacity: 0.1;
}

.casino-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--console-red);
  color: var(--console-white);
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--glow-red);
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
  0% {
    box-shadow: var(--glow-red);
  }
  100% {
    box-shadow: 0 0 20px var(--console-red), 0 0 30px var(--console-red);
  }
}

.casino-header {
  padding: 2rem;
  text-align: center;
  border-bottom: 2px solid var(--console-green);
  position: relative;
  z-index: 1;
}

.casino-logo {
  width: 360px;
  height: 120px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 5px;
  border: 2px solid var(--console-green);
  transition: all 0.3s ease;
  position: relative;
}

.casino-logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.3), transparent);
  transition: left 0.6s ease;
}

.casino-logo:hover {
  border-color: var(--console-cyan);
  box-shadow: var(--glow-green);
}

.casino-logo:hover::after {
  left: 100%;
}

.casino-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.casino-name {
  font-family: "Press Start 2P", cursive;
  font-size: 1rem;
  color: var(--console-green);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: var(--glow-green);
}

.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.rating .stars {
  width: 120px;
  height: 20px;
  background: var(--console-gray);
  position: relative;
  border: 1px solid var(--console-green);
  overflow: hidden;
}

.rating .stars .fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--console-yellow), var(--console-orange));
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.rating .text {
  color: var(--console-white);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Press Start 2P", cursive;
}

.casino-body {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.casino-bonus {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--console-gray), var(--console-light-gray));
  border: 2px solid var(--console-blue);
  position: relative;
  overflow: hidden;
  clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
}

.casino-bonus::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    var(--console-blue) 2px,
    var(--console-blue) 4px
  );
  opacity: 0.1;
  animation: bonusScan 3s linear infinite;
}

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

.bonus-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--console-yellow);
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Press Start 2P", cursive;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px var(--console-yellow);
  position: relative;
  z-index: 1;
}

.free-spins {
  font-size: 0.9rem;
  color: var(--console-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.casino-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.feature-tag {
  background: var(--console-dark);
  color: var(--console-green);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--console-green);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.feature-tag:hover {
  background: var(--console-green);
  color: var(--console-black);
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}

.casino-details {
  margin-bottom: 2rem;
  border: 2px solid var(--console-green);
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--console-green);
  transition: all 0.2s ease;
}

.detail-item:hover {
  background: rgba(0, 255, 65, 0.1);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--console-white);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.detail-value {
  color: var(--console-green);
  font-weight: 700;
  font-family: "Press Start 2P", cursive;
  font-size: 0.8rem;
}

.casino-action {
  text-align: center;
}

.casino-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--console-red), var(--console-orange));
  color: var(--console-white);
  padding: 1rem 2.5rem;
  border: 2px solid var(--console-red);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Press Start 2P", cursive;
  cursor: pointer;
  position: relative;
  clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
}

.casino-button::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 ease;
}

.casino-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-red);
  border-color: var(--console-yellow);
}

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

/* FAQ Section */
.faq_list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid var(--console-green);
  background: var(--console-dark);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
}

.faq-item:hover {
  border-color: var(--console-cyan);
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
}

.accordion-question {
  background: transparent;
  border: none;
  font-family: "Press Start 2P", cursive;
  font-size: 0.9rem;
  color: var(--console-green);
  padding: 1.5rem 2rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.accordion-question:hover {
  color: var(--console-cyan);
  text-shadow: var(--glow-green);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  border: 2px solid var(--console-green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  background: var(--console-dark);
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--console-green);
  transition: all 0.3s ease;
}

.accordion-icon::before {
  width: 12px;
  height: 2px;
}

.accordion-icon::after {
  width: 2px;
  height: 12px;
}

.faq-item.active .accordion-icon {
  transform: rotate(45deg);
  border-color: var(--console-cyan);
  box-shadow: var(--glow-green);
}

.faq-item.active .accordion-icon::before,
.faq-item.active .accordion-icon::after {
  background: var(--console-cyan);
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 2rem;
  color: var(--console-white);
  line-height: 1.8;
  font-weight: 400;
}

.faq-item.active .accordion-answer {
  max-height: 500px;
  padding: 0 2rem 2rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--console-black), var(--console-dark));
  color: var(--console-white);
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--console-green);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--console-green), var(--console-blue), var(--console-green));
  animation: footerScan 3s linear infinite;
}

@keyframes footerScan {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-about {
  flex: 1;
  max-width: 400px;
}

.footer-tagline {
  font-size: 1rem;
  color: var(--console-white);
  line-height: 1.8;
  font-weight: 400;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--console-green);
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: var(--console-cyan);
  text-shadow: var(--glow-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px solid var(--console-green);
}

.copyright {
  font-size: 0.8rem;
  color: var(--console-white);
  font-family: "Press Start 2P", cursive;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInConsole {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInConsole 0.6s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
  .casino-item {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .casino-item {
    width: 100%;
    max-width: 400px;
  }

  .section.head h1 {
    font-size: 1.8rem;
  }

  .section header h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .casino-logo {
    width: 100%;
    height: 100px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links ul {
    justify-content: center;
  }
}


/* Усиленный стиль h3 за пределами FAQ */
body:not(.faq) h3,
:not(section.faq) h3 {
font-family: "Press Start 2P", cursive;
font-size: 1.5rem;
color: #72FF66; /* неоново-розовый */
text-shadow: 0 0 8px #A8FFA1;
margin-top: 15px;
margin-bottom: 10px;
 text-align: left;
}