@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

*,
::after,
::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 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;
}

@media (min-width: 700px) {
    body {
        background-color: #ddd;
    }
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: block;
    background-image: url(../img/bg.jpg);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: cover;
    opacity: 0.3;
}

@media (min-width: 700px) {
    body::after {
        display: none;
    }
}

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

@media (min-width: 700px) {
    .container {
        width: 700px;
        margin: 0 auto;
        background-color: #fff;
        background-image: url(../img/bg-hero-large.png);
        background-position: -320px 0;
        background-size: 1400px auto;
        background-repeat: no-repeat;
    }
}

::selection {
    background-color: #74d138;
    color: #fff;
}

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

a:hover:not(.form__btn) {
    color: #74d138;
}

/* header */

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

.header__logo {
    width: 100px;
    margin-right: 10px;
}

/* main */

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

@media (min-width: 700px) {
    .main {
        align-items: flex-start;
    }
}

.main__slogan {
    margin-bottom: 20px;
    font-size: 26px;
    text-align: center;
}

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

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

.price {
    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: #74d138;
}

.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-color: transparent;
    background-image: linear-gradient(135deg,
            #7cec34 0%,
            #7cec34 10%,
            #00a9e8 30%,
            #00a9e8 40%,
            #00a9e8 60%,
            #00a9e8 70%,
            #7cec34 90%,
            #7cec34 100%);
    background-repeat: repeat-x;
    background-size: 250%;
    background-position: 0 center;
    transition: background-position 0.3s ease-in-out;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

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

.form__btn:not([disabled]):hover {
    background-position: 100% center;
}

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

.form__agreement::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: block;
    width: 30px;
    height: 30px;
    border: 1px solid #333;
    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-image: linear-gradient(135deg,
            #7cec34 0%,
            #7cec34 10%,
            #00a9e8 30%,
            #00a9e8 40%,
            #00a9e8 60%,
            #00a9e8 70%,
            #7cec34 90%,
            #7cec34 100%);
    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;
}

/* 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;
}