@font-face {
    font-display: swap;
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 700;
    src: url("/assets/fonts/open-sans-v43-cyrillic_latin-700.woff2")
        format("woff2");
}

:root {
    --font-family: "Open Sans", sans-serif;
    --bg-color: #000;
    --font-color: #fff;
    --accent-color: #f50;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

button {
    display: block;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    button:hover {
        filter: brightness(1.1);
        box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
        transition: filter 0.2s ease, box-shadow 0.2s ease;
    }
}

@media (hover: none) {
    button:active {
        filter: brightness(1.05);
    }
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-weight: 700;
    color: var(--font-color);
    background-color: var(--bg-color);
}

.banner {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.banner-inner {
    width: 100%;
    max-width: calc(100vh * 9 / 16);
    height: 100vh;
    margin: 0 auto;
    position: relative;

    --unit: calc(100vh / 1920); /* 1px высоты по макету*/
}

.slider {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide {
    width: 100%;
    height: calc(100% - calc(40 * var(--unit)));
    margin: calc(20 * var(--unit)) 0;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(0);
}

.slide--exit-left {
    transform: translateX(-100%);
    opacity: 0;
}

.slide--enter-right {
    transform: translateX(100%);
    opacity: 0;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide.active.slide--enter-right {
    transform: translateX(0);
    opacity: 1;
}

.slide1 {
    padding: calc(195 * var(--unit)) calc(64 * var(--unit));
}

.logo {
    width: 100%;
    height: auto;
}

.start-btn {
    width: 80%;
    margin: calc(484 * var(--unit)) auto 0;
    padding: calc(40 * var(--unit)) calc(30 * var(--unit));
    border-radius: calc(24 * var(--unit));
    font-family: inherit;
    font-size: clamp(20px, calc(80 * var(--unit)), 80px);
    line-height: 1.19;
    text-transform: uppercase;
    text-align: center;
    background-color: var(--accent-color);
    transition: opacity 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;

    @media (max-width: 360px) {
        width: fit-content;
        max-width: 100%;
    }
}

.start-btn.fade-out {
    opacity: 0;
    pointer-events: none;
}

.slide__logo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(85 * var(--unit)) calc(64 * var(--unit)) calc(40 * var(--unit));
    gap: calc(40 * var(--unit));
}

.logo-subtitle {
    width: fit-content;
    height: calc(70 * var(--unit));
}

.slide2__steps {
    position: relative;
    height: calc(1311 * var(--unit));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animate-steps {
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step,
.arrow {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
}

.animate-steps .step,
.animate-steps .arrow {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-steps .step1 { animation-delay: 0s; }
.animate-steps .step2 { animation-delay: 1s; }
.animate-steps .step3 { animation-delay: 2s; }
.animate-steps .step4 { animation-delay: 3s; }

.animate-steps .arrow1 { animation-delay: 0.5s; }
.animate-steps .arrow2 { animation-delay: 1.5s; }
.animate-steps .arrow3 { animation-delay: 2.5s; }

.step1 {
    width: calc(405 * var(--unit));
    height: calc(431 * var(--unit));
    top: 0;
    left: calc(55 * var(--unit));

    @media (max-width: 360px) {
        left: calc(20 * var(--unit));
    }
}

.step2 {
    width: calc(310 * var(--unit));
    height: calc(417 * var(--unit));
    top: calc(270 * var(--unit));
    right: calc(55 * var(--unit));

    @media (max-width: 360px) {
        right: calc(20 * var(--unit));
    }
}

.step3 {
    width: calc(339 * var(--unit));
    height: calc(431 * var(--unit));
    top: calc(660 * var(--unit));
    left: calc(55 * var(--unit));

    @media (max-width: 360px) {
        left: calc(20 * var(--unit));
    }
}

.step4 {
    width: calc(366 * var(--unit));
    height: calc(439 * var(--unit));
    bottom: 0;
    right: calc(55 * var(--unit));

    @media (max-width: 360px) {
        right: calc(20 * var(--unit));
    }
}

.step__title {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: calc(100 * var(--unit));
    margin-bottom: calc(40 * var(--unit));
    font-size: calc(40 * var(--unit));
    line-height: 1.12;
    text-transform: uppercase;
    text-align: center;
}

.arrow svg {
    display: block;
    width: 100%;
    height: 100%;

    @media (max-width: 432px) {
        display: none;
    }
}

.arrow1 {
    width: calc(161 * var(--unit));
    height: calc(135 * var(--unit));
    top: calc(303 * var(--unit));
    left: calc(500 * var(--unit));
}

.arrow2 {
    width: calc(182 * var(--unit));
    height: calc(109 * var(--unit));
    top: calc(615 * var(--unit));
    left: calc(460 * var(--unit));
}

.arrow3 {
    width: calc(187 * var(--unit));
    height: calc(100 * var(--unit));
    top: calc(900 * var(--unit));
    left: calc(430 * var(--unit));
}

.slide3 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: calc(65 * var(--unit));
    gap: calc(100 * var(--unit));
}

.slide3__items {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: space-between;
    overflow: hidden;
}

.slide3__text {
    width: calc(900 * var(--unit));
    padding: 0 calc(64 * var(--unit)) calc(60 * var(--unit)) 0;
    font-size: calc(55 * var(--unit));
    line-height: 1.09;
    text-align: right;
}

.slide3__img {
    width: calc(941 * var(--unit));
}
