/* Общие стили */
body {
    margin: 0;
    /*font-family: Arial, sans-serif;*/
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f5;
    font-family: Avenir Next, Noto Sans SC Bold, Noto Sans TC Bold, Noto Sans JP Bold, Noto Sans KR Bold, Tajawal ExtraBold, Arimo Bold, Kanit SemiBold, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Hiragino Sans GB, Microsoft YaHei, WenQuanYi Micro Hei, sans-serif;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.container.tariffs {
    max-width: 100%;
}

.container.reviews {
    max-width: 800px;
}



/* Шапка */


.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: left;
    padding-top: 0; /* Adjust padding to position text */
    padding-bottom: 0; /* Add padding to ensure text is not overlapped */
}

.header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    overflow: hidden;
}

.header-content {
    flex: 1;
    padding-right: 20px;
    position: relative;
}



/*.header img {
    flex: 1;
    max-width: 577px; !* Set maximum width for desktop *!
    height: auto;
    object-fit: cover;
}*/

.header-title {
    font-size: 2.5rem;
    color: #344e41;
}

.header-title, .header-subtitle, .section-title {
    text-align: center;
}

.header-subtitle {
    font-size: 1.2rem;
    color: #5e735d;
    margin-bottom: 20px;
}

.btn-primary {
    display: flex;
    width: fit-content;
    padding: 10px 20px;
    background-color: #cdf090; /* Салатовый цвет */
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    margin: 0 auto;
    transition: background-color 0.3s;
}

.reasons-red {
    background-color: rgba(252, 13, 13, 0.66);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #cc0606;
}




.btn-primary:hover {
    background-color: #000;
    color: #fff;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    background-color: #cdf090; /* Салатовый цвет */
    color: #000;
    text-decoration: none;
    border: 2px solid #bfe5cb;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #000; /* Более тёмный салатовый цвет */
    color: #fff;
}

/* Секции */
.section:nth-child(odd) {
    background-color: #f9fcf3; /* Бежевый фон */
}

.section:nth-child(even) {
    background-color: #ebf8dd; /* Нежно-светло-грязно-салатовый фон */
}

.section-title {
    font-size: 2rem;
    color: #344e41;
    margin-bottom: 10px;
    text-align: center;
}

#why-diets-dont-work {
    /*max-width: 800px;*/
    margin: 0 auto 20px auto;
}

#why-diets-dont-work p {
    margin-bottom: 0;

}

.guide-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.guide-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px 20px 20px 10px;
    width: 300px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background-color: transparent;
    border-radius: 50%;
    /*border: 1px solid #6f9b43;*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.guide-card p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

.guide-card p strong {
    display: block;
    font-size: 1.1rem;
    color: #344e41;
}

.reasons-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 10px;

}


.reason {
    margin-bottom: 0;
}

.reason strong{
    color: #25362e;
    font-weight: 600;
    font-size: 1rem;
}
.reason p {
    margin-block-start: 0;
    margin-block-end: 0;
}

.separator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px 0;
}


.separator::after {
    content: '...'; /* Use three dots as separators */
    display: inline-block;
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
    /*font-size: 5rem;*/ /* Increase font size */
    margin: 0 4px;
}

.author ul {
    list-style: none; /* Remove default bullets */
    padding: 0;
}

.author ul li {
    position: relative;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.author ul li::before {
    content: '•'; /* Custom bullet */
    /*position: absolute;*/
    left: 10px;
    margin-right: 10px;
    color: #cdf090; /* Green color for bullet */
    font-size: 1.2rem; /* Adjust size as needed */
    line-height: 1; /* Align with text */
    top: 0.1em;
}

.accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    position: relative;
    background-color: #f7f7f7;
    cursor: pointer;
    padding: 10px 20px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: space-between; /* Space between text and icon */
}

.accordion-header .icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(5deg); /* Rotate to show minus sign */
}

.accordion-content {
    padding: 15px;
    display: none;
    background-color: white;
}

.accordion-content p {
    margin: 0;
}

#practical-guide p {
    text-align: center;
}

#program p {
    text-align: center;
}

.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    background-color: #0088cc; /* Telegram blue color */
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;

    justify-content: center;
}
.btn-telegram span {
    padding-top: 4px;
}

