body {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    background-color: rgb(240, 240, 240);
}

.body-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-x: hidden;
}

.main-button-container {
    background: linear-gradient(180deg, hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, .55) 40%, hsla(0, 0%, 100%, .8) 87%);
    z-index: 1;
    position: fixed;
    width: 100%;
    padding: 35px 0 15px;
    bottom: 0;
    display: flex;
    justify-content: center;
}

.main-button {
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
    color: #ffffff;
    border-color: transparent;
    font-size: 20px;
    font-weight: 600;
    position: static;
    width: auto;
    height: 56px;
    min-height: 43px;
    min-width: 300px;
    max-width: 100%;
    border-radius: 28px;
    box-shadow: 0 3px 15px 0 rgba(58, 123, 213, 0.4);
    transition: all 0.3s ease;
    border: none;
}

.main-button:hover {
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px 0 rgba(58, 123, 213, 0.5);
}

.landing-container {
    max-width: 880px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    width: 100%;
}

@media (max-width: 818px) {
    .landing-container {
        max-width: 500px;
    }
}

.landing-block {
    width: 100%;
    padding: 15px 0;
}

.landing-block_text {
    text-align: center;
}

.landing-block_text h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.landing-block_text h2{
    padding: 0 20px;
    font-size: 24px;
}

.landing-block_text h1,h2,h3,p{
    padding: 0 20px;
}

.landing-block_text p {
    font-size: 18px;
    line-height: 26px;
}

.landing-block_text ul {
    font-size: 18px;
    line-height: 26px;
    margin: 0;
    margin-left: 1.4rem;
    padding: 0;
}

.landing-block_img {
    max-width: 752px;
}

.landing-block_img img {
    border-radius: 10px;
    width: 100%;
}

/* footer */

.footer_section {
    padding: 25px 0;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

.footer_section img {
    display: block;
    margin: 0 auto 10px auto;
}

.footer_section a {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none
}

.footer_section p {
    margin: 0;
}

/* footer */

/* quiz */

.quiz {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    height: 80vh;
    padding-top: 40px;
    padding-bottom: 90px;
    overflow-x: hidden;
    position: relative;
}

.display-none {
    display: none;
}

.quiz-container {
    /* display: flex; */
    display: none;
    padding: 0px 20px 0px 0px;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
}

.quiz-container *:focus {
    outline: 2px solid rgba(58, 123, 213, 0.5);
    outline-offset: 2px;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.quiz-question {
    padding: 20px 20px 30px;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 600;
    color: #333;
    position: relative;
    text-align: center;
    animation: fadeInDown 0.5s ease-out;
    animation-fill-mode: forwards;
    opacity: 0;
    transform: translateY(-10px);
    outline: none;
    z-index: 1;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-question::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
    border-radius: 2px;
}

.answer-variants-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: min-content;
    grid-gap: 20px;
    padding: 25px 20px 30px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .answer-variants-group {
        grid-template-columns: 1fr;
        padding: 25px 15px 30px;
    }
    
    .answer-variant {
        padding: 1rem 0.75rem;
    }
    
    .answer-variant label span{
        padding-left: 0.5rem;
        font-size: 16px;
    }
}

.answer-variant {
    display: flex;
    border-radius: 12px;
    border: solid 1px rgba(217, 216, 230, .55);
    padding: 1.2rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: fadeInOption 0.5s ease-out;
    animation-delay: calc(var(--option-index, 0) * 0.1s);
    opacity: 0;
    transform: translateX(10px);
    animation-fill-mode: forwards;
    outline: none;
}

@keyframes fadeInOption {
    0% {
        opacity: 0;
        transform: translateX(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.answer-variant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #3a7bd5, #00d2ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.answer-variant:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(58, 123, 213, 0.3);
}

.answer-variant:hover::before {
    opacity: 1;
}

.answer-variant:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #3a7bd5;
    outline: 2px solid rgba(58, 123, 213, 0.5);
}

.answer-variant:focus-within::before {
    opacity: 1;
}

.answer-variant label {
    padding-left: 0.75rem;
    display: block;
    height: 100%;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: #444;
    font-size: 18px;
}

.answer-variant input {
    cursor: pointer;
    accent-color: #3a7bd5;
    transform: scale(1.2);
}

.answer-variant input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.3);
}

.answer-variant input:checked + label {
    color: #3a7bd5;
    font-weight: 600;
}

.answer-variant:nth-child(1) {
    --option-index: 1;
}

.answer-variant:nth-child(2) {
    --option-index: 2;
}

.answer-variant:nth-child(3) {
    --option-index: 3;
}

.quiz-button-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-top: solid 1px rgba(214, 214, 214, 0.5);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    z-index: 100;
    margin: 0;
}

