/* overrides.css — сюда добавляй стили для перезаписи */

.sections__container > picture.hero-bg-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    pointer-events: none;
}

.sections__container > picture.hero-bg-picture .sections__bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}



/* Отзывы: блок автора (аватар + подпись) прижат влево, а не по центру карточки —
   база .section__row-container центрирует ряд. Тот же фикс, что в single-2.
   ⛔ Ряд стрелок слайдера (.my-controls) исключён — он остаётся по центру. */
#review .section__row-container.center:not(.my-controls) {
    justify-content: flex-start;
}

#review .section__row-container.my-controls {
    justify-content: center;
}


/* ===================== SEOX-2776 VitaVeno-X9 — палитра макета ===================== */
/* CTA: золотой градиент (пиксель-сэмпл макета #F4DBB8 → #FEC05C), текст тёмный. */
.big-button,
.big-button.green-btn,
form .big-button,
.header__button {
    background: linear-gradient(90deg, #F4DBB8 0%, #FEC05C 100%);
    color: #28261B;
}

/* Ховер затемняет СВОЙ цвет — palette-agnostic (не прыгает в токен). */
.big-button:hover {
    filter: brightness(0.94);
}

/* В макете бренд в заголовках НЕ выделен цветом — хайлайт наследует цвет H. */
.selected {
    color: inherit;
}


/* ============================ Панель двух пакетов ============================ */
.tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.tier {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding: 18px 12px 14px;
    border-radius: 16px;
    border: 2px solid #D8DEEC;
    background: #fff;
    cursor: pointer;
    transition: 0.25s ease;
}

.tier input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.tier__radio {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #C3CCE0;
    background: #fff;
}

.tier__badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 12px;
    border-radius: 999px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 16px;
    white-space: nowrap;
}

.tier__badge--blue {
    background: #FFEBBE;
    color: #DD9B00;
}

.tier__badge--green {
    background: #00C34D;
    color: #fff;
}

.tier__title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #28261B;
    text-align: center;
}

.tier__img {
    width: auto;
    max-width: 100%;
    height: 108px;
    object-fit: contain;
}

.tier__prices {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    gap: 4px 6px;
    width: 100%;
}

.tier__price {
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* Первая строка цен занимает всю ширину — «+ 3,98 PLN*» уходит на вторую (макет). */
.tier__prices > .tier__price--new {
    grid-column: 1 / -1;
    padding: 4px 10px;
    border-radius: 6px;
    background: #155DFC;
    color: #fff;
}

.tier__price--old {
    grid-column: 1 / -1;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #E5E5E1;
    background: #fff;
    color: #7C7B79;
    font-weight: 500;
    text-decoration: line-through;
}

.tier__plus {
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #28261B;
}

.tier__price--bonus {
    padding: 4px 10px;
    border-radius: 6px;
    background: #F46629;
    color: #fff;
}

/* Цвета карточек — как в макете (синяя и зелёная рамки постоянные),
   выбранная дополнительно подсвечена кольцом и заполненным radio. */
.tier--1 {
    border-color: #0038BC;
}

.tier--2 {
    border-color: #00BC7D;
    background: #ECFCF4;
}

.tier--1 .tier__radio {
    border-color: #0038BC;
}

.tier--2 .tier__radio {
    border-color: #00BC7D;
}

.tier--1:has(input:checked) {
    box-shadow: 0 0 0 3px rgba(0, 56, 188, 0.18);
}

.tier--2:has(input:checked) {
    box-shadow: 0 0 0 3px rgba(0, 188, 125, 0.2);
}

.tier--1:has(input:checked) .tier__radio {
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 12px #0038BC;
}

.tier--2:has(input:checked) .tier__radio {
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 12px #00BC7D;
}

/* Мобайл: пакеты столбиком, как в макете. */
@media (max-width: 560px) {
    .tier {
        flex-basis: 100%;
    }

    .tier__img {
        height: 132px;
    }
}

/* ====================== Состав: пэкшот сверху + сетка 3×3 ====================== */
.composition-wrap {
    gap: 24px;
}

.composition-packshot {
    display: flex;
    justify-content: center;
    width: 100%;
}

.composition-packshot .section__image {
    max-width: 420px;
    height: auto;
    object-fit: contain;
}

.composition-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.composition-grid .section__item {
    width: auto;
    max-width: none;
}

@media (max-width: 900px) {
    .composition-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .composition-grid {
        grid-template-columns: 1fr;
    }
}


/* ---------------------- раунд-2: доводка по замерам макета ---------------------- */
/* Панель акции в hero: в макете ~796px при 1920 (≈2/3 колонки контента). */
@media (min-width: 1025px) {
    #start .section__form,
    #reg .section__form {
        max-width: 600px;
    }
}

/* Состав: сетка во всю ширину контейнера, карточки — белые плашки (макет). */
#formula .section__column-container.large {
    max-width: none;
    width: 100%;
}

.composition-grid .section__item.large {
    gap: 10px;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
}

/* В макете у карточек состава нет иконок-галочек. */
.composition-grid .section__item.large::before,
.composition-grid .section__item.large > img {
    display: none;
}

.composition-grid .section__item .heading-style-h4 {
    padding-bottom: 10px;
    border-bottom: 1px solid #E3E1DC;
}

/* Финальный блок: заголовок/текст по центру, панель под ними (макет). */
@media (min-width: 1025px) {
    #reg .section__row-container.reg-center {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    #reg .section__row-container.reg-center > .section__column-container.large {
        max-width: 760px;
        text-align: center;
        align-items: center;
    }

    #reg .section__form {
        width: 100%;
    }
}

/* Формы hero и финального блока — по центру контейнера (макет). */
#start .section__row-container.full-width,
#reg .section__row-container.reg-center {
    justify-content: center;
}

