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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

html {
    box-sizing: border-box
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0
}

p {
    margin: 0
}

picture {
    display: block
}

img {
    display: block;
    border: none
}

img, svg {
    vertical-align: middle
}

a {
    background-color: transparent;
    color: inherit;
    text-decoration: none
}

:focus {
    outline: none
}

button {
    all: unset
}

:root {
    --font-main-weight: 900;
    --font-main-color: #fff;
    --font-main-style: normal;
    --font-main: "Saira", sans-serif;
    --font-optical-sizing: auto;
    --promo-title-fs-coef: 0.066;
    --promo-code-fs-coef: 0.11;
    --promo-notification-fs-coef: 0.027;
    --btn-fs-coef: 0.063;
    --promo-notification-width-coef: 0.25;
    --description-width: clamp(100px, min(35vw, 66vh), 873px);
    --logo-mb-coef: 0.07;
    --title-mb-coef: 0.016;
    --promo-mb-coef: 0.07;
    --promo-title-coef: 0.012;
}

body {
    line-height: 1;
    text-rendering: optimizeSpeed;
    -webkit-text-decoration-skip: objects;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-main), sans-serif;
    font-weight: var(--font-main-weight);
    color: var(--font-main-color);
    font-style: var(--font-main-style);
    text-transform: uppercase;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    position: relative;
    font-optical-sizing: var(--font-optical-sizing);
    font-variation-settings: "wdth" 100;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    z-index: 1;
    overflow-x: hidden;
}

.content {
    flex: 1;
    position: relative;
    z-index: auto;
    display: flex;
    pointer-events: auto;
    width: 100%;
    overflow-y: clip;
}

.description {
    position: relative;
    z-index: 8;
    width: var(--description-width);
    max-width: 873px;
    /*overflow: hidden;*/
}

.logo {
    position: relative;
    z-index: 1;
    aspect-ratio: 413 / 132;
    max-width: 413px;
    margin: 0 auto calc(var(--description-width) * var(--logo-mb-coef));
}

.title {
    width: 100%;
    position: relative;
    aspect-ratio: 816 / 229;
    margin-bottom: calc(var(--description-width) * var(--title-mb-coef));
}

.promo__title-wrapper {
    position: relative;
    margin-bottom: calc(var(--description-width) * var(--promo-title-coef));
}

