/* ===================================================================
   single-2-small — пиксель-перфект под макет Figma (Hondroxid/Limonad).
   Грузится ПОСЛЕ bundle.css, переопределяет базу single-2.
   Раскладка колонок — на CSS Grid (1fr-колонки + gap), БЕЗ flex:1/nowrap/
   min-width:0 (они и ломали вёрстку). На узких экранах grid → одна колонка.
   =================================================================== */

   :root {
    --c-black: #1a1a1a;
    --c-brand: #26625A;
    --c-badge: #AC4D99;
    --c-grey: #ebebeb;
    --c-cream: #fffefa;
    --c-beige: #DBE8E5;
    --c-lite: #f4f4f4;
    --c-muted: #64666e;
    --c-muted2: #7c7b79;
    --c-red: #f42f29;
    --c-stroke: #dddddc;
    --c-delivery: #d5d4d4;
    --c-note-bg: #ecfff3;
    --grad: linear-gradient(270deg, #63DBBB 0%, #A9EBD3 100%);
}

/* ---------- picture helpers ---------- */
.sections__container-bg .section-bg-picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sections__container-bg .section-bg-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===================== GLOBAL ===================== */
body { background: #ffffff; color: var(--c-black); }

h1 { font-family: 'Epilogue', serif; font-weight: 700; font-size: 48px; line-height: 0.95; letter-spacing: -0.96px; overflow-wrap: break-word; }
h2 { font-family: 'Epilogue', serif; font-weight: 700; font-size: 48px; line-height: 1; letter-spacing: -0.96px; text-transform: capitalize; color: var(--c-black); overflow-wrap: break-word; }
.heading-style-h3 { font-family: 'Epilogue', serif; font-weight: 700; font-size: 32px; line-height: 40px; letter-spacing: -0.64px; color: var(--c-black); }
.heading-style-h4, .heading-style-h5 { font-family: 'Epilogue', serif; font-weight: 700; font-size: 28px; line-height: 32px; letter-spacing: -0.56px; color: var(--c-black); }
p { font-family: 'Inter Tight', sans-serif; font-weight: 400; font-size: 18px; line-height: 26px; color: var(--c-black); }
.selected { color: var(--c-brand); text-transform: none; }
h1 .selected { text-transform: none; }

.big-button {
    background: var(--grad); color: var(--c-black);
    font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 18px; line-height: 1;
    text-transform: uppercase; border-radius: 25px; padding: 16px 28px;
}
form .big-button { color: var(--c-black); }

/* base single-2 ставит .section__image { display:flex } → картинки без width/height-атрибутов
   схлопываются в 0×0. Делаем нормальной блочной картинкой с авто-высотой. */
.section__image, #start .section__image, #reg .section__image { display: block; width: 100%; height: auto; max-width: 100%; }

/* ===================== SECTION CARDS ===================== */
.sections__container { margin-block: 12px; padding-block: 100px; border-radius: 16px; gap: 48px; }
.sections__container.start,
.sections__container.reg,
.sections__container.gray { background: var(--c-grey); }   /* hero, reg, instruction */
.sections__container.beige { background: var(--c-beige); }  /* benefits */
.sections__container.cream { background: var(--c-cream); }  /* price */
.section__container { gap: 48px; }

/* --- шапка секции [H2 | intro] → grid 1fr 1fr --- */
.section__top-container { display: block; text-align: left; }
.section__top-container--flex-start { display: block; }
.section__top-container .section__row-container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
#price .section__top-container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.section__top-container p, .section__top-container .big-text-container { font-size: 22px; line-height: 1.5; font-weight: 400; color: var(--c-black); margin: 0; }
.section__bottom-container { text-align: center; }
.section__bottom-container p { font-size: 22px; line-height: 1.5; color: var(--c-black); }

/* ===================== HEADER ===================== */
.header { background: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
.header > .container { max-width: 1248px; padding-inline: 24px; }
.header__container { padding-block: 18px; }
.header__logo { height: 36px; width: auto; }
.header__nav-link { color: var(--c-black); font-family: 'Inter Tight', sans-serif; font-weight: 500; font-size: 16px; line-height: 20px; }
.header__nav-link::before { background-color: var(--c-brand); }
.header .big-button { padding: 14px 24px; }

/* ===================== TRUST BAR (grid 3 cols) ===================== */
.trust-bar { width: 100%; margin: 0; border-radius: 0; background: var(--c-badge); padding-block: 8px; }
.trust-bar .container { max-width: 1200px; }
.trust-bar__list { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.trust-bar__item { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; }
.trust-bar__item p { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.5; color: #fff; margin: 0; }
.trust-bar__icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--c-badge); }
.trust-bar__icon svg { width: 24px; height: 24px; }
.trust-bar__icon svg path { fill: var(--c-badge); }

/* ===================== HERO (#start) ===================== */
#start .section__container > .section__column-container:first-child { background: var(--c-cream); border-radius: 16px; padding: 48px 24px 24px; gap: 48px; }
/* верхний ряд [H1 | rating+desc] → grid */
#start .hero-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
#start .hero-top > h1 { line-height: 0.9; font-size: 48px; }
#start .hero-intro { display: flex; flex-direction: column; gap: 24px; }
#start .hero-intro > p { font-size: 22px; line-height: 1.5; color: var(--c-black); }
.section__rating { display: flex; flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.section__rating-value { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.5; color: #091412; }
.section__rating-stars { width: 80px; height: auto; }
.section__rating-text { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.5; color: var(--c-muted2); margin: 0; }
/* нижний ряд [image | form] → grid */
#start .section__container > .section__column-container > .section__row-container:last-child { display: grid; grid-template-columns: 1fr 564px; gap: 24px; align-items: center; }
#start .section__row-container > picture { display: flex; }
#start .section__image.desk { width: 100%; border-radius: 16px; }

/* ===================== FORM ===================== */
.section__form { background: var(--c-grey); border-radius: 16px; padding: 24px; gap: 18px; max-width: 564px; }
#start .section__form { max-width: 564px; }
.section__form .heading-style-h5, .section__form .heading-style-h4 { font-family: 'Epilogue', serif; font-weight: 700; font-size: 28px; line-height: 32px; letter-spacing: -0.56px; text-align: center; color: var(--c-black); }
.section__form-input { border-radius: 58px; border: 1.5px solid var(--c-stroke); background: #fff; padding: 16px; font-size: 16px; line-height: 20px; color: var(--c-black); }
/* запас слева под кнопку кода страны до инициализации JS */
.section__form-input.phone { padding-left: var(--phone-select-gap, 90px) !important; }
.section__form-row { gap: 12px; }
.price__values-container > div { padding: 10px 18px; }
.price__previous-value { border-radius: 58px 0 0 58px; border: 1px solid var(--c-stroke); background: #fff; }
.price__previous-value p { color: var(--c-muted); font-size: 24px; line-height: 32px; letter-spacing: -0.48px; font-weight: 600; text-decoration: line-through; }
.price__current-value { border-radius: 0 58px 58px 0; background: var(--c-red); color: #fff; }
.price__current-value p { font-size: 24px; line-height: 32px; letter-spacing: -0.48px; font-weight: 600; color: #fff; }
.section__delivery { background: var(--c-delivery); border-radius: 2px; padding: 4px; gap: 8px; }
.section__delivery p { color: #6b6b6b; font-size: 14px; line-height: 22px; font-weight: 500; }
.section__form .big-button { width: 100%; border-radius: 68px; }
.checkbox-svg p, .checkbox-svg p a { color: var(--c-black) !important; mix-blend-mode: normal !important; }

/* ===================== BENEFITS (grid 2×2) ===================== */
#benefits .section__container > .section__row-container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
#benefits .section__image-card { background: #fff; border-radius: 16px; padding: 24px; gap: 24px; justify-content: flex-end; height: auto; max-width: none; }
/* фикс «сплющивания»: пропорции картинки задаём aspect-ratio (как в макете ~1.72),
   а не фиксированной высотой — иначе на узких/планшетных карточках фото становится
   широкой короткой полосой. */
/* Исходники картинок из макета ≤600px — не рендерим крупнее натуральных (апскейл → мыло).
   Натурал glucose-meter-blood-sugar-monitoring: 516×300 → кап 516, по центру карточки. */
#benefits .section__card-image-wide { width: 100%; max-width: 516px; margin-inline: auto; display: block; aspect-ratio: 516 / 300; height: auto; object-fit: cover; border-radius: 16px; }
#benefits .section__item-text-container { gap: 16px; }
#benefits .section__item-text-container .heading-style-h4 { color: var(--c-black); }
#benefits .section__item-text-container p:last-child { color: var(--c-muted); font-size: 18px; line-height: 1.5; }

/* ===================== COMPOSITION (grid [1fr auto 1fr]) ===================== */
#composition .section__container > .section__row-container { display: flex; flex-direction: row; gap: 24px; align-items: center; }
#composition .section__column-container { gap: 24px; }
#composition .section__card { background: var(--c-grey); border-radius: 16px; padding: 24px; gap: 8px; }
#composition .section__card .heading-style-h4 { width: 100%; padding-bottom: 12px; border-bottom: 1px solid #cfcfca; color: var(--c-black); }
#composition .section__card p.small { color: var(--c-muted); font-size: 18px; line-height: 1.5; max-width: none; }
/* Натурал glyvena-natural-glucose-support-capsules: 276×420 → кап 276; height:auto убивает сплющивание в 300×300
   (база single-2 даёт img height:100% внутри флекса). */
#composition .section__image-container-center { max-width: 276px; padding: 0; }
#composition .section__image-container-center img { height: auto; }

/* ===================== INSTRUCTION (grid 3 cols) ===================== */
#instruction .section__container > .section__row-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
#instruction .instruction-card { background: var(--c-cream); border-radius: 16px; padding: 24px; gap: 24px; min-height: auto; justify-content: flex-start; align-items: flex-start; max-width: none; }
#instruction .instruction-card__icon { width: 40px; height: 40px; color: var(--c-black); }
#instruction .instruction-card__icon svg { width: 40px; height: 40px; }
#instruction .instruction-card .section__item-text-container p { color: var(--c-muted); font-size: 18px; line-height: 1.5; }
.instruction__note { width: 100%; box-sizing: border-box; padding: 16px; border-radius: 8px; border: 2px dashed var(--c-badge); background: var(--c-note-bg); text-align: center; }
.instruction__note p { margin: 0; color: var(--c-badge); font-weight: 600; font-size: 18px; line-height: 26px; }

/* ===================== PRICE (grid [panel | media]) ===================== */
.price-offer { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.price-offer__left { display: grid; grid-template-rows: auto 1fr; }
.price-offer__bar { background: var(--c-black); padding: 8px 48px; border-radius: 16px 0 0 0; }
.price-offer__bar p { color: #fff; font-weight: 700; font-size: 18px; line-height: 1.5; text-align: center; }
.price-offer__panel { background: var(--c-lite); padding: 24px; border-radius: 0 0 0 16px; display: flex; flex-direction: column; gap: 24px; }
.price-offer__panel > p { color: var(--c-muted); font-size: 18px; line-height: 26px; }
.price-offer__texts { display: flex; flex-direction: column; gap: 16px; }
.price-offer__media { position: relative; border-radius: 0 16px 16px 0; overflow: hidden; }
.price-offer__media img { width: 100%; height: 100%; object-fit: cover; display: block; } 
.price__timer-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price__timer-item { height: 148px; width: auto; border-radius: 8px; border: 1px dashed var(--c-red); background: rgba(244,47,41,0.1); color: var(--c-red); }
.price__timer-item p:first-child { font-family: 'Inter Tight', sans-serif; font-size: 80px; line-height: 80px; letter-spacing: -1.6px; font-weight: 600; }
.price__timer-item p:last-child { font-size: 18px; line-height: 26px; font-weight: 600; }
#price .section__bottom-container .big-button { font-size: 22px; line-height: 24px; padding: 16px 28px; border-radius: 50px; }

/* ===================== REVIEWS (#review) ===================== */
#review h2 { text-align: center; }
.sections__container:has(#review) { padding-block: 12px; }
#review .section__top-container { text-align: center; }
#review .section__card { background: var(--c-grey); border-radius: 16px; padding: 32px; gap: 16px; }
#review .section__card > p { color: var(--c-muted); font-size: 18px; line-height: 26px; }
#review .section__card .selected { color: #28261b; font-weight: 700; }
/* блок автора рецензии (аватар + имя) — без центрирования, прижат влево */
#review .section__card .section__row-container.center { justify-content: flex-start; }
#review .my-controls { gap: 16px; margin-top: 8px; }
.review-nav { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--c-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; background: transparent; transition: 0.2s ease; }
.review-nav svg { width: 22px; height: 22px; stroke: var(--c-black); }
.review-nav.review__right { border-color: var(--c-black); }
.review-nav:hover { background: rgba(0,0,0,0.05); }

/* ===================== FAQ (grid [482 | 1fr]) ===================== */
#faq .section__container { display: grid; grid-template-columns: 482px 1fr; gap: 24px; align-items: start; }
#faq .section__top-container { max-width: none; text-align: left; }
#faq .section__column-container { gap: 16px; }
#faq .section__card { background: var(--c-grey); border-radius: 16px; padding: 24px; gap: 16px; cursor: pointer; }
#faq .section__card-top { align-items: center; }
#faq .section__card .heading-style-h4 { color: var(--c-black); }
#faq .section__card p { color: var(--c-black); font-size: 18px; line-height: 26px; }
#faq .section__nest-icon { width: 24px; height: 24px; border: 1.5px solid var(--c-black); border-radius: 50%; }
#faq .section__nest-icon::before, #faq .section__nest-icon::after { background-color: var(--c-black); width: 10px; height: 1.5px; }

/* ===================== REG (grid [form | image]) ===================== */
/* max-width:none — single-2 зажимает reg-ряд в 580px на ≤1220 (из-за чего 2 колонки
   схлопывались в кашу); нам ширина нужна полная. */
#reg .section__row-container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; background: var(--c-cream); border-radius: 16px; padding: 24px; max-width: none; }
#reg .section__column-container { max-width: none; }
#reg .section__column-container > p { color: var(--c-black); }
#reg .section__image-container { background: var(--c-beige); border-radius: 16px; padding: 33px; display: flex; align-items: center; justify-content: center; }
#reg .section__image-container .section__image { max-width: 300px; }

/* ===================== FOOTER ===================== */
/* футер — как в single-2 (.footer-new), стили в footer.css */

/* =======================================================================
   АДАПТИВ. На узких — все grid-колонки сворачиваются в одну (1fr).
   ======================================================================= */
@media (max-width: 1100px) {
    .header > .container { padding-inline: 16px; }
    .sections__container { padding-block: 64px; }
    h2 { font-size: 40px; }
}

/* 1200: hero / price / composition / reg в 2 колонки становятся тесными уже с ~1180:
   - hero — картинка-крошка рядом с фиксированной формой 564px;
   - price — фото плющится object-fit:cover в узко-высоком боксе;
   - reg — форма в узкой колонке + пустая вторая (single-2 жмёт ряд в 580px на ≤1220).
   Сворачиваем именно их в одну колонку раньше остальных. Порог 1200 совпадает с
   переключением .mob/.desk в single-2 (≤1200 показывается mob-картинка), поэтому
   в reg/hero корректная картинка оказывается в первой колонке. */
@media (max-width: 1200px) {
    #start .hero-top,
    #start .section__container > .section__column-container > .section__row-container:last-child,
    #price .section__top-container,
    .price-offer, 
    #reg .section__row-container { grid-template-columns: 1fr; }

    #start .hero-top { gap: 16px; }
    #start picture { display: block; max-width: 564px; margin-inline: auto; }
    #start .section__form { max-width: 564px; margin-inline: auto; }

    .price-offer__left { grid-template-rows: auto auto; }
    .price-offer__bar { border-radius: 16px 16px 0 0; }
    .price-offer__panel { border-radius: 0 0 16px 16px; }
    /* Натурал glyvena-capsules-fifty-percent-discount-offer: 600×458 → в одной колонке не тянем фото на всю ширину
       (было до 884px, апскейл 1.47×) — кап 600, по центру, натуральные пропорции. */
    .price-offer__media { border-radius: 16px; min-height: 0; max-width: 600px; width: 100%; margin-inline: auto; }
    .price-offer__media img { height: auto; }

    #composition .section__image-container-center { order: -1; max-width: 276px; margin: 0 auto; }

    /* одноколоночный reg — аккуратная центрированная колонка, а не растянутая форма */
    #reg .section__row-container { max-width: 600px; margin-inline: auto; }
}

@media (max-width: 900px) {
    .sections__container { padding-block: 56px; }

    .section__top-container .section__row-container,
    #benefits .section__container > .section__row-container,
    #instruction .section__container > .section__row-container,
    #faq .section__container { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .trust-bar { margin-top: 16px; }
    .trust-bar__list { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
    .trust-bar__item { justify-content: center; }
}

@media (max-width: 600px) {
    .sections__container { padding-block: 40px; margin-inline: 0; width: 100%; border-radius: 0; }

    h1, #start .hero-top > h1 { font-size: 32px; line-height: 1.05; letter-spacing: -0.5px; }
    h2 { font-size: 30px; line-height: 1.1; letter-spacing: -0.5px; }
    .heading-style-h3 { font-size: 24px; line-height: 30px; }
    .heading-style-h4, .heading-style-h5 { font-size: 22px; line-height: 28px; }
    .section__top-container p, .section__top-container .big-text-container,
    #start .hero-intro > p, .section__bottom-container p,
    .section__rating-value, .section__rating-text { font-size: 18px; line-height: 1.45; }
    p { font-size: 16px; line-height: 24px; }

    #start .section__container > .section__column-container:first-child { padding: 24px 16px; gap: 24px; }
    .section__form { padding: 16px; gap: 14px; }

    .price-offer__bar { padding: 8px 16px; }
    .price-offer__panel { padding: 16px; gap: 16px; }
    .price__timer-container { gap: 8px; }
    .price__timer-item { height: 104px; }
    .price__timer-item p:first-child { font-size: 44px; line-height: 48px; letter-spacing: -0.8px; }
    .price__timer-item p:last-child { font-size: 14px; }

    #review .section__card { padding: 20px; }
}

@media (max-width: 380px) {
    h1, #start .hero-top > h1, h2 { font-size: 28px; }
    .price__timer-item p:first-child { font-size: 38px; line-height: 42px; }
}
