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

.selected {
    color: #20539F;
}

.big-button {
    background: linear-gradient(270deg, #6FBEFF 0%, #AFDCFF 100%);
}

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 при дубль-
   флаконе 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) у #reg-картинки не было object-fit (contain
   только в @media ≤1200) → портретный пэкшот растягивался по ширине (fill). Теперь contain
   на всех вьюпортах: флакон вписывается без искажения, по бокам — фон bl15_bg2. */
#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;
    }
}

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

/* SEOX-2741: блок таймера — тёмная плашка «предложение действует до…» и светлая
   панель под ней части одной карточки, но общий .section__column-container
   { gap: 24px } разрывал их белой полосой. По макетам плашка примыкает вплотную. */
#price .price__main-container > .section__column-container.large {
    gap: 0;
}

/* ============================================================
   SEOX-2761 prost-X9.pl — палитра и панель пакетов по макету
   (Figma AWDszrLq7OkZP73zEL5sGE, пиксель-сэмпл).
   ============================================================ */

/* бренд-хайлайт H1 и акценты — приглушённый синий макета (сток: #20539F) */
.selected {
    color: #3E6B9E;
}

/* CTA: тёплый градиент макета с тёмным текстом (сток: голубой) */
.big-button,
.big-button.section__form-button {
    background: linear-gradient(90deg, #FCDBAA 0%, #FEBF71 100%);
    color: #28261B;
}

.big-button:hover {
    filter: brightness(0.95);
}

/* ---- панель пакетов (замена переключателя цен single-2) ---- */
.tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.tiers .tier {
    position: relative;
    flex: 1 1 calc((100% - 12px) / 2);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 20px 10px 14px;
    border: 2px solid #0038BC;
    border-radius: 12px;
    background: #FFFFFF;
    cursor: pointer;
}

.tiers--static .tier {
    cursor: default;
}

.tiers .tier--bonus {
    border-color: #00BC7D;
    background: #EDFCF4;
}

.tier__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.tier__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
}

.tier__badge--amber {
    background: #FFEBBE;
    color: #DD9B00;
    border: 1px solid #F3D894;
}

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

.tier__radio {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #C9CFDD;
    background: #FFFFFF;
}

/* подсвечивается ТОЛЬКО выбранная карточка */
.tier:has(.tier__input:checked) .tier__radio {
    border-color: #0038BC;
    background: radial-gradient(circle at 50% 50%, #FFFFFF 0 4px, #0038BC 4px 100%);
}

.tier--bonus:has(.tier__input:checked) .tier__radio {
    border-color: #00BC7D;
    background: radial-gradient(circle at 50% 50%, #FFFFFF 0 4px, #00BC7D 4px 100%);
}

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

.tier--bonus:has(.tier__input:checked) {
    box-shadow: 0 0 0 3px rgba(0, 188, 125, 0.18);
}

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

.tiers--static .tier__img {
    max-width: 260px;
    height: 190px;
}

.tier__prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.tiers--static .tier__prices {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.tier__price {
    padding: 6px 14px;
    border-radius: 6px;
    background: #155DFC;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.tier__price--bonus {
    background: #F46629;
}

.tier__plus {
    font-size: 17px;
    font-weight: 800;
    color: #28261B;
}

.tier__old {
    padding: 5px 14px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid #E3E3E3;
    color: #6B6B6B;
    font-size: 16px;
    font-weight: 700;
    text-decoration: line-through;
    white-space: nowrap;
}

.tier__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media screen and (max-width: 560px) {
    /* макет (mobile): пакеты в столбик, пэкшоты крупные */
    .tiers .tier {
        flex-basis: 100%;
    }

    .tier__img {
        max-width: 240px;
        height: 150px;
    }

    .tiers--static .tier__img {
        max-width: 240px;
        height: 150px;
    }

    .tier__price,
    .tier__old {
        font-size: 15px;
        padding-inline: 10px;
    }
}

/* ---- композиция: 7–9-й ингредиенты (широкий ряд под сеткой) ---- */
.composition-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    margin-top: 16px;
}

.composition-extra .section__item {
    flex: 1 1 calc((100% - 32px) / 3);
    /* сток режет карточку до max-width:384px — в широком ряду это оставляло
       контейнер наполовину пустым */
    max-width: none;
    min-width: 0;
}

@media screen and (max-width: 900px) {
    .composition-extra .section__item {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media screen and (max-width: 560px) {
    .composition-extra .section__item {
        flex-basis: 100%;
    }
}

/* витрина в #app: по макету старая цена слева, новая справа */
.tiers--static .tier__old {
    order: -1;
}

/* ---- #app: панель пакетов вместо картинки ---- */
#app .section__bottom-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* ============================================================
   SEOX-2761 r2 — правки по перепроверке макета
   ============================================================ */

/* панель формы: светло-голубой градиент макета (сток: серый #F5F5F5);
   мини-форма шага-1 в #path по макету остаётся серой — не трогаем */
#start .section__form,
#reg .section__form,
.form-popup .section__form {
    background: linear-gradient(160deg, #ECF0FC 0%, #EFF9FC 100%);
}

/* тир-2 (макет): «99 PLN + 99 PLN» строкой 1, «+ 3,98 PLN*» строкой 2;
   в широкой витрине #app — всё в одну строку */
.tier--bonus .tier__prices {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 6px;
    row-gap: 6px;
}

.tier--bonus .tier__prices .tier__price:first-child {
    grid-column: 1 / -1;
    justify-self: center;
}

.tiers--static .tier--bonus .tier__prices {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

/* composition: тонкая линия под заголовком карточки (макет block_7) */
#composition .section__card .heading-style-h4 {
    border-bottom: 1px solid #C9C9C9;
    padding-bottom: 10px;
}

/* ---- hero (макет block_1): слева H1 → текст → картинка, справа панель ---- */
#start .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#start .hero-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

#start .hero-left picture {
    display: flex;
    justify-content: center;
}

#start .section__image.desk {
    width: 100%;
    max-width: 820px;
    height: auto;
    object-fit: contain;
}

@media screen and (min-width: 1280px) {
    #start .hero-grid {
        flex-direction: row;
        align-items: flex-start;
    }

    /* H1 ужат, чтобы колонки hero были одной высоты (замер: left 671 vs form 670) */
    #start .hero-left h1 {
        font-size: 40px;
        line-height: 1.12;
    }

    /* макет: колонки hero равные (563/558 в 1200-сетке) */
    #start .hero-left {
        flex: 1 1 0;
        min-width: 0;
    }

    #start .hero-grid > .section__form {
        flex: 1 1 0;
        min-width: 0;
    }

    #start .hero-left picture {
        margin-top: auto;
        justify-content: flex-start;
    }
}

