/* Template 6 - Classic Elegant */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #8b4513;
  --secondary-color: #2f4f4f;
  --accent-color: #cd853f;
  --gold-color: #daa520;
  --burgundy-color: #800020;
  --forest-color: #228b22;
  --cream-color: #f5f5dc;
  --ivory-color: #fffff0;
  --charcoal-color: #36454f;
  --slate-color: #708090;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --font-primary: "Crimson Text", serif;
  --font-display: "Playfair Display", serif;
  --font-accent: "Cormorant Garamond", serif;
  --shadow-elegant: 0 4px 20px rgba(139, 69, 19, 0.15);
  --shadow-hover: 0 8px 30px rgba(139, 69, 19, 0.25);
  --border-elegant: 2px solid var(--accent-color);
}

* {
  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.7;
  color: var(--charcoal-color);
  background: var(--cream-color);
  min-height: 100vh;
  font-weight: 400;
  background-image: radial-gradient(circle at 20% 20%, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(218, 165, 32, 0.05) 0%, transparent 50%);
}

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

.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: var(--ivory-color);
  color: var(--charcoal-color);
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent-color);
  box-shadow: var(--shadow-elegant);
  backdrop-filter: blur(10px);
}

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

.header .logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -1px;
  position: relative;
}

.header .logo::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-color);
  transition: width 0.3s ease;
}

.header .logo:hover {
  color: var(--burgundy-color);
  transform: translateY(-2px);
}

.header .logo:hover::after {
  width: 100%;
}

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

.header .quick-nav a {
  color: var(--slate-color);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border: 1px solid var(--accent-color);
  border-radius: 0;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.header .quick-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  transition: left 0.3s ease;
  z-index: -1;
}

.header .quick-nav a:hover {
  color: #d15710;
  border-color: var(--primary-color);
}

.header .quick-nav a:hover::before {
  left: 0;
}

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

.section.head {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--burgundy-color) 100%);
  color: var(--ivory-color);
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.section.head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="elegantPattern" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M20 0 L40 20 L20 40 L0 20 Z" fill="none" stroke="%23daa520" stroke-width="0.5" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23elegantPattern)"/></svg>');
  animation: elegantPattern 30s linear infinite;
  opacity: 0.3;
}

@keyframes elegantPattern {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(40px, 40px);
  }
}

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

.section.head h1 {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -2px;
  position: relative;
}

.section.head h1::after {
  content: "◆";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--gold-color);
  text-shadow: 0 0 10px var(--gold-color);
}

.section.head p {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
  font-style: italic;
}

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

.section header h2 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -1px;
  position: relative;
}

.section header h2::before,
.section header h2::after {
  content: "❦";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--gold-color);
}

.section header h2::before {
  left: -60px;
}

.section header h2::after {
  right: -60px;
}

.section header p {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: var(--slate-color);
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

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

.casino-item {
  width: calc(33.333% - 20px);
  min-width: 300px;
  background: var(--ivory-color);
  border: var(--border-elegant);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: var(--shadow-elegant);
}

.casino-item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--gold-color);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

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

.casino-header {
  padding: 30px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--cream-color) 0%, var(--ivory-color) 100%);
  border-bottom: 2px solid var(--accent-color);
  position: relative;
}

.casino-header::before {
  content: "◆ ◆ ◆";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-color);
  font-size: 0.8rem;
  letter-spacing: 8px;
}

.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;
  border: 3px solid var(--accent-color);
  position: relative;
}

.casino-logo::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid var(--gold-color);
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.casino-logo:hover {
  transform: scale(1.03);
  border-color: var(--gold-color);
}

.casino-logo:hover::after {
  opacity: 1;
}

.casino-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  position: relative;
}

.casino-name::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--gold-color);
}

.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: sepia(100%) saturate(200%) hue-rotate(25deg);
}

.rating .stars .fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: url("../../../images/stars-active.svg") left center / auto 100%;
  filter: sepia(100%) saturate(200%) hue-rotate(25deg) drop-shadow(0 0 3px var(--gold-color));
}

.rating .text {
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--slate-color);
  font-weight: 600;
  font-style: italic;
}

.casino-body {
  padding: 30px 24px;
  background: var(--ivory-color);
}

.casino-bonus {
  text-align: center;
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, var(--cream-color) 0%, var(--ivory-color) 100%);
  border: 1px solid var(--accent-color);
  position: relative;
}

.casino-bonus::before {
  content: "❦";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ivory-color);
  color: var(--gold-color);
  font-size: 1.2rem;
  padding: 0 10px;
}

.bonus-amount {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--forest-color);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.free-spins {
  display: block;
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--slate-color);
  font-weight: 500;
  font-style: italic;
}

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