.promo__title {
    text-align: center;
    color: #A100FF;
    font-size: calc(var(--description-width) * var(--promo-title-fs-coef));
    filter: drop-shadow(0px 5px 16px #1915EE);
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    -webkit-text-stroke: 1.5px #fff;
}

.promo {
    position: relative;
    width: 92%;
    margin: 0 auto calc(var(--description-width) * var(--promo-mb-coef));
    z-index: 5;
}

.promo__btn {
    cursor: pointer;
    aspect-ratio: 751 / 149;
    width: 100%;
    background: image-set(
        url("../img/btn/promo_btn@1x.webp") 1x,
        url("../img/btn/promo_btn@2x.webp") 2x
    ) center/contain no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #020081;
    padding: 3% 15% 3% 4%;
    margin: 0 auto;
    font-size: calc(var(--description-width) * var(--promo-code-fs-coef));
}

.promo_notify {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #020081;
    text-transform: uppercase;
    background: linear-gradient(180deg, #9CF494 0%, #77F477 4%, #00DA00 48%, #007400 88%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: calc(var(--description-width) * var(--promo-notification-fs-coef));
    width: calc(var(--description-width) * var(--promo-notification-width-coef));
    border-radius: 10px;
    aspect-ratio: 180 / 40;
}

.promo_notify.show {
    opacity: 1;
}

.btn {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    gap: 3%;
    cursor: pointer;
    aspect-ratio: 743 / 126;
    width: 92%;
    margin: 0 auto;
    z-index: 5;
}

.btn__left-arrow,
.btn__right-arrow {
    flex: 1 1 0;
    max-width: 15%;
}

.btn__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn__main-text {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    position: absolute;
    z-index: 1;
    font-size: calc(var(--description-width) * var(--btn-fs-coef));
}

.btn__main-icon {
    width: 100%;
    height: auto;
    display: block;
}

.btn-pulse {
    -webkit-animation: 1.5s pulse ease-in-out infinite;
    animation: 1.5s pulse ease-in-out infinite;
    transform-origin: center center;
}

.btn-horizontal-moves-forward {
    -webkit-animation: 1.5s horizontal-moves-forward ease-in-out infinite;
    animation: 1.5s horizontal-moves-forward ease-in-out infinite;
    transform-origin: center center;
}

.btn-horizontal-moves-backward {
    -webkit-animation: 1.5s horizontal-moves-backward ease-in-out infinite;
    animation: 1.5s horizontal-moves-backward ease-in-out infinite;
    transform-origin: center center;
}

.btn-shadow {
    filter: drop-shadow(0px 4px 23px rgba(0, 0, 0, 0.25));
}

.player-wrapper {
    position:  relative;
    z-index: 2;
    aspect-ratio: 860 / 1117;
    will-change: transform;
    pointer-events: none;
    overflow-y: clip;
    max-width: 1064px;
}

.player {
    position: absolute;
    z-index: 2;
    width: 105%;
    max-width: 1064px;
    height: auto;
    display: block;
    pointer-events: none;
    bottom: -2%;
}

@media (orientation: portrait) and (min-width: 0px) {
    :root {
        --logo-mb-coef: 0.055;
        --title-mb-coef: 0.02;
        --btn-fs-coef: 0.06;
        --description-width: clamp(100px, min(90vw, 56vh), 700px);
        --promo-notification-width-coef: 0.42;
        --promo-notification-fs-coef: 0.046;
        --promo-title-coef: 0.022;
    }

    .main {
        background-image: image-set(
                url('../img/bg/bg_portrait_mobile@1x.webp') 1x,
                url('../img/bg/bg_portrait_mobile@2x.webp') 2x
        );
        background-size: cover;
        background-repeat: no-repeat;
    }

    .content {
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        gap: clamp(10px, min(3vw, 2vh), 20px);;
    }

    .logo {
        width: 55%;
    }

    .description {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: clamp(0px, 8%, 46px) clamp(0px, 7%, 28px) 0;
    }

    .promo {
        margin-bottom: 0;
    }

    .btn {
        position: fixed;
        bottom: clamp(0px, 8%, 64px);
        max-width: calc(var(--description-width) * 0.92);
    }

    .promo__title {
        -webkit-text-stroke: 1px #fff;
    }

    .promo__btn {
        cursor: pointer;
        aspect-ratio: 751 / 149;
        width: 100%;
        background: image-set(
                url("../img/btn/promo_btn@1x.webp") 1x,
                url("../img/btn/promo_btn@2x.webp") 2x
        ) center/contain no-repeat;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #020081;
        padding: 3% 15% 3% 4%;
        margin: 0 auto;
        font-size: calc(var(--description-width) * var(--promo-code-fs-coef));
    }

    .promo_notify--landscape {
        display: none;
    }

    .promo_notify--portrait {
        display: flex;
    }

    .promo_notify {
        top: calc(100% + 15px);
        transform: translateX(-50%);
        left: 50%;
    }

    .player-wrapper {
        height: 100%;
    }
}

@media (orientation: portrait) and (min-width: 768px) and (min-height: 1024px) {
    .main {
        background-image: image-set(
                url('../img/bg/bg_portrait_tablet@1x.webp') 1x,
                url('../img/bg/bg_portrait_tablet@2x.webp') 2x
        );
        background-size: cover;
        background-repeat: no-repeat;
    }

    .promo__title {
        -webkit-text-stroke: 1.5px #fff;
    }
}

@media (orientation: landscape) and (min-width: 0px) {
    :root {
        --description-width: clamp(100px, min(35vw, 66vh), 873px);
    }

    .main {
        background-image: image-set(
                url('../img/bg/bg_landscape_mobile@1x.webp') 1x,
                url('../img/bg/bg_landscape_mobile@2x.webp') 2x
        );
        background-position: right center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .content {
        width: auto;
        flex-direction: row-reverse;
    }

    .description {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: clamp(100px, min(35vw, 78vh), 873px);
    }

    .logo {
        width: 50%;
    }

    .promo__title {
        -webkit-text-stroke: 1px #fff;
    }

    .promo_notify--portrait {
        display: none;
    }

    .promo_notify {
        top: 50%;
        transform: translateY(-50%);
        right: 0;
    }

    .player-wrapper {
        width: clamp(100px, min(37vw, 72vh), 960px);
    }
}

@media (orientation: landscape) and (min-width: 1024px) {
    .main {
        background-image: image-set(
                url('../img/bg/bg_landscape_tablet@1x.webp') 1x,
                url('../img/bg/bg_landscape_tablet@2x.webp') 2x
        );
        background-position: right center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .promo__title {
        -webkit-text-stroke: 1px #fff;
    }
}

@media (orientation: landscape) and (min-width: 1440px) {
    .main {
        background-image: image-set(
                url('../img/bg/bg_landscape_desktop@1x.webp') 1x,
                url('../img/bg/bg_landscape_desktop@2x.webp') 2x
        );
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .promo__title {
        -webkit-text-stroke: 1.5px #fff;
    }
}

@media (orientation: landscape) and (min-width: 1920px) {
    .main {
        background-image: image-set(
                url('../img/bg/bg_landscape_desktop@1x.webp') 1x,
                url('../img/bg/bg_landscape_desktop@2x.webp') 2x
        );
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }
}
