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

:root {
    --color-bg-dark: #1a1a1a;
    --color-bg-gray: #2d2d2d;
    --color-bg-light: #3d3d3d;
    --color-pink: #e91e8c;
    --color-pink-light: #f06292;
    --color-pink-dark: #ad1457;
    --color-text: #e0e0e0;
    --color-text-muted: #9e9e9e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #252525;
    color: var(--color-text);
}

header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--color-pink);
}

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: #252525;
    padding: 60px 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
}

.offer-container {
    background: linear-gradient(145deg, #2d2d2d 0%, #1f1f1f 100%);
    border-radius: 25px;
    padding: 60px;
    display: flex;
    gap: 50px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(233, 30, 140, 0.2);
}

.offer-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.offer-left h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: white;
    line-height: 1.3;
}

.offer-left .offer-subtitle {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    color: var(--color-pink-light);
    line-height: 1.3;
}

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

.checkmarks li {
    display: flex;
    align-items: center;
    font-size: 19px;
    margin-bottom: 18px;
    color: var(--color-text);
    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, rgba(233, 30, 140, 0.15) 0%, rgba(233, 30, 140, 0.05) 100%);
    border-radius: 15px;
    border: 2px dashed var(--color-pink);
}

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

#timer {
    font-size: 52px;
    font-weight: 700;
    color: var(--color-pink-light);
    letter-spacing: 8px;
    text-shadow: 0 2px 4px rgba(233, 30, 140, 0.3);
}

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

.timer-labels span {
    font-size: 14px;
    color: var(--color-text-muted);
}

.quiz-text {
    text-align: center;
    font-size: 19px;
    font-weight: 600;
    margin: 25px 0;
    color: var(--color-text);
    line-height: 1.5;
}

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

.cta-button {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-pink-dark) 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(233, 30, 140, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--color-pink-light) 0%, var(--color-pink) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(233, 30, 140, 0.5);
}

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

.carousel-wrapper {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.carousel-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--color-pink);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-arrow:hover {
    background: var(--color-pink);
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.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: #252525;
    padding: 60px 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
}

.advantages-container {
    background: linear-gradient(145deg, #2d2d2d 0%, #1f1f1f 100%);
    border-radius: 25px;
    padding: 60px;
    display: flex;
    gap: 60px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(233, 30, 140, 0.2);
}

.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: white;
    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, var(--color-pink) 0%, var(--color-pink-dark) 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(233, 30, 140, 0.4);
}

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

.advantage-content p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.reviews-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 60px 20px;
    text-align: center;
    border-top: 2px solid rgba(233, 30, 140, 0.2);
}

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

.reviews-section h1 .highlight {
    color: var(--color-pink-light);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(233, 30, 140, 0.5);
}

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

.review-card {
    background: linear-gradient(145deg, #3d3d3d 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 30px;
    width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(233, 30, 140, 0.15);
}

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

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

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

.author {
    font-weight: bold;
    font-size: 16px;
    color: var(--color-pink-light);
    text-align: left;
}

.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 50px 20px 30px;
    border-top: 2px solid var(--color-pink);
}

.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: var(--color-pink-light);
}

.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: var(--color-pink-light);
    border-bottom-color: var(--color-pink-light);
}

.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: linear-gradient(145deg, #2d2d2d 0%, #1f1f1f 100%);
    margin: 5% auto;
    padding: 50px;
    border-radius: 25px;
    width: 90%;
    max-width: 650px;
    color: var(--color-text);
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(233, 30, 140, 0.3);
}

.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: var(--color-pink-light);
    transform: rotate(90deg);
    text-decoration: none;
}

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

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

h5,
h6 {
    color: var(--color-pink-light);
    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: var(--color-text);
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: var(--color-pink);
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.2);
}

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

.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: 1.2rem;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
    color: white;
}

.final-page-form-container {
    padding: 35px 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(233, 30, 140, 0.2);
    background-color: #252525;
    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: #252525;
    border: 2px solid #3d3d3d;
    border-radius: 10px;
    color: var(--color-text);
    font-weight: 600;
    transition: all 0.3s ease;
}

#nextButton {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-pink-dark) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.4);
    transition: all 0.3s ease;
}

#prevButton:hover {
    background-color: #3d3d3d;
    border-color: var(--color-pink);
    color: var(--color-pink-light);
    transform: translateY(-2px);
}

#nextButton:hover {
    background: linear-gradient(135deg, var(--color-pink-light) 0%, var(--color-pink) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 30, 140, 0.5);
}

@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 #3d3d3d;
    color: var(--color-text);
    background: #1f1f1f;
    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: var(--color-pink);
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.2);
}

.final-page-form-container a {
    text-decoration: none;
    color: var(--color-pink-light);
    font-weight: 500;
}

.final-page-form-container a:hover {
    text-decoration: underline;
    color: var(--color-pink);
}

.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: var(--color-pink);
}

.agreement-checkbox label {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
    cursor: pointer;
    user-select: none;
}

.agreement-checkbox label a {
    color: var(--color-pink-light);
    text-decoration: underline;
    font-weight: 500;
}

.agreement-checkbox label a:hover {
    color: var(--color-pink);
}


.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, var(--color-pink) 0%, var(--color-pink-dark) 100%);
    box-shadow: 0 8px 20px rgba(233, 30, 140, 0.4);
    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, var(--color-pink-light) 0%, var(--color-pink) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(233, 30, 140, 0.5);
}

.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: #252525;
    border: 3px solid #3d3d3d;
    border-radius: 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    color: var(--color-text);
}

.payment-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-pink-dark) 100%);
    color: white;
    border-color: var(--color-pink);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(233, 30, 140, 0.4);
}

.payment-option label:hover {
    border-color: var(--color-pink);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.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: white;
    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: white;
    font-size: 32px;
    margin-bottom: 18px;
    font-weight: 700;
}

.final-page-text-container p {
    color: var(--color-text-muted);
    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, var(--color-pink) 0%, var(--color-pink-dark) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--color-pink-light) 0%, var(--color-pink) 100%);
}

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

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