/* Стили для секции счетчиков */

.counters-section {
  padding: var(--section-padding);
  background-color: var(--section-bg-pink);
  position: relative;
  overflow: hidden;
}

.counters-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/pattern-bg.png');
  background-size: 300px;
  opacity: 0.05;
  z-index: 1;
}

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

.counters-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

/* Стили для счетчиков на странице "О нас" */
.stats-counters {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.counter-box {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.counter-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.counter-box:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.counter-box:hover:before {
  width: 100%;
  opacity: 0.1;
}

.counter-box h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.counter-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.4;
}

.counter {
  display: inline-block;
  font-weight: 700;
  transition: all 0.3s ease;
}

/* Адаптивные стили для счетчиков */
@media (max-width: 992px) {
  .counter-box h3 {
    font-size: 2rem;
  }
  
  .counter-box p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .stats-counters {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .counter-box {
    padding: 1.25rem 0.75rem;
  }
  
  .counter-box h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .counter-box h3 {
    font-size: 1.6rem;
  }
  
  .counter-box p {
    font-size: 0.85rem;
  }
}

/* Анимация счетчиков */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.counter-animate {
  animation: countUp 1s ease forwards;
}
