/* 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;
    }
}

/* ===== Artevix (SEOX-2356) palette по макету Figma ===== */
/* H1 brand highlight — teal #52A1BE (token primary/yellow в макете) */
.selected {
    color: #52A1BE;
}

/* CTA-кнопки — золотой градиент макета (bg-gradient-to-l from #fdd86b to #fff1aa), тёмный текст */
.big-button {
    background: linear-gradient(to left, #fdd86b 0%, #fff1aa 100%);
    color: #28261b;
}
.big-button:hover {
    filter: brightness(0.95);
}

h1 .selected {
    text-transform: uppercase;
}

.section__delivery {
    background: #D5D4D4;
}

/* ===== TRUST BAR (зелёная плашка #5F9D3C, ×2 — под шапкой и перед reg) ===== */
.trust-bar {
    background: #5F9D3C;
    color: #fff;
    width: 100%;
}
.trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 64px;
    padding: 16px 0;
}
.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
}
.trust-bar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #5F9D3C;
}
.trust-bar__icon svg {
    width: 22px;
    height: 22px;
}
@media screen and (max-width: 768px) {
    .trust-bar__inner {
        gap: 14px 22px;
        padding: 12px 0;
    }
    .trust-bar__item {
        font-size: 14px;
        gap: 8px;
    }
    .trust-bar__icon {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
    }
    .trust-bar__icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================================
   GENERIC single-2 layout fixes — запекаются в СТОК (не per-site).
   Источник: проверенные ревью-фиксы из single-2-vigormax (SEOX-2298),
   возвращены в сток на SEOX-2401, чтобы НЕ всплывать на каждом новом
   single-2-сайте. Бренд-зависимое (#reg background-image при дубль-
   флаконе bl15_bg2; точечный 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} не давал флакону ужаться под колонку. */
/* object-fit:contain на всех вьюпортах: на десктопе (>1200) пэкшот шёл fill и растягивался. */
#reg .section__image {
    flex-shrink: 1;
    object-fit: contain;
}

/* лого в шапке: ширина по соотношению сторон (без растяжения от атрибута 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;
    }
}

/* #solutions тёмная среди стандартных секций — бренд-хайлайт teal #52A1BE плохо
   читается на тёмном фоне → светлый teal. Остальные .selected на светлом — #52A1BE. */
#solutions .selected {
    color: #8FD3EC;
}

/* Старая цена в переключателе — зачёркнута (сток single-2 шёл с text-decoration:none). */
.price__previous-value p:last-child {
    text-decoration: line-through;
}

/* Hero-рейтинг по макету: «4.9 ★★★★★ según más de 600 valoraciones» над сабтекстом
   (стоковый single-2 hero его не несёт). hero-intro = правая колонка (рейтинг+сабтекст). */
.hero-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 360px;
    max-width: 566px;
}
.hero-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-rating__value {
    font-weight: 700;
    font-size: 18px;
    color: #28261b;
}
.hero-rating__stars {
    width: 100px;
    height: auto;
    flex-shrink: 0;
}
.hero-rating__text {
    color: #7c7b79;
    font-size: 15px;
}
