.cloud-stats {
  padding: 130px 0 0;
  overflow: hidden;
}

.cloud-stats__stage {
  position: relative;
  max-width: 1150px;
  margin: 0 auto;
  aspect-ratio: 1140.33 / 585.93;
}

.cloud-stats__clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cloud-stats__cloud {
  position: absolute;
  display: block;
  height: auto;
}

.cloud-stats__cloud--main {
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cloud-stats__cloud--left {
  z-index: 2;
  top: 0;
  left: 0;
  width: 22.8%;
}

.cloud-stats__cloud--right {
  z-index: 2;
  top: 0;
  right: 0;
  width: 34%;
}

/* Контент внутри центрального облака */
.cloud-stats__content {
  position: absolute;
  z-index: 3;
  top: 33%;
  right: 5%;
  bottom: 14%;
  left: 15%;
}

.cloud-stats__rows {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 32px;
  padding-bottom: 8px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.cloud-stats__row--top {
  padding-right: 120px;
  gap: 60px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.cloud-stats__row--bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  column-gap: 80px;
}

.cloud-stats__row--bottom .cloud-stats__item:first-child {
  justify-self: start;
}

.cloud-stats__row--bottom .cloud-stats__item--community {
  justify-self: center;
}

.cloud-stats__row--bottom .cloud-stats__item:last-child {
  justify-self: end;
}

.cloud-stats__item {
  display: flex;
  gap: 18px;
}

.cloud-stats__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: top left;
}

.cloud-stats__value {
  margin: 0 0 6px;
  font-family: 'Prata', serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.cloud-stats__value .spincrement {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.cloud-stats__label {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.cloud-stats__row--top .cloud-stats__item:first-child .cloud-stats__label {
  max-width: 130px;
}

.cloud-stats__row--bottom .cloud-stats__item:first-child .cloud-stats__label {
  max-width: 184px;
}

.cloud-stats__row--top .cloud-stats__item:nth-child(2) .cloud-stats__label {
  max-width: 140px;
}

.cloud-stats__item--community .cloud-stats__label {
  max-width: 140px;
}

@media (max-width: 1110px) {
  .cloud-stats__rows {
    gap: 27px;
    max-width: 700px;
  }
  .cloud-stats__item {
    gap: 10px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .cloud-stats__stage {
    aspect-ratio: auto;
  }

  .cloud-stats__clouds {
    display: none;
  }

  .cloud-stats {
    padding: 50px 0 0;
  }
  .cloud-stats__content {
    position: static;
    margin-top: 60px;
  }
  .cloud-stats__rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 50px;
    column-gap: 90px;
  }
  .cloud-stats__row--top .cloud-stats__item--task,
  .cloud-stats__row--bottom .cloud-stats__item--community {
    justify-self: flex-start;
  }
  .cloud-stats__row--top,
  .cloud-stats__row--bottom {
    display: contents;
  }
  .cloud-stats__item {
    gap: 10px;
  }
  .cloud-stats__row--bottom .cloud-stats__item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .cloud-stats__value {
    font-size: 30px;
  }
  .cloud-stats__row--top .cloud-stats__item:first-child .cloud-stats__label,
  .cloud-stats__row--bottom .cloud-stats__item:first-child .cloud-stats__label,
  .cloud-stats__row--top .cloud-stats__item:nth-child(2) .cloud-stats__label,
  .cloud-stats__row--bottom .cloud-stats__item:nth-child(2) .cloud-stats__label {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .cloud-stats {
    padding: 32px 0 0;
  }
  .cloud-stats__stage {
    aspect-ratio: auto;
  }
  .cloud-stats__clouds {
    display: none;
  }
  .cloud-stats__content {
    position: static;
  }
  .cloud-stats__row--top,
  .cloud-stats__row--bottom {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .cloud-stats__item {
    gap: 10px;
  }
  .cloud-stats__icon {
    width: 56px;
    height: 56px;
  }
  .cloud-stats__value {
    font-size: 28px;
  }
  .cloud-stats__label {
    max-width: none !important;
  }
}