/* Крестик попапа: белый X на затемнении читается, но на мобайле попадает на
   белую карточку формы → даём тёмный диск (правило SEOX-2380, без filter). */
.form-popup .close-popup {
    background: rgba(40, 38, 27, 0.55);
    border-radius: 50%;
    padding: 10px;
}


/* -------- раунд-3: состав строго по макету (ревью Anastasiya M в Figma) -------- */
/* Десктоп: 6-колоночная сетка — 9 карточек по 2 колонки (=3 в ряд), последние две
   (Magnez, Potas) по 3 колонки (=2 в ряд), как в макете. */
.composition-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px 24px;
}

.composition-grid > .section__item {
    grid-column: span 2;
}

.composition-grid > .section__item:nth-child(10),
.composition-grid > .section__item:nth-child(11) {
    grid-column: span 3;
}

.composition-grid .section__item.large {
    gap: 12px;
    padding: 24px 28px;
    border-radius: 12px;
}

/* В макете под заголовком карточки нет линии-разделителя. */
.composition-grid .section__item .heading-style-h4 {
    padding-bottom: 0;
    border-bottom: none;
}

/* Кнопка «Zobacz więcej» — только мобайл (в макете десктоп показывает всё). */
.composition-toggle {
    display: none;
}

@media (max-width: 900px) {
    .composition-grid > .section__item,
    .composition-grid > .section__item:nth-child(10),
    .composition-grid > .section__item:nth-child(11) {
        grid-column: span 3;
    }
}

@media (max-width: 560px) {
    .composition-grid {
        grid-template-columns: 1fr;
    }

    .composition-grid > .section__item,
    .composition-grid > .section__item:nth-child(10),
    .composition-grid > .section__item:nth-child(11) {
        grid-column: span 1;
    }

    /* свёрнуто: видны первые 5 ингредиентов */
    .composition-grid > .section__item:nth-child(n + 6) {
        display: none;
    }

    .composition-grid.is-expanded > .section__item:nth-child(n + 6) {
        display: flex;
    }

    .composition-toggle {
        display: block;
        align-self: center;
        margin-top: 4px;
        padding: 13px 32px;
        border: none;
        border-radius: 999px;
        background: linear-gradient(180deg, #9FE188 0%, #88DB6A 100%);
        color: #1B2317;
        font-family: 'Inter Tight', sans-serif;
        font-size: 16px;
        font-weight: 600;
        line-height: 20px;
        cursor: pointer;
        transition: 0.25s ease;
    }

    .composition-toggle:hover {
        filter: brightness(0.95);
    }
}

/* Отзывы: аватар — компактный круг 48px (сток single-1 отдаёт исходные 96px,
   ревьюер: «фото в коментарях завеликі»). */
#review .section__card .section__row-container.center img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    object-fit: cover;
}

#review .section__card .section__row-container.center {
    gap: 12px;
    align-items: center;
}

/* ---- SEOX-2825: одна цена вместо панели пакетов ---- */
.price-single {
    display: flex;
    width: 100%;
    justify-content: center;
}

.price-single__value {
    display: block;
    width: 100%;
    padding: 11px 20px;
    border-radius: 999px;
    background: #F42F29;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.offer-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.offer-single__img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
}

.offer-single__price {
    padding: 11px 28px;
    border-radius: 999px;
    background: #F42F29;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

@media screen and (max-width: 560px) {
    .price-single__value {
        font-size: 19px;
    }

    .offer-single__price {
        font-size: 20px;
    }
}

/* ===== SEOX-2825 macet pass (vitaveno) ===== */

/* цена: пилюля #F45829, подпись «tylko» над значением (макет form/body) */
.price-single {
    display: flex;
    width: 100%;
}

.price-single__label,
.price-single__value {
    display: block;
    text-align: center;
    color: #FFFFFF;
}

.price-single {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 18px;
    border-radius: 58px;
    background: #F45829;
}

.price-single__label {
    font-size: 10px;
    line-height: 20px;
    font-weight: 700;
}

.price-single__value {
    padding: 0;
    border-radius: 0;
    background: none;
    font-size: 32px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: -0.64px;
    white-space: nowrap;
}

/* инпуты и панель по макету */
.section__form-input {
    border: 1.5px solid #E5E5E1;
    border-radius: 58px;
    min-height: 44px;
    padding: 16px;
    font-size: 16px;
    line-height: 20px;
}

#start .section__form,
#reg .section__form,
.form-popup .section__form {
    border-radius: 16px;
    padding: 24px;
    gap: 18px;
}

/* hero: слева композиция пэкшота, справа форма (макет bl1_bg1) */
#start .hero-pack {
    display: none;
}

@media screen and (min-width: 1280px) {
    #start .section__row-container.full-width.center {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }

    #start .hero-pack {
        display: flex;
        flex: 0 0 690px;
        align-items: center;
        justify-content: center;
    }

    #start .hero-pack__img {
        width: 100%;
        max-width: 690px;
        height: auto;
        object-fit: contain;
    }

    #start .section__row-container.full-width.center > .section__form {
        flex: 0 0 486px;
        width: 486px;
        max-width: 486px;
    }
}

/* ===== SEOX-2825 rev2 (ревью 12.08) ===== */

/* картинка первого блока — на всех вьюпортах (ревью: на мобайле/планшете её не было) */
#start .hero-pack {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#start .hero-pack__img {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width: 1279px) {
    #start .section__row-container.full-width.center {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
}

@media screen and (max-width: 560px) {
    #start .hero-pack__img {
        max-width: 300px;
    }
}

@media screen and (min-width: 1280px) {
    #start .hero-pack__img {
        max-width: 568px;
    }
}
