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

:root {
  --blue-primary: #3b82f6;
  --blue-light: #60a5fa;
  --blue-dark: #1d4ed8;
  --blue-accent: #dbeafe;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --font-sans: "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-sans);
  line-height: 1.6;
  color: var(--gray-100);
  background: var(--gray-900);
  min-height: 100vh;
  font-weight: 400;
}

img {
  max-width: 360px;
  height: auto;
  border-radius: 5px;
  border: 1px solid var(--gray-700);
  transition: all 0.3s ease;
}

.f-left {
  float: left;
  margin: 0 20px 20px 0;
}
.f-right {
  float: right;
  margin: 0 0 20px 20px;
}
.f-center {
  display: block;
  margin: 0 auto 20px;
}

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

/* Header */
.header {
  background: rgba(17, 24, 39, 0.95);
  color: var(--gray-100);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-800);
  backdrop-filter: blur(12px);
}

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

.header .logo {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--blue-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.025em;
}

.header .logo:hover {
  color: var(--blue-light);
  transform: translateY(-1px);
}

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

.header .quick-nav a {
  color: var(--gray-300);
  text-decoration: none;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--gray-700);
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.header .quick-nav a:hover {
  color: var(--white);
  border-color: var(--blue-primary);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

/* Main Content */
.section {
  padding: 64px 0;
}

.section.head {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: var(--gray-100);
  text-align: center;
  padding: 96px 0;
  position: relative;
}

.section.head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.section.head .container {
  position: relative;
  z-index: 1;
}

.section.head h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.section.head p {
  font-size: 1.25rem;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* Section Headers */
.section header {
  text-align: center;
  margin-bottom: 48px;
}

.section header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  position: relative;
}

.section header h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--blue-primary);
  border-radius: 2px;
}

/* Casino List */
.casino_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
}

.casino-item {
  width: calc(33.333% - 16px);
  min-width: 300px;
  border: 1px solid var(--gray-800);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
}

.casino-item:hover {
  transform: translateY(-4px);
  border-color: var(--blue-primary);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.casino-header {
  padding: 24px 20px;
  text-align: center;
  background: var(--gray-800);
  border-bottom: 1px solid var(--gray-700);
}

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

.casino-logo:hover {
  transform: scale(1.02);
  border-color: var(--blue-primary);
}

.casino-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

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

.rating .stars {
  width: 84px;
  height: 15px;
  background: url("../../../images/stars-empty.svg") left center / auto 100%;
  position: relative;
  filter: hue-rotate(200deg) saturate(1.5) brightness(1.2);
}

.rating .stars .fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: url("../../../images/stars-active.svg") left center / auto 100%;
  filter: hue-rotate(200deg) saturate(1.5) brightness(1.2);
}

.casino-body {
  padding: 20px;
  background: var(--gray-900);
}

.casino-bonus {
  text-align: center;
  margin-bottom: 16px;
}

.bonus-amount {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: 4px;
  letter-spacing: -0.025em;
}

.free-spins {
  color: var(--gray-400);
  font-size: 0.875rem;
  font-weight: 500;
}

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

.feature-tag {
  background: var(--gray-800);
  color: var(--gray-300);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--gray-700);
}

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

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

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

.detail-label {
  color: var(--gray-400);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

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

.detail-value {
  color: var(--gray-200);
  font-weight: 600;
  font-size: 0.875rem;
}

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

.casino-button {
  display: inline-block;
  background: var(--blue-primary);
  color: var(--white);
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  letter-spacing: -0.025em;
}

.casino-button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding: 48px 0 32px;
  margin-top: 64px;
  border-top: 1px solid var(--gray-700);
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
  text-align: center;
  letter-spacing: -0.025em;
}

.footer .logos_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
}

.footer .logo-item {
  width: 145px;
  height: 40px;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 8px;
}

.footer .logo-item:hover {
  background: var(--gray-700);
  border-color: var(--blue-primary);
  transform: translateY(-2px);
}

.footer .icon {
  width: 64px;
  height: auto;
  fill: var(--gray-500);
  transition: all 0.3s ease;
}

.footer .logo-item:hover .icon {
  fill: var(--blue-primary);
}

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

.copyright {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* FAQ */
.faq-item {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--blue-primary);
}

.accordion-question {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--gray-200);
  padding: 20px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.accordion-question:hover {
  background: var(--gray-700);
  color: var(--white);
}

.accordion-icon {
  float: right;
  transition: transform 0.3s ease;
  color: var(--blue-primary);
  font-size: 1.2rem;
}

.faq-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--gray-900);
}

.accordion-answer p {
  padding: 20px;
  color: var(--gray-400);
  line-height: 1.7;
}

/* Text Block */
.text-content {
  background: var(--gray-800);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--gray-700);
}

.text-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin: 24px 0 16px;
  letter-spacing: -0.025em;
}

.text-content p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--gray-300);
}

.text-content a {
  color: var(--blue-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.text-content a:hover {
  color: var(--blue-light);
  border-bottom-color: var(--blue-light);
}

.text-content a[href*="/go/"] {
  target: "_blank";
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.8);
  display: none;
  z-index: 10000;
  backdrop-filter: blur(8px);
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.popup-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.025em;
}

.popup-close {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 4px;
}

.popup-close:hover {
  color: var(--gray-200);
}

.popup-casino-logo {
  width: 200px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-700);
}

.popup-casino-info h4 {
  color: var(--white);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
}

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

.popup-casino-button {
  display: block;
  width: 100%;
  background: var(--blue-primary);
  color: var(--white);
  padding: 12px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.popup-casino-button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* 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;
}