[data-stats-bar].bg-textured-blue {
  background-color: #3e6aa8;
  background-image: var(--stats-bar-texture);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  padding: 2.5rem 1.5rem;
}

.stats-bar--textured {
  position: relative;
}

.stats-bar__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.stats-bar__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .stats-bar__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.stats-bar__divider {
  width: 1px;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.25);
  flex: 0 0 auto;
}

.stats-bar__stat {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.stats-bar__summary {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 700px) {
  .stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 1.75rem 1rem;
  }

  .stats-bar__divider {
    display: none;
  }

  .stats-bar__item {
    padding: 1rem 1.25rem;
    border-bottom: none;
  }

  .stats-bar[data-stats-count="2"]::before,
  .stats-bar[data-stats-count="4"]::before,
  .stats-bar[data-stats-count="4"]::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
  }

  .stats-bar[data-stats-count="2"]::before,
  .stats-bar[data-stats-count="4"]::before {
    top: 1rem;
    bottom: 1rem;
    left: 50%;
    width: 1px;
    transform: translateX(-0.5px);
  }

  .stats-bar[data-stats-count="4"]::after {
    left: 1rem;
    right: 1rem;
    top: 50%;
    height: 1px;
    transform: translateY(-0.5px);
  }
}

@media (max-width: 420px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stats-bar[data-stats-count="2"]::before,
  .stats-bar[data-stats-count="4"]::before,
  .stats-bar[data-stats-count="4"]::after {
    display: none;
  }
}
