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

:root {
  --dark-bg: #0a0a0a;
  --dark-surface: #1a1a1a;
  --dark-surface-hover: #2a2a2a;
  --dark-border: #333333;
  --dark-text: #ffffff;
  --dark-text-muted: #a0a0a0;
  --dark-text-dim: #666666;
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-blue-light: rgba(59, 130, 246, 0.1);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --font-primary: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--dark-bg);
  min-height: 100vh;
  display: block;
}

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

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

a:hover {
  color: var(--accent-blue-hover);
}

/* Sidebar Layout */
.sidebar {
  width: 280px;
  background: var(--dark-surface);
  border-right: 1px solid var(--dark-border);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 30px 20px;
  border-bottom: 1px solid var(--dark-border);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo::before {
  content: "🎰";
  font-size: 1.5rem;
}

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

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

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

.sidebar-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--dark-text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.sidebar-nav a:hover {
  background: var(--dark-surface-hover);
  color: var(--accent-blue);
  padding-left: 30px;
}

.sidebar-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-blue);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.sidebar-nav a:hover::before {
  transform: scaleY(1);
}

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

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

/* Header */
.header {
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

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

.header-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-text);
}

.header-actions {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.section.head {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
  position: relative;
}

.section.head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, var(--accent-blue-light) 0%, transparent 70%);
  pointer-events: none;
}

.section.head h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.section.head p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--dark-text-muted);
  font-weight: 300;
  position: relative;
  z-index: 1;
}

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

.section:nth-child(even) {
  background: var(--dark-surface);
}

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

.section header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.section header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--dark-text-muted);
  font-size: 1.1rem;
}

/* 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(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.casino-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-blue-light) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.casino-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

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

.casino-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-blue);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 2;
}

.casino-header {
  padding: 30px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

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

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

.casino-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 10px;
}

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

.rating .stars {
  width: 100px;
  height: 20px;
  background: var(--dark-border);
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.rating .stars .fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent-blue);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.rating .text {
  color: var(--dark-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-mono);
}

.casino-body {
  padding: 0 20px 30px;
  position: relative;
  z-index: 1;
}

.casino-bonus {
  text-align: center;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--dark-surface-hover);
  border-radius: 10px;
  border: 1px solid var(--dark-border);
}

.bonus-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 5px;
}

.free-spins {
  font-size: 1rem;
  color: var(--dark-text-muted);
  font-weight: 500;
}

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

.feature-tag {
  background: var(--dark-border);
  color: var(--dark-text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: var(--accent-blue);
  color: white;
}

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

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

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

.detail-label {
  color: var(--dark-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

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

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

.casino-button {
  display: inline-block;
  background: var(--accent-blue);
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  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 {
  background: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

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

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

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

.faq-item:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.accordion-question {
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-text);
  padding: 25px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.accordion-question:hover {
  color: var(--accent-blue);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

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

.accordion-icon::before {
  width: 10px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 2px;
  height: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .accordion-icon {
  background: var(--accent-blue);
}

.faq-item.active .accordion-icon::before {
  background: white;
}

.faq-item.active .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 25px;
  color: var(--dark-text-muted);
  line-height: 1.6;
}

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

/* Footer */
.footer {
  background: var(--dark-surface);
  color: var(--dark-text-muted);
  padding: 60px 0 30px;
  border-top: 1px solid var(--dark-border);
  margin-top: auto;
}

.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-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 20px;
}

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

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

/* Animations */
.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(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile Sidebar Toggle */
.sidebar-toggle {
  display: none;
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: block;
  }

  .casino-item {
    width: calc(50% - 15px);
  }
}

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

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

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

.site-name {
  font-size: 2rem;
  font-weight: 600;
  color: var(--dark-text);
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
}
.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: var(--accent-blue);
}

/* Header Layout Fix */
.site-header {
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-border);
  padding: 20px 0;
}

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

/* Site Logo and Name */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  width: 32px;
  height: 32px;
}

.site-name {
  font-size: 2rem;
  font-weight: 600;
  color: var(--dark-text);
  font-family: var(--font-primary);
}

/* Navigation Links */
.site-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.site-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: var(--accent-blue);
}

/* Обёртка хедера */
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* Стили логотипа */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  width: 32px;
  height: 32px;
}

.site-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-text);
}

/* Вертикальное меню */
.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav li a {
  display: block;
  padding: 10px 20px;
  background: var(--dark-surface-hover);
  color: var(--dark-text-muted);
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.site-nav li a:hover {
  background: var(--accent-blue);
  color: white;
}

/* Обёртка колонок футера */
.footer-columns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
}

/* Описание сайта */
.footer-about .footer-tagline {
  font-size: 1rem;
  color: var(--dark-text-muted);
  line-height: 1.6;
  max-width: 500px;
}

/* Ссылки футера */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-links li a {
  padding: 15px 15px;
  background: var(--dark-surface-hover);
  color: var(--dark-text-muted);
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.footer-links li a:hover {
  background: var(--accent-blue);
  color: white;
}

/* Нижняя часть футера */
.footer-bottom {
  text-align: left;
  padding-top: 20px;
  border-top: 1px solid var(--dark-border);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--dark-text-dim);
}

.site-nav {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.site-nav ul {
  align-items: flex-end;
}

.footer-links {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.footer-links ul {
  align-items: flex-end;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* важно: выравниваем весь список вправо */
  gap: 20px;
  padding: 0;
  margin: 0;
}

.footer-links li {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* выравниваем контент внутри <li> вправо */
}

.footer-links li a {
  min-width: 200px; /* фиксированная ширина сделает кнопки одинаковыми */
  text-align: center; /* текст по центру внутри кнопки */
}

.site-nav {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* прижимаем весь список вправо */
  gap: 20px;
  padding: 0;
  margin: 0;
}

.site-nav li {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* прижимаем каждую кнопку внутрь li */
}

.site-nav li a {
  min-width: 200px;         /* одинаковая ширина кнопок */
  text-align: center;       /* текст по центру */
  padding: 10px 20px;
  background: var(--dark-surface-hover);
  color: var(--dark-text-muted);
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.site-nav li a:hover {
  background: var(--accent-blue);
  color: white;
}

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