.animated-stats-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 24px;
  row-gap: 20px;
  padding: 20px
  width: 100%;
}


.animated-stats-wrapper__title {
  grid-column: -1 / 1;
}
.animated-stats-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-bottom: 40px;
}
.animated-stats-group:last-of-type {
  margin-bottom: 0;
}
span.counter-display__counter {
  font-weight: 200;
}
.animate-stats__group-item_title {
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  flex: 1;
}
.animated-stats-group__title{
  font-weight: 700;
}
.animated-stats-group__description {
  text-transform: capitalize;
  font-weight: 400;
  display: block;
  max-width: 450px;
  margin-top: 5px;
}
.animate-stats__group-item_title::before{
  content: "";
  display: block;
  position: absolute;
  bottom: -4px;
  right: 100%;
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background-color: var(--pepper-red);
  animation: animateBallPos 4s ease-out forwards 1s;
}
.animate-stats__group-item_title::after {
  content: "";
  display: block;
  position: absolute;
  height: 1px;
  width: 0%;
  left: 0;
  margin-top: 1px;
  transition: width 0.125s linear;
  animation: animateWidth 4s ease-out forwards 1s;
}
.animated-stats-wrapper__content h2{
  margin-top: 0;
}
@keyframes animateWidth {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes animateBallPos {
  from {
    right: 100%;
  }
  to {
    right: 0%;
  }
}
.animate-stats__group-item__number-value, .counter-display span {
  font-size: 52px;
  font-weight: 200;
  min-width: 250px;
  padding-top: 20px;
}

@media screen and (min-width: 600px) {
  .animate-stats__group-item_title::before{
    bottom: 1px
  }
  .animated-stats-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
  }
  .animate-stats__group-item__number-value {
    align-self: flex-end;
  }
}
@media screen and (min-width: 1024px) {
  .animated-stats-wrapper__content {
    max-width: 450px;
  }
  .animated-stats-group__description {
    display: block;
  }
  .animated-stats-wrapper {
    grid-template-columns: auto 1fr;
    column-gap: 40px;
    row-gap: 40px;
  }
}
@media screen and (min-width: 1280px) {
  .animated-stats-wrapper {
    grid-template-columns: auto 1fr;
    column-gap: 82px;
  }
  .animate-stats__group-item__number-value, .counter-display span {
    font-size: 72px;
  }
}
