* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: #f2f7fd;
    min-height: 100vh;
}

.app {
    min-height: 100vh;
    width: 100%;

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

.quiz-card {
    width: 360px;
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    width: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    line-height: 1.2;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);

    background: #0a1d66;
    box-shadow: 0px 4px 80px 0px #5b5b5b2b;
    backdrop-filter: blur(34px);
    -webkit-backdrop-filter: blur(34px);
    margin-top: 35px;
}

.quiz-card.no-border {
    border: none;
    box-shadow: none; /* если есть свечение — тоже уберёт */
    background: none;
}

.quiz-header {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 6px 0;
    background-color: #fff;
    box-shadow: 0px 4px 24px 0px #0000000d;
    width: 100%;
}

.logo {
    width: 185px; /* регулируй под макет */
    height: auto;
}
.logo img {
    width: 100%;
    height: auto;
}
.screen {
    display: flex;
    flex-direction: column;
    min-height: 500px;
    justify-content: center;
    align-items: center;
}

.title {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.85px;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #3f4a5d;
}

.subtitle {
    color: #3f4a5d;
    font-weight: 400;
    font-size: 16px;
    line-height: 141%;
    letter-spacing: -7%;
    text-align: center;
    margin-top: 20px;
}

.more {
    color: #afa8d4;
}

.hero {
    text-align: center;
    width: 100%;
    color: #3252c6;
}
.footer__subtitle {
    font-weight: 700;
    color: #3f4a5d;
    font-size: 16px;
    line-height: 23.2px;
    letter-spacing: -0.85px;
    text-align: center;
    text-transform: uppercase;
    margin-top: 20px;
}
.big-number {
    position: relative;
    display: block;
    width: 100%;

    font-size: 31px;
    font-weight: 800;
}

