/* ==============================
   Основные стили вкладок
   ============================== */

/* Секция по центру, ограничение ширины */
* {
    box-sizing: border-box;
}

.new-section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 0;
    box-sizing: border-box;
}

/* Контейнер табов */
.new-tabs {
    overflow: hidden;
}

/* Блок управления табами: всегда сверху слева */
.new-tab-controls {
    display: flex;
    justify-content: flex-start;
    background-color: transparent;
    position: relative;
}

/* Общие стили кнопок табов */
.new-tab-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
    color: #FFF;
    /* цвет текста неактивного таба */
    border-bottom: none;
}

/* Активный таб: цвет текста и приоритет слоя */
.new-tab-button.new-active {
    color: #7F7F7F;
    z-index: 3;
}

/* Неактивные табы: более низкий слой */
.new-tab-button:not(.new-active) {
    z-index: 1;
}

/* —— Кнопка “Состав” (composition) —— */
/* Десктоп */
.new-tab-button[data-tab="composition"] {
    text-align: left;
    font-size: 24px;
    width: 280px;
    height: 53px;
    font-family: Nunito;
    padding-left: 47px;
    line-height: 53px;
    z-index: 2;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Фон Состав — активный */
.new-tab-button.new-active[data-tab="composition"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='163' height='36' viewBox='0 0 163 36' fill='none'><path d='M117.322 0C126.592 0 135.033 5.33821 139.006 13.7129L143.132 22.4102C146.757 30.0506 154.101 35.1621 162.398 36H0V24C0 10.7452 10.7452 1.9329e-07 24 0H117.322Z' fill='%23E7E7E7'/></svg>");
}

/* Фон Состав — неактивный */
.new-tab-button:not(.new-active)[data-tab="composition"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='163' height='36' viewBox='0 0 163 36' fill='none'><path d='M117.322 0C126.592 0 135.033 5.33821 139.006 13.7129L143.132 22.4102C146.757 30.0506 154.101 35.1621 162.398 36H0V24C0 10.7452 10.7452 1.9329e-07 24 0H117.322Z' fill='%237F7F7F'/></svg>");
}

/* —— Кнопка “Вкус” (flavor) —— */
/* Десктоп */
.new-tab-button[data-tab="flavor"] {
    text-align: left;
    font-size: 24px;
    width: 335px;
    height: 53px;
    font-family: Nunito;
    padding-left: 100px;
    line-height: 53px;
    transform: translateX(-25%);
    background-repeat: no-repeat;
    background-size: 335px 53px;
}

/* Фон Вкус — активный */
.new-tab-button.new-active[data-tab="flavor"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='177' height='38' viewBox='0 0 177 38' fill='none'><path d='M131.641 0C141.872 1.4677e-05 150.981 6.8325 154.337 17.0239L155.652 21.0163C158.859 30.7559 167.322 37.4294 177 38H0C9.47595 37.0049 17.6013 30.1543 20.5171 20.4266L21.3353 17.6991C24.4935 7.16268 33.7639 8.77654e-05 44.2436 0L131.641 0Z' fill='%23E7E7E7'/></svg>");
}

/* Фон Вкус — неактивный */
.new-tab-button:not(.new-active)[data-tab="flavor"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='177' height='38' viewBox='0 0 177 38' fill='none'><path d='M131.641 0C141.872 1.4677e-05 150.981 6.8325 154.337 17.0239L155.652 21.0163C158.859 30.7559 167.322 37.4294 177 38H0C9.47595 37.0049 17.6013 30.1543 20.5171 20.4266L21.3353 17.6991C24.4935 7.16268 33.7639 8.77654e-05 44.2436 0L131.641 0Z' fill='%237F7F7F'/></svg>");
}

/* Содержимое вкладок */
.new-tab-contents {
    background-color: #E7E7E7;
    border-radius: 0 40px 40px 40px;
    padding: 20px;
}

.new-tab-content {
    display: none;
}

.new-tab-content.new-active {
    display: block;
}

/* ==============================
   Стили слайдера внутри вкладки “Состав”
   ============================== */

/* Контейнер слайдера */
.new-slider {
    position: relative;
    overflow: hidden;
}

/* Обёртка для всех слайдов */
.new-slides {
    display: flex;
    transition: transform 0.4s ease;
}

/* Каждый слайд занимает 100% ширины контейнера */
.new-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
}

/* Общие стили для частей слайда */
.new-slide-part {
    position: relative;
    width: 49%;
    box-sizing: border-box;
    /* padding: 10px; */
}

/* Левая часть: текст и изображение */
.new-part1 .new-slide-text {
    position: absolute;
    top: 0;
    left: 0;
    font-family: "Nunito Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    color: #9c9c9c;
}

.new-part1 .new-slide-image {
    display: block;
    width: 100%;
    /* margin-top: 2.5em; */
}

/* Правая часть: бейджи, заголовок и преимущества */
.new-part2 .new-badges {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
}

