@font-face {
    font-family: 'Druk Text Wide Cyr';
    src: url('../../fonts/DrukWideCyr/druktextwidecyr-medium.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito';
    src: url('../../fonts/Nunito/Nunito-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

:root {
    --font-family: 'Druk Text Wide Cyr';
    --second-family: 'Nunito';
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    outline: none;
    padding: 0;
    font-family: var(--font-family);
    font-weight: 400;
}

img {
    border-style: none;
    height: auto;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    place-items: center;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
    font-family: var(--font-family);
    background-color: #3d1680;
}

main {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    place-items: center;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
    font-family: var(--font-family);
    background-color: #3d1680;
    padding-bottom: 18px;
}

main::before {
    content: '';
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    right: 0;
    height: 241px;
    background: linear-gradient(0deg, rgba(62, 22, 128, .8) 0%, rgba(117, 22, 163, 0) 100%);
}

.fireworks {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    width: 4px;
    height: 4px;
    background: #FFEE39;
    border-radius: 50%;
    position: absolute;
    animation: sparkleAnimation 10s infinite linear;
    box-shadow: 0 0 5px #FFEE39, 0 0 10px #FFEE39, 0 0 15px #FFEE39;
    z-index: -1;
    filter: blur(1px);
    transition-duration: 1s;
    transition-property: opacity;
}

@keyframes sparkleAnimation {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(calc(var(--randomYDirection) * 50px)) translateX(calc(var(--randomXDirection) * 50px));
    }
}

.tree {
    position: absolute;
    z-index: -2;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    object-position: top left;
    width: 925px;
    max-width: 90vw;
}

.decor {
    position: absolute;
}

.decor_1 {
    top: 520px;
    left: 200px;
    width: 43px;
    height: 42px;
    transform: rotate(84.94deg);
}

.decor_2 {
    top: 242px;
    left: 301px;
    width: 123px;
    height: 121px;
    transform: rotate(84.94deg);
}

.decor_3 {
    top: 42px;
    right: 419px;
    width: 47px;
    height: 47px;
    transform: rotate(84.94deg);
}

.decor_4 {
    top: 367px;
    right: 3px;
    width: 43px;
    height: 43px;
    transform: rotate(84.94deg);
}

.decor_5 {
    top: 167px;
    right: 310px;
    width: 96px;
    height: 112px;
    animation: 10s decor_5 infinite;
}

@keyframes decor_5 {
    0% {
        transform: translate3d(0%, 0%, 0);
    }
    20% {
        transform: translate3d(25%, 5%, 0);
    }
    40% {
        transform: translate3d(-10%, -15%, 0);
    }
    60% {
        transform: translate3d(5%, 5%, 0);
    }
    80% {
        transform: translate3d(-10%, 20%, 0);
    }
    100% {
        transform: translate3d(0%, 0%, 0);
    }
}

.header-lang {
    position: absolute;
    z-index: 13;
    top: 32px;
    right: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 48px;
    height: 48px;
    background: #161c24;
    border-radius: 8px;
}

.header-lang__current,
.header-lang__select {
    width: 24px;
    height: 24px;
}

.header-lang ul {
    width: 48px;
    background: #2C3845;
    border-radius: 8px;
    display: none;
    position: absolute;
    overflow: hidden;
    -webkit-transition: opacity 0.2s ease-in;
    transition: opacity 0.2s ease-in;
    z-index: 100;
}

.header-lang ul li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-lang ul li a{
    display: block;
    margin: 2px 0;
}

.header-lang ul li a.active{
    display: none;
}

.header-lang.show ul {
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    margin: 0;
    top: 60px;
}

.header {
    margin-bottom: -40px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 37px 30px 30px;
    height: 165px;
    background: linear-gradient(180deg, #3e1680 0%, rgba(117, 22, 163, 0) 100%);
}

.header__attempts {
    position: absolute;
    top: 66px;
    left: 62px;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    color: #f4f4f4;
    text-shadow: 1px 1px 1px #353535;
}

.header__logo {
    width: 208px;
    height: 47px;
}

.caption {
    position: relative;
    z-index: 5;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    font-size: 23px;
    line-height: 30px;
    text-transform: uppercase;
    color: #fff;
}

.copyright {
    margin-top: 70px;
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 12px;
    line-height: 110%;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #fff;
    font-family: var(--second-family);
}

.wheel-box {
    margin: auto 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.wheel {
    max-width: 438px;
    width: 100%;
    height: 438px;
    position: relative;
    z-index: 5;
}

.wheel__light {
    position: absolute;
    z-index: -1;
    background-image: url("/img/landing-7/light.png");
    background-size: cover;
    top: -35px;
    right: -50px;
    bottom: -58px;
    left: -39px;
}

.wheel-animation-1 .wheel__circle, .wheel-animation-1 .wheel__texts {
    animation: 5s wheel-animation-1 forwards;
}

@keyframes wheel-animation-1 {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(calc(4*360deg - 45deg));
    }
}

.wheel-animation-2 .wheel__circle, .wheel-animation-2 .wheel__texts {
    animation: 5s wheel-animation-2 forwards;
}

@keyframes wheel-animation-2 {
    0% {
        transform: rotate(calc(4*360deg - 45deg));
    }
    100% {
        transform: rotate(calc(8*360deg));
    }
}

.wheel-animation-3 .wheel__circle, .wheel-animation-3 .wheel__texts {
    animation: 5s wheel-animation-3 forwards;
}

@keyframes wheel-animation-3 {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(calc(4*360deg));
    }
}

.wheel__select {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    background-image: url("/img/landing-7/wheel-select.png");
    background-size: contain;
    width: 442px;
    height: 471px;
}

.wheel__circle {
    position: absolute;
    z-index: 1;
    top: 29px;
    left: 0;
    background-image: url("/img/landing-7/wheel-circle.svg");
    background-size: contain;
    width: 441px;
    height: 441px;
}

.wheel__texts {
    position: absolute;
    z-index: 3;
    top: 30px;
    left: 0;
    width: 440px;
    height: 440px;
    /*animation: 5s wheel-animation-1 infinite;*/
}

.wheel__text {
    position: absolute;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
    width: 108px;
}

.wheel__text_1 {
    top: 40px;
    left: 169px;
}

.wheel__text_2 {
    top: 90px;
    left: 280px;
    transform: rotate(45deg);
}

.wheel__text_3 {
    top: 180px;
    left: 310px;
    transform: rotate(90deg);
}

.wheel__text_4 {
    top: 310px;
    left: 280px;
    transform: rotate(135deg);
}

.wheel__text_5 {
    top: 340px;
    left: 168px;
    transform: rotate(180deg);
}

.wheel__text_6 {
    top: 315px;
    left: 55px;
    transform: rotate(225deg);
}

.wheel__text_7 {
    top: 180px;
    left: 28px;
    transform: rotate(270deg);
}

.wheel__text_8 {
    top: 96px;
    left: 54px;
    transform: rotate(315deg);
}

.wheel__button {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    position: absolute;
    z-index: 5;
    top: 170px;
    left: 146px;
    width: 149px;
    height: 144px;
    background-image: url("/img/landing-7/wheel-button.svg");
    background-size: contain;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(53, 53, 53, 0.6);
    pointer-events: none;
    transition-property: opacity;
    transition-duration: 0.3s;
}

.wheel__button.active {
    opacity: 1;
    cursor: pointer;
    pointer-events: all;
    animation: 1.5s wheel__button linear infinite;
}

@keyframes wheel__button {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.wheel__triangle {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 135px;
    width: 179px;
    height: 252px;
    background-image: url("/img/landing-7/wheel-triangle.svg");
    background-size: contain;
}

.blur {
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    max-width: 1258px;
    width: 100%;
    height: 563px;
}

.girl-box {
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: 0;
    width: 600px;
    height: 600px;
    overflow: hidden;
}

.girl {
    position: absolute;
    bottom: -32px;
    right: -203px;
    width: 750px;
    height: 465px;
}

.bottom-bg {
    position: absolute;
    height: 400px;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    object-position: bottom left;
    object-fit: contain;
}

.parallax {
    transition-duration: 0.1s;
    transition-property: transform;
}

.no-parallax {
    transform: none !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal.active {
    display: flex;
}

.modal__area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 25px;
    max-width: 486px;
    width: 100%;
    background-image: url("/img/landing-7/modal-bg.png");
    background-size: 100% 100%;
}

.modal__image {
    margin-bottom: 10px;
    margin-top: -70px;
    display: block;
    width: 100%;

}

.modal__box {

}

.modal__text {
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 45px;
    text-transform: uppercase;
    text-align: center;
    color: #fba700;
    text-shadow: 3px 3px 3px rgba(53, 53, 53, 0.35);
}

.modal__bonus {
    font-weight: 500;
    font-size: 56px;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    text-shadow: 0 6px 6px rgba(0, 0, 0, 0.5);
}

.modal__button {
    transform: translateY(calc(50% + 25px));
    padding: 8px 19px;
    box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.08);
    background: linear-gradient(180deg, #558f00 0%, #028c37 100%);
    border: 3.44px solid rgba(0, 0, 0, 0.12);
    border-radius: 9px;
    font-weight: 500;
    font-size: 20px;
    line-height: 178%;
    text-transform: uppercase;
    text-align: center;
    color: #f5f5f5;
    text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

@media (max-width: 1439px) {
    .tree {
        display: none;
    }
    .decor_3 {
        display: none;
    }
    .decor_4 {
        display: none;
    }
    .decor_5 {
        top: 144px;
        right: 18px;
        width: 85px;
        height: 100px;
    }
    .decor_2 {
        top: 130px;
        left: -45px;
    }
    .decor_1 {
        z-index: 2;
        top: unset;
        bottom: 136px;
        left: 10px;
        width: 64px;
        height: 64px;
    }
    .header {
        margin: 0;
        height: auto;
        padding: 40px 27px 35px;
        justify-content: flex-start;
    }
    .header-lang {
        right: 20px;
    }
    .header__logo {
        width: 132px;
        height: 30px;
    }
    .header__attempts {
        z-index: 3;
        top: unset;
        bottom: 68px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
    }
    .caption {
        margin: 0 0 20px;
        font-size: 15px;
        line-height: 19px;
    }
    .copyright {
        margin-top: 120px;
    }
    .girl {
        width: 537px;
        height: 333px;
        bottom: -110px;
    }
    .parallax {
        transform: none !important;
    }
    .modal__area {
        max-width: 360px;
    }
    .modal__text {
        font-size: 33px;
    }
    .modal__bonus {
        font-size: 41px;
    }
    .modal__button {
        font-size: 15px;
        padding: 5px 19px;
    }
}

@media (max-width: 450px) {
    .wheel {
        padding: 0;
        transform: scale(0.8) translateX(-46px);
        max-width: 350px;
    }
    .wheel__light {
        top: -35px;
        right: -123px;
        bottom: -58px;
        left: -35px;
    }
}

@media (max-width: 375px) {
    .wheel {
        padding: 0;
        transform: scale(0.7) translateX(-68px);
        max-width: 310px;
    }
    .wheel__light {
        top: -35px;
        right: -166px;
        bottom: -58px;
        left: -35px;
    }
}