/* Template 2 - Dark Tech Theme with Sidebar */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Rajdhani:wght@300;400;500;600;700&display=swap");

:root {
  --tech-dark: #0f1219;
  --tech-darker: #070a0f;
  --tech-medium: #1a1f2c;
  --tech-light: #2a3142;
  --tech-accent: #00e5ff;
  --tech-accent-alt: #7b42ff;
  --tech-text: #e0e0e0;
  --tech-text-dim: #9ba3b4;
  --tech-border: #2a3142;
  --tech-glow: 0 0 10px rgba(0, 229, 255, 0.5);
  --tech-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--tech-text);
  background: var(--tech-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(circle at 20% 20%, rgba(123, 66, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

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

a:hover {
  color: var(--tech-accent-alt);
  text-shadow: var(--tech-glow);
}

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

/* Layout with Sidebar */
.page-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--tech-darker);
  border-right: 1px solid var(--tech-border);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  padding: 20px 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar-logo {
  padding: 20px;
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--tech-border);
}

.sidebar-logo a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--tech-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  position: relative;
}

.sidebar-logo a::before {
  content: "< ";
  opacity: 0.7;
}

.sidebar-logo a::after {
  content: " />";
  opacity: 0.7;
}

.sidebar-nav {
  padding: 0 20px;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 10px;
}

.sidebar-nav a {
  display: block;
  padding: 12px 15px;
  color: var(--tech-text);
  border-left: 3px solid transparent;
  border-radius: 0 5px 5px 0;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--tech-medium);
  border-left-color: var(--tech-accent);
  color: var(--tech-accent);
  transform: translateX(5px);
}

.sidebar-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--tech-text-dim);
  border-top: 1px solid var(--tech-border);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
}

/* Header */
.header {
  background: rgba(15, 18, 25, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tech-border);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 99;
}

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

.header .quick-nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

.header .quick-nav a {
  color: var(--tech-text);
  padding: 8px 15px;
  border: 1px solid var(--tech-border);
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: var(--tech-medium);
}

.header .quick-nav a:hover {
  border-color: var(--tech-accent);
  box-shadow: var(--tech-glow);
  color: var(--tech-accent);
}

/* Hero Section */
.section.head {
  background: linear-gradient(135deg, var(--tech-medium) 0%, var(--tech-darker) 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section.head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 50%, rgba(0, 229, 255, 0.05) 50%),
    linear-gradient(0deg, transparent 50%, rgba(123, 66, 255, 0.05) 50%);
  background-size: 40px 40px;
  opacity: 0.3;
}

.section.head h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--tech-text);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.section.head h1::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--tech-accent), var(--tech-accent-alt));
  margin: 20px auto 0;
}

.section.head p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--tech-text-dim);
}

/* Section Styling */
.section {
  padding: 80px 0;
}

.section header {
  text-align: center;
  margin-bottom: 50px;
}

.section header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--tech-text);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.section header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--tech-accent), var(--tech-accent-alt));
  margin: 15px auto 0;
}

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

.casino-item {
  width: calc(33.333% - 20px);
  min-width: 300px;
  background: var(--tech-medium);
  border: 1px solid var(--tech-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.casino-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  z-index: -1;
}

.casino-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--tech-shadow);
}

.casino-item:hover::before {
  border-color: var(--tech-accent);
  box-shadow: var(--tech-glow);
}

.casino-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--tech-accent-alt);
  color: var(--tech-text);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 1;
}

.casino-header {
  padding: 25px 20px;
  text-align: center;
  background: var(--tech-darker);
  border-bottom: 1px solid var(--tech-border);
}

.casino-logo {
  width: 360px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--tech-border);
  transition: all 0.3s ease;
}

.casino-logo:hover {
  box-shadow: var(--tech-glow);
}

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

.casino-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--tech-text);
  margin-bottom: 10px;
}

.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rating .stars {
  width: 80px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  border-radius: 3px;
}

.rating .stars .fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--tech-accent), var(--tech-accent-alt));
  border-radius: 3px;
}

.rating .text {
  color: var(--tech-text-dim);
  font-size: 0.9rem;
}

.casino-body {
  padding: 20px;
}

.casino-bonus {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.bonus-amount {
  color: var(--tech-accent);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 5px;
}

.free-spins {
  color: var(--tech-accent-alt);
  font-size: 1.1rem;
  display: block;
}

.casino-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-tag {
  background: rgba(0, 229, 255, 0.1);
  color: var(--tech-accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.casino-details {
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--tech-border);
}

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

.detail-label {
  color: var(--tech-text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-label svg {
  width: 16px;
  height: 16px;
  stroke: var(--tech-accent);
}

.detail-value {
  color: var(--tech-text);
  font-weight: 600;
}

.casino-action {
  text-align: center;
  margin-top: 20px;
}

.casino-button {
  display: inline-block;
  background: linear-gradient(90deg, var(--tech-accent), var(--tech-accent-alt));
  color: var(--tech-dark);
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
}

.casino-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--tech-glow);
  color: var(--tech-dark);
}

/* FAQ Section */
.faq-block {
  background: var(--tech-darker);
}

.faq_list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--tech-medium);
  border: 1px solid var(--tech-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--tech-accent);
}

.accordion-question {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tech-text);
  padding: 20px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

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

.accordion-icon::before {
  width: 2px;
  height: 20px;
  left: 9px;
  top: 0;
}

.accordion-icon::after {
  width: 20px;
  height: 2px;
  left: 0;
  top: 9px;
}

.faq-item.active .accordion-icon::before {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
  color: var(--tech-text-dim);
}

.faq-item.active .accordion-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

/* Footer */
.footer {
  background: var(--tech-darker);
  color: var(--tech-text-dim);
  padding: 60px 0 30px;
  border-top: 1px solid var(--tech-border);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-column {
  width: 100%;
  max-width: 300px;
  margin-bottom: 30px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--tech-text);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--tech-accent);
}

.logos_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.logo-item {
  width: 80px;
  height: 40px;
  background: var(--tech-medium);
  border: 1px solid var(--tech-border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.logo-item:hover {
  border-color: var(--tech-accent);
  box-shadow: var(--tech-glow);
  transform: translateY(-3px);
}

.logo-item .icon {
  width: 24px;
  height: 24px;
  fill: var(--tech-text);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--tech-border);
}

.copyright {
  font-size: 0.9rem;
}

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

.popup-content {
  background: var(--tech-medium);
  border: 1px solid var(--tech-border);
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-header {
  padding: 20px;
  border-bottom: 1px solid var(--tech-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--tech-text);
  margin: 0;
}

.popup-close {
  background: none;
  border: none;
  color: var(--tech-text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-close:hover {
  color: var(--tech-accent);
}

.popup-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-casino-logo {
  width: 200px;
  height: 80px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--tech-border);
}

.popup-casino-info {
  text-align: center;
}

.popup-casino-info h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--tech-text);
  margin-bottom: 15px;
}

.popup-casino-bonus {
  margin-bottom: 20px;
}

.popup-casino-button {
  display: inline-block;
  background: linear-gradient(90deg, var(--tech-accent), var(--tech-accent-alt));
  color: var(--tech-dark);
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.popup-casino-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--tech-glow);
  color: var(--tech-dark);
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 229, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Усиленный стиль h3 за пределами FAQ */
body:not(.faq) h3,
:not(section.faq) h3 {
font-size: 2.6rem;
color: #ffffff; /* неоново-розовый */
margin-top: 30px;
margin-bottom: 20px;
 text-align: center;
}