/* ===== СТАТИСТИКА - СПЕЦИАЛЬНЫЕ СТИЛИ ===== */

/* Основная секция статистики */
.stats-section {
  position: relative;
  background: linear-gradient(
    135deg,
    #0c4a6e 0%,
    /* Глубокий океанский синий */ #0369a1 15%,
    /* Морская глубина */ #0284c7 30%,
    /* Океанская волна */ #0ea5e9 45%,
    /* Яркая морская пена */ #38bdf8 60%,
    /* Светлая вода */ #7dd3fc 75%,
    /* Солнечные блики */ #bae6fd 90%,
    /* Поверхность воды */ #e0f2fe 100% /* Морская пена */
  );
  overflow: hidden;
  padding: 80px 0;

  /* Добавляем анимацию волн */
  background-size: 400% 400%;
  animation: oceanWaves 8s ease-in-out infinite;
}

/* Анимация океанских волн */
@keyframes oceanWaves {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 25%;
  }
  50% {
    background-position: 100% 75%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Добавляем водные блики поверх градиента */
.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 255, 255, 0.25) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 35%
    );
  animation: waterShimmer 6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

/* Анимация водных бликов */
@keyframes waterShimmer {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Анимированные фигуры на фоне */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
}

/* Обновляем анимированные фигуры для подводной тематики */
.shape {
  position: absolute;
  border-radius: 50%;
  animation: floatShape 20s infinite linear;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.4) 0%,
    rgba(14, 165, 233, 0.2) 100%
  );
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  left: 80%;
  background: radial-gradient(
    circle,
    rgba(125, 211, 252, 0.3) 0%,
    rgba(56, 189, 248, 0.1) 100%
  );
  animation-delay: -5s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  background: radial-gradient(
    circle,
    rgba(186, 230, 253, 0.5) 0%,
    rgba(125, 211, 252, 0.2) 100%
  );
  animation-delay: -10s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 30%;
  left: 70%;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.3) 0%,
    rgba(2, 132, 199, 0.1) 100%
  );
  animation-delay: -15s;
}

.shape-5 {
  width: 40px;
  height: 40px;
  top: 10%;
  left: 60%;
  background: radial-gradient(
    circle,
    rgba(224, 242, 254, 0.6) 0%,
    rgba(186, 230, 253, 0.3) 100%
  );
  animation-delay: -8s;
}

/* Добавляем новые подводные элементы */
.shape-6 {
  width: 90px;
  height: 90px;
  top: 50%;
  left: 30%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.2) 0%,
    transparent 70%
  );
  animation-delay: -12s;
}

.shape-7 {
  width: 70px;
  height: 70px;
  top: 15%;
  left: 85%;
  background: radial-gradient(
    circle,
    rgba(125, 211, 252, 0.4) 0%,
    transparent 60%
  );
  animation-delay: -18s;
}

/* Обновляем анимацию для более плавного подводного движения */
@keyframes floatShape {
  0% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-50px) translateX(20px) rotate(90deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-80px) translateX(-10px) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-30px) translateX(-25px) rotate(270deg);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0px) translateX(0px) rotate(360deg);
    opacity: 0.3;
  }
}

/* Заголовки секции */
.animate-title {
  animation: fadeInDown 1s ease-out;
}

.animate-subtitle {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.pulse-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5), #fff);
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

/* Контейнер статистики */
.stat-circle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Обновляем круги статистики для водной тематики */
.stat-circle {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(186, 230, 253, 0.2) 50%,
    rgba(125, 211, 252, 0.15) 100%
  );
  border-radius: 50%;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 15px;
}

.stat-circle:hover {
  transform: scale(1.05);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(186, 230, 253, 0.3) 50%,
    rgba(125, 211, 252, 0.25) 100%
  );
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.3),
    inset 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* Иконка */
.stat-icon {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 8px;
  opacity: 0.9;
}

/* Суффикс для больших чисел */
.stat-suffix {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: -5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* Обновляем размеры для больших чисел */
.stat-number {
  font-size: 2.2rem; /* Уменьшаем для больших чисел */
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Подпись */
.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-top: 5px;
}

/* SVG кольца прогресса */
.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  z-index: 5;
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 8;
}

