@font-face {
    font-family: 'Gilroy';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('fonts/Gilroy-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Gilroy';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('fonts/Gilroy-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Gilroy';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('fonts/Gilroy-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Gilroy';
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    src: url('fonts/Gilroy-ExtraBold.otf') format('opentype');
}

@font-face {
    font-family: 'Gilroy';
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    src: url('fonts/Gilroy-Heavy.ttf') format('truetype');
}

:root {
    --color-bg: #1a4fd6;
    --color-text-blue: #1048b8;
    --color-yellow-title: #f8d870;
    --color-yellow-label: #f8e898;
    --color-yellow-circle: #f8eaae;
    --color-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    font-size: min(calc(100vw / 12.8), 100px);
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    margin: 0;
    overflow-x: hidden;
    background: var(--color-bg);
    font-family: 'Gilroy', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    color: var(--color-white);
    text-align: center;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.page {
    position: relative;
    max-width: 12.8rem;
    min-height: 36.45rem;

    margin: 0 auto;
    padding-top: 0.36rem;
    padding-bottom: 8.4rem;

    overflow: hidden;
    background: url('images/background.jpg') center top / cover no-repeat var(--color-bg);
}

@media (min-width: 1281px) {
    body {
        background-color: #2f4fb8;
        background-image: linear-gradient(180deg,
            #71d4fe 0%, #5da7fc 10%, #3977fc 20%, #3071ef 30%, #2861d4 40%,
            #2a5ccb 50%, #2d74de 60%, #2976de 70%, #2b64cc 80%, #324baf 90%, #2f4fb8 100%);
        background-repeat: no-repeat;
        background-size: 100% 36.45rem;
    }
}

.page__logo {
    width: 10.46rem;
    margin: 0 auto;
}

.page__prize {
    width: 10.09rem;
    margin: -0.29rem auto 0;
}

.page__intro {
    margin: 0.55rem 0 0;
    font-size: 0.435rem;
    line-height: 0.52rem;
    font-weight: 700;
}

.steps {
    list-style: none;
    width: 8.3rem;
    margin: 0.26rem auto 0;
    padding: 0;
    text-align: left;
}

.steps__item {
    display: flex;
    align-items: center;
    min-height: 0.7rem;
}

.steps__item+.steps__item {
    margin-top: 0.25rem;
}

.steps__number {
    flex: 0 0 0.7rem;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.2rem;
    border-radius: 50%;
    background: var(--color-yellow-circle);
    box-shadow:
        0 0 0 0.03rem rgba(255, 255, 255, 0.35),
        0 0.03rem 0.08rem rgba(0, 20, 80, 0.45);
    color: var(--color-text-blue);
    font-size: 0.42rem;
    line-height: 0.7rem;
    font-weight: 700;
    text-align: center;
}

.steps__text {
    margin: 0;
    font-size: 0.283rem;
    line-height: 0.28rem;
    white-space: nowrap;

}

.steps__text strong {
    color: var(--color-yellow-label);
    font-weight: 800;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 0.3rem;
    border-radius: 0.68rem;
    background: url('images/button.png') center / 100% 100% no-repeat;
    box-shadow: 0 0.06rem 0.14rem rgba(0, 0, 0, 0.3);
    color: var(--color-text-blue);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.15s ease, filter 0.15s ease;
}

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

.btn:active {
    transform: translateY(0.02rem);
}

.btn--join {
    width: 9.85rem;
    height: 1.35rem;
    margin-top: 0.39rem;
    font-size: 0.645rem;
    letter-spacing: -0.01em;
}

.btn--signup {
    width: 9.9rem;
    height: 1.63rem;
    margin-top: 0.5rem;
    padding-top: 0.18rem;
    border-radius: 0.8rem;
    font-size: 0.516rem;
}

.btn--rules {
    width: 7.25rem;
    height: 1.18rem;
    margin-top: 0.79rem;
    padding-top: 0.06rem;
    border-radius: 0.59rem;
    font-size: 0.378rem;
    line-height: 0.42rem;
}

.club {
    margin-top: 0.59rem;
}

.club__title {
    margin: 0;
}

.club__title img {
    width: 10.06rem;
    margin: 0 auto;
}

.club__text {
    margin: 0.23rem 0 0;
    font-size: 0.483rem;
    line-height: 0.515rem;
    font-weight: 500;
}

.dates {
    margin: 0.68rem 0 0;
    font-size: 0.70rem;
    line-height: 0.79rem;
    font-weight: 700;
}

.legal-notice {
    margin: 0.41rem 0 0;
    font-size: 0.204rem;
    line-height: 0.245rem;
    font-weight: 500;
}

.page__hero-man {
    position: absolute;
    left: 50%;
    bottom: -0.3rem;
    width: 12.37rem;
    margin-left: -6.2rem;
    pointer-events: none;
}

.page__hero-man img {
    width: 100%;
}

@media (max-width: 640px) {
    html {
        font-size: 16px;
    }

    .page {
        max-width: none;
        min-height: 0;
        padding: 40px 16px 70vw;
        background-size: cover;
        background-position: center top;
    }

    .page__logo {
        width: 82%;
        margin-top: 0;
    }

    .page__prize {
        width: 80%;
        margin-top: 8px;
    }

    .page__intro {
        margin-top: 26px;
        font-size: 20px;
        line-height: 26px;
    }

    .steps {
        width: 100%;
        max-width: 420px;
        margin-top: 22px;
    }

    .steps__item+.steps__item {
        margin-top: 16px;
    }

    .steps__number {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 24px;
        line-height: 40px;
    }

    .steps__text {
        font-size: 15px;
        line-height: 18px;
        white-space: normal;
    }

    .desktop-break {
        display: none;
    }

    .btn {
        padding: 0 16px;
        border-radius: 34px;
    }

    .btn--join {
        width: 100%;
        max-width: 420px;
        height: 72px;
        margin-top: 26px;
        font-size: 28px;
    }

    .btn--signup {
        width: 100%;
        max-width: 420px;
        height: 64px;
        margin-top: 26px;
        font-size: 18px;
    }

    .btn--rules {
        width: 88%;
        max-width: 360px;
        height: 58px;
        margin-top: 30px;
        border-radius: 24px;
        font-size: 15px;
        line-height: 18px;
    }

    .club {
        margin-top: 26px;
    }

    .club__title img {
        width: 100%;
    }

    .club__text {
        margin-top: 20px;
        font-size: 20px;
        line-height: 24px;
    }

    .dates {
        margin-top: 30px;
        font-size: 27px;
        line-height: 30px;
    }

    .legal-notice {
        margin-top: 20px;
        font-size: 12px;
        line-height: 15px;
    }

    .page__hero-man {
        left: 0;
        bottom: -4vw;
        width: 100%;
        margin-left: 0;
    }
}