* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f8f9fa;
    color: #343a40;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Arial,
        sans-serif;
    font-size: 22px;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.btn {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Arial,
        sans-serif;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 80px;
    min-width: 194px;
    max-width: 100%;
    padding: 5px 30px;
    border: none;
    border-radius: 40px;
    color: #f8f9fa;
    font-weight: 700;
    font-size: 24px;
    line-height: normal;
    text-transform: uppercase;
    transition: filter 0.2s ease-in-out;
}

.btn-sec {
    background: rgba(73, 80, 87, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #343a40;
}

.btn:hover {
    filter: brightness(0.9);
}

.step-title {
    color: #343a40;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 5px;
    text-transform: uppercase;
}

.step-subtitle {
    color: #495057;
    font-size: 20px;
    margin: 0;
}

.step-subtitle + .step-subtitle {
    margin-top: 8px;
}

.btns-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 30px auto 0;
    max-width: 336px;
}

.layout {
    display: flex;
    align-items: stretch;
    min-height: 100%;
    position: relative;
}

.picture-block {
    border-radius: 8px;
    flex: 1 1 100%;
    height: 50vh;
    max-height: 45%;
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 20px 0;
    display: none;
}

.bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
}

.bg::after {
    background: linear-gradient(
        to bottom,
        rgba(52, 58, 64, 0.55),
        rgba(33, 37, 41, 0.85) 62%
    );
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.bg-stage {
    width: 100%;
    animation: bg 60s linear infinite;
}

.bg-stage img {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.main-block {
    max-width: 470px;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.steps-wrap {
    flex: 1 0 auto;
    padding: 5vh 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100vh;
}

.steps {
    text-align: center;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    max-height: 800px;
}

.steps-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 auto;
    width: 100%;
    min-height: 100%;
}

.step-item {
    position: relative;
    z-index: 9;
    display: none;
    width: 100%;
}

.step-item.is-active {
    display: block;
}

@media (max-width: 1023px), (max-width: 1599px) and (max-height: 800px) {
    body {
        font-size: 17px;
    }

    .btn {
        font-size: 18px;
        height: 56px;
        min-width: 130px;
    }

    .step-title {
        font-size: 40px;
    }
}

@keyframes bg {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-33.333%);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