.feature-tag {
  background: var(--primary-color);
  color: var(--ivory-color);
  padding: 6px 16px;
  border: 1px solid var(--accent-color);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
}

.feature-tag:hover {
  background: var(--burgundy-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.casino-details {
  margin-bottom: 24px;
  background: var(--cream-color);
  border: 1px solid var(--accent-color);
  padding: 16px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dotted var(--accent-color);
}

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

.detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--slate-color);
  font-weight: 600;
}

.detail-label svg {
  width: 16px;
  height: 16px;
  color: var(--gold-color);
}

.detail-value {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: var(--charcoal-color);
  font-weight: 700;
}

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

.casino-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--ivory-color);
  text-decoration: none;
  padding: 16px 32px;
  border: 2px solid var(--accent-color);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.casino-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--burgundy-color);
  transition: left 0.3s ease;
  z-index: -1;
}

.casino-button:hover {
  border-color: var(--gold-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.casino-button:hover::before {
  left: 0;
}

/* Text Content */
.text-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--charcoal-color);
}

.text-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 32px 0 16px;
  letter-spacing: -0.5px;
  position: relative;
}

.text-content h3::before {
  content: "❦";
  position: absolute;
  left: -40px;
  color: var(--gold-color);
  font-size: 1.5rem;
}

.text-content p {
  margin-bottom: 16px;
  text-align: justify;
}

.text-content ul,
.text-content ol {
  margin: 16px 0;
  padding-left: 30px;
}

.text-content li {
  margin-bottom: 8px;
}

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

.faq-item {
  background: var(--ivory-color);
  border: var(--border-elegant);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.faq-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px solid var(--gold-color);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.faq-item:hover {
  box-shadow: var(--shadow-elegant);
  border-color: var(--gold-color);
}

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

.accordion-question {
  background: linear-gradient(135deg, var(--cream-color) 0%, var(--ivory-color) 100%);
  border: none;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal-color);
  padding: 24px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-question:hover {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--gold-color) 100%);
  color: var(--ivory-color);
}

.accordion-icon::before {
  content: "◆";
  font-size: 1.2rem;
  color: var(--gold-color);
  transition: all 0.3s ease;
}

.faq-item.active .accordion-icon::before {
  content: "◇";
  color: var(--primary-color);
  transform: rotate(45deg);
}

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

.accordion-answer p {
  padding: 24px;
  color: var(--charcoal-color);
  line-height: 1.7;
  text-align: justify;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--charcoal-color) 0%, var(--slate-color) 100%);
  color: var(--ivory-color);
  padding: 64px 0 32px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerElegant" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23daa520" opacity="0.1"/><path d="M25 15 L35 25 L25 35 L15 25 Z" fill="none" stroke="%23daa520" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23footerElegant)"/></svg>');
  animation: footerElegant 40s linear infinite;
  opacity: 0.3;
}

@keyframes footerElegant {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-column h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gold-color);
  letter-spacing: -0.5px;
  position: relative;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-color);
}

.footer-column p {
  color: rgba(255, 255, 240, 0.8);
  line-height: 1.7;
  text-align: justify;
}

.logos_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-top: 2px solid var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  position: relative;
  z-index: 1;
}

.logo-item {
  width: 140px;
  height: 50px;
  background: rgba(255, 255, 240, 0.1);
  border: 2px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 8px;
  position: relative;
}

.logo-item::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid var(--gold-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo-item:hover {
  background: rgba(218, 165, 32, 0.2);
  border-color: var(--gold-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

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

.icon {
  width: 32px;
  height: 32px;
  fill: var(--ivory-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  position: relative;
  z-index: 1;
}

.copyright {
  font-family: var(--font-accent);
  color: rgba(255, 255, 240, 0.6);
  font-size: 1rem;
  font-style: italic;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

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

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

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(54, 69, 79, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.popup-content {
  background: var(--ivory-color);
  border: var(--border-elegant);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  animation: elegantPopup 0.6s ease-out;
  position: relative;
}

.popup-content::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--gold-color);
  pointer-events: none;
}

@keyframes elegantPopup {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-header {
  padding: 30px 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--cream-color) 0%, var(--ivory-color) 100%);
}

.popup-header h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.popup-close {
  background: var(--burgundy-color);
  border: 2px solid var(--accent-color);
  font-size: 1.2rem;
  color: var(--ivory-color);
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.popup-close:hover {
  background: var(--primary-color);
  border-color: var(--gold-color);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
}

.popup-body {
  padding: 30px;
  background: var(--ivory-color);
}

.header .quick-nav a::before {
content: "";
position: absolute;
top: 0;
left: 0; /* Фон всегда за кнопкой */
width: 100%;
height: 100%;
background: var(--deco-gold);
z-index: -1;
}

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