/* 1xSlots Casino - Современный дизайн */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,700&display=swap');

:root {
  --color-light-gray: #E7E7E7;
  --color-yellow: #FEE5A5;
  --color-dark-gray: #3D3D3D;
  --color-very-dark: #262627;
  --color-white: #ffffff;
  --font-family: 'Montserrat', sans-serif;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-very-dark);
  background: var(--color-white);
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Хедер с прозрачностью */
header {
  background: rgba(38, 38, 39, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid var(--color-yellow);
}

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

.logo {
  height: 33px;
  width: auto;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(254, 229, 165, 0.5));
}

/* Навигация горизонтальная */
nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--color-light-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-yellow);
  transition: var(--transition);
}

nav a:hover {
  color: var(--color-yellow);
}

nav a:hover::after {
  width: 100%;
}

/* Отступ для fixed header */
main {
  padding-top: 85px;
}

/* Hero секция с градиентом */
.hero {
  background: linear-gradient(135deg, #1a1a1b 0%, var(--color-very-dark) 50%, var(--color-dark-gray) 100%);
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(254, 229, 165, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(254, 229, 165, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.2;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
  color: var(--color-yellow);
  display: block;
  font-size: 64px;
}

.hero-subtitle {
  font-size: 22px;
  color: var(--color-light-gray);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 400;
}

/* Кнопки CTA с эффектами */
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-yellow) 0%, #ffd966 100%);
  color: var(--color-very-dark);
  padding: 16px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 17px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 25px rgba(254, 229, 165, 0.4);
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(254, 229, 165, 0.6);
}

.cta-button-secondary {
  background: transparent;
  border: 3px solid var(--color-yellow);
  color: var(--color-yellow);
  box-shadow: 0 8px 25px rgba(254, 229, 165, 0.2);
}

.cta-button-secondary:hover {
  background: var(--color-yellow);
  color: var(--color-very-dark);
}

/* Секции */
.section {
  padding: 80px 0;
  position: relative;
}

.section-dark {
  background: linear-gradient(180deg, var(--color-very-dark) 0%, #1f1f20 100%);
  color: var(--color-light-gray);
}

.section-accent {
  background: linear-gradient(135deg, var(--color-dark-gray) 0%, var(--color-very-dark) 100%);
  color: var(--color-white);
}

.section-light {
  background: linear-gradient(180deg, #f8f8f8 0%, var(--color-light-gray) 100%);
}

/* Заголовки */
.section h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--color-very-dark);
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-yellow) 0%, transparent 100%);
  border-radius: 2px;
}

.section-dark h2,
.section-accent h2 {
  color: var(--color-yellow);
}

.section h3 {
  font-size: 26px;
  font-weight: 600;
  margin: 35px 0 18px;
  color: var(--color-dark-gray);
}

.section-dark h3,
.section-accent h3 {
  color: var(--color-yellow);
}

.section p {
  font-size: 17px;
  margin-bottom: 18px;
  line-height: 1.8;
}

/* Intro блок с акцентом */
.intro-block {
  background: linear-gradient(135deg, rgba(254, 229, 165, 0.15) 0%, rgba(254, 229, 165, 0.05) 100%);
  border-left: 5px solid var(--color-yellow);
  padding: 35px;
  margin: 40px 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.intro-block p {
  font-size: 19px;
  font-weight: 400;
  margin: 0;
  color: var(--color-very-dark);
}

.section-dark .intro-block,
.section-accent .intro-block {
  background: rgba(254, 229, 165, 0.1);
  border-left-color: var(--color-yellow);
}

.section-dark .intro-block p,
.section-accent .intro-block p {
  color: var(--color-light-gray);
}

/* Таблицы современные */
.table-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  display: block;
  -webkit-overflow-scrolling: touch;
  margin: 40px 0;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-white);
}

.section-dark table,
.section-accent table {
  background: rgba(61, 61, 61, 0.5);
}

table th {
  background: var(--color-very-dark);
  color: var(--color-yellow);
  padding: 20px 25px;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

table th:first-child {
  border-top-left-radius: 16px;
}

table th:last-child {
  border-top-right-radius: 16px;
}

table td {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(231, 231, 231, 0.3);
  font-size: 16px;
  transition: var(--transition);
}

table tr:last-child td:first-child {
  border-bottom-left-radius: 16px;
}

table tr:last-child td:last-child {
  border-bottom-right-radius: 16px;
}

table tr:last-child td {
  border-bottom: none;
}

table tbody tr {
  transition: var(--transition);
}

table tbody tr:hover {
  background: rgba(254, 229, 165, 0.15);
  transform: scale(1.01);
}

/* Сетка карточек игр */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 35px;
  margin: 50px 0;
}

.game-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-yellow) 0%, #ffd966 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.game-card:hover::before {
  transform: scaleX(1);
}

.section-dark .game-card,
.section-accent .game-card {
  background: rgba(61, 61, 61, 0.6);
  backdrop-filter: blur(10px);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-color: var(--color-yellow);
}

.game-card h3 {
  color: var(--color-yellow);
  margin: 0 0 15px 0;
  font-size: 24px;
}

.game-card p {
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.game-card strong {
  color: var(--color-yellow);
  font-weight: 600;
}

/* Сетка фич */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.feature-card {
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 2px solid transparent;
}

.section-dark .feature-card,
.section-accent .feature-card {
  background: rgba(61, 61, 61, 0.5);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-yellow);
  box-shadow: 0 15px 40px rgba(254, 229, 165, 0.3);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 22px;
  margin: 15px 0;
  color: var(--color-yellow);
}