/* Обновляем кольца прогресса для водной тематики */
.progress-ring-fill {
  fill: none;
  stroke: url(#oceanGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 2s ease-out;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.6));
}

/* Добавляем SVG градиент для колец */
.stats-section::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

/* Particles.js контейнер */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

/* Анимации */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Адаптивность */
@media (max-width: 1200px) {
  .stat-circle {
    width: 140px;
    height: 140px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-icon {
    font-size: 1.8rem;
  }
}

@media (max-width: 992px) {
  .stats-section {
    padding: 60px 0;
  }

  .stat-circle {
    width: 130px;
    height: 130px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) {
  .progress-ring {
    display: block;
  }
}

/* Адаптивные SVG кольца */
@media (max-width: 768px) {
  .progress-ring {
    display: none;
    width: 110px;
    height: 110px;
  }

  .progress-ring-bg,
  .progress-ring-fill {
    cx: 55;
    cy: 55;
    r: 45;
    stroke-width: 6;
  }

  .progress-ring-fill {
    stroke-dasharray: 283; /* 2 * π * 45 */
    stroke-dashoffset: 283;
  }
}

@media (max-width: 576px) {
  .progress-ring {
    display: none;
    width: 90px;
    height: 90px;
  }

  .progress-ring-bg,
  .progress-ring-fill {
    cx: 45;
    cy: 45;
    r: 35;
    stroke-width: 5;
  }

  .progress-ring-fill {
    stroke-dasharray: 220; /* 2 * π * 35 */
    stroke-dashoffset: 220;
  }
}

@media (max-width: 390px) {
  .progress-ring {
    display: none;
    width: 80px;
    height: 80px;
  }

  .progress-ring-bg,
  .progress-ring-fill {
    cx: 40;
    cy: 40;
    r: 30;
    stroke-width: 4;
  }

  .progress-ring-fill {
    stroke-dasharray: 188; /* 2 * π * 30 */
    stroke-dashoffset: 188;
  }
}

/* Исправляем переполнение контейнера */
.stats-section .container {
  max-width: 100%;
  overflow: hidden;
}

/* Убираем лишние отступы на мобильных */
@media (max-width: 576px) {
  .stats-section .pb-5 {
    padding-bottom: 2rem !important;
  }

  .stats-section .pt-5 {
    padding-top: 2rem !important;
  }

  .stats-section .mb-5 {
    margin-bottom: 2rem !important;
  }
}

/* Специальные задержки анимации */
.stat-circle-wrapper[data-delay="100"] {
  animation-delay: 0.1s;
}

.stat-circle-wrapper[data-delay="200"] {
  animation-delay: 0.2s;
}

.stat-circle-wrapper[data-delay="300"] {
  animation-delay: 0.3s;
}

.stat-circle-wrapper[data-delay="400"] {
  animation-delay: 0.4s;
}

.stat-circle-wrapper[data-delay="500"] {
  animation-delay: 0.5s;
}

.stat-circle-wrapper[data-delay="600"] {
  animation-delay: 0.6s;
}

/* Специальные стили для больших чисел (800+) */
.stat-number[data-target="800"] {
  font-size: 1.9rem;
  line-height: 1.8;
}

/* Адаптивность для больших чисел */
@media (max-width: 1200px) {
  .stat-number {
    font-size: 2rem;
  }

  .stat-number[data-target="800"] {
    font-size: 1.7rem;
  }

  .stat-suffix {
    font-size: 0.65rem;
  }
}

@media (max-width: 992px) {
  .stat-number {
    font-size: 1.8rem;
  }

  .stat-number[data-target="800"] {
    font-size: 1.5rem;
  }

  .stat-suffix {
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 1.6rem;
  }

  .stat-number[data-target="800"] {
    font-size: 1.3rem;
  }

  .stat-suffix {
    font-size: 0.55rem;
    margin-top: -3px;
  }
}

@media (max-width: 576px) {
  .stat-number {
    font-size: 1.4rem;
  }

  .stat-number[data-target="800"] {
    font-size: 1.1rem;
  }

  .stat-suffix {
    font-size: 0.5rem;
    margin-top: -2px;
  }
}

/* Обновляем контейнер для лучшего размещения */
.stat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  position: relative;
  padding: 5px;
}

/* Улучшаем иконку для призового фонда */
.stat-icon .bi-currency-exchange {
  font-size: 1.8rem;
  color: #ffd700; /* Золотой цвет для денег */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .stat-icon .bi-currency-exchange {
    font-size: 1.5rem;
  }
}
