@font-face {
    font-family: 'Golos';
    src: url('Golos/golos-ui_vf.woff2') format('woff2'),
    url('Golos/golos-ui_vf.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LeksaSans';
    src: url('LeksaSans/leksa-sans_bold.woff2') format('woff2'),
    url('LeksaSans/leksa-sans_bold.woff') format('woff'),
    url('LeksaSans/leksa-sans_bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body {
    background-color: #F2F3F5;
    margin: 0;
    font-family: 'Golos', sans-serif;
}

p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'LeksaSans', sans-serif;
    font-weight: 700;
    color: #041839;
}

h2 {
    font-size: 24px;
    line-height: 29px;
}

h3 {
    font-size: 20px;
    line-height: 25px;
}


p {
    font-family: 'Golos', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    color: #364661;
}

.header {
    background-color: #ffffff;
    border-bottom: 1px solid #E1E3E7;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 16px;
}

.content {
    display: flex;
    justify-content: center;
    padding: 40px 80px 80px 80px;
    position: relative;
}

.content::after {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    background: rgba(255, 255, 255, 0.2);
    height: calc(100vh - 60px);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    z-index: 10;
}

.content.content-loading::after {
    opacity: 1;
    visibility: visible;
}

.content-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;

    background-image: url("spinner.svg");
    background-size: contain;
    background-repeat: no-repeat;

    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;

    z-index: 11;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.card {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    width: 100%;
    max-width: 640px;
    border-radius: 24px;
    gap: 40px;
    box-sizing: border-box;
}

.heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 24px;

}

.rules {
    display: flex;
    flex-direction: column;
    gap: 24px;

    .checkboxForm {
        display: flex;
        flex-direction: column;
        gap: 16px;

        .checkboxHrefs {
            padding-left: 28px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
    }

}

.input-group {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;

    input {
        width: 100%;
        padding: 21px 10px 5px 12px;
        background-color: #F2F3F5;
        border: 1px solid #F2F3F5;
        border-radius: 8px;
        font-size: 15px;
        outline: none;
        box-sizing: border-box;
    }

    /* Начальное положение лейбла (имитирует плейсхолдер) */
    label {
        position: absolute;
        left: 10px;
        top: 12px;
        color: #364661;
        font-size: 15px;
        pointer-events: none;
        transition: all 0.2s ease;
    }

    input:focus + label,
    input:not(:placeholder-shown) + label {
        top: 5px;
        font-size: 13px;
    }

    input:focus,
    input:not(:placeholder-shown) {
        background-color: #FFFFFF;
        border-color: #1D4CC4;
    }


    input.error {
        border-color: #CF1332;
    }

    input.error:focus {
        border-color: #CF1332;
    }

    .input-error {
        color: #A80727;
        font-size: 13px;
        min-height: 18px;
    }
}

.checkboxContainer {
    display: flex;
    gap: 8px;
    align-items: flex-start;

    input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;

        flex-shrink: 0;
        width: 20px;
        height: 20px;
        cursor: pointer;

        background-color: #ffffff;
        border: 2px solid #E1E3E7;
        border-radius: 4px;

        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        position: relative;
    }

    input[type="checkbox"]:checked {
        background-color: #10349E;
        border-color: #10349E;

        background-image: url("data:image/svg+xml;utf8,<svg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M4.78562 7.959L7.2292 11.5416L12.6645 1.97314C12.6645 1.97314 13.1831 2.00607 13.5921 2.2492C14.0012 2.49233 14.2615 2.90422 14.2615 2.90422L8.22403 13.5027L6.55473 13.8281L3.26306 9.00982C3.26306 9.00982 3.4212 8.62113 3.86082 8.29678C4.30044 7.97242 4.78562 7.959 4.78562 7.959Z' fill='white' fill-opacity='0.9'/></svg>");
        background-repeat: no-repeat;
        background-position: center;
    }

    input[type="checkbox"]:hover {
        border-color: #10349E;
    }

    label {
        font-family: 'Golos Text VF', sans-serif;
        font-size: 13px;
        font-weight: 400;
        line-height: 18px;
        color: #041839;
        cursor: pointer;
        margin-top: 5px;
    }

    a {
        color: #10349E;
        text-decoration: none;
        cursor: pointer;
    }
}


.alert {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    background-color: #F2F7FC;
    border-left: 3px solid #1D4CC4;
    padding: 16px;

    p {
        color: #041839;
    }
}

.buttonPrimary {
    background-color: #10349E;
    width: 100%;
    padding: 16px 24px;
    border-radius: 8px;
    cursor: pointer;
    border: none;

    p {
        font-weight: 500;
        color: #FFFFFF;
    }

}
.buttonPrimary:disabled {
    background-color: #04183900;
    border: 1px solid #E1E3E7;
    cursor: default; /* добавляет иконку запрета при наведении */
    p {
        font-weight: 500;
        color: #AAB0BC;
    }
}


/* animation */
.fade {
    animation: fade 0.3s ease;
}
@keyframes fade {
    from { opacity:0; transform: translateY(10px); }
    to { opacity:1; transform: translateY(0); }
}

.sendCode {
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    align-items: center;

    p {
        font-weight: 700;
    }
}

#time {
    color: #10349E;
}

#resendBtn {
    color: #10349E;
    cursor: pointer;
}

.smsCard {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    width: 100%;
    max-width: 520px;
    border-radius: 24px;
    gap: 40px;
    box-sizing: border-box;
}

.smsCode {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap: 40px;
}

.codeInputs {
    display: flex;
    gap: 11px;
    justify-content: center;
}

.codeInputs input {
    width: 100%;
    height: 64px;
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.codeInputs input:hover,
.codeInputs input:focus {
    background-color: #FFFFFF;
    border-color: #1D4CC4;
}


@media (max-width: 639px) {
    body {
        background-color: #ffffff;
    }

    .content {
        padding: 0;
    }

    .card {
        padding: 40px 16px;
        border-radius: 0;
        width: 100%;
    }
    .smsCard {
        padding: 40px 16px;
        border-radius: 0;
        width: 100%;
    }
}
.buttonSecondary {
    background-color: #F2F3F5;
    width: 100%;
    padding: 16px 24px;
    border-radius: 8px;
    cursor: pointer;

    p {
        font-weight: 500;
        color: #10349E;
    }

}

input.error {
    border-color: #CF1332;
}

input.error:focus {
    border-color: #CF1332;
}

.input-error {
    color: #A80727;
    font-size: 15px;
    min-height: 22px;
    display: flex;
    justify-content: center;
}