/* 03.3 «В цифрах» — числа-барабаны */

.nums {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin-top: 44px;
  border-top: 1px solid var(--fg28);
  container-type: inline-size;
}

.num {
  padding: 36px 24px 0 0;
  min-width: 0;
}

.num+.num {
  padding-left: 24px;
  border-left: 1px solid var(--fg28);
}

.num-f {
  display: block;
  height: .84em;
  font-weight: 900;
  line-height: .84;
  font-size: min(232px,17cqw);
}

/* барабан обрезаем только по вертикали: широкое «13+» может выйти в правый отступ колонки */
.reel {
  display: block;
  height: .84em;
  overflow: hidden;
}

@supports (clip-path:inset(0 -1px 0 0)) {
  .reel {
    overflow: visible;
    clip-path: inset(0 -.25em 0 -.05em);
  }
}

.reel-s {
  display: flex;
  flex-direction: column;
  transform: translate3d(0,var(--to),0);
}

.reel-s>span {
  display: block;
  height: .84em;
  line-height: .84;
}

.reel[data-pending] .reel-s {
  transform: none;
}

.reel[data-in] .reel-s {
  animation: reelTo 1.25s var(--e1) .1s both;
}

@keyframes reelTo {
  from {
    transform: translate3d(0,0,0);
  }
  to {
    transform: translate3d(0,var(--to),0);
  }
}

.num-c {
  text-wrap: balance;
  margin-top: 40px;
  max-width: 250px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(27,23,20,.84);
}

@media (max-width:900px) {
  .nums {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
  }
  .num:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .num-f {
    font-size: 34cqw;
  }
}

@media (max-width:640px) {
  .num-c {
    margin-top: 24px;
  }
}
