/* ═══ NIO Counter — счётчик с барабанной анимацией ══════════ */

.nio-cnt{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}
.nio-cnt *, .nio-cnt *::before, .nio-cnt *::after{ box-sizing: border-box; }

/* ── Линия над числом ───────────────────────────────────── */
.nio-cnt__line-wrap{
    width: 100%;
    margin-bottom: 18px;
    overflow: hidden;
}
.nio-cnt__line{
    display: block;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--cnt-line-ms, 700ms) cubic-bezier(.4,.0,.2,1);
}
.nio-cnt.is-drawn .nio-cnt__line{ transform: scaleX(1); }

/* ── Число ──────────────────────────────────────────────── */
.nio-cnt__num{
    display: inline-flex;
    align-items: baseline;
    color: #C9A96A;
    line-height: 1;
    white-space: nowrap;
}
.nio-cnt__digits{ display: inline-flex; align-items: baseline; }

/* барабан одной цифры */
.nio-cnt__digit{
    display: inline-block;
    overflow: hidden;
    height: 1em;
    vertical-align: baseline;
}
.nio-cnt__roll{
    display: block;
    will-change: transform;
}
.nio-cnt__roll > span{
    display: block;
    height: 1em;
    line-height: 1em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.nio-cnt__fix, .nio-cnt__sep{ display: inline-block; }

/* ── Градиент числа (background-clip:text, маппинг по ширине числа из JS) ── */
.nio-cnt.has-grad .nio-cnt__roll > span,
.nio-cnt.has-grad .nio-cnt__sep,
.nio-cnt.has-grad .nio-cnt__fix{
    background-image: var(--cnt-grad);
    background-size: var(--cnt-w, 100%) 100%;
    background-position: var(--cnt-x, 0) 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ── Подпись ────────────────────────────────────────────── */
.nio-cnt__label{
    margin: 14px 0 0;
    color: #8a8a8a;
    line-height: 1.2;
}
