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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.offer {
    background-color: #f5f5f5;
    padding: 60px 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
}

.offer-container {
    background-color: white;
    border-radius: 25px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.offer-photo {
    width: 100%;
    max-width: 800px;
    margin: 10px 0;
}

.offer-photo img,
.offer-video-el {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.offer-video-el {
    background: #000;
}

.advantages-video {
    width: 100%;
    max-width: 500px;
    margin-top: 30px;
}

.advantages-video .offer-video-el {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.offer-container .checkmarks {
    width: 100%;
}

.checkmarks {
    list-style: none;
    padding: 0;
}

.checkmarks li {
    display: flex;
    align-items: center;
    font-size: 19px;
    margin-bottom: 18px;
    color: #2c3e50;
    font-weight: 500;
}

.checkmarks li img {
    width: 32px;
    height: 32px;
    margin-right: 18px;
    filter: drop-shadow(0 2px 4px rgba(39, 174, 96, 0.2));
}

.countdown {
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 15px;
    border: 2px dashed #e74c3c;
}

.countdown p {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#timer {
    font-size: 52px;
    font-weight: 700;
    color: #e74c3c;
    letter-spacing: 8px;
    text-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.timer-labels {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 5px;
}

.timer-labels span {
    font-size: 14px;
    color: #888;
}

.quiz-text {
    text-align: center;
    font-size: 19px;
    font-weight: 600;
    margin: 25px 0;
    color: #1a1a1a;
    line-height: 1.5;
}

.cta-button-container {
    text-align: center;
    margin-top: 20px;
}

.cta-button {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 20px 70px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(39, 174, 96, 0.4);
}

.offer-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.offer-right img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.offer-right img:hover {
    transform: scale(1.02);
}

.advantages {
    background-color: #f5f5f5;
    padding: 60px 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
}

.advantages-container {
    background-color: white;
    border-radius: 25px;
    padding: 60px;
    display: flex;
    gap: 60px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.advantages-left {
    flex: 1;
    display: flex;
    justify-content: center;
}

.advantages-left img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.advantages-left img:hover {
    transform: scale(1.02);
}

.advantages-right {
    flex: 1;
}

.advantages-right h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #2c3e50;
    line-height: 1.3;
}

.advantages-right ul {
    list-style: none;
    padding: 0;
}

.advantages-right ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.advantages-right .number {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    font-size: 24px;
    font-weight: 700;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.advantage-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.advantage-content p {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
}

.reviews-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 60px 20px;
    text-align: center;
}

.reviews-section h1 {
    color: #2c3e50;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reviews {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 40px;
    justify-content: center;
}

.review-card {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.review-card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.review-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: left;
    margin-bottom: 15px;
}

.author {
    font-weight: bold;
    font-size: 16px;
    color: #000;
    text-align: left;
}

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 50px 20px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.5;
    color: #27ae60;
}

.footer-column p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    margin-bottom: 20px;
    font-size: 15px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
}

.footer-links a:hover {
    color: #27ae60;
    border-bottom-color: #27ae60;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 50px;
    border-radius: 25px;
    width: 90%;
    max-width: 650px;
    color: black;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.close {
    color: #999;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close:hover,
.close:focus {
    color: #333;
    transform: rotate(90deg);
    text-decoration: none;
}

.question-block {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.question-block:last-child {
    border-bottom: none;
}

h5,
h6 {
    color: #27ae60;
    font-weight: 600;
}

input[type="text"],
input[type="tel"] {
    width: calc(100% - 20px);
    padding: 12px 15px;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
}

input[type="radio"]{
    margin-top: 14px;
}

.quiz-label {
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

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

.final-page-container {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    display: none;
    padding: 0;
    animation: fadeIn 0.4s ease-in-out;
}

.final-page-text-container {
    width: 100%;
    padding: 0 0 1.6rem 0;
}

.final-page-text-container h1 {
    margin-bottom: 0.6rem;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    color: #2c3e50;
}

.final-page-desc {
    text-align: center;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.final-page-form-container {
    padding: 35px 40px 30px;
    border-radius: 15px;
    -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: none;
    background-color: #f8f9fa;
    width: 100%;
    max-width: 100%;
}

.nav-buttons {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-buttons button {
    padding: 12px 28px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#prevButton {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

#nextButton {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
}

#prevButton:hover {
    background-color: #f5f5f5;
    border-color: #27ae60;
    color: #27ae60;
    transform: translateY(-2px);
}

#nextButton:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

@media (max-width: 625px) {
    .final-page-form-container{
        border:none;
        box-shadow: none;
        background-color: transparent;
        padding: 20px 0;
    }

    .final-page-form-container input {
        margin: 0;
        width: 100%;
    }

    .final-page-form-container button {
        margin: 10px 0 0 0;
        width: 100%;
        max-width: 100%;
    }
}

.final-page-form-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.final-page-form-container input {
    height: 52px;
    border: solid 2px #e0e0e0;
    color: #333;
    background: #ffffff;
    border-radius: 10px;
    font-weight: 500;
    padding: 14px 18px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
}

.final-page-form-container input:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.final-page-form-container a {
    text-decoration: none;
    color: #27ae60;
    font-weight: 500;
}

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

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
}

.agreement-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: #27ae60;
}

.agreement-checkbox label {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.agreement-checkbox label a {
    color: #27ae60;
    text-decoration: underline;
    font-weight: 500;
}

.agreement-checkbox label a:hover {
    color: #229954;
}


.final-page-form-container button {
    margin-top: 10px;
    min-height: 55px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
    font-size: 18px;
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    line-height: 1.3rem;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.final-page-form-container button:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(39, 174, 96, 0.4);
}

.final-page-form-container button.button-back {
    margin-top: 12px;
    background: #e0e0e0;
    color: #333;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
}

.final-page-form-container button.button-back:hover {
    background: #d0d0d0;
    box-shadow: none;
}

.final-page-container p {
    font-size: 18px;
    line-height: 26px;
}

@media screen and (max-width: 1200px) {
    .offer-container,
    .advantages-container {
        flex-direction: column;
        padding: 40px;
    }

    .advantages-container {
        flex-direction: column-reverse;
    }

    .offer-left,
    .offer-right,
    .advantages-left,
    .advantages-right {
        width: 100%;
    }

    .timer-labels {
        gap: 60px;
    }

    .reviews {
        flex-direction: column;
        align-items: center;
    }

    .review-card {
        max-width: 500px;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 35px;
    }
    
    .footer-column {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 26px;
        letter-spacing: 0.5px;
    }

    .offer-left h2 {
        font-size: 26px;
    }

    .advantages-right h2 {
        font-size: 26px;
    }

    #timer {
        font-size: 38px;
        letter-spacing: 4px;
    }

    .timer-labels {
        gap: 35px;
    }

    .reviews-section h1 {
        font-size: 26px;
    }

    .cta-button {
        padding: 16px 45px;
        font-size: 17px;
    }
    
    .offer,
    .advantages {
        padding: 40px 15px;
    }
    
    .offer-container,
    .advantages-container {
        padding: 30px 25px;
    }
    
    .countdown {
        padding: 20px;
    }
    
    .checkmarks li {
        font-size: 17px;
    }
}

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s, transform 0.5s;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

a.text:active,
a.text:hover,
a.text {
    text-decoration: none;
    color: #fff;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.button.loading .loading-spinner {
    display: inline-block;
}

.button.loading span {
    opacity: 0.6;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-option label {
    display: block;
    padding: 22px 30px;
    background: white;
    border: 3px solid #e8e8e8;
    border-radius: 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    color: #2c3e50;
}

.payment-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border-color: #27ae60;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.payment-option label:hover {
    border-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.question-block {
    padding: 20px 0;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-block h3 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    line-height: 1.4;
}

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

#quizContainer {
    width: 100%;
    padding: 20px 0;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.final-page-text-container h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 18px;
    font-weight: 700;
}

.final-page-text-container p {
    color: #555;
    font-size: 17px;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .payment-option label {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .question-block h3 {
        font-size: 18px;
    }
    
    .final-page-text-container h1 {
        font-size: 24px;
    }
    
    .final-page-form-container {
        padding: 20px;
    }
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

.offer-left h2::after,
.advantages-right h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #27ae60 0%, #229954 100%);
    margin: 20px auto 0;
    border-radius: 2px;
}

.advantages-right h2::after {
    margin: 20px 0 0 0;
}