.btn-telegram:hover {
    background-color: #007ab8; /* Darker blue on hover */
}

.btn-telegram img {
    margin-right: 8px; /* Space between icon and text */
    width: 20px; /* Adjust icon size */
    height: 20px;
}

.text, .image {
    flex: 1;
    min-width: 300px;
    margin: 10px;
}

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

.results-list, .faq-list {
    list-style-type: disc;
    text-align: left;
    margin: 0 auto 10px auto;
    max-width: 800px;
    padding-left: 20px;
}

.results-list li, .faq-list li {
    margin: 10px 0;
}

.program-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px auto;
    max-width: 600px;
    padding-left: 20px;
}

.program-list li {
    margin:  0; /* Reduced vertical spacing */
    position: relative;
    padding-left: 20px;
    line-height: 18px;
    letter-spacing: -0.7px; /* Уменьшает расстояние между буквами */
}

.program-list li::before {
    content: '-'; /* Dash before each list item */
    position: absolute;
    left: 0;
    top: 0;
    color: #555;
}

.bonuses-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px auto;
    max-width: 600px;
}

.bonuses-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555;
}



.bonuses-list li::before {
    content: '\2713'; /* Unicode for a more elegant checkmark */
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: #cdf090; /* Darker green color */
    color: #fff; /* White color for checkmark */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem; /* Smaller font size for a more elegant look */
    font-weight: normal; /* Normal font weight for a more elegant look */
}

.bonuses-list li ul {
    list-style: circle;
    padding-left: 20px;
}

.bonuses-list li ul li {
    position: static;
    padding-left: 0;
    margin-bottom: 5px;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px auto;
    max-width: 800px;
}

.guide-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

.guide-title {
    font-size: 1.1rem; /* Slightly smaller font size */
    color: #344e41;
    margin: 0;
}

.guide-description {
    font-size: 1rem;
    color: #555;
    margin: 5px 0 0 0;
}

/* Тарифы */
.tariff-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tariff-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.tariff-card h3 {
    margin-block-end: 0;
}

.tariff-card h5 {
    margin-block-start: 0;
    font-weight: 400;
    font-style: italic;
    margin-block-end: 0;
    color: #344e41;
}

.tariff-title {
    font-size: 1.5rem;
    color: #344e41;
    margin-bottom: 10px;
}

.tariff-price-old {
    font-size: 1.5rem;
    color: #6d9e78;
    text-decoration: line-through;
    font-weight: 500;
    margin-block-start: 0;
    margin-block-end: 0;
}

.tariff-price {
    font-size: 2.2rem;
    font-weight: 600;
    color: #6d9e78;
    margin-bottom: 15px;
    line-height: 30px;
    margin-top: 0;
}

.tariff-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
    line-height: 17px;
}

.tariff-features li {
    margin-bottom: 10px;
    color: #555;
}

/* Авторы */
.authors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.author {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0; /* Remove padding */
    width: 300px;
    text-align: center;
    overflow: hidden; /* Ensure the image doesn't overflow the card */
}

.author-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 500 / 649;
    object-fit: cover;
    margin: 0; /* Remove margin */
    display: block; /* Ensure the image is a block element */
}

.author h3 {
    font-size: 1.5rem;
    color: #344e41;
    margin-bottom: 10px;
}

.author p {

    color: #555;
    margin: 0 20px 20px 5px;
}

/* Подвал */
.footer {
    background-color: #344e41;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.footer-text {
    margin: 0;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}

#reviews {
    text-align: center;
    padding: 40px 0;
    position: relative;
}



.swiper-button-next, .swiper-button-prev {
    color: #6fad05 !important;
}

