@font-face {
    font-family: 'Raleway';
    src: url('fonts/Raleway-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Alice';
    src: url('fonts/Alice-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.woff2') format('woff2');
}

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

body {
    background-color: rgba(0, 0, 0, 0.9);
    font-family: Montserrat, arial, sans-serif;
    font-size: 18px;
}




.payment-wrapper {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.64);
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.payment-wrapper.hidden {
    display: none;
}
    .payment-help {
        padding: 16px;
        width: 400px;
        color: #fff;
        border-radius: 8px;
        position: absolute;
        left: 24px;
        top: 24px;
        border: 1px rgba(255, 50, 50, 0.8) solid;
        background-color: rgba(255, 255, 255, 0.5);
    }

    .payment-container-wrapper {
        padding: 64px;
        position: relative;
    }
        .payment-container-close {
            position: absolute;
            right: 0;
            top: 0;
            width: 50px;
            height: 50px;
            background-color: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: rotate(45deg);
            cursor: pointer;
        }
            .payment-container-close svg {
                fill: #ddd;
                height: 100%;
            }
        .payment-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 16px;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 20px;
            width: 620px;
            min-width: 100px;
            min-height: 300px;
            z-index: 1000;
            transition: height 0.3s;
        }


    .payment-status {
        display: block;
        position: fixed;
        top: 40px;
        right: 40px;
        border: 1px #fff solid;
        background-color: rgba(255, 0, 0, 0.8);
        color: #fff;
        z-index: 990;
        padding: 20px;
        border-radius: 16px;
    }
    .payment-status.hidden {
        display: none;
    }
    .payment-status.good {
        background-color: rgba(0, 255, 0, 0.8);
        color: #000;
    }


