@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*,
::after,
::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

img {
    width: 100%;
    height: auto;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: #000;
}

body::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 100%;
    height: 100%;
    background-image: url(../img/bg-sample.webp);
    background-position: center;
    background-size: 1600px auto;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

@media (min-width: 700px) {
    .container {
        width: 700px;
        margin: 0 auto;
    }
}

::selection {
    background-color: #fcdc02;
    color: #000;
}

.visuallyhidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

/* header */

.header {
    display: flex;
    align-items: center;
    padding: 20px;
}

.header__logo {
    margin-right: 10px;
    font-size: 30px;
    font-weight: 700;
}

.lg-bg {
    background: linear-gradient(120deg, #5442ff, #d426ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* main */

.main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 0 20px;
}

.main__slogan {
    margin-bottom: 14px;
    font-size: 26px;
    color: #fff;
    text-align: center;
}

@media (min-width: 700px) {
    .main__slogan {
        font-size: 32px;
    }
}

@media (max-height: 620px) {
    .main__slogan {
        display: none;
    }
}

.price {
    color: #fff;
    text-align: center;
}

/* form */

.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.form--pin {
    display: none;
}

.form__input {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    font-size: 16px;
    border: 1px solid #333;
    border-radius: 5px;
    text-align: center;
}

.form__input:focus {
    outline: none;
    border-color: #d426ff;
}

.form__btn {
    display: block;
    padding: 16px 30px;
    margin-top: 10px;
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    background-image: linear-gradient(120deg, #5442ff, #d426ff);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.1s ease-in;
}

.form__btn[disabled] {
    background-color: #aaa;
    background-image: none;
    cursor: default;
}

.form__agreement {
    position: relative;
    align-self: flex-start;
    display: inline-block;
    padding-left: 40px;
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.2;
    color: #fff;
    cursor: pointer;
}

.form__agreement::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: block;
    width: 30px;
    height: 30px;
    border: 1px solid #aaa;
    border-radius: 5px;
}

.form__agreement::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) scale(0);
    display: block;
    width: 20px;
    height: 20px;
    margin-left: 5px;
    background-color: #aaa;
    border-radius: 3px;
    opacity: 0;
    transition: all 0.1s ease-in-out;
}

.form__agreement-checkbox:checked+.form__agreement::after {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.form__agreement a {
    color: inherit;
}

/* footer */

.footer {
    padding: 10px;
    font-size: 12px;
    color: #fff;
    background-color: #000;
}

.footer__line,
.footer__list {
    max-width: 400px;
    margin: 0 auto;
}

.footer__line+.footer__line,
.footer__list {
    margin-top: 10px;
}

.footer__list {
    list-style: none;
}

.footer__link {
    color: #fff;
    text-decoration: underline;
}

.loader {
    position: absolute;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.loader--active {
    display: flex;
}

.loader__icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.loader__text {
    padding: 0 5px;
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.error {
    font-weight: bold;
    color: red;
}