@media (min-width: 768px){
    .header-text {
        position: absolute;

        max-width: 500px;
        top: 10px;
        left: 40px;

    }

    .container.first {
        max-width: 600px;

    }

    /*.swiper-slide img {
        width: 250px;
    }*/

    /* Ensure the Swiper container and slides are properly styled */
    .swiper-container {
        width: 100%;
        padding-top: 20px;
        padding-bottom: 40px;
        overflow: hidden; /* Ensure no overflow */
    }

    .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    }

    .swiper-slide img {

        height: auto;
        max-width: 250px; /* Ensure images do not exceed 250px width */
        width: 250px;
        border-radius: 10px;
    }

    .header-created {
        position: absolute;
        bottom: 60px;
        right: 10px;
        font-size: 0.8rem;
        width: 80%;
        color: black;
        background-color: rgba(255, 255, 255, 0.65);
        display: none;

    }

    body {
         background-color: white;
    }

    .container.guide {
        max-width: 800px;
    }

    .container.results {
        max-width: 600px;
    }

    .header-subtitle {
        margin-top: 60px;
        width: 400px;
    }

    .header-text-detailed {
        position: absolute;
        top: 350px;
        background-color: rgba(255, 255, 255, 0.64);
        /*color: black;*/
        padding: 10px 10px 10px 30px;
        right: 50px;
        font-weight: 500;
        list-style-type: disc; /* Add bullet points */
        text-align: left;
        color: #344e41;
        line-height: 18px;
        z-index: 9;
    }

    .swiper-slide img {
        max-width: 400px;
    }

    .header-content {
        display: flex;
        max-width: 800px;
        margin: 0 auto;
        flex-wrap: wrap;
        z-index: 2;
    }

    .main-photo {
        width: 800px;

        height: auto; /* Maintain aspect ratio */
        object-fit: cover;
        margin: 0 auto; /* Center the image */
        display: block; /* Ensure the image is a block element */
        position: relative;
        content: url('main_photo_desktop.webp'); /* Use mobile image */

    }

    .btn-primary.main {
        position: absolute;
        bottom: 40px;
        left: 180px;
        width: 200px;

        z-index: 10;


        justify-content: center;

    }


}

/* Адаптивность */






@media (max-width: 768px) {

    .swiper-container {
        width: 100%;
        padding-top: 20px;
        padding-bottom: 40px;

        max-width: 100%;
        overflow-x: hidden;
    }

    .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .swiper-slide img {
        width: 100%;
        height: auto;
        max-width: 300px;
        border-radius: 10px;
    }

    .header-title {
        font-size: 2rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .content {
        flex-direction: column;
    }

    .tariff-card, .author {
        width: 100%;
    }

    .header {
        flex-direction: column;
        text-align: center;
        padding-top: 10vh;

    }

    .header img {
        width: 100%;
        max-width: none;
        margin-bottom: 20px;
    }

    .main-photo {
        width: 100%;
        max-width: 100%; /* Set maximum width for desktop */
        height: auto; /* Maintain aspect ratio */
        object-fit: cover;
        margin: 0; /* Center the image */
        display: block; /* Ensure the image is a block element */
        position: relative;
        top: 0;
        z-index: -1;
        content: url('main_photo_mobile.webp'); /* Use desktop image */
    }


    .header-content {
        padding-right: 0;
    }

    .header {
        flex-direction: column;
        text-align: center;
        padding-top: 0;
    }

    .header-text {
        position: absolute;
        top: 0;
    }

    .header-content {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content vertically */
        height: fit-content; /* Adjust height to match the main photo */
    }

    .header-text-detailed {
        position: absolute;
        bottom: 60px;
        background-color: rgba(255, 255, 255, 0.64);
        /*color: black;*/
        padding: 10px 10px 10px 30px;
        left: 50px;
        font-weight: 500;
        list-style-type: disc; /* Add bullet points */
        text-align: left;
        color: #344e41;
        line-height: 18px;
    }



    .header-subtitle {
        margin: 0 auto;
    }

    .header-created {
        display: none;
    }




    .btn-primary.main {
        font-size: 1.2rem;
        padding: 8px 16px;
        position: absolute;
        bottom: 0;
        margin: 0 auto;
        right: 20px;
        left: 20px;
        border: 1px solid #bfe5cb;
        font-weight: 600;
        /*color: #1f3128;*/
        color: black;
        background-color: #cdf090;
        width: 60%;
        text-align: center;
        justify-content: center;
    }

     .btn-secondary {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .header-title {
        font-size: 1.8rem;
        margin: 20px auto 0 auto;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .header-subtitle {
        margin: 0 auto;
        padding: 0 20px;
    }

}