/* Base Styles */
:root {
  --primary-color: #FF4136;
  --secondary-color: #0074D9;
  --accent-color: #FFDC00;
  --dark-color: #111827;
  --light-color: #F9FAFB;
  --grey-color: #9CA3AF;
  --success-color: #10B981;
  --warning-color: #F59E0B;
  --error-color: #EF4444;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
  color: var(--dark-color);
  background-color: #f5f5f5;
}

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

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #4B5563;
}

/* Header */
.header {
  background: linear-gradient(to right, #0f172a, #1e293b);
  color: white;
  padding: 1.5rem 0;
  box-shadow: var(--shadow);
}

.header__content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo__img {
  height: 40px;
  margin-bottom: 0.5rem;
}

.logo__slogan {
  font-size: 0.8rem;
  color: var(--primary-color);
  margin: 0;
}

/* Intro Section */
.intro {
  position: relative;
  padding: 4rem 0;
  background: url(images/banner.jpg) no-repeat center center;
  background-size: cover;
  color: white;
  overflow: hidden;
}

.intro::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* затемнение */
  z-index: 1;
}

.intro__title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.intro__text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  background: linear-gradient(to right, #0f172a, #1e293b);
  padding: 15px;
  color: #fff;
  border-radius: 15px;
}

/* Casino Rating Section */
.casino-rating {
  padding: 4rem 0;
  background-color: #f9fafb;
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.casino-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.casino-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.casino-card__header {
  background: linear-gradient(to right, #1a365d, #2a4365);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  position: relative;
}

.casino-rank {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--accent-color);
  color: var(--dark-color);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-bottom-right-radius: var(--border-radius);
}

.casino-logo {
  height: 40px;
  object-fit: contain;
  margin-right: 1rem;
}

.casino-info {
  text-align: right;
  flex: 1;
}

.casino-info h3 {
  margin-bottom: 0px;
}

.rating {
  display: flex;
  align-items: center;
  justify-content: end;
}

.rating-score {
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.stars {
  display: flex;
}

.star {
  color: var(--accent-color);
  margin-right: 2px;
}

.casino-card__body {
  padding: 1.5rem;
}

.casino-features {
  margin-bottom: 1.5rem;
}

.casino-features li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.85rem; /* Уменьшенный размер шрифта */
}

.casino-features li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.casino-features li span:first-child {
  font-weight: 500;
  color: #4B5563;
}

.casino-features li span:last-child {
  font-weight: 500;
  color: var(--dark-color);
}

.play-btn {
  display: block;
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.play-btn:hover {
  background-color: #e03131;
  transform: translateY(-2px);
}

/* Benefits Section */
.benefits {
  padding: 4rem 0;
  background-color: white;
}

.lists-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.bullet-list-container h3,
.numbered-list-container h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--dark-color);
}

/* Custom Bullet List */
.custom-bullet-list {
  padding-left: 1.5rem;
}

.custom-bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.custom-bullet-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

/* Custom Numbered List */
.custom-numbered-list {
  counter-reset: item;
  list-style-type: none;
}

.custom-numbered-list li {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.custom-numbered-list .number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-right: 1rem;
}

.custom-numbered-list .text {
  flex: 1;
  padding-top: 0.2rem;
}

/* Slots Section */
.slots {
  padding: 4rem 0;
  background: linear-gradient(135deg, #1a365d 0%, #2a4365 100%);
  color: white;
}

.slots .section-title {
  color: white;
}

.carousel-container {
  position: relative;
  padding: 0 40px;
  margin: 0 auto;
  max-width: 1000px;
}

.carousel-wrapper {
  overflow: hidden; /* Скрываем горизонтальный скролл */
  margin: 0 auto;
}

.carousel {
  display: flex;
  scroll-behavior: smooth;
  gap: 2rem;
  padding: 1rem;
  transition: transform 0.5s ease;
  margin: 0 auto;
}

.slot-card {
  flex: 0 0 300px;
  background-color: white;
  color: var(--dark-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin: 0 auto;
}

.slot-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.slot-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.slot-info {
  padding: 1.5rem;
}

.slot-info h3 {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.slot-description {
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
  color: #4B5563;
}

.carousel-button {
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.carousel-button:hover {
  background-color: white;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* Slot Finder Section */
.slot-finder {
  padding: 4rem 0;
  background-color: #f9fafb;
}

.finder-widget {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quiz-container {
  padding: 2rem;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-step h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.option-btn {
  background-color: #f3f4f6;
  border: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.option-btn:hover, .option-btn.selected {
  background-color: #e0f2fe;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.result-step {
  text-align: center;
}

.result-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f3f4f6;
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.result-slot-img {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.result-slot-info h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.restart-quiz {
  background-color: #f3f4f6;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  margin-top: 1rem;
  transition: var(--transition);
  font-weight: 500;
}

.restart-quiz:hover {
  background-color: #e5e7eb;
}

/* Footer */
.footer {
  background: linear-gradient(to right, #0f172a, #1e293b);
  color: white;
  padding: 3rem 0;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.age-restriction p {
  margin-bottom: 0px;
  font-size: 15px;
}

.footer__logo .logo__img {
  height: 35px;
}

.age-restriction {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.age-icon {
  width: 40px;
  height: 40px;
  background-color: var(--error-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1rem;
}

.footer__text {
  color: var(--grey-color);
  font-size: 0.9rem;
}

.footer__text p {
  margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .casino-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .slot-card {
    flex: 0 0 calc(109% - 2rem);
  }
  
  .intro__title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .options {
    flex-direction: column;
  }
  
  .option-btn {
    width: 100%;
  }
  
  .result-slot {
    flex-direction: column;
  }
  
  .lists-container {
    flex-direction: column;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .casino-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .slot-card {
    flex: 0 0 calc(50% - 2rem);
  }
  
  .lists-container {
    flex-direction: column;
  }
}

@media (min-width: 1025px) {
  .carousel .slot-card {
    flex: 0 0 calc(34.533% - 2rem);
  }
  
  .lists-container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .bullet-list-container,
  .numbered-list-container {
    flex: 0 0 48%;
  }
}