.feature-card p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Списки стилизованные */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.styled-list li {
  padding: 18px 20px 18px 50px;
  margin-bottom: 15px;
  background: var(--color-white);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  border-left: 4px solid var(--color-yellow);
}

.section-dark .styled-list li,
.section-accent .styled-list li {
  background: rgba(61, 61, 61, 0.5);
}

.styled-list li::before {
  content: '✓';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-yellow);
  font-weight: 700;
  font-size: 20px;
}

.styled-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(254, 229, 165, 0.2);
}

/* Нумерованные списки */
.steps-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 35px 0;
}

.steps-list li {
  counter-increment: step-counter;
  padding: 20px 25px 20px 80px;
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.section-dark .steps-list li,
.section-accent .steps-list li {
  background: rgba(61, 61, 61, 0.5);
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--color-yellow) 0%, #ffd966 100%);
  color: var(--color-very-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(254, 229, 165, 0.4);
}

.steps-list li:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Статистика блоки */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin: 50px 0;
}

.stat-card {
  background: linear-gradient(135deg, var(--color-yellow) 0%, #ffd966 100%);
  padding: 35px 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(254, 229, 165, 0.3);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 40px rgba(254, 229, 165, 0.5);
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-very-dark);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-very-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Accordion FAQ */
.faq-container {
  margin: 40px 0;
}

.faq-item {
  background: var(--color-white);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border-left: 5px solid var(--color-yellow);
}

.section-dark .faq-item,
.section-accent .faq-item {
  background: rgba(61, 61, 61, 0.6);
}

.faq-item:hover {
  transform: translateX(5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.faq-item h4 {
  color: var(--color-yellow);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 20px;
}

.faq-item p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

/* Highlight блоки */
.highlight-box {
  background: linear-gradient(135deg, rgba(254, 229, 165, 0.2) 0%, rgba(254, 229, 165, 0.05) 100%);
  border: 2px solid var(--color-yellow);
  border-radius: 16px;
  padding: 40px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(254, 229, 165, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.highlight-box .container {
  position: relative;
  z-index: 1;
}

/* Футер современный */
footer {
  background: linear-gradient(180deg, var(--color-very-dark) 0%, #1a1a1b 100%);
  color: var(--color-light-gray);
  padding: 60px 0 30px;
  border-top: 3px solid var(--color-yellow);
}

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

.footer-section h4 {
  color: var(--color-yellow);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--color-yellow);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: var(--color-light-gray);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-section a:hover {
  color: var(--color-yellow);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(231, 231, 231, 0.2);
  font-size: 15px;
}

/* Два колонки layout */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 40px 0;
  align-items: start;
}

.column {
  background: var(--color-white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.section-dark .column,
.section-accent .column {
  background: rgba(61, 61, 61, 0.5);
}

/* Мобильное меню */
.mobile-menu-toggle {
  display: none;
  background: var(--color-yellow);
  border: none;
  color: var(--color-very-dark);
  font-size: 26px;
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 1024px) {
  .container {
    padding: 0 25px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero h1 span {
    font-size: 50px;
  }

  .section h2 {
    font-size: 36px;
  }

  .two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 12px 0;
  }

  .header-content {
    flex-wrap: wrap;
  }

  .mobile-menu-toggle {
    display: block;
    order: 2;
  }

  .logo {
    height: 45px;
    order: 1;
  }

  nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  nav.active {
    max-height: 500px;
    margin-top: 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  nav li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(231, 231, 231, 0.1);
  }

  nav a {
    display: block;
    padding: 15px 20px;
  }

  main {
    padding-top: 75px;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero h1 span {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section {
    padding: 50px 0;
  }

  .section h2 {
    font-size: 28px;
  }

  .section h3 {
    font-size: 22px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-button {
    width: 100%;
  }

  table {
    font-size: 14px;
  }

  table th,
  table td {
    padding: 12px 15px;
  }

  .table-wrapper table {
    min-width: 680px;
    width: 100%;
  }

  .intro-block {
    padding: 25px;
  }

  .column {
    padding: 30px 20px;
    /* Важное правило для grid/flex: позволяет контейнеру сжиматься
       даже если внутри есть элементы с min-width (таблицы). */
    min-width: 0;
  }

  .table-wrapper {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero h1 span {
    font-size: 30px;
  }

  .section h2 {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 36px;
  }
}

/* Утилиты */
.text-center {
  text-align: center;
}

.text-highlight {
  color: var(--color-yellow);
  font-weight: 600;
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

/* Анимации при скролле */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.8s ease-out;
}

/* Divider декоративный */
.section-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-yellow) 50%, transparent 100%);
  margin: 60px auto;
  max-width: 300px;
  border-radius: 2px;
}

/* Бейджи */
.badge {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-very-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 5px;
}

/* Информационные карточки */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.info-card {
  background: var(--color-white);
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border-top: 4px solid var(--color-yellow);
}

.section-dark .info-card,
.section-accent .info-card {
  background: rgba(61, 61, 61, 0.5);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
  margin-top: 0;
  color: var(--color-yellow);
}

/* Прогресс бар декоративный */
.progress-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
  position: relative;
}

.progress-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(254, 229, 165, 0.3);
  z-index: 0;
}

.progress-step {
  width: 50px;
  height: 50px;
  background: var(--color-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-very-dark);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(254, 229, 165, 0.4);
}

/* Кастомные скроллбары */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--color-yellow);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffd966;
}

/* Эффект параллакса для hero */
.hero-parallax {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(254, 229, 165, 0.1) 35px, rgba(254, 229, 165, 0.1) 70px);
  pointer-events: none;
}
