body {
    line-height: 1.5;
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    font-family: "Montserrat", system-ui, sans-serif;
    background: #fff;
    color: #000;
}
.--accent {
    color: #f14635;
}
.--clicked {
    color: white !important;
    background-color: #f5584a !important;
    scale: 0.9;
}
.main {
    padding: 50px 0;
}
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}
.title {
    font-weight: 800;
    font-size: 25px;
    line-height: 120%;
}
.subtitle {
    font-weight: 400;
    font-size: 20px;
    line-height: 156%;
}

/* header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-counter {
    background-color: #c50000;
    text-align: center;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    color: #ffffff;
    padding: 5px 0;
}
.header--primary {
    box-shadow: 0px 4px 10px 0px #00000017;
    /* display: none; */
    background: white;
}
.header--primary_logo {
    margin: 0 auto;
    max-width: 200px;
    /* padding: 14px 0; */
}
.header--primary_logo img {
    width: 100%;
    height: auto;
}

/* first-screen */
.first-screen_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 53px;
}

.first-screen {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
.first-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}
.first-screen.fade-in {
    opacity: 1;
}

.first-screen_title {
    font-weight: 800;
    font-size: 36px;
    line-height: 1.2;
    text-transform: uppercase;
}
.first-screen_subtitle {
    margin-top: 21px;
}
.first-screen_img-content {
    max-width: 700px;
    width: 100%;
}

.first-screen_text-content {
    max-width: 450px;
}
.first-screen_button {
    background-color: #f14635;
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    width: 100%;
    margin-top: 32px;
    transition: 0.3s all ease;
    text-transform: uppercase;
}

/* quiz */
.quiz {
    display: none;
}
.quiz-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 53px;
}
.quiz-item_img-content {
    max-width: 608px;
    width: 100%;
    flex-shrink: 0;
}

.quiz-item_answer {
    background-color: #f14635;
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    width: 100%;
    transition: 0.3s all ease;
}
.quiz-item_answer + .quiz-item_answer {
    margin-top: 10px;
}
.quiz-item_answers {
    margin-top: 32px;
}

.quiz-item {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
.quiz-item.fade-out {
    opacity: 0;
    pointer-events: none;
}
.quiz-item.fade-in {
    opacity: 1;
}

/* bottom bar */

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    padding: 19px 0 26px 0;
    box-shadow: 0px -4px 10px 0px #00000017;
    background-color: #ffffff;
}
.bottom-bar_dots-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}
.bottom-bar_dot {
    width: 8px;
    height: 8px;
    background-color: #d9d9d9;
    border-radius: 50%;
    margin: 0 5px;
    will-change: background-color;
    transition: background-color 0.3s ease;
}
.dot--active {
    background-color: #f14635;
}

/* form */
.final-form {
    display: none;
}
.final-form_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 522px;
    margin: 0 auto;
}
.final-form_title {
    margin-top: 20px;
}
.final-form_text {
    font-size: 18px;
    margin-top: 10px;
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    width: 100%;
    margin-top: 20px;
}
.reg-form__group {
    display: flex;
    flex-direction: column;
    position: relative;
}
.reg-form__group span {
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
}
.reg-form__group input {
    padding: 12px 16px;
    margin-bottom: 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    /* border-radius: 8px; */
}
.reg-form__btn {
    margin-top: 16px;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: #f14635;

    /* border-radius: 30px; */
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}
.reg-form__btn:hover {
    background: #f15041;
    color: #ffffff;
}
.error {
    color: red !important;
    font-size: 0.7rem !important;
    margin-top: 0px;
    position: absolute;
    bottom: -15px;
}
/* loader  */
#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%);
}

/* media queries */
@media screen and (max-width: 992px) {
    .title {
        font-size: 20px;
    }
    .subtitle {
        font-size: 16px;
    }
    .main {
        padding: 24px 0 100px 0;
    }
    .container {
        padding: 0 16px;
    }
    .header--primary_logo {
        /*max-width: 120px;*/
        /* padding: 14px 0; */
    }
    .first-screen_inner {
        flex-direction: column-reverse;
        gap: 19px;
    }
    .first-screen_button {
        margin-top: 17px;
    }
    .first-screen_title {
        font-size: 22px;
        text-align: center;
    }
    .first-screen_subtitle {
        margin-top: 17px;
    }
    .first-screen_text-content {
        max-width: 100%;
        width: 100%;
    }
    .quiz-item {
        flex-direction: column-reverse;
        align-items: center;
        gap: 19px;
    }
    .quiz-item_answers {
        margin-top: 17px;
    }
    .bottom-bar {
        padding: 10px 0;
    }
}

/* modal */

.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;
}

.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;
    color: #1c1c1c;
}

.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;
}

.reg-form__btn {
    margin-top: 8px;
}

.loader-screen {
    display: none; /* ← обязательно */

    position: fixed;
    inset: 0;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    background: #fff;
    z-index: 9999;

    transition: opacity 0.5s ease;
}
.loader-screen_content {
    text-align: center;
    color: white;
}

.loader-spinner {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.loader-messages {
    color: black;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 60px;
}

.loader-message {
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.6s ease-in;
    white-space: nowrap;
}

.quiz-loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-right-color: #f14635;
    animation: l15 1s infinite linear;
}
.quiz-loader::before,
.quiz-loader::after {
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
    animation: l15 2s infinite;
}
.quiz-loader::after {
    margin: 8px;
    animation-duration: 3s;
}
@keyframes l15 {
    100% {
        transform: rotate(1turn);
    }
}
