#timer {
    background: linear-gradient(180deg, #15A556 0%, #136A3A 100%);
    position: relative;
    overflow: hidden;
    margin-top: -1px;
}

#timer::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: var(--before-top, -90px);
    left: 0;
    background: url(../assets/icons.png) center / contain repeat;
    transition: all 0.3s linear;
    pointer-events: none;
    opacity: 0.1;
}

.little_snow {
    width: 100%;
    height: 19px;
    background: url(../assets/krai.png) center / cover repeat-x;
    position: absolute;
    z-index: 2;
}

.little_snow.top {
    top: 109px;
    left: 0;
}

.little_snow.bottom {
    bottom: 109px;
    left: 0;
    transform: rotate(180deg);
}

.timer_wrapper {
    width: 100%;
    max-width: 1920px;
    padding: 0 32px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    max-height: 810px;
    position: relative;
    margin: 0 auto;
}

.timer_rows {
    display: flex;
    flex-direction: column;
}

.timer_rows_left {
    transform: rotate(3deg);
}

.timer_rows_right {
    transform: rotate(-3deg);
}

.timer_card {
    display: flex;
    width: 424px;
    height: 224px;
    padding: 32px 40px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    border-radius: 32px;
    border: 12px solid #FFF;
    box-shadow: 0 0 14px 0 rgba(127, 164, 187, 0.25);
    position: relative;
    overflow: hidden;
    margin-top: 16px;
}

