/* Кактус Казино - Main Stylesheet */
/* Тема: зелёный кактус с неоновыми акцентами */

:root {
  /* Основные цвета */
  --primary-green: #2ecc71;
  --dark-green: #1a5f32;
  --neon-green: #39ff14;
  --accent-gold: #ffd700;
  --bg-dark: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2128;
  --text-primary: #ffffff;
  --text-secondary: #8b949e;
  --border-color: #30363d;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #2ecc71 0%, #1a5f32 100%);
  --gradient-accent: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  --gradient-dark: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
  --gradient-glow: linear-gradient(90deg, rgba(46, 204, 113, 0.3) 0%, rgba(57, 255, 20, 0.3) 100%);
  
  /* Шрифты */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  
  /* Тени */
  --shadow-glow: 0 0 20px rgba(46, 204, 113, 0.3);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.4);
}

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

* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-green) var(--bg-dark);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--neon-green);
}

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

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.header-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-mobile-buttons-wrapper {
  display: none;
  gap: 10px;
  align-items: center;
}

.header-buttons-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.header-nav-item {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.header-nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* Кнопки */
.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.header-enter-button {
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  font-weight: 600;
}

.header-enter-button:hover {
  background: var(--primary-green);
  color: #0d1117;
  font-weight: 700;
}

.header-register-button {
  background: #22a55b;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
}

.header-register-button:hover {
  background: #1e8e4e;
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}

.base-gradient-border {
  position: relative;
}

.header-button-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-social-button {
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.header-social-button:hover {
  border-color: var(--primary-green);
  background: rgba(46, 204, 113, 0.1);
}

.header-telegram-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-vertical-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
  display: none;
}

.header-horizontal-divider {
  width: 100%;
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}

/* Меню бургер */
.header-burger-button-wrapper {
  display: none;
}

.header-burger-button {
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.header-burger-button:hover {
  border-color: var(--primary-green);
  background: rgba(46, 204, 113, 0.1);
}

.header-burger-button svg,
.header-burger-button img {
  width: 20px;
  height: 20px;
}

.header-close-btn-and-logo-wrapper {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.header-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* Выбор языка */
.header-lang,
.footer-lang {
  position: relative;
}

.choose-lang {
  position: relative;
}

.choose-lang-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.choose-lang-button:hover {
  border-color: var(--primary-green);
}

/* Компактный вид в шапке - только флаг */
.header-right-group .choose-lang-button {
  padding: 8px;
  gap: 0;
}

.header-right-group .choose-lang-button span {
  display: none;
}

.header-right-group .choose-lang-button .toggle-icon {
  display: none;
}

.flag-lang {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.header-right-group .flag-lang {
  width: 32px;
  height: 32px;
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.choose-lang-button[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.choose-lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.choose-lang-button[aria-expanded="true"] + .choose-lang-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.choose-lang-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.choose-lang-box:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Оверлей мобильного меню */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
}

.overlay.active {
  display: block;
}

/* Мини-баннеры в меню */
.mini-banners {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.mini-banner-item,
.mini-banner-item-social {
  position: relative;
  padding: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.mini-banner-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-banner-title {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary-green);
}

.mini-banner-text {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--text-secondary);
}

.mini-banner-item-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

.mini-banner-socials-block {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.mini-banner-socials-block-btn {
  width: 36px;
  height: 36px;
  padding: 8px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mini-banner-socials-block-btn:hover {
  background: rgba(46, 204, 113, 0.2);
  border-color: var(--primary-green);
}

.mini-banner-socials-block-btn img {
  opacity: 0.8;
}

/* ========== MAIN ========== */
.main {
  padding-top: 80px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Баннеры */
.banner-wrapper {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.swiper-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.main-banner {
  display: block;
  width: 100%;
}

.main-banner .banner {
  border-radius: 16px;
}

/* Hero Banner с изображением */
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, 
    #1a5f32 0%, 
    #1a5a30 8%, 
    #1a552e 16%, 
    #1a502c 24%, 
    #1a4a2a 32%, 
    #1a4428 40%, 
    #1a3e25 48%, 
    #1a3822 54%, 
    #1a321f 60%, 
    #1a2c1c 66%, 
    #1a2619 72%, 
    #1a2117 78%, 
    #1a1c15 84%, 
    #1a1a14 90%, 
    #1a1a1a 100%);
  padding: 40px 60px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.hero-banner-content {
  flex: 1;
  z-index: 2;
  max-width: 500px;
}

.hero-banner-content h2 {
  color: white;
  font-size: 28px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-bonus {
  color: #ffd700;
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-subtitle {
  color: rgba(255,255,255,0.95);
  font-size: 18px;
  margin-bottom: 24px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-btn {
  display: inline-block;
  background: #22a55b;
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  text-decoration: none;
}

.hero-btn:hover {
  background: #1e8e4e;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.hero-banner-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
}

.hero-banner-image img {
  height: 100%;
  width: auto;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, 
    transparent 0%, 
    rgba(0,0,0,0.05) 8%, 
    rgba(0,0,0,0.15) 16%, 
    rgba(0,0,0,0.3) 24%, 
    rgba(0,0,0,0.5) 32%, 
    rgba(0,0,0,0.7) 40%, 
    rgba(0,0,0,0.85) 48%, 
    black 56%, 
    black 100%);
  mask-image: linear-gradient(to right, 
    transparent 0%, 
    rgba(0,0,0,0.05) 8%, 
    rgba(0,0,0,0.15) 16%, 
    rgba(0,0,0,0.3) 24%, 
    rgba(0,0,0,0.5) 32%, 
    rgba(0,0,0,0.7) 40%, 
    rgba(0,0,0,0.85) 48%, 
    black 56%, 
    black 100%);
}

@media (max-width: 900px) {
  .hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }
  
  .hero-banner-content {
    max-width: 100%;
    margin-bottom: 20px;
    z-index: 3;
  }
  
  .hero-bonus {
    font-size: 40px;
  }
  
  .hero-banner-image {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
  }
  
  .hero-banner-image img {
    height: auto;
    max-height: 200px;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(46, 204, 113, 0.8);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary-green);
  box-shadow: var(--shadow-glow);
}

.swiper-button-prev {
  left: 16px;
}

.swiper-button-next {
  right: 16px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
  color: white;
}

/* Призовой фонд / Мини-баннер приложений */
.prize-fund-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.prize-fund {
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 16px;
  padding: 16px 24px;
  position: relative;
  overflow: hidden;
}

.prize-fund::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M50 0C22.4 0 0 22.4 0 50s22.4 50 50 50 50-22.4 50-50S77.6 0 50 0zm0 90C27.9 90 10 72.1 10 50S27.9 10 50 10s40 17.9 40 40-17.9 40-40 40z'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.banner-content .line1 {
  display: inline;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
}

.button-container {
  display: flex;
  gap: 16px;
}

.download-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  color: #ffffff;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.download-button:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.download-button .icon img {
  width: 32px;
  height: 32px;
}

.download-button .text .line1 {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.download-button .text .line2 {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.download-button .arrow img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.desktop-rectangle {
  display: block;
}

.tablet-rectangle {
  display: none;
}

.prize-fund-mobile-section {
  display: none;
}

/* Навигация категорий */
.navigation {
  padding: 0;
  max-width: 1400px;
  margin: 0 auto 24px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.navigation-menu {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-green) var(--bg-card);
  justify-content: center;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  
  /* Snap scrolling */
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
  
  /* Скрываем скроллбар */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ВАЖНО: Создаем реальные невидимые отступы */
.navigation-menu::before,
.navigation-menu::after {
  content: '';
  flex-shrink: 0;
  width: 20px; /* Отступ 20px слева и справа */
}

.navigation-menu::-webkit-scrollbar {
  display: none;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  min-width: 100px;
  width: 100px;
  height: 90px;
  flex-shrink: 0;
  white-space: nowrap;
  scroll-snap-align: center;
}

/* Убираем margin-right так как используем ::after */
.menu-item:last-child {
  margin-right: 0;
}

.menu-item:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.menu-item img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.menu-item-text {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
}

/* ========== BASE BLOCK (Основной контент) ========== */
.base-block {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Текстовые блоки */
.text-block-second {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.text-block-second-title,
.h2-base-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.text-block-second-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.custom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: #22a55b;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  margin-top: 20px;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
}

.custom-button:hover {
  background: #1e8e4e;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Содержание (Оглавление) */
.articles__block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
}

.articles__header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.articles__header-wrapper:hover {
  background: var(--bg-secondary);
}

.articles-item-title {
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
}

.articles__items-wrapper {
  padding: 0 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.articles__items-wrapper.collapsed {
  display: none;
}

.articles__header-wrapper[aria-expanded="false"] .toggle-icon {
  transform: rotate(0deg);
}

.articles__header-wrapper[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.articles-item {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.articles-item:hover {
  background: rgba(46, 204, 113, 0.1);
  border-left: 3px solid var(--primary-green);
}

.articles-item .articles-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.articles-item:hover .articles-item-title {
  color: var(--primary-green);
}

/* Секция игр */
.games-section {
  margin: 24px 0;
}

#panel {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

#block_big {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* Текстовый контент */
.text-new {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  margin: 24px 0;
}

.text-new h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--primary-green);
}

.text-new h2:first-child {
  margin-top: 0;
}

.text-new h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

.text-new p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.text-new ul,
.text-new ol {
  margin: 16px 0;
  padding-left: 24px;
  color: var(--text-secondary);
}

.text-new li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.text-new table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
}

.text-new th,
.text-new td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.text-new th {
  background: rgba(46, 204, 113, 0.1);
  color: var(--primary-green);
  font-weight: 600;
}

.text-new tr:last-child td {
  border-bottom: none;
}

/* Изображения в тексте */
.text-block-image {
  margin: 32px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.text-block-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.text-block-image:hover img {
  transform: scale(1.01);
}

/* Изображения секция */
.images {
  margin: 24px 0;
}

.images-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.images-box img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.images-box img:hover {
  transform: scale(1.02);
}

/* ========== FAQ ========== */
.faq {
  margin: 40px 0;
}

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-green);
}

.faq-item-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-item-header-wrapper:hover {
  background: var(--bg-secondary);
}

.faq-item-header-wrapper[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.faq-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.faq-item-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item-content.open {
  max-height: 500px;
}

.faq-item-content-hidden {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* FAQ пагинация */
.faq-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.faq-pagination-prev-button,
.faq-pagination-next-button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-pagination-prev-button:not(:disabled):hover,
.faq-pagination-next-button:not(:disabled):hover {
  border-color: var(--primary-green);
  background: rgba(46, 204, 113, 0.1);
}

.faq-pagination-prev-button:disabled,
.faq-pagination-next-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.faq-pagination-prev-button .toggle-icon {
  transform: rotate(90deg);
}

.faq-pagination-next-button .toggle-icon {
  transform: rotate(-90deg);
}

.faq-pagination-label {
  font-weight: 500;
  color: var(--text-secondary);
}

/* ========== ОТЗЫВЫ ========== */
.review {
  margin: 40px 0;
}

.review-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .review-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .review-content {
    grid-template-columns: 1fr;
  }
}

.review-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.review-item:hover {
  border-color: var(--primary-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.review-item-header-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-item-user-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
}

.review-item-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin: 0;
}

.review-item-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.review-item-rating {
  margin-left: auto;
}

.review-item-content {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 14px;
}

.review-pagination {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.review-pagination-prev-button,
.review-pagination-next-button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-pagination-prev-button .toggle-icon {
  transform: rotate(90deg);
}

.review-pagination-next-button .toggle-icon {
  transform: rotate(-90deg);
}

.review-pagination-label {
  font-weight: 500;
  color: var(--text-secondary);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

.footer-first-part {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content-first-part {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-nav-item {
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-nav-item:hover {
  color: var(--primary-green);
  background: rgba(46, 204, 113, 0.1);
}

.socials-and-apps-wrappper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.apps-wrappper {
  display: flex;
  gap: 12px;
}

.app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.app-item:hover {
  border-color: var(--primary-green);
  transform: translateY(-2px);
}

.app-item-icon-and-text-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-item-text-title {
  font-size: 12px;
  color: var(--text-secondary);
}

.app-item-text-device {
  font-weight: 600;
  font-size: 14px;
}

.footer-social-btns-wrappper {
  display: flex;
  gap: 12px;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.footer-social-btn:hover {
  border-color: var(--primary-green);
  background: rgba(46, 204, 113, 0.1);
}

.footer-social-btn-img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-social-btn:hover .footer-social-btn-img {
  opacity: 1;
}

.footer-second-part {
  border-top: 1px solid var(--border-color);
  padding: 24px 20px;
}

.footer-content-second-part {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-second-part-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-second-part-item-img {
  width: 40px;
  height: 40px;
}

.footer-second-part-item-text {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 300px;
  line-height: 1.5;
}

/* ========== RESPONSIVE - ПОЛНОСТЬЮ ПЕРЕПИСАНО ========== */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Контейнеры */
  .header-wrapper,
  .banner-wrapper,
  .base-block,
  .navigation,
  .prize-fund-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Шапка */
  .header-logo img {
    height: 32px;
  }
  
  .header-nav-item {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .header-register-button {
    padding: 10px 18px;
    font-size: 13px;
  }
  
  /* Баннер */
  .hero-banner {
    padding: 24px 28px;
    min-height: 200px;
  }
  
  .hero-banner-content h2 {
    font-size: 20px;
  }
  
  .hero-bonus {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .hero-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  /* Навигация */
  .navigation-menu {
    overflow-x: auto;
    justify-content: flex-start;
  }
  
  .menu-item {
    min-width: 90px;
    width: 90px;
    height: 80px;
  }
  
  .menu-item img {
    width: 28px;
    height: 28px;
  }
  
  .menu-item-text {
    font-size: 12px;
  }
  
  /* Текст */
  .text-block-second-title,
  .h2-base-title {
    font-size: 24px;
  }
  
  /* Футер */
  .footer-content-first-part {
    flex-direction: column;
  }
  
  .apps-wrappper {
    flex-wrap: wrap;
  }
}

/* Смартфоны и планшеты в портретной ориентации (до 768px) */
@media (max-width: 768px) {
  /* Предотвращаем горизонтальный скролл */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* ШАПКА - мобильное меню */
  .header {
    padding: 10px 0;
  }
  
  .header-wrapper {
    padding: 0 16px;
  }
  
  .header-logo img {
    height: 30px;
  }
  
  /* Показываем мобильные кнопки */
  .header-mobile-buttons-wrapper {
    display: flex !important;
    gap: 8px;
  }
  
  .header-mobile-buttons-wrapper .header-enter-button {
    padding: 8px 12px;
    font-size: 11px;
  }
  
  .header-mobile-buttons-wrapper .header-register-button {
    padding: 9px 14px;
    font-size: 11px;
  }
  
  .header-burger-button-wrapper {
    display: block !important;
  }
  
  /* Боковое меню */
  .header-buttons-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85vw;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 20px;
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
  }
  
  .header-buttons-wrapper.open {
    right: 0;
  }
  
  .header-close-btn-and-logo-wrapper {
    display: flex !important;
  }
  
  .overlay.active {
    display: block;
  }
  
  .header-nav {
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
  }
  
  .header-nav-item {
    width: 100%;
    padding: 14px 16px;
  }
  
  .header-right-group {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
    gap: 12px;
  }
  
  .header-right-group .header-register-button {
    width: 100%;
  }
  
  .header-right-group .header-telegram-btn {
    width: 100%;
    height: 48px;
  }
  
  .header-right-group .choose-lang-button {
    width: 100%;
    padding: 12px;
  }
  
  .header-right-group .choose-lang-button span,
  .header-right-group .choose-lang-button .toggle-icon {
    display: inline;
  }
  
  .header-right-group .choose-lang-list {
    width: 100%;
    position: static;
    margin-top: 8px;
  }
  
  .mini-banners {
    display: flex;
  }
  
  /* ГЛАВНЫЙ БАННЕР - вертикальная компоновка */
  .banner-wrapper {
    padding: 16px;
  }
  
  .hero-banner {
    flex-direction: column;
    padding: 24px 20px;
    text-align: center;
    min-height: auto;
    background: linear-gradient(to bottom, #1a1a1a 0%, #1a2a1a 40%, #1a5f32 100%);
  }
  
  .hero-banner-content {
    max-width: 100%;
    order: 2;
  }
  
  .hero-banner-content h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .hero-bonus {
    font-size: 32px;
    margin-bottom: 8px;
  }
  
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .hero-btn {
    width: 100%;
    max-width: 300px;
    padding: 14px 28px;
    font-size: 15px;
  }
  
  .hero-banner-image {
    position: static;
    order: 1;
    margin-bottom: 16px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero-banner-image img {
    height: auto;
    max-height: 160px;
    width: auto;
    object-fit: contain;
    -webkit-mask-image: none;
    mask-image: none;
  }
  
  /* МИНИ-БАННЕР - мобильная версия */
  .prize-fund-wrapper,
  .prize-fund-desktop-section {
    display: none !important;
  }
  
  .prize-fund-mobile-section {
    display: block;
    padding: 0 16px;
    margin-bottom: 20px;
  }
  
  .prize-fund-mobile-second-block {
    background: var(--gradient-primary);
    border-radius: 16px;
    padding: 20px;
  }
  
  .prize-fund-mobile-second-block .banner-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .prize-fund-mobile-second-block .banner-content {
    text-align: center;
  }
  
  .prize-fund-mobile-second-block .banner-content .line1 {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .prize-fund-mobile-second-block .button-container {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .prize-fund-mobile-second-block .download-button {
    width: 100%;
    padding: 14px 16px;
  }
  
  /* НАВИГАЦИЯ КАТЕГОРИЙ - СКРЫТА НА СМАРТФОНАХ */
  .navigation {
    display: none !important;
  }
  
  .navigation-menu {
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .navigation-menu::before,
  .navigation-menu::after {
    content: '';
    flex-shrink: 0;
    width: 16px;
  }
  
  .navigation-menu::-webkit-scrollbar {
    display: none;
  }
  
  .menu-item {
    flex-shrink: 0;
    flex-direction: row;
    padding: 10px 12px;
    min-width: fit-content;
    width: auto;
    height: auto;
    gap: 6px;
  }
  
  .menu-item img {
    width: 20px;
    height: 20px;
  }
  
  .menu-item-text {
    font-size: 11px;
  }
  
  /* ОСНОВНОЙ КОНТЕНТ */
  .main {
    padding-top: 70px;
  }
  
  .base-block {
    padding: 0 16px;
  }
  
  .text-block-second {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .text-block-second-title,
  .h2-base-title {
    font-size: 22px;
  }
  
  .custom-button {
    width: 100%;
    max-width: 320px;
  }
  
  /* ИГРЫ - ПАНЕЛЬ КНОПОК СКРЫТА НА СМАРТФОНАХ */
  #panel {
    display: none !important;
  }
  
  #block_big {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  /* ТЕКСТОВЫЙ КОНТЕНТ */
  .text-new {
    padding: 20px;
  }
  
  .text-new h2 {
    font-size: 20px;
  }
  
  .text-new h3 {
    font-size: 18px;
  }
  
  .text-new table {
    font-size: 13px;
    overflow-x: auto;
    display: block;
  }
  
  .images-box {
    grid-template-columns: 1fr;
  }
  
  /* FAQ */
  .faq-item-header-wrapper {
    padding: 16px 18px;
  }
  
  .faq-item-title {
    font-size: 15px;
  }
  
  /* ОТЗЫВЫ */
  .review-content {
    grid-template-columns: 1fr;
  }
  
  /* ФУТЕР */
  .footer-first-part {
    padding: 32px 16px;
  }
  
  .footer-content-first-part {
    flex-direction: column;
    gap: 24px;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 6px;
  }
  
  .footer-nav-item {
    padding: 12px 16px;
  }
  
  .apps-wrappper {
    flex-direction: column;
    gap: 10px;
  }
  
  .app-item {
    width: 100%;
  }
  
  .footer-content-second-part {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-second-part-item {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-second-part-item-text {
    max-width: 100%;
    text-align: center;
  }
}

/* Маленькие смартфоны (до 480px) */
@media (max-width: 480px) {
  .header-wrapper {
    padding: 0 12px;
  }
  
  .header-logo img {
    height: 26px;
  }
  
  .header-mobile-buttons-wrapper .header-enter-button {
    padding: 7px 10px;
    font-size: 10px;
  }
  
  .header-mobile-buttons-wrapper .header-register-button {
    padding: 8px 12px;
    font-size: 10px;
  }
  
  .banner-wrapper {
    padding: 12px;
  }
  
  .hero-banner {
    padding: 20px 16px;
  }
  
  .hero-banner-content h2 {
    font-size: 16px;
  }
  
  .hero-bonus {
    font-size: 28px;
  }
  
  .hero-btn {
    padding: 13px 24px;
    font-size: 14px;
  }
  
  .prize-fund-mobile-section {
    padding: 0 12px;
  }
  
  .navigation-menu::before,
  .navigation-menu::after {
    width: 12px;
  }
  
  .menu-item {
    padding: 12px 16px;
  }
  
  .menu-item img {
    width: 22px;
    height: 22px;
  }
  
  .menu-item-text {
    font-size: 12px;
  }
  
  .base-block {
    padding: 0 12px;
  }
  
  .text-block-second {
    padding: 18px;
  }
  
  .text-block-second-title,
  .h2-base-title {
    font-size: 20px;
  }
  
  .text-new {
    padding: 18px;
  }
  
  .text-new h2 {
    font-size: 18px;
  }
  
  .text-new h3 {
    font-size: 16px;
  }
  
  #block_big {
    gap: 8px;
  }
}

/* Очень маленькие смартфоны (до 360px) */
@media (max-width: 360px) {
  .header-wrapper {
    padding: 0 10px;
  }
  
  .header-logo img {
    height: 24px;
  }
  
  .header-mobile-buttons-wrapper .header-enter-button {
    padding: 6px 8px;
    font-size: 9px;
  }
  
  .header-mobile-buttons-wrapper .header-register-button {
    padding: 7px 10px;
    font-size: 9px;
  }
  
  .banner-wrapper {
    padding: 10px;
  }
  
  .hero-banner {
    padding: 18px 14px;
  }
  
  .hero-banner-content h2 {
    font-size: 15px;
  }
  
  .hero-bonus {
    font-size: 26px;
  }
  
  .hero-btn {
    padding: 12px 20px;
    font-size: 13px;
  }
  
  .prize-fund-mobile-section {
    padding: 0 10px;
  }
  
  .navigation-menu::before,
  .navigation-menu::after {
    width: 10px;
  }
  
  .menu-item {
    padding: 7px 9px;
  }
  
  .menu-item img {
    width: 16px;
    height: 16px;
  }
  
  .menu-item-text {
    font-size: 9px;
  }
  
  .base-block {
    padding: 0 10px;
  }
  
  .text-block-second,
  .text-new {
    padding: 16px;
  }
  
  .text-block-second-title,
  .h2-base-title {
    font-size: 18px;
  }
  
  .text-new h2 {
    font-size: 17px;
  }
  
  .text-new h3 {
    font-size: 15px;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.glow-effect {
  animation: glow 2s ease-in-out infinite;
}
