body {
    padding-top: 5px;
}

.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh; /* На весь экран */
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('/static/images/landing/background.jpg');
    background-size: cover;
    background-position: center;
}

/* Наложение для лучшей читаемости текста на фоне */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Затемнение */
    z-index: 1;
}

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

.btn-primary {
    background-color: #4839c5;
    border-color: #4839c5;
}

/* Дополнительные отступы для секций */
section {
    padding: 5rem 0;
}

/* ===== Карусель в стиле сайта ===== */
.gold-bg {
    background-color: var(--gold) !important;
    border: 1px solid var(--gold-dark) !important;
}

.gold-bg-icon {
    background-color: var(--gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-size: 20px 20px;
    background-position: center;
    border: 2px solid var(--gold-dark);
}

.gold-badge {
    background-color: var(--bg-card);
    color: var(--gold);
    border: 1px solid var(--gold);
    font-weight: 500;
    padding: 8px 16px;
}

/* ===== Кнопки авторизации ===== */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-buttons .btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.auth-buttons .btn-gold-inv {
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.auth-buttons .btn-gold-inv:hover {
    background-color: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.auth-buttons .btn-gold {
    background-color: var(--gold);
    border: 2px solid var(--gold);
    color: var(--bg-dark);
}

.auth-buttons .btn-gold:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 173, 62, 0.3);
}

/* Заглушка для тех работ */
.maintenance {
    background: var(--bg-dark);
    color: var(--gold);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.maintenance-container {
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--gold);
    border-radius: 10px;
    background: var(--bg-card);
    max-width: 600px;
    margin: 1rem;
}

/* Стили для карусели статистики */
/* Карусель — на всю ширину, но с контролем */
  /* Секция с фоном */
  /* Секция с фоном и частицами */
  .showcase-section {
    position: relative;
    overflow: hidden;
    background: #0a0a14;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  }

  /* Анимированный градиент (фон) */
  .showcase-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, 
      #0b0d1a 0%, 
      #140f2a 25%, 
      #0d0b1f 50%, 
      #1a0c2e 75%, 
      #0b0d1a 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    z-index: 0;
  }

  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  /* Контейнер для частиц */
  .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* чтобы не мешали кликам */
  }

  /* Одна частица */
  .particle {
    position: absolute;
    background: rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    animation: float 15s infinite ease-in-out;
  }

  /* Генерация 12 частиц с разными параметрами */
  .particle:nth-child(1) { width: 4px; height: 4px; top: 10%; left: 5%; animation-duration: 18s; animation-delay: 0s; }
  .particle:nth-child(2) { width: 3px; height: 3px; top: 20%; left: 90%; animation-duration: 22s; animation-delay: 2s; }
  .particle:nth-child(3) { width: 5px; height: 5px; top: 40%; left: 10%; animation-duration: 20s; animation-delay: 4s; }
  .particle:nth-child(4) { width: 2px; height: 2px; top: 60%; left: 85%; animation-duration: 25s; animation-delay: 1s; }
  .particle:nth-child(5) { width: 4px; height: 4px; top: 75%; left: 15%; animation-duration: 19s; animation-delay: 3s; }
  .particle:nth-child(6) { width: 3px; height: 3px; top: 30%; left: 75%; animation-duration: 21s; animation-delay: 5s; }
  .particle:nth-child(7) { width: 2px; height: 2px; top: 50%; left: 5%; animation-duration: 23s; animation-delay: 2s; }
  .particle:nth-child(8) { width: 4px; height: 4px; top: 80%; left: 80%; animation-duration: 17s; animation-delay: 6s; }
  .particle:nth-child(9) { width: 3px; height: 3px; top: 10%; left: 50%; animation-duration: 24s; animation-delay: 1s; }
  .particle:nth-child(10) { width: 5px; height: 5px; top: 90%; left: 30%; animation-duration: 20s; animation-delay: 4s; }
  .particle:nth-child(11) { width: 2px; height: 2px; top: 45%; left: 95%; animation-duration: 22s; animation-delay: 3s; }
  .particle:nth-child(12) { width: 4px; height: 4px; top: 65%; left: 40%; animation-duration: 19s; animation-delay: 5s; }

  /* Анимация плавающего движения */
  @keyframes float {
    0%, 100% {
      transform: translate(0, 0) rotate(0deg);
    }
    25% {
      transform: translate(-20px, -30px) rotate(5deg);
    }
    50% {
      transform: translate(20px, -50px) rotate(-5deg);
    }
    75% {
      transform: translate(10px, -20px) rotate(3deg);
    }
  }

  /* Отключаем анимацию при prefers-reduced-motion */
  @media (prefers-reduced-motion: reduce) {
    .showcase-bg,
    .particle {
      animation: none !important;
    }
    .particles {
      display: none;
    }
  }

  /* Контент поверх всего */
  .showcase-section > .container,
  .showcase-section .carousel-section-bottom-space > .container {
    position: relative;
    z-index: 3;
  }



#statsCarousel {
  width: min(1200px, 90vw);
  margin: 0 auto !important;
}

  #statsCarousel .carousel-item img {
    height: auto;
    max-height: 70vh;
    object-fit: contain; /* чтобы не обрезалось */
  }

#statsCarousel .carousel-inner {
  margin-bottom: 24px; /* ← отступ от изображения до индикаторов */
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
}

#statsCarousel .carousel-caption {
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  background: rgba(10, 12, 25, 0.85);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

.carousel-section-bottom-space {
  margin-bottom: 40px; /* ← отступ от индикаторов до бейджей */
}

#statsCarousel .carousel-indicators {
  bottom: -40px;
}

#statsCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 15px;
  margin: 0 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--gold);
}

#statsCarousel .carousel-indicators .active {
  background-color: var(--gold);
}

  #statsCarousel .carousel-control-prev,
  #statsCarousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
  }

#statsCarousel .carousel-control-prev {
  left: 20px;
}

#statsCarousel .carousel-control-next {
  right: 20px;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    #statsCarousel {
        max-width: 100vw !important;
    }

  #statsCarousel .carousel-item img {
    max-height: 60vh;
    padding: 0 10px;
    box-sizing: border-box;
  }

  #statsCarousel .carousel-caption {
    width: 95%;
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  #statsCarousel .carousel-control-prev,
  #statsCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    left: 10px;
    right: 10px;
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {

    .gold-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .auth-buttons {
        gap: 8px;
    }
    
    .auth-buttons .btn {
        padding: 8px 16px;
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    .auth-buttons .btn i {
        margin-right: 4px;
    }
}

@media (max-width: 480px) {
    .auth-buttons .btn span {
        display: none;
    }
    
    .auth-buttons .btn i {
        margin-right: 0;
        font-size: 1.1rem;
    }
    
    .auth-buttons .btn {
        /* min-width: 50px;
        width: 50px; */
        height: 50px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-logo-name {
        display: none;
    }
}