*, :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-optical-sizing: auto;
    --font-main: "Inter", sans-serif;
    /*--bg-color: #000D27;*/
}

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;
    /*background-color: var(--bg-color);*/
    font-family: var(--font-main), sans-serif;
    font-weight: var(--font-main-weight);
    color: var(--font-main-color);
    font-optical-sizing: var(--font-optical-sizing);
    font-style: var(--font-main-style);
    text-transform: uppercase;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    position: relative;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mask {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 3;
    background: image-set(
            url('../img/mask/mask@1x.webp') 1x,
            url('../img/mask/mask@2x.webp') 2x
    ) no-repeat center bottom;
    background-size: contain;
    pointer-events: none;
}

.mask--isolate {
    z-index: 103 !important;
}

.left-ice {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    position: absolute;
    left: 0;
    z-index: 4;
    background: image-set(
            url('../img/ice/left_ice@1x.webp') 1x,
            url('../img/ice/left_ice@2x.webp') 2x
    ) no-repeat left bottom;
    background-size: contain;
    pointer-events: none;
}

.right-ice {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    position: absolute;
    right: 0;
    z-index: 4;
    background: image-set(
            url('../img/ice/right_ice@1x.webp') 1x,
            url('../img/ice/right_ice@2x.webp') 2x
    ) no-repeat center bottom;
    background-size: contain;
    pointer-events: none;
}


.vertical-left-ice {
    width: 100%;
    height: 100%;
    /*max-height: 1000px;*/
    position: absolute;
    background: image-set(
            url('../img/ice/vertical_left_ice@1x.webp') 1x,
            url('../img/ice/vertical_left_ice@2x.webp') 2x
    ) no-repeat left bottom;
    background-size: contain;
    pointer-events: none;
}

.vertical-left-ice--isolate {
    z-index: 101 !important;
}

.vertical-left-ice--hide {
    z-index: -1 !important;
}

.vertical-right-ice {
    width: 100%;
    height: 100%;
    position: absolute;
    background: image-set(
            url('../img/ice/vertical_right_ice@1x.webp') 1x,
            url('../img/ice/vertical_right_ice@2x.webp') 2x
    ) no-repeat right bottom;
    background-size: contain;
    pointer-events: none;
}

.vertical-right-ice--isolate {
    z-index: 101 !important;
}

.vertical-right-ice--hide {
    z-index: -1 !important;
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    flex: 1;
    pointer-events: auto;
}


.girl {
    position:  absolute;
    aspect-ratio: 471 / 930;
    z-index: 2;
}

.counter {
    width: 100%;
    padding-left: 65px;
    padding-right: 65px;
    display: flex;
    font-weight: 700;
    height: auto;
    line-height: 1;
    letter-spacing: 1px;
    z-index: 5;
}

.counter__text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-left: 17px;
    padding-right: 17px;
    background: linear-gradient(to bottom,
        #052294 0%,
        #1E4CAE 46%,
        #041E8A 95%
    );
    text-transform: uppercase;
    white-space: nowrap;
}

.counter__number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    padding: 14px 23px;
    background: linear-gradient(to bottom,
        #113FF5 0%,
        #3676FF 46%,
        #123DEC 95%
    );
}

.center-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.title {
    display: flex;
    width: var(--title-width, 100%);
    padding: 8px;
    background: linear-gradient(to bottom,
        #CE9E5B 0%,
        #FACC9A 18%,
        #FCF5E0 48%,
        #CE9E5B 60%,
        #DFC08E 77%,
        #CE9E5B 95%
    );
    position: relative;
}

.title__text {
    width: 100%;
    text-align: center;
    padding: 60px;
    font-weight: 900;
    font-size: 40px;
    line-height: 1.3;
    text-shadow: 0 0 14px rgba(9, 65, 121, 0.87);
    background: linear-gradient(to bottom,
        #113FF5 0%,
        #3676FF 46%,
        #123DEC 95%
    );
}

.content-isolate {
    z-index: auto;
}

.logo {
    height: auto;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 307 / 96;
    isolation: isolate;
    z-index: 100;
}

.logo-isolate {
    isolation: isolate;
    z-index: 101 !important;
}

.girl {
    position:  absolute;
    aspect-ratio: 471 / 930;
    width: 471px;
    will-change: transform;
    pointer-events: none;
}