.new-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 40px;
    background: #FFFF7B;
    border-radius: 20px;
    color: #454545;
    font-family: Nunito;
    font-size: 28px;
    font-style: normal;
    font-weight: 800;
    line-height: 110%;
    /* стили бейджа по вашему усмотрению */
}

.new-slide-title {
    margin-top: 2em;
    margin-bottom: 0;
    color: var(--Gray-Gray, #454545);
    /* Desktop/h5 */
    font-family: Nunito;
    font-size: 38px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    position: relative;
    /* 41.8px */
}

.new-advantages {
    margin: 0;
    list-style: none;
    padding: 0;
    max-width: 400px;
}

.new-advantages li {
    /* margin-bottom: 0.5em; */
}

/* Контролы слайдера */
.new-slider-controls {
    /*position: absolute;*/
    /*bottom: 0;*/
    /*left: 75%;*/
    /*transform: translateX(-50%);*/
    /*display: flex;*/
    /*align-items: center;*/
    /*gap: 12px;*/
    position: absolute;
    width: 797px;
    bottom: 0;
    left: 75%;
    /* display: flex
; */
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
}

.new-prev,
.new-next {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.new-next {
    cursor: pointer;
    width: 14px;
    height: 33px;
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='16' height='33' viewBox='0 0 16 33' fill='none'>\
  <path d='M1.68506 0L15.1361 15.853C15.4528 16.2262 15.4528 16.7738 15.1361 17.147L1.68506 33' stroke='%23CFCFCF' stroke-width='3' stroke-linecap='round'/>\
</svg>");
    background-repeat: no-repeat;
    background-size: contain;
}

.new-prev {
    cursor: pointer;
    width: 14px;
    height: 33px;
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='16' height='33' viewBox='0 0 16 33' fill='none'>\
  <path d='M14.5 0L1.04895 15.853C0.732295 16.2262 0.732296 16.7738 1.04895 17.147L14.5 33' stroke='%23CFCFCF' stroke-width='3' stroke-linecap='round'/>\
</svg>");
    background-repeat: no-repeat;
    background-size: contain;
}

.new-dots {
    display: flex;
    gap: 6px;
}

.new-dot {
    width: 19px;
    height: 11px;
    background-color: #D9D9D9;
    cursor: pointer;
}

.new-dot.new-active {
    background-color: #1AA12B;
}

.bagesnatural {
    position: absolute;
    top: 48px;
    right: 0;
    border-radius: 24px 0px 0px 24px;
    background: var(--Green-, #45B553);
    padding: 28px 22px;
    width: 136px;
}

.bagesnatural-one {
    color: #fff;
    text-align: center;
    font-family: Nunito;
    font-size: 43.2px;
    font-style: normal;
    font-weight: 700;
    margin: 0;
}

.bagesnatural-two {
    margin: 0;
    color: var(--White, #FFF);
    text-align: center;
    font-family: Nunito;
    font-size: 27.623px;
    font-style: normal;
    font-weight: 700;

}

.char-item {
    padding: 17px 0;
    border-bottom: 1px solid #454545;
    color: var(--Gray-Gray, #454545);
    font-family: "Nunito Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}


.slider-two__text {
    padding: 0;
    margin: 0;
    color: var(--Gray-Gray, #454545);
    font-family: "Nunito Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    /* 33.6px */
}

/* ==============================
   Адаптивность для мобильных (≤576px)
   ============================== */
@media (max-width: 576px) {
    .new-section {
        padding: 50px 10px;
    }

    .new-tab-contents {
        border-radius: 0 24px 24px 24px;
    }

    .bor {
          border-radius: 40px 24px 24px 24px;
    }

    /* Мобильные кнопки табов */
    .new-tab-button[data-tab="composition"] {
        font-size: 18px;
        width: 163px;
        height: 36px;
        padding-left: 23px;
        line-height: 36px;
    }

    .new-tab-button[data-tab="flavor"] {
        font-size: 18px;
        width: 177px;
        height: 36px;
        padding-left: 54px;
        line-height: 36px;
        transform: translateX(-25%);
        background-size: 177px 36px;
    }

    .new-tab-contents {
        padding: 18px 0 0 0;
    }

    /* Переворот частей слайда */
    .new-slide {
        flex-direction: column-reverse;
    }

    .new-slide-part {
        width: 100%;
        /* padding: 6px; */
    }

    .new-part1 .new-slide-text {
        font-size: 16px;
    }

    .new-part1 .new-slide-image {
        margin-top: 2em;
    }

    .new-part2 .new-slide-title {
        font-family: Nunito;
        font-size: 28px;
        font-style: normal;
        font-weight: 700;
        line-height: 110%;
        /* 30.8px */
        max-width: 200px;
        margin-top: 1.5em;
        margin-left: 18px;
    }

    /* Контролы слайдера по центру внизу */
    .new-slider-controls {
        width: 100%;
        display: flex;
        justify-content: space-around;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .bagesnatural {
        position: absolute;
        top: 74px;
        right: 0;
        border-radius: 21px 0px 0px 21px;
        background: var(--Green-, #45B553);
        padding: 22px 9px 16px 10px;
        width: 84px;
    }

    .bagesnatural-one {
        font-size: 26px;
    }

    .bagesnatural-two {
        font-size: 19px;
    }

    .new-part1 .new-slide-text {

        top: 30px;
        left: 4px;
    }

    .new-badge {
        font-size: 20px;
        width: 44px;
        height: 31px;
        padding: 5px;
    }

    .new-part2 .new-badges {
        right: 14px;
    }

    .new-advantages {
        padding: 0 18px;
    }

    .char-item {
        font-size: 18px;
        /* padding: 0 18px; */
    }

    .slider-two__text {
        padding: 0 18px;
        font-size: 18px;
    }

    .new-slider-controls {
        left: 50%;
    }
    .new-prev {
        background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='16' height='33' viewBox='0 0 16 33' fill='none'>\
  <path d='M14.5 0L1.04895 15.853C0.732295 16.2262 0.732296 16.7738 1.04895 17.147L14.5 33' stroke='%237F7F7F' stroke-width='3' stroke-linecap='round'/>\
</svg>");
    }
    .new-next {

        background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='16' height='33' viewBox='0 0 16 33' fill='none'>\
  <path d='M1.68506 0L15.1361 15.853C15.4528 16.2262 15.4528 16.7738 15.1361 17.147L1.68506 33' stroke='%237F7F7F' stroke-width='3' stroke-linecap='round'/>\
</svg>");

    }
}


/* Контейнер слайдера */
.flavor-slider {
    position: relative;
    overflow: hidden;
    /*margin-top: 20px;*/
}

/* Обёртка для слайдов */
.flavor-slides {
    width: 100%;
    display: flex;
    transition: transform 0.4s ease;
}

/* Один слайд на 100% */
.flavor-slide {
    flex: 0 0 100%;
    position: relative;
    text-align: center;
    /* padding: 20px; */
    box-sizing: border-box;
}

/* Бейдж + заголовок */
.flavor-badge-title {
    position: absolute;
    top: 0;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flavor-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 40px;
    font-family: Nunito;
    background: #FFFF7B;
    border-radius: 20px;
    font-weight: 800;
    font-size: 28px;
    color: #454545;
    z-index: 2;
}

.flavor-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #454545;
}

/* Изображение */
.flavor-image {
    display: block;
    /* margin: 0 auto 20px; */
    /* учитываем высоту badge-title */
    max-width: 100%;
    height: auto;
}

/* Слоган */
.flavor-slogan {
    position: absolute;
    bottom: 72px;
    /* отступ от низа слайда, скорректируйте по макету */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    /* чтобы быть над картинкой */
    margin: 0;
    /* сбрасываем внешние отступы */
    padding: 4px 8px;
    /* если нужен фон-подложка, можно задать тут */
    color: var(--White, #FFF);
    font-family: "Nunito Sans";
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    /* 42px */
}

/* Контролы */
.flavor-slider-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
}

.flavor-prev,
.flavor-next {
    background: none;
    border: none;
    font-size: 24px;
    color: #CFCFCF;
    cursor: pointer;
}

.flavor-dots {
    display: flex;
    gap: 6px;
}

.flavor-dot {
    width: 19px;
    height: 11px;
    background: #D9D9D9;
    /* border-radius: 50%; */
    cursor: pointer;
}

.flavor-dot.active {
    background: #1AA12B;
}

.flavor-title {
    color: var(--Gray-Gray, #454545);
    font-family: Nunito;
    font-size: 38px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    /* 41.8px */
}

/* ========== Мобильная версия ≤576px ========== */
@media (max-width: 576px) {

    /* Тот же флекс, но картинки подгоняются по mobile srcset */
    .flavor-slides {
        width: 100%;
    }

    .flavor-slide {
        padding: 0;
    }

    .flavor-badge-title {
        top: 0;
        left: 0;
        flex-direction:column;
        align-items: stretch;
        width: 97%;
    }
    .flavor-badge {
        margin-left: auto;
        font-size: 20px;
        width: 44px;
        height: 31px;
        padding: 5px;
        font-family: Nunito;
        font-weight: 800;
        line-height: 110%;
    }
    .flavor-title {
        margin-right: auto;
        padding-left: 18px;
    }

    .flavor-image {
        margin: 46px auto 16px;
    }

    .flavor-title {
        font-size: 28px;
    }

    .flavor-slogan {
        font-size: 22px;
        min-width: 280px;
    }

    .flavor-slider-controls {
        bottom: 30px;
    }

    /* Обёртка <picture> */
    .flavor-image {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Само <img> внутри <picture> */
    .flavor-image img {
        display: block;
        width: 100%;
        height: auto;
    }
    #flavor {
        max-height: 556px;
    }
}