/* мобайл: сток поднимал сцену над пэкшотом (order:-1), в макете порядок обратный */
#start .section__column-container.mob .section__image.large {
    order: 0;
}

/* ============================================================
   Ревью 2026-07-30 (Anastasiya M)
   ============================================================ */

/* бургер: <button> даёт UA text-align:center — полоски без left
   уезжали вправо за контейнер; выравниваем по левому краю */
.header__hamburger {
    text-align: left;
}

.header__hamburger-item {
    left: 0;
}

/* мобайл: заголовок и текст #app в столбик */
@media screen and (max-width: 768px) {
    #app .section__top-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* #reg: колонка с картинкой не должна тянуть блок ниже панели формы */
@media screen and (min-width: 1280px) {
    #reg .section__image-container.desk img {
        max-height: 330px;
    }
}

/* ---- 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: block_1 / block_10 / block_15 ===== */

/* панель формы: серая #EBEBEB, radius 16, gap 18 (макет: form/body) */
#start .section__form,
#reg .section__form,
#path .section__form,
.form-popup .section__form {
    background: #EBEBEB;
    border: 0;
    border-radius: 16px;
    padding: 24px;
    gap: 18px;
}

/* заголовок формы: Epilogue Bold 28/32, по центру */
#start .section__form > .heading-style-h5,
#start .section__form > .heading-style-h4,
#reg .section__form > .heading-style-h4,
#reg .section__form > .heading-style-h5,
.form-popup .section__form > .heading-style-h4,
.form-popup .section__form > .heading-style-h5 {
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.56px;
    text-align: center;
}

/* цена: пилюля #F42F29, Inter Tight SemiBold 32/32 */
.price-single__value {
    padding: 10px 18px;
    border-radius: 58px;
    font-size: 32px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: -0.64px;
}

/* инпуты: белые, обводка 1.5px #DDDDDC, radius 58 */
#start .section__form-input,
#reg .section__form-input,
#path .section__form-input,
.form-popup .section__form-input {
    border: 1.5px solid #DDDDDC;
    border-radius: 58px;
    min-height: 44px;
    padding: 16px;
    font-size: 16px;
    line-height: 20px;
}

/* CTA: градиент #FDE6B3 → #FFCC6D, 18px uppercase, radius 68 */
#start .section__form-button,
#reg .section__form-button,
#path .section__form-button,
.form-popup .section__form-button {
    background: linear-gradient(to left, #FFCC6D 0%, #FDE6B3 100%);
    color: #28261B;
    font-size: 18px;
    line-height: 1;
    padding: 16px 28px;
    border-radius: 68px;
    text-transform: uppercase;
}

/* block_10: слева текст + кнопка, справа композиция с бейджем цены */
#app .offer-row {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

#app .offer-row__col {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

#app .offer-row__col .section__item-text-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#app .offer-row__media {
    position: relative;
    flex: 0 0 513px;
    height: 400px;
}

#app .offer-row__img {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 400px;
    width: auto;
    object-fit: contain;
}

#app .offer-row__badge {
    position: absolute;
    left: 19px;
    top: 25px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 5px 5.5px rgba(0, 0, 0, 0.12);
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.64px;
    color: #28261B;
    white-space: nowrap;
}

#app .offer-row__badge img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

