/* Template 4 - Classic Elegant / Luxury */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Lato:wght@300;400;700&display=swap");

:root {
  --gold: #d4af37;
  --gold-dark: #b8941f;
  --gold-light: #f4e4a6;
  --bronze: #cd7f32;
  --cream: #f5f5dc;

  --bg-primary: #1a1410;
  --bg-secondary: #2a2218;
  --bg-card: #221b15;

  --text-primary: #f5f5dc;
  --text-secondary: #d4c5a9;
  --text-muted: #9a8b73;

  --border-gold: 2px solid var(--gold);
}

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

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

body {
  font-family: "Lato", sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(212, 175, 55, 0.02) 2px,
      rgba(212, 175, 55, 0.02) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(212, 175, 55, 0.02) 2px,
      rgba(212, 175, 55, 0.02) 4px
    );
  pointer-events: none;
  z-index: -1;
}

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

/* Header */
.site-header {
  background: rgba(26, 20, 16, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

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

.site-logo a {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.site-logo a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

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

.site-nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.section.head {
  padding: 8rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  border-bottom: 1px solid var(--gold);
}

.section.head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.section.head h1 {
  font-family: "Playfair Display", serif;
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
  position: relative;
  z-index: 1;
}

.section.head p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

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

.section:nth-child(even) {
  background: var(--bg-secondary);
}

.section header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section header::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section header h2 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.section header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 0.03em;
}

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

.casino-item {
  flex: 0 0 calc(33.333% - 1.5rem);
  min-width: 320px;
  background: var(--bg-card);
  border: var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.casino-item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--gold), var(--bronze), var(--gold));
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
  border-radius: 8px;
}

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

.casino-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

.casino-header {
  padding: 2rem;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--gold);
}

.casino-logo {
  width: 360px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  border: 1px solid var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.casino-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

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

.casino-name {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

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

.rating .stars {
  width: 120px;
  height: 6px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--gold);
}

.rating .stars .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  transition: all 0.4s ease;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.rating .text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.casino-body {
  padding: 2rem;
}

.casino-bonus {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--bronze) 100%);
  border-radius: 8px;
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
  border: 1px solid var(--gold);
}

.bonus-amount {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.free-spins {
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

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

.feature-tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: var(--gold);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.casino-details {
  margin-bottom: 2rem;
  border: 1px solid var(--gold);
  border-radius: 8px;
  overflow: hidden;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: var(--bg-secondary);
}

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

.detail-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-value {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

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

.casino-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--bg-primary);
  padding: 1.25rem 3rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s ease;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
  border: 2px solid var(--gold);
}

.casino-button:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5);
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.accordion-question {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 2rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

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

.accordion-icon {
  width: 32px;
  height: 32px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  background: var(--bg-secondary);
}

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

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

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

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

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

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: var(--text-secondary);
  line-height: 1.8;
}

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

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 3rem 0 1rem;
  border-top: 2px solid var(--gold);
  margin-top: 5rem;
}

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

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

.footer-tagline {
  color: var(--text-secondary);
  line-height: 1.8;
  letter-spacing: 0.03em;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.copyright a{
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

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

.fade-in {
  opacity: 0;
  animation: elegantFade 0.8s 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;
}

/* Усиленный стиль h3 за пределами FAQ */
body:not(.faq) h3,
:not(section.faq) h3 {
font-size: 1.7rem;
color: #F5CC27;
margin-top: 15px;
margin-bottom: 10px;
text-align: left;
}

.section.head { transform: none !important; }

html, body {
height: 100%;
margin: 0;
padding: 0;
}

body {
display: flex;
flex-direction: column;
min-height: 100vh;
}

main {
flex: 1;
}