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

.sections__container-bg .section-bg-picture {
    position: absolute;
    inset: 0;
    min-width: 0;
    min-height: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.sections__container-bg .section-bg-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#start .section__row-container .flex-row-picture,
#start .section__column-container.mob .flex-row-picture {
    display: contents;
}

#reg .section__image-container .reg-split-picture {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}

#reg .section__image-container .reg-split-picture .section__image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

@media screen and (max-width: 768px) {
    #start .section__image-container>picture .section__image {
        max-width: 300px;
        max-height: 300px;
        margin-inline: auto;
    }
}

/* PeniGreat palette (per Figma tOEg2NAOzLRX, pixel-sampled): brand highlight
   blue #2d67a6, CTA flat light-green #b8ea8c with dark text, price red #f42f29
   (stock single-2 already). */
.selected {
    color: #2d67a6;
}

.big-button {
    background: #b8ea8c;
    color: #28261b;
}

.big-button:hover {
    background: #a9e578;
}

h1 .selected {
    text-transform: uppercase;
}

.section__delivery {
    background: #D5D4D4;
}

/* ============================================================
   GENERIC single-2 layout fixes — запекаются в СТОК (не per-site).
   Источник: проверенные ревью-фиксы из single-2-vigormax (SEOX-2298),
   возвращены в сток на SEOX-2401, чтобы НЕ всплывать на каждом новом
   single-2-сайте. Бренд-зависимое (#reg background-image при дубль-
   флаконе register-section-bg-2; точечный recolor) — НЕ здесь, делать per-site.
   ============================================================ */

/* hero: картинка-сцена была на всю ширину (#start .section__image{max-width:100%}),
   форма уезжала ПОД неё. Возвращаем ряд "картинка | форма". */
@media screen and (min-width: 481px) {
    #start .section__image.desk {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 16px;
        max-height: 100%;
    }
}

/* side-by-side "картинка | форма" только ≥1280: на 769–1279 у .section__container
   max-width:694 сжимал картинку в полоску ~42px (iPad 1024 «стиснулась картинка»). */
@media screen and (min-width: 1280px) {
    #start .section__container > .section__column-container > .section__row-container:nth-child(2) {
        flex-wrap: nowrap;
        align-items: stretch;
    }
    #start .section__container > .section__column-container > .section__row-container:nth-child(2) > picture {
        flex: 1 1 0;
        min-width: 0;
        align-self: stretch;
        display: flex;
        overflow: hidden;
        border-radius: 16px;
    }
}

/* 481–1279: картинка hero ОТДЕЛЬНОЙ строкой над формой (центрирована, не сжимается). */
@media screen and (min-width: 481px) and (max-width: 1279px) {
    #start .section__container > .section__column-container > .section__row-container:nth-child(2) > picture {
        width: 100%;
        max-width: 460px;
        margin-inline: auto;
        display: flex;
        overflow: hidden;
        border-radius: 16px;
    }
}

/* reg: базовый .section__image{flex-shrink:0} не давал флакону ужаться под колонку. */
#reg .section__image {
    flex-shrink: 1;
}

/* лого в шапке: ширина по соотношению сторон (без растяжения от атрибута width). */
.header__logo {
    width: auto;
}

/* отзывы: аватары были 96px → 48px на всех девайсах; блок автора влево. */
#review .section__card .section__row-container.center img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: cover;
}
#review .section__card .section__row-container.center {
    justify-content: flex-start;
}

/* #solutions: картинка растягивалась (база object-fit:fill, width=атрибут в узкой колонке) → cover. */
#solutions .section__column-container--relative .section__image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

/* мобайл: отступ продукт→форма (gap колонки 48px) выровнять с текст→продукт (40px). */
@media screen and (max-width: 768px) {
    #start .section__container > .section__column-container:first-child {
        gap: 40px;
        row-gap: 40px;
    }
}

/* SEOX-2401 ревью: бренд-хайлайт .selected (#20539F) в #solutions на тёмном фоне
   (#3d3f42) плохо читается. Только #solutions тёмная среди стандартных секций →
   светло-синий тон. Остальные .selected на светлом фоне — #20539F остаётся. */
#solutions .selected {
    color: #6FBEFF;
}

/* Composition: 9 ingredients (>6) -> 3x3 grid below centered bottles, per Figma macet
   (stock single-2 only had 6 cards flanking the image; keyless rows Cynk/Likopen/Selen
   were being dropped). */
#composition .section__row-container--center {
    justify-content: center;
}
#composition .section__image-container-center img {
    width: 100%;
    max-width: 430px;
    height: auto;
    margin-inline: auto;
    display: block;
}
#composition .composition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 32px;
}
#composition .composition-grid .section__item {
    max-width: none;
}
@media screen and (max-width: 900px) {
    #composition .composition-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 560px) {
    #composition .composition-grid { grid-template-columns: 1fr; }
}

/* Discount badge "-67%" on price toggle (per Figma macet: cream pill straddling
   the seam between old/new price; stock single-2 has no such badge). 299->99 = -67%. */
.price__values-container {
    position: relative;
    overflow: visible;
}
.price__values-container .price__discount-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    width: auto;
    right: auto;
    background: #ffebbe;
    color: #dd9b00;
    border: 1px solid #f3d894;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
    z-index: 6;
}
