/* Template 5 - Colorful Gradient */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --gradient-danger: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --gradient-light: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --color-primary: #667eea;
  --color-secondary: #f093fb;
  --color-accent: #4facfe;
  --color-success: #43e97b;
  --color-warning: #fa709a;
  --color-danger: #ff9a9e;
  --color-dark: #2c3e50;
  --color-light: #ffecd2;
  --white: #ffffff;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e0;
  --gray-500: #a0aec0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
  --font-primary: "Poppins", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --shadow-colorful: 0 10px 25px rgba(102, 126, 234, 0.3);
  --shadow-hover: 0 20px 40px rgba(102, 126, 234, 0.4);
}

* {
  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(--gray-800);
  background: var(--white);
  min-height: 100vh;
  font-weight: 400;
  background-image: radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(240, 147, 251, 0.1) 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(--white);
  color: var(--gray-800);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  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.2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.5px;
}

.header .logo:hover {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.05);
}

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

.header .quick-nav a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

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

.header .quick-nav a:hover {
  color: #7e39ff;
  transform: translateY(-2px);
}

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

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

.section.head {
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.section.head::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="colorfulPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="5" cy="5" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="15" cy="15" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23colorfulPattern)"/></svg>');
  animation: patternFloat 20s linear infinite;
  opacity: 0.3;
}

@keyframes patternFloat {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(20px, 20px) rotate(360deg);
  }
}

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

.section.head h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: titleBounce 2s ease-out;
}

@keyframes titleBounce {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.section.head p {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 0.9;
    transform: translateY(0);
  }
}

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

.section header h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.2;
  position: relative;
}

.section header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* 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(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.casino-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  border-radius: 20px;
  padding: 2px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.casino-header {
  padding: 30px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
  position: relative;
}

.casino-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

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

.casino-logo::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: var(--gradient-accent);
  border-radius: 5px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.casino-logo:hover {
  transform: scale(1.05) rotate(1deg);
  border-color: transparent;
}

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

.casino-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.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(280deg) saturate(1.5);
}

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

.rating .text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 600;
}

.casino-body {
  padding: 24px;
  background: var(--white);
}

.casino-bonus {
  text-align: center;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--gradient-success);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.casino-bonus::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.2"/></svg>');
  animation: bonusSparkle 3s linear infinite;
}

@keyframes bonusSparkle {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.bonus-amount {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.free-spins {
  display: block;
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

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

.feature-tag {
  background: var(--gradient-warning);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
  transition: all 0.3s ease;
}

.feature-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 112, 154, 0.4);
}

.casino-details {
  margin-bottom: 24px;
  background: var(--gray-100);
  border-radius: 12px;
  padding: 16px;
}

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

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

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

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

.detail-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gray-800);
  font-weight: 700;
}

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

.casino-button {
  display: inline-block;
  background: var(--gradient-secondary);
  color: var(--white);
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-colorful);
  position: relative;
  overflow: hidden;
}

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

.casino-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.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(--gray-700);
}

.text-content h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 32px 0 16px;
}

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

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

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

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

.faq-item {
  background: var(--white);
  border-radius: 15px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--color-accent);
}

.accordion-question {
  background: var(--gradient-light);
  border: none;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  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: var(--gradient-warning);
  color: var(--white);
}

.accordion-icon::before {
  content: "⊕";
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.faq-item.active .accordion-icon::before {
  content: "⊖";
  color: var(--color-secondary);
  transform: rotate(180deg);
}

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

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

/* Footer */
.footer {
  background: var(--gradient-dark);
  color: var(--white);
  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="footerColorful" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="3" fill="%23667eea" opacity="0.1"/><circle cx="5" cy="5" r="1" fill="%23f093fb" opacity="0.1"/><circle cx="25" cy="25" r="1" fill="%234facfe" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23footerColorful)"/></svg>');
  animation: footerPattern 25s linear infinite;
  opacity: 0.3;
}

@keyframes footerPattern {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 30px);
  }
}

.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.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

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

.logo-item {
  width: 130px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 8px;
  backdrop-filter: blur(10px);
}

.logo-item:hover {
  background: var(--gradient-accent);
  border-color: transparent;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
}

.icon {
  width: 28px;
  height: 28px;
  fill: rgba(255, 255, 255, 0.8);
}

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

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Animations */


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

.popup-content {
  background: var(--white);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.popup-content::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: var(--gradient-primary);
  border-radius: 20px;
  z-index: -1;
}

@keyframes popupBounce {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    transform: scale(1.05) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-header {
  padding: 30px 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-header h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.popup-close {
  background: var(--gradient-danger);
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 5px 15px rgba(255, 154, 158, 0.4);
}

.popup-body {
  padding: 30px;
}

.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;
}