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

body {
    margin: 0 auto;
    width: 100%;
    font-family: Arial, sans-serif;
    color: #fff;
    background: #000;
}

.wrap {
    width: 80%;
    margin: 50px auto 300px auto;
    display: flex;
    align-items: center;
}

button {
    padding: 20px;
    border: none;
    border-radius: 10px;
    font-size: 25px;
    font-weight: 700;
    color: #000;
    background: #f69600;
    cursor: pointer;
}

.main-text {
    width: 50%;
}

.sale-text {
    width: 75%;
    margin-top: 50px;
    font-weight: 700;
    text-align: center;
}

.main-text p {
    margin-bottom: 20px;
    font-size: 20px;
}

.img-wrap {
    width: 50%;
}

.img-wrap h1 {
    margin-bottom: 30px;
    font-size: 30px;
    text-align: center;
}

.img-wrap h2 {
    margin: 30px 0 0 0;
    font-size: 35px;
    text-align: left;
}

.img-wrap p {
    font-size: 20px;
    margin-top: 20px;
}

.product {
    width: 100%;
    border-radius: 10px;
}

.modal {
    min-height: 100dvh;
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    /* height: 100%; */
    /* overflow: auto; */
    background: #000000eb;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0);
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    color: white;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 20px;
}

.close:hover,
.close:focus {
    text-decoration: none;
    cursor: pointer;
}

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

.question-block h3 {
    margin-bottom: 30px;
}

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


input[type="text"],
input[type="tel"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

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

.quiz-label {
    font-size: 18px;
    cursor: pointer;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #007bff;
    outline: none;
}

/* .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: center;
    min-height: 100vh;
    overflow: hidden;
    display: none;
}

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

.final-page-text-container h1 {
    margin-bottom: 1.2rem;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
}

.final-page-form-container {
    padding: 29px 35px 19px;
    border-radius: 3px;
    -webkit-box-shadow: 0 9px 40px 0 #d6d6d6;
    box-shadow: 0 9px 40px 0 #d6d6d6;
    border: solid 1.2px #d6d6d6;
    background-color: #f0f0f0;
    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: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

#prevButton {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #333;
}

#nextButton {
    background-color: #f69600;
    border: none;
    border-radius: 8px;
    color: white;
}

#prevButton:hover {
    background-color: #a56701;
    border: 1px solid #a56701;
    color: white;
}

#nextButton:hover {
    background-color: #a56701;
    border: 1px solid #a56701;
    color: white;
}

footer {
    text-align: center;
}

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

    .final-page-form-container input {
        margin: 0 16px;
    }

    .final-page-form-container button {
        margin: 0 16px;
        max-width: calc(100% - 32px);
    }
    
}

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

.final-page-form-container input {
    height: 48px;
    border: solid 1.2px var(--color-bg-3, #b1b5be);
    color: #000000;
    background: none;
    border-radius: 4px;
    font-weight: 500;
    padding: calc(.375em - 1px) calc(.625em - 1px);
    padding-left: 3.4rem;
}

.final-page-form-container a {
    text-decoration: none;
    color: #007bff;
}

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

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

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

.final-page-form-container button {
    margin-top: 10px;
    min-height: 50px;
    overflow: hidden;
    width: 100%;
    font-weight: 400;
    color: white;
    background-color: #f69600;
    box-shadow: 0 3px 15px 0 #f69600;
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 24px;
    border: none;
    line-height: 1.3rem;
    cursor: pointer;
}

.products_count {
    color: #000;
}

.products_count a {
    color: #000;
}

.final-page-form-container button:hover {
    background-color: #0063cc;
}

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

@media screen and (max-width: 768px) {

    .offer,
    .advantages {
        flex-direction: column;
    }

    .offer-details,
    .offer-image {
        padding: 0;
        flex: 1;
    }

    .offer-details {
        display: flex;
        flex-direction: column;
    }

    .offer-image {
        order: -2;
        padding-top: 20px;
        margin-bottom: 20px;
    }

    .offer-image img {
        width: 100%;
        height: auto;
    }

    .offer-details h2 {
        order: -1;
    }

    .advantages-image img {
       flex-shrink: 0;
       padding-right: 0px;
    }

    .cta-button {
        width: 95%;
        padding: 20px 20px;
    }
}

@media (max-width: 900px) {
    .reviews {
        justify-content: center;
    }

    .review-card {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .offer-details h2 {
        text-align: center;
    }

    .countdown {
        margin-top: 10px;
    }

    .offer-details ul li {
        font-size: 16px;
    }

    .advantages-details h2 {
        text-align: center;
    }

    .advantages-details ul li {
        font-size: 16px;
    }

    .review-card {
        width: 100%;
        margin-bottom: 20px;
    }
}
a.text:active, /* активная/посещенная ссылка */
a.text:hover,  /* при наведении */
a.text {
  text-decoration: none;
  color: #fff;
}


@media screen and (min-width: 100px) and (max-width: 1400px) {
    .wrap {
        width: 100%;
        flex-direction: column-reverse;
    }

    .img-wrap {
        width: 95%;
        margin: 0 auto;
    }

    .main-text {
        width: 95%;
        margin: 40px auto;
    }

    .img-wrap h2 {
        font-size: 25px;
        text-align: center;
    }

    .sale-text {
        width: 95%;
        margin: 50px auto;
    }

    .final-page-form-container .field {
        margin-bottom: 20px;
        padding: 10px;
    }

    .products_count {
        width: 95%;
        color: #fff;
    }

    .products_count a {
        color: #fff;
    }

    .final-page-form-container {
        margin: 0;
        padding: 0;
    }
}