.layout-upper {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url("img/back-main.jpg");
    background-position: center;
    background-size: cover;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

    .layout-social {
        margin-top: 79px;
        width: 350px;
        height: 54px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }
        .social-icon.social-icon-yt {
            height: 93%;
        }
        .social-icon.social-icon-vk {
            height: 100%;
        }
        .social-icon.social-icon-tg {
            height: 100%;
        }
            .social-icon svg {
                fill: #fff;
                height: 100%;
            }

    .layout-title {
        color: white;
        text-align: center;
    }
        .layout-title h1 {
            font-family: Alice;
            font-weight: 500;
            font-size: 120px;
        }
        .layout-title h2 {
            font-weight: 200;
            font-size: 32px;
        }
    .layout-payment-form {
        position: relative;
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.04);
        width: 1000px;
        border-radius: 140px 140px 0 0;
        box-shadow: -1px -2px 1px 0px rgba(255, 255, 255, 0.24);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 100px;
        padding-bottom: 48px;
        overflow: hidden;
    }
        .payment-form-glow {
            position: absolute;
            left: 50%;
            margin-left: -40%;
            top: -200px;
            width: 80%;
            height: 150px;
            border-radius: 50%;
            box-shadow: 0 0 70px 100px rgba(255, 255, 255, 0.7);
        }
        .payment-form-inner {
            width: 740px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }
            .payment-form-inner > *:nth-child(1) {
                order: 1;
            }
            .payment-form-inner > *:nth-child(2) {
                order: 2;
            }
            .payment-form-inner > *:nth-child(3) {
                order: 3;
            }
            .payment-form-inner > *:nth-child(4) {
                order: 4;
            }
            .payment-form-inner > *:nth-child(5) {
                order: 5;
            }
            .payment-form-inner > *:nth-child(6) {
                order: 6;
            }
            .payment-form-inner > *:nth-child(7) {
                order: 7;
            }
            .payment-form-field {
                display: block;
                width: 100%;
                color: #777;
            }
                .payment-form-field-40 {
                    width: calc(40% - 10px);
                }
                .payment-form-field-50 {
                    width: calc(50% - 10px);
                }
                .payment-form-field-60 {
                    width: calc(54% - 10px);
                }
                .payment-form-field-100 {
                    width: 100%;
                }
                .payment-form-hint {
                    color: white;
                    font-size: 20px;
                    padding-left: 24px;
                    padding-top: 8px;
                }
                .payment-form-field textarea,
                .payment-form-field input[type="text"],
                .payment-form-field input[type="number"] {
                    display: block;
                    width: 100%;
                    margin-top: 8px;
                    padding: 8px 24px;
                    border: 1px #ccc solid;
                    border-radius: 20px;
                    font-size: 20px;
                    font-family: Montserrat;
                    color: rgba(0, 0, 0, 0.8);
                }
                .payment-form-field textarea::placeholder,
                .payment-form-field input::placeholder {
                    color: rgba(0, 0, 0, 0.3);
                }

                .payment-form-field textarea {
                    height: 140px;
                    padding-top: 20px;
                    resize: none;
                }
                .payment-form-field input[type="text"],
                .payment-form-field input[type="number"] {
                    height: 54px;
                }
                .payment-form-submit {
                    background: linear-gradient(to right, #73B269, #4F8C6E);
                    border: 0px white solid;
                    font-family: Montserrat;
                    font-weight: 600;
                    font-size: 20px;
                    color: white;
                    height: 60px;
                    text-transform: uppercase;
                    border-radius: 20px;
                    margin-top: 20px;
                }

                .payment-form-agree {
                    padding-left: 20px;
                    font-size: 12px;
                    display: flex;
                    align-items: flex-start;
                    justify-content: flex-start;
                    margin-top: 20px;
                }
                    .payment-form-agree,
                    .payment-form-agree a {
                        color: rgba(255, 255, 255, 0.7);
                    }

                    .payment-form-agree input[type="checkbox"] {
                        display: block;
                        height: 18px;
                        flex: 18px 0 0;
                        border-radius: 5px;
                        margin-right: 10px;
                        border: 1px rgb(255, 255, 255) dashed;
                        background-color: beige;
                        opacity: 0.8;
                    }

.layout-footer {
    text-align: center;
    position: relative;
    margin: 0;
    padding: 0;
}
    .layout-footer-back-1 {
        background-image: url("img/footer-left.png");
        position: absolute;
        left: 0;
        top: 0;
        right: 50%;
        bottom: 0;
    }
    .layout-footer-back-2 {
        background-image: url("img/footer-right.png");
        position: absolute;
        left: 50%;
        top: 0;
        right: 0;
        bottom: 0;
    }

    .layout-footer-content,
    .layout-footer-content a {
        color: rgba(255, 255, 255, 1);
    }
    .layout-footer-content {
        width: 1000px;
        margin: 0px auto;
        padding-top: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        position: relative;
    }
        .layout-social-footer {
            height: 42px;
            margin-top: 19px;
        }
        .layout-social-footer svg {
            fill: rgba(255, 255, 255, 0.5);
        }
        .layout-footer-docs {
            margin-top: 37px;
        }
        .layout-footer-docs span {
            display: inline-block;
            margin: 0 8px;
        }
        .layout-footer-logo {
            visibility: hidden;
            margin-top: 67px;
            margin-bottom: 67px;
            margin-right: 3px;
            height: 75px;
            width: 202px;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }
            .layout-footer-logo svg {
                width: 56px;
            }
            .logo-text {
                flex-basis: 100%;
            }
            .layout-footer-logo .logo-bigger {
                font-size: 26.54px;
                line-height: 18px;
                font-family: Raleway, Arial, Helvetica, sans-serif;
            }
            .layout-footer-logo .logo-bigger-1 {
                text-align: left;
            }
            .layout-footer-logo .logo-bigger-2 {
                text-align: right;
            }
            .layout-footer-logo .logo-smaller {
                text-align: right;
                font-size: 12px;
                margin-top: 6px;
            }

@media screen and (max-width: 640px) {
    .payment-help {
        padding: 16px;
        width: auto;
        font-size: 14px;
    }
    .payment-container {
        width: auto;
    }
    .payment-container-wrapper {
        padding: 52px 12px;
        position: relative;
    }
    .payment-container-close {
        right: 8px;
        width: 32px;
        height: 32px;
    }
    .layout-upper {
        height: auto;
        background-image: url("img/back-main-mobile.jpg");
        background-size: contain;
        background-position: 0 0;
        background-repeat: no-repeat;
    }

    .layout-social {
        height: 36px;
        margin-top: 44px;
    }
    .layout-title h1 {
        font-size: 60px;
        margin-top: 36px;
    }
    .layout-title h2 {
        font-size: 20px;
        margin-top: 10px;
    }

    .layout-payment-form {
        width: 100%;
        margin-top: 50px;
        border-radius: 64px 64px 0 0;
        padding-top: 40px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 20px;
    }
    .payment-form-glow {
        width: 80%;
        box-shadow: 0 0 70px 100px rgba(255, 255, 255, 0.4);
    }
    .payment-form-inner {
        width: 100%;
        gap: 10px;
    }
    .payment-form-field-40 {
        width: 100%;
    }
    .payment-form-field-50 {
        width: 100%;
    }
    .payment-form-field-60 {
        width: 100%;
    }
    .payment-form-field-100 {
        width: 100%;
    }
    .payment-form-inner > *:nth-child(3) {
        width: 40%;
    }
    .payment-form-inner > *:nth-child(4) {
        width: calc(60% - 11px);
    }
    .payment-form-inner > *:nth-child(6) {
        order: 7;
    }
    .payment-form-inner > *:nth-child(7) {
        order: 6;
    }
    .payment-form-hint {
        color: white;
        font-size: 12px;
        padding-top: 0;
        padding-left: 0;
    }
    .payment-form-field textarea,
    .payment-form-field input[type="text"],
    .payment-form-field input[type="number"] {
        margin-top: 4px;
        padding: 8px 16px;
        border: 1px #ccc solid;
        border-radius: 12px;
        font-size: 16px;
    }
    .payment-form-field input[type="text"],
    .payment-form-field input[type="number"] {
        height: 40px;
    }
    .payment-form-field textarea {
        height: 120px;
        padding-top: 20px;
    }
    .payment-form-agree {
        font-size: 10px;
        margin-top: 4px;
        padding: 0 8px;
    }
    .payment-form-submit {
        width: 70%;
        font-size: 12px;
        height: 40px;
        border-radius: 12px;
        margin: 12px auto 0;
    }
    .layout-footer-content {
        width: 100%;
        padding: 40px 16px;
        font-size: 12px;
    }
    .layout-social-footer {
        height: 30px;
        margin-top: 30px;
    }
    .layout-footer-docs {
        margin-top: 72px;
    }
    .layout-footer-docs span {
        display: none;
    }
    .layout-footer-docs a {
        display: block;
        margin-top: 8px;
    }
    .layout-footer-logo {
        height: 60px;
        width: 155px;
        margin-bottom: 0px;
    }
    .layout-footer-logo svg{
        width: 44px;
    }
    .layout-footer-logo .logo-bigger {
        font-size: 20px;
        line-height: 14.5px;
    }
    .layout-footer-logo .logo-smaller {
        font-size: 10px;
        margin-top: 2px;
    }
    .layout-footer-back-1 {
        display: none;
    }
    .layout-footer-back-2 {
        background-image: url("img/footer-mobile.png");
        background-position: center;
        background-size: cover;
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
    }
}