.gradient-text {
    position: relative;
    z-index: 1;

    background: linear-gradient(0.46deg, #86b2ff 36.49%, #ffffff 66.47%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
.phone img {
    width: 116px;
    height: auto;
}

.option-btn,
.primary-btn {
    all: unset;
    cursor: pointer;
    font-weight: 600;
    font-size: 20px;
    line-height: 114%;
    letter-spacing: 0%;
    text-align: center;
    background: linear-gradient(91.1deg, #3252c6 40.35%, #22ddda 99.01%);
    color: #fff;
    width: 100%;
    height: 50px;
    margin-top: 20px;
    overflow: hidden;
    isolation: isolate;
}

.option-btn:hover,
.primary-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(140, 160, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    outline: none;
}

.input::placeholder {
    color: #b4b0db;
}

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

.quiz-footer {
    margin-top: 14px;
    text-align: center;
    color: #4f4f4f;
    font-size: 13px;
    margin-bottom: 20px;
}

.dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d9d9d9;
}

.dot.active {
    background: #2f68c9;
}

.content {
    padding: 20px 16px 0;
    display: flex;
    justify-content: center;
}

/* скрыта по умолчанию */
.final-form {
    display: none;
    width: 100%;
}

/* чтобы выглядело как шаг квиза */
.final-form_inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeIn 0.3s ease;
}

/* заголовок */
.final-form_title {
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    leading-trim: NONE;
    letter-spacing: -0.85px;
    text-align: center;
    text-transform: uppercase;
    color: #2f68c9;
    margin: 0;
    padding: 0;
}

/* подзаголовок */
.final-form_subtitle {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

/* текст */
.final-form_text {
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 141%;
    letter-spacing: -4%;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* форма */
.reg-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* группа */
.reg-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reg-form__group span {
    font-weight: 700;
    font-style: Bold;
    font-size: 14px;
    color: #3f4a5d;
    line-height: 20px;
    letter-spacing: 0.53px;
}

/* инпуты */
.reg-form__group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #3f4a5d80;

    color: #727272;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;

    outline: none;
    transition: 0.2s;
}

.reg-form__group input::placeholder {
    color: #727272;
}

/* фокус */
.reg-form__group input:focus {
    border-color: #8c63ff;
    box-shadow: 0 0 10px rgba(140, 99, 255, 0.4);
}

/* кнопка */
.reg-form__btn {
    margin-top: 6px;
    padding: 14px;
    border: none;

    background: linear-gradient(91.1deg, #3252c6 40.35%, #22ddda 99.01%);

    color: #fff;
    font-weight: 700;
    cursor: pointer;

    transition: 0.2s;

    font-family: Montserrat;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 17px;

    line-height: 113.99999999999999%;
    letter-spacing: 0%;
    text-align: center;
}

.reg-form__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* анимация */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1; /* квадрат */

    margin: 0 auto;

    border-radius: 18px;
    margin-top: 15px;
}

.quiz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz {
    border-radius: 10px;
}

.quiz-step {
    padding: 10px 20px;
    border-radius: 10px;
}

.quiz-title {
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 26.2px;
    letter-spacing: -0.85px;
    text-align: center;
    text-transform: uppercase;
}

.quiz-subtitle {
    font-weight: 400;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 141%;
    letter-spacing: -4%;
    text-align: center;
    padding-top: 15px;
    margin: 0;
}

.quiz-button {
    box-sizing: border-box;
    padding: 10px 20px;
    border-radius: 10px;
    width: 100%;
    font-weight: 500;
    font-style: Medium;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 20px;
    letter-spacing: 0.53px;
    margin-top: 12px;
}

.quiz-image.img-small {
    max-width: 100%;
    object-fit: contain;
    border-radius: 1px !important;
    aspect-ratio: auto;
}

.quiz-image.img-small img {
    border-radius: 0px;
}

.final-form {
    padding: 10px 20px;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(168 168 168 / 70%);
    z-index: 4000;
}

#loader img {
    position: absolute;
    width: 130px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ОСНОВА КНОПКИ */

/* БЛИК */
.primary-btn.intro-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 50%;
    height: 100%;
    pointer-events: none;

    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);

    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

/* ЧТОБЫ ТЕКСТ БЫЛ ПОВЕРХ */
.primary-btn.intro-btn span,
.primary-btn.intro-btn {
    position: relative;
    z-index: 2;
}

/* АНИМАЦИЯ ГРАДИЕНТА */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* АНИМАЦИЯ БЛИКА */
@keyframes shine {
    0% {
        left: -120%;
    }
    100% {
        left: 140%;
    }
}

/* HOVER */
.primary-btn.intro-btn:hover {
    filter: brightness(1.08);
}

/* НАЖАТИЕ */
.primary-btn.intro-btn:active {
    transform: scale(0.95);
}

/* ЕСЛИ ИСПОЛЬЗУЕШЬ JS КЛАСС */
.primary-btn.intro-btn.--clicked {
    animation: buttonPress 0.22s ease;
}
.--clicked {
    animation: buttonPress 0.22s ease;
}
@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(0.94);
    }
    100% {
        transform: scale(1);
    }
}

.error {
    color: red !important;
}

.quiz-card.quiz-active {
    box-shadow: 0px 4px 80px 0px #5b5b5b2b;
}

.no-ebnay-gradient {
    background: none !important;
    border-radius: 0 !important;
    border: 1px solid #3f4a5d80 !important;
    color: #3f4a5d;
}

.universal-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 3000 !important;
    overflow: hidden !important;
    color: black;
}

.universal-modal-content {
    background-color: #ffffff !important;
    padding: 32px 24px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    text-align: center !important;
    max-width: 400px !important;
    position: relative !important;
    margin: 0 10px !important;
    border: none !important;
}

.universal-modal-content p {
    line-height: 140% !important;
    margin: 10px 0 0 !important;
}

.universal-modal-close {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    cursor: pointer !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    color: #777777 !important;
}

.universal-modal-close:hover {
    color: #333333 !important;
}

.universal-modal-close::before,
.universal-modal-close::after {
    content: "" !important;
    position: absolute !important;
    width: 16px !important;
    height: 2px !important;
    background-color: #777777 !important;
}

.universal-modal-close::before {
    transform: rotate(45deg) !important;
}

.universal-modal-close::after {
    transform: rotate(-45deg) !important;
}

.universal-modal-open {
    overflow: hidden !important;
}
.final-form_text-footer {
    color: #3f4a5d;
    font-size: 9px;
    font-weight: bold;
    text-align: center;
}