@media screen and (max-width: 1024px) {
    #app .offer-row {
        flex-direction: column;
        align-items: stretch;
    }

    #app .offer-row__media {
        flex: 0 0 auto;
        height: 320px;
    }

    #app .offer-row__img {
        height: 320px;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }

    #app .offer-row__badge {
        left: 0;
        top: 0;
        font-size: 24px;
        line-height: 30px;
        padding: 12px;
        gap: 10px;
    }

    #app .offer-row__badge img {
        width: 32px;
        height: 32px;
    }
}

@media screen and (min-width: 1280px) {
    /* hero: [H1 | подтекст] / [фото | форма] — как в макете block_1 */
    #start .section__container > .section__column-container {
        grid-template-rows: auto auto;
        row-gap: 32px;
    }

    #start .section__container > .section__column-container > .section__row-container:nth-child(1) > p {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        font-size: 22px;
        line-height: 30px;
    }

    #start .section__container > .section__column-container > .section__row-container:nth-child(2) > picture {
        grid-column: 1;
        grid-row: 2;
        align-self: stretch;
        height: 453px;
    }

    #start .section__container > .section__column-container > .section__row-container:nth-child(2) > picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
    }

    #start .section__container > .section__column-container .section__form {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }

    /* тот же макет для лендов с hero-grid/hero-left (prost-x9) */
    #start .hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 564px;
        grid-template-rows: auto auto;
        column-gap: 24px;
        row-gap: 32px;
        align-items: start;
    }

    #start .hero-left {
        display: contents;
    }

    #start .hero-left h1 {
        grid-column: 1;
        grid-row: 1;
        font-size: 48px;
        line-height: 1;
    }

    #start .hero-left > p {
        grid-column: 2;
        grid-row: 1;
        font-size: 22px;
        line-height: 30px;
    }

    #start .hero-left picture {
        grid-column: 1;
        grid-row: 2;
        height: 453px;
        align-self: start;
        margin-top: 0;
        overflow: hidden;
        border-radius: 16px;
    }

    #start .hero-left picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
    }

    #start .hero-grid > .section__form {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }

    /* block_15: слева H2 + текст + форма, справа картинка во всю высоту */
    #reg .section__row-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 588px;
        grid-template-rows: auto auto 1fr;
        column-gap: 24px;
        row-gap: 16px;
        align-items: start;
    }

    #reg .section__row-container > .section__column-container {
        display: contents;
    }

    #reg .section__row-container h2 {
        grid-column: 1;
        grid-row: 1;
    }

    #reg .section__row-container > .section__column-container > p {
        grid-column: 1;
        grid-row: 2;
    }

    #reg .section__row-container .section__form {
        grid-column: 1;
        grid-row: 3;
        align-self: start;
    }

    #reg .section__image-container.desk {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: stretch;
        width: auto;
        max-width: 100%;
        height: auto;
    }

    #reg .section__row-container > .section__column-container > p {
        font-size: 22px;
        line-height: 30px;
    }
}

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

@media screen and (min-width: 1280px) {
    /* фото hero тянется по высоте ряда, т.е. по форме рядом — без пустого места снизу */
    #start .section__container > .section__column-container,
    #start .section__container > .section__column-container:first-child {
        row-gap: 64px;
        column-gap: 24px;
        align-items: stretch;
    }

    #start .section__container > .section__column-container > .section__row-container:nth-child(2) > picture,
    #start .hero-left picture {
        height: auto;
        align-self: stretch;
    }

    #start .section__container > .section__column-container > .section__row-container:nth-child(2) > picture img,
    #start .hero-left picture img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    #start .hero-grid {
        row-gap: 64px;
        align-items: stretch;
    }

    #start .hero-grid > .section__form,
    #start .section__container > .section__column-container .section__form {
        align-self: start;
    }
}

/* ===== SEOX-2825 hero fix: gap 32 + равные колонки ===== */

@media screen and (min-width: 1280px) {
    /* макет block_1: карточка = flex-col gap 32, ряды не «разъезжаются» */
    #start .section__container > .section__column-container,
    #start .section__container > .section__column-container:first-child,
    #start .hero-grid {
        row-gap: 32px;
        column-gap: 24px;
        align-items: stretch;
    }

    /* подтекст прижат к верху своей колонки, не растягивается */
    #start .section__container > .section__column-container > .section__row-container:nth-child(1) > p,
    #start .hero-left > p {
        align-self: start;
    }

    /* фото и панель формы — одна высота (макет: 453px), фото кроется по боксу */
    #start .section__container > .section__column-container > .section__row-container:nth-child(2) > picture,
    #start .hero-left picture,
    #start .section__container > .section__column-container .section__form,
    #start .hero-grid > .section__form {
        align-self: stretch;
        height: auto;
        min-height: 453px;
    }

    #start .section__container > .section__column-container > .section__row-container:nth-child(2) > picture img,
    #start .hero-left picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
    }

    /* контент формы распределяется по панели, без «хвоста» пустоты снизу */
    #start .section__container > .section__column-container .section__form,
    #start .hero-grid > .section__form {
        justify-content: center;
    }
}