.quiz-button {
    font-size: 16px;
    height: 50px;
    padding: 0 25px;
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
    box-shadow: 0 3px 10px 0 rgba(58, 123, 213, 0.4);
    border-radius: 25px;
    border: none;
    line-height: 1.3rem;
    text-overflow: clip;
    white-space: nowrap;
    cursor: not-allowed;
    transition: all 0.3s ease;
    min-width: 130px;
    max-width: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-button-back {
    background: linear-gradient(90deg, #f0f0f0, #e4e4e4);
    color: #555;
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);
}

.quiz-button:not([disabled]) {
    cursor: pointer;
}

.quiz-button:focus {
    outline: 2px solid rgba(58, 123, 213, 0.5);
    outline-offset: 2px;
}

.quiz-button:not([disabled]):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px 0 rgba(58, 123, 213, 0.5);
}

.quiz-button-back:not([disabled]):hover {
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
    .quiz-button-container {
        padding: 15px 20px;
    }
    
    .quiz-button {
        min-width: 100px;
        height: 48px;
        padding: 0 18px;
        font-size: 15px;
        max-width: 150px;
    }
}

@media (max-width: 360px) {
    .quiz-button-container {
        padding: 12px 15px;
    }
    
    .quiz-button {
        min-width: 90px;
        height: 46px;
        padding: 0 12px;
        max-width: 130px;
    }
}

@media (max-width: 320px) {
    .quiz-button {
        min-width: 90px;
        max-width: 120px;
    }
}

@media (max-width: 280px) {
    .quiz-button span {
        display: none;
    }
    
    .quiz-button-next::after {
        content: '›';
        font-size: 24px;
        font-weight: bold;
    }
    
    .quiz-button-back::after {
        content: '‹';
        font-size: 24px;
        font-weight: bold;
    }
    
    .quiz-button {
        min-width: 70px;
        max-width: 90px;
    }
}

/* quiz */

/* final-page */

.final-page-container {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    box-sizing: border-box;
    animation: fadeInScale 0.5s ease-out;
    opacity: 0;
    transform: scale(0.95);
    animation-fill-mode: forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.final-page-container[style*="display: flex"] {
    animation: fadeInScale 0.5s ease-out;
    animation-fill-mode: forwards;
}

.final-page-text-container {
    max-width: 700px;
    padding: 0 1.5rem 1.5rem;
    margin-bottom: 20px;
    width: 100%;
}

.final-page-text-container h1 {
    margin-bottom: 1.5rem;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    color: #333;
    position: relative;
    padding-bottom: 15px;
    animation: fadeInDown 0.6s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.final-page-text-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
    border-radius: 2px;
}

.final-page-form-container {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    background-color: white;
    max-width: 500px;
    width: calc(100% - 40px);
    margin: 0 20px;
    box-sizing: border-box;
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.3s;
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
}

@media (max-width: 625px) {
    .final-page-text-container {
        padding: 0 1rem 1rem;
        margin-bottom: 15px;
    }
    
    .final-page-text-container h1 {
        font-size: 28px;
        margin-bottom: 1rem;
    }
    
    .final-page-form-container {
        padding: 25px 20px;
    }

    .final-page-container p {
        font-size: 16px;
        line-height: 1.5;
        padding: 0 10px;
    }
}

@media (max-height: 700px) {
    .final-page-text-container {
        margin-bottom: 10px;
    }
    
    .final-page-text-container h1 {
        font-size: 24px;
        margin-bottom: 0.8rem;
        padding-bottom: 10px;
    }
    
    .final-page-container p {
        font-size: 15px;
        line-height: 1.4;
        margin: 0 0 10px 0;
    }
    
    .final-page-form-container {
        padding: 20px;
    }
    
    .final-page-form-container form {
        gap: 10px;
    }
    
    .final-page-form-container input {
        height: 48px;
    }
    
    .final-page-form-container button {
        min-height: 48px;
        margin-top: 10px;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.final-page-form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.final-page-form-container input {
    height: 54px;
    border: solid 1.5px #e0e0e0;
    color: #333;
    background: #f9f9f9;
    border-radius: 10px;
    font-weight: 500;
    padding: calc(.5em - 1px) calc(.75em - 1px);
    padding-left: 3.4rem;
    transition: all 0.3s ease;
}

.final-page-form-container input:focus {
    border-color: #3a7bd5;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

.final-page-form-container a {
    text-decoration: none;
    color: #3a7bd5;
    transition: color 0.3s ease;
}

.final-page-form-container a:hover {
    text-decoration: underline;
    color: #00d2ff;
}

.final-page-form-container .field[name='name'] {
    background: #f9f9f9 url(../images/name-icon.png) 22px center no-repeat;
}

.final-page-form-container .field[name='phone'] {
    background: #f9f9f9 url(../images/phone-icon.png.png) 20px center no-repeat;
}

.final-page-form-container button {
    margin-top: 15px;
    min-height: 54px;
    overflow: hidden;
    width: 100%;
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
    box-shadow: 0 3px 15px 0 rgba(58, 123, 213, 0.4);
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 10px;
    border: none;
    line-height: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.final-page-form-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px 0 rgba(58, 123, 213, 0.5);
}

.final-page-container p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    text-align: center;
    max-width: 600px;
    margin: 0 0 20px 0;
    animation: fadeIn 0.6s ease-out;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* final-page */