.timer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.time-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flip-container {
    display: flex;
}

.flip-card {
    position: relative;
    width: 30px;
    height: 60px;
    overflow: hidden;
}

.flip-card-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flip-card::before {
    content: '';
    position: absolute;
    height: 20px;
    z-index: 10;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(0deg,rgba(255, 255, 255, 0) 0%, rgba(14, 69, 122, 1) 100%);
}

.flip-card::after {
    content: '';
    position: absolute;
    height: 16px;
    z-index: 10;
    width: 100%;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgba(14, 69, 122, 1) 100%);
}

.digit {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-family: var(--ff-headers);
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

/* Анимация рулетки */
.flip-card.rolling .flip-card-inner {
    animation: roll60 0.5s ease-out;
}

@keyframes roll60 {
    0% {
        transform: translateY(-60px);
    }
    100% {
        transform: translateY(0);
    }
}
@keyframes roll50 {
    0% {
        transform: translateY(-50px);
    }
    100% {
        transform: translateY(0);
    }
}
@keyframes roll42 {
    0% {
        transform: translateY(-42px);
    }
    100% {
        transform: translateY(0);
    }
}

.separator {
    font-family: var(--ff-headers);
    font-size: 44px;
    font-weight: 500;
    align-self: flex-start;
    line-height: 60px;
}

.timer__label {
    display: block;
    font-size: 13px;
    line-height: 1;
    color: white;
    opacity: 0.3;
    text-align: center;
}

.form-timer .flip-card::before,
.form-timer .flip-card::after
{   
    content: none;
}


.modal-timer .digit {
    font-size: 36px;
    height: 50px;
}
.modal-timer .separator {
    font-size: 36px;
}
.modal-timer .flip-card {
    width: 26px;
    height: 50px;
}
.modal-timer .separator{
    line-height: 50px;
}
.modal-timer .flip-card.rolling .flip-card-inner {
    animation: roll50 0.5s ease-out;
}

@media screen and (max-width: 992px) {
    .form-timer .digit {
        font-size: 34px;
        height: 50px;
    }
    .form-timer .separator {
        font-size: 34px;
    }
    .form-timer .flip-card {
        width: 26px;
        height: 50px;
    }
    .form-timer .separator{
        line-height: 50px;
    }
    .form-timer .flip-card.rolling .flip-card-inner {
        animation: roll50 0.5s ease-out;
    }
}

@media screen and (max-width: 992px) {
    .modal-timer .digit {
        font-size: 31px;
        height: 42px;
    }
    .modal-timer .separator {
        font-size: 31px;
    }
    .modal-timer .flip-card {
        width: 24px;
        height: 42px;
    }
    .modal-timer .flip-card::before,
    .modal-timer .flip-card::after
    {
        height: 10px;
    }
    .modal-timer .separator{
        line-height: 42px;
    }
    .modal-timer .flip-card.rolling .flip-card-inner {
        animation: roll42 0.5s ease-out;
    }
}