body.start-window__loading {
    opacity: 0;
    visibility: hidden;
}

body.overflow-h {
    overflow: hidden;
    background-image: none;
}

body.start-window__top {
    background-position: 50% 100vh;
}

body.overflow-h .layout {
    height: 100vh;
    overflow: auto;
}

body.overflow-h header:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: var(--theme-bg1);
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
}

body.start-window__show header {
    min-height: 236px;
}

body.start-window__show {
    transition: 1s background-position ease;
}

body:not(.no-transition) .layout,
body:not(.no-transition) .start-window  {
    transition: 1s transform ease;
}

body .sharing_container {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}
body.overflow-h .sharing_container {
    opacity: 0;
    transition: none;
}

body.overflow-h .start-window__arrow {
    opacity: 0;
    transition: none;
}

.layout.start-window__show {
    transform: translateY(100vh);
}

body.overflow-h .start-window__overlay {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 99;
    display: block;
}

.start-window__overlay {
    display: none;
}

.start-window {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 100;
    transform: translateY(0);
}

.start-window.hidden {
    transform: translateY(-100vh);
}

.start-window__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("https://wf.cdn.gmru.net/static/wf.mail.ru/img/main/content/index/start-screen/bg.webp");
    background-size: cover;
    background-position: 50% 50%;
    opacity: 0.5;
}

.start-window__close {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50px;
    right: 50px;
    border: 1px #EB3323 solid;
    background: transparent;
    cursor: pointer;
    transition: .2s background-color ease;
}

.start-window__close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.start-window__close:before {
    content: "";
    position: absolute;
    width: 17px;
    height: 17px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url("https://wf.cdn.gmru.net/static/wf.mail.ru/img/main/content/index/start-screen/close.svg");
    background-size: contain;
}

.start-window__arrow {
    position: fixed;
    width: 60px;
    height: 60px;
    top: 70px;
    right: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px #EB3323 solid;
    cursor: pointer;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease-in, .2s background-color ease;
}

.start-window__arrow:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.start-window__arrow:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 11px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleY(-1);
    background-image: url("https://wf.cdn.gmru.net/static/wf.mail.ru/img/main/content/index/start-screen/arrow.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.start-window__scroll {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    height: 148px;
    gap: 5px;
    cursor: pointer;
}

.start-window__scroll span {
    position: relative;
    font-family: 'Quantico';
    font-size: 13px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: bold;
    color: #fff;
    opacity: 0.5;
}

.start-window__scroll .icon {
    position: relative;
    width: 40px;
    height: 24px;
    background-image: url("https://wf.cdn.gmru.net/static/wf.mail.ru/img/main/content/index/start-screen/scroll.svg");
    background-size: contain;
    transition: .2s transform ease
}

.start-window__scroll:hover .icon {
   transform: translateY(5px);
}

.start-window__content {
    position: relative;
    display: flex;
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.start-window__logo {
    position: relative;
    width: 518px;
    height: 80px;
    background: transparent center center / contain no-repeat;
    background-image: var(--theme-logo2);
}

.start-window__title {
    position: relative;
    font-family: 'Quantico';
    font-size: 30px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.start-window__text {
    position: relative;
    font-family: 'Plumb';
    font-size: 18px;
    line-height: normal;
    font-weight: normal;
    color: #fff;
    text-align: center;
}

.start-window__btns {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

@media screen and (max-width: 720px) {
    body.start-window__show header {
        min-height: auto;
    }

    .start-window__bg {
        background-position: 58% 50%;
    }

    .start-window__close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .start-window__arrow {
        width: 40px;
        height: 40px;
        top: 70px;
        right: 10px;
    }

    .start-window__scroll {
        height: 88px;
    }

    .start-window__content {
        gap: 20px;
        padding-bottom: 40px;
    }

    .start-window__logo {
        width: 280px;
        height: 44px;
    }

    .start-window__title {
        font-size: 20px;
    }

    .start-window__text {
        font-size: 15px;
    }

    .start-window__btns {
        flex-direction: column;
        gap: 20px;
    }

   .start-window__btns .wf__button {
       min-width: 286px;
       height: 60px;
       line-height: 60px;
    }
}

@media (max-width: 720px) and (orientation: landscape) {
    .start-window__close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .start-window__arrow {
        width: 40px;
        height: 40px;
        top: 70px;
        right: 10px;
    }

    .start-window__scroll {
        height: 88px;
    }

    .start-window__content {
        gap: 20px;
        padding-bottom: 40px;
    }

    .start-window__logo {
        width: 280px;
        height: 44px;
    }

    .start-window__title {
        font-size: 20px;
    }

    .start-window__text {
        font-size: 15px;
    }

    .start-window__btns {
        flex-direction: row;
        gap: 20px;
    }

    .start-window__btns .wf__button {
        min-width: auto;
        height: 50px;
        line-height: 50px;
    }
}