.timer_card:nth-child(1) {
    background: linear-gradient(180deg, #FF98A8 0%, #FFDADF 100%), linear-gradient(180deg, #ECFAFF 0%, #D0F3FF 100%);
}

.timer_card:nth-child(2) {
    background: linear-gradient(180deg, #6FB 0%, #BAFFE1 100%), linear-gradient(180deg, #DDFFF0 0%, #BAFFE1 100%), linear-gradient(180deg, #ECFAFF 0%, #D0F3FF 100%);
}

.timer_card:nth-child(3) {
    background: linear-gradient(180deg, #96E5FF 0%, #D0F3FF 100%);
}

.timer_card:nth-child(4) {
    background: linear-gradient(180deg, #FFE786 0%, #FFF5CC 100%), linear-gradient(180deg, #ECFAFF 0%, #D0F3FF 100%);
}

.timer_card:nth-child(1) .timer_number {
    color: #CE4346;
}

.timer_card:nth-child(2) .timer_number {
    color: #139174;
}

.timer_card:nth-child(3) .timer_number {
    color: #4774B9;
}

.timer_card:nth-child(4) .timer_number {
    color: #BC8138;
}

.timer_card:nth-child(1) .timer_number_info {
    color: #A24244;
}

.timer_card:nth-child(2) .timer_number_info {
    color: #0D5343;
}

.timer_card:nth-child(3) .timer_number_info {
    color: #000;
}

.timer_card:nth-child(4) .timer_number_info {
    color: #000;
}

.timer_number_info {
    z-index: 2;
    white-space: wrap;
}

.circle {
    background: linear-gradient(180deg, #ffffff33 0%, #ffffff00 100%);
    position: absolute;
    border-radius: 100%;
    z-index: 1;
    pointer-events: none;
}

.timer_card:nth-child(1) .circle:nth-child(1) {
    width: 244px;
    height: 244px;
    right: -50px;
    top: -90px;
}

.timer_card:nth-child(1) .circle:nth-child(2) {
    width: 96px;
    height: 96px;
    left: -52px;
    top: -52px;
}

.timer_card:nth-child(1) .circle:nth-child(3) {
    width: 244px;
    height: 244px;
    left: -126px;
    bottom: -84px;
}

.timer_card:nth-child(2) .circle:nth-child(1) {
    width: 288px;
    height: 288px;
    right: -123px;
    bottom: -142px;
}

.timer_card:nth-child(2) .circle:nth-child(2) {
    width: 244px;
    height: 244px;
    left: -119px;
    bottom: -141px;
}

.timer_card:nth-child(2) .circle:nth-child(3) {
    width: 198px;
    height: 199px;
    left: 90px;
    bottom: -23px;
}

.timer_card:nth-child(3) .circle:nth-child(1) {
    width: 244px;
    height: 244px;
    right: -76px;
    bottom: -107px;
}

.timer_card:nth-child(3) .circle:nth-child(2) {
    width: 244px;
    height: 244px;
    right: 47px;
    top: -40px;
}

.timer_card:nth-child(3) .circle:nth-child(3) {
    width: 244px;
    height: 244px;
    left: -75px;
    bottom: -72px;
}

.timer_card:nth-child(4) .circle:nth-child(1) {
    width: 324px;
    height: 324px;
    right: -75px;
    bottom: -71px;
}

.timer_card:nth-child(4) .circle:nth-child(2) {
    width: 157px;
    height: 157px;
    left: -17px;
    bottom: -45px;
}


.timer_number {
    font-size: 48px;
    line-height: 110%;
    letter-spacing: -0.48px;
    text-transform: uppercase;
    z-index: 2;
}

.timer_title {
    color: #00FFAE;
    text-align: center;
    font-family: "Ramillas";
    font-size: 64px;
    line-height: 110%;
    letter-spacing: -0.64px;
}

.timer_text {
    color: #FFF;
    text-align: center;
    font-size: 18px;
    line-height: 130%;
}

.timer_star {
    width: 64px;
    height: 64px;
    aspect-ratio: 1/1;
    background: url(../assets/star.svg) center / contain no-repeat;
}

.timer_head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 520px;
}

.timer_center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.timer_but {
    padding: 3px;
    border-radius: 100px;
    background: linear-gradient(0deg, #B9FFDC 0%, #72FEB7 100%);
    box-shadow: 0 2px 4px 0 rgba(132, 132, 132, 0.25);
    cursor: pointer;
}

.timer_but:hover {
    background: linear-gradient(180deg, #B9FFDC 0%, #72FEB7 100%);
}

.in_timer_but:hover {
    background: linear-gradient(180deg, #32DF89 0%, #72FEB7 100%);
}

.in_timer_but {
    padding: 14px 37px;
    border-radius: 100px;
    background: linear-gradient(180deg, #B9FFDC 0%, #72FEB7 100%);
    color: #139174;
    text-align: center;
    font-size: 22px;
    line-height: normal;
    letter-spacing: 0.66px;
    text-transform: uppercase;
}

.timer_main {
    display: flex;
    width: 100%;
    max-width: 728px;
    padding: 24px 32px 24px 48px;
    flex-direction: row;
    align-items: center;
    border-radius: 24px;
    background: #00ff903d;
    margin-top: 32px;
}

.timer_main_text {
    color: #FFF;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: -0.24px;
}

.timer_main_text span {
    color: #00FFAE;
}

@media (max-width: 1600px) {
    .timer_card {
        width: 311px;
        height: 224px;
        padding: 20px 28px;
        border-radius: 32px;
        border: 12px solid #FFF;
    }

    .timer_number {
        font-size: 42px;
        line-height: 110%;
        letter-spacing: -0.48px;
    }
}

@media (max-width: 1400px) {
    .timer_title {
        font-size: 48px;
        line-height: 110%;
        letter-spacing: -0.48px;
    }

    .timer_main_text {
        font-size: 18px;
        line-height: 120%;
        letter-spacing: -0.18px;
    }

    .timer_card {
        width: 200px;
        height: 144px;
        padding: 10px 15px;
        border-radius: 20px;
        border: 6px solid #FFF;
    }

    .timer_number {
        font-size: 28px;
        line-height: 110%;
        letter-spacing: -0.28px;
    }

    .timer_number_info {
        font-size: 12px;
        line-height: 140%;
    }

    .timer_wrapper {
        padding: 32px 32px;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .timer_wrapper {
        display: flex;
        flex-direction: column;
        max-height: 1115px;
        padding: 110px 0 200px;
        gap: 16px;
    }

    .timer_rows_left {
        order: 2;
    }

    .timer_center {
        order: 1;
    }

    .timer_rows_right {
        order: 3;
    }

    .timer_rows {
        transform: rotate(0deg);
        height: 138px;
    }

    .js-marquee {
        display: flex;
        gap: 16px;
        height: 138px;
    }

    .timer_card {
        width: 255px;
        height: 138px;
        padding: 20px 22px;
        border-radius: 24px;
        border: 4px solid #FFF;
        margin-top: 0;
    }

    .timer_title {
        font-size: 32px;
        line-height: 110%;
        letter-spacing: -0.32px;
    }

    .timer_text {
        font-size: 14px;
        line-height: 130%;
    }

    .timer_center {
        max-width: 345px;
    }

    .timer_star {
        width: 32px;
        height: 32px;
    }

    .in_timer_but {
        padding: 8px 32px;
        font-size: 14px;
        line-height: normal;
        letter-spacing: 0.42px;
    }

    .timer_main {
        padding: 16px 32px 16px 48px;
        margin-top: 29px;
        margin-bottom: 86px;
    }

    .timer_number {
        font-size: 24px;
        line-height: 110%;
        letter-spacing: -0.24px;
    }

    .marquee,
    .marquee_second {
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
        display: flex;
    }
}