html,
body {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: "Roboto Flex", serif;
    justify-content: space-between;
    font-size: 24px;
    color: #fff;
    background: #fee7df;
    padding: 0;
    margin: 0;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
}

.main {
    flex: 1;
}

.section {
    padding: 10px 0 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-size: cover;
    background: #fee7df;
    background-repeat: no-repeat;
    background-image: url('../img/bg.png');
}

.section__container {
    max-width: 1155px;
    /* padding: 50px 15px; */
    margin: 0 auto;
}

.btn {
    height: 64px;
    border: 0;
    padding-left: 87px;
    padding-right: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    outline: 0;
    display: flex;
    align-items: center;
    border-radius: 32px;
    background: #e71d1d;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: #fff;
}

.btn__span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn__span span {
    font-size: 10px;
}

.btn:hover {
    background: #b91d1d;
}

.btn img {
    width: 26px;
    height: 26px;
}



.pc {
    display: block;
}

.mob {
    display: none;
}

@media screen and (max-width:768px) {
    .pc {
        display: none;
    }

    .mob {
        display: block;
    }

    .btn {
        font-weight: 700;
        font-size: 14px;
        text-transform: uppercase;
        color: #fff;
    }

    .section {
        overflow: hidden;
        background-position: bottom;
        background-image: url('../img/mobbg.png');
    }

    .section__wrap p {
        margin: 0 auto;
        max-width: 300px;
        display: block;
        text-align: center;
        font-weight: 400;
        font-size: 12px;
        text-align: center;
        color: #fff;
    }
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(255, 255, 255, 0.9); */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#phone-form {
    text-align: center;
    max-width: 400px;
    margin: 20px;
    border-radius: 20px;
    padding: 20px;
    background: #a17cff;
}

#phone-form p {
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    color: #fff;
}

#phone-form input[type="email"] {
    padding: 15px;
    font-size: 16px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 27px;
    margin-top: 15px;
    margin-bottom: 15px;
    outline: none;
}

#phone-form button {
    padding: 10px 20px;
    font-weight: 700;
    font-size: 30px;
    text-transform: uppercase;
    color: #fff;
    width: 272px;
    color: #fff;
    background: #ffc15c;
    border: none;
    border-radius: 27px;
    cursor: pointer;
}

/* Стили для лоадера */
#loader {
    display: none;
    /* Скрыт по умолчанию */
    text-align: center;
}

#loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.section__top {
    display: flex;
    flex-direction: column;
    gap: 33px;
    margin-bottom: 60px;
    align-items: center;
}

.section__header {
    display: flex;
    gap: 10px;
    align-items: center;
}

.section__header img {
    height: 37px;
    width: 37px;
}

.section__header h1 {
    font-weight: 700;
    font-size: 40px;
    margin: 0;
    line-height: 47px;
    text-align: center;
    color: #2f2444;
}

.section__top sub {
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    color: #2f2444;
    line-height: 23px;
}

.section__top-item {
    flex: 1;
    position: relative;
    max-width: 440px;
    border: 3px solid #a17cff;
    border-radius: 27px;
    background: #fffefa;
    padding: 20px 25px;
}

.section__top-item h2 {
    font-weight: 700;
    font-size: 18px;
    margin: 0;
    margin-bottom: 17px;
    text-align: center;
    color: #2f2444;
    line-height: 21px;
}

.header-btn {
    display: flex;
    width: fit-content;
    font-weight: 400;
    font-size: 16px;
    margin: 0 auto;
    text-align: center;
    color: #2f2444;
    padding: 10px 25px;
    border-radius: 45px;
    background: #ffc15c;
}

.header-btn:hover {
    background: #f7c77b;
}

.heal-min {
    position: absolute;
    bottom: 20px;
    left: -20px;
    width: 46px;
    height: 46px;
}

.heal {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 69px;
    height: 69px;
}

.section__items {
    display: flex;
    gap: 26px;
    margin-bottom: 40px;
}

.section__item {
    flex: 1;
    display: flex;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
}

.section__item:nth-child(n+1) {
    border: 3px solid #f4883d;
    border-radius: 27px;
    padding: 15px 15px 25px 15px;
}

.section__item:nth-child(2n+1) {
    border: 3px solid #a17cff;
    border-radius: 27px;
    padding: 15px 15px 25px 15px;
}

.section__item h2 {
    display: flex;
    margin: 0;

    font-weight: 700;
    font-size: 18px;
    line-height: 117%;
    text-align: center;
    color: #2f2444;

    align-items: center;
    text-transform: uppercase;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.section__item h3 {
    font-weight: 700;
    margin: 0;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 117%;
    text-align: center;
    color: #2f2444;
}

.section__item p {
    font-weight: 400;
    font-size: 16px;
    line-height: 117%;
    text-align: center;
    color: #2f2444;
    margin-bottom: 10px;
}

.section__item h2 img {
    width: 20px;
    height: 20px;
}

.section__item .item-btn {
    margin-bottom: -40px;
    font-weight: 700;
    font-size: 12px;
    margin-top: auto;
    text-transform: uppercase;
    text-align: center;
    padding: 5px 22px;
    display: flex;
    color: #fff;
    height: 25px;
    width: 170px;
    background: #f4883d;
    border-radius: 17px;
    line-height: 14px;
    align-items: center;
    justify-content: center;
}

.star {
    width: 87px;
    height: 87px;
}

.section__item:nth-child(2n+1) .item-btn {
    background-color: #a17cff;
}

.section__item:nth-child(n+1) .item-btn:hover {
    background: #bb6527;
}

.section__item:nth-child(2n+1) .item-btn:hover {
    background-color: #8d65f1;
}

.section__text {
    max-width: 490px;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    color: #2f2444;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section__text span,
.section__text a {
    color: #ea3c59;
}

.phone-form__bonus {
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    color: #fff;
}
@media screen and (max-width:768px) {
    .section__header h1 {
        font-size: 30px;
        line-height: 110%;
    }
    .section__items

 {
    display: flex
;
    gap: 26px;
    align-items: center;
    margin-bottom: 40px;
    flex-direction: column;
}
.section__container {
    max-width: 1155px;
    padding: 0px 21px;
    margin: 0 auto;
}
.section__item {
    flex: 1;
    display: flex
;
    max-width: 264px;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
}
}