.girl-image {
    position: absolute;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.girl-isolate {
    isolation: isolate;
    z-index: 102 !important;
}

@media (orientation: portrait) and (min-width: 0px) {
    .main {
        flex: 1;
        display: flex;
        flex-direction: column;
        position: relative;
        background: image-set(
                url('../img/bg/bg_portrait@1x.webp') 1x,
                url('../img/bg/bg_portrait@2x.webp') 2x
        ) no-repeat center center;
        background-size: cover;
    }

    .content {
        flex-direction: column;
        padding: clamp(20px, 5vw, 55px) 0 clamp(60px, 15vw, 160px);
    }

    .left {
        display: none;
    }

    .logo--landscape {
        display: none;
    }

    .logo {
        width: clamp(100px, 35vw, 256px);
        margin-bottom: clamp(17px, 3vw, 32px);
    }

    .girl {
        width: clamp(100px, 24vh, 400px);
        bottom: 0;
        right: 0;
    }

    .title--landscape,
    .counter--landscape {
        display: none;
    }

    .title {
        padding: 3px 0;
        margin-bottom: clamp(8px, 3vw, 16px);
    }

    .title__text {
        padding: clamp(19px, 2.8vw, 30px) clamp(60px, 15vw, 160px);
        font-weight: 900;
        font-size: clamp(16px, 4.5vw, 36px);
        line-height: 1.2;
    }

    .counter {
        width: auto;
        padding-left: 0;
        padding-right: 0;
        margin-top: auto;
        font-weight: 700;
        height: auto;
        line-height: 1;
        letter-spacing: 1px;
        position: relative;
    }

    .counter__text {
        font-size: clamp(10px, 3vw, 20px);
        padding-left: clamp(10px, 3vw, 16px);
        padding-right: clamp(10px, 3vw, 16px);
    }

    .counter__number {
        font-size: clamp(20px, 4vw, 36px);
        padding: clamp(11px, 3vw, 16px) clamp(12px, 3vw, 23px);
    }

    .vertical-left-ice {
        left: -5%;
    }

    .vertical-right-ice {
        right: -5%;
    }

    .left-ice {
        bottom: 0;
        background-size: contain;
    }

    .right-ice {
        bottom: 0;
        background-size: contain;
    }
}

@media (orientation: portrait) and (min-width: 768px) and (min-height: 1024px) {
    .counter {
        padding-left: 70px;
        margin-right: auto;
    }

    .vertical-left-ice {
        left: -30%;
    }

    .vertical-right-ice {
        right: -20%;
    }

    .left-ice {
        bottom: 1%;
    }

    .right-ice {
        bottom: 1%;
    }
}

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

    .content {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .left {
        position: absolute;
        right: 50%;
        display: flex;
        flex-direction: column;
        gap: 100px;
        top: calc(50% + 100px);
        transform: translateY(-50%);
    }

    .logo--landscape {
        display: block;
    }

    .logo {
        width: clamp(100px, 15vw, 290px);
        margin-bottom: clamp(12px, 3vw, 80px);
    }

    .girl {
        left: calc(50% + clamp(110px, 20vw, 210px));
        bottom: 0;
        width: clamp(100px, 22vw, 371px);
    }

    .logo--portrait,
    .title--portrait,
    .counter--portrait {
        display: none;
    }

    .title--landscape {
        position: absolute;
        width: 200vw;
        height: 277px;
        right: 50%;
        top: 27%;
    }

    .title__text--landscape {
        width: 550px;
        margin-left: auto;
    }

    .title__text {
        width: 100%;
        padding: 20px 320px 20px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .counter--landscape {
        position: absolute;
        right: 100%;
        bottom: 5%;
    }

    .counter__number {
        width: 70px;
    }

    .center {
        transform-origin: top center;
    }

    .vertical-left-ice {
        top: -25%;
        right: 70%;
    }

    .vertical-left-ice--isolate {
        z-index: 101 !important;
    }

    .vertical-right-ice {
        top: -25%;
        left: 80%;
    }

    .left-ice {
        bottom: -4%;
    }

    .right-ice {
        bottom: -4%;
    }
}

@media (orientation: landscape) and (min-width: 0px) and (min-height: 768px) {
    .girl {
        width: clamp(100px, 22vw, 471px);
        bottom: 0;
    }

    .left-ice {
        bottom: 2%;
    }

    .right-ice {
        bottom: 2%;
    }

    .vertical-left-ice {
        top: -55%;
        right: 70%;
    }

    .vertical-right-ice {
        top: -55%;
        left: 80%;
    }
}

@media (orientation: landscape) and (min-width: 1024px) and (min-height: 600px) {
    .logo {
        width: clamp(100px, 15vw, 290px);
        margin-bottom: clamp(12px, 3vw, 100px);
    }
}

@media (orientation: landscape) and (min-width: 1024px) and (min-height: 1024px) {
    .logo {
        width: clamp(100px, 15vw, 290px);
        margin-bottom: clamp(12px, 4vw, 100px);
    }
}

@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.03);
        transform: scale(1.03);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.03);
        transform: scale(1.03);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@-webkit-keyframes sway {
    0% {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg)
    }
    50% {
        -webkit-transform: rotate(-30deg);
        transform: rotate(-30deg)
    }
    100% {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg)
    }
}

@keyframes sway {
    0% {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg)
    }
    50% {
        -webkit-transform: rotate(-30deg);
        transform: rotate(-30deg)
    }
    100% {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg)
    }
}
