/* robota.clinica28.org: the E3 world ported (blepharoplasty pre-sell, clinica28.org/pages/blepharoplasty-results).
   Source: bleph-presell/hx/speed/theme-ro/assets__bp-presell.css (2026-10-03, incl. the desktop block).
   Site tokens measured on clinica28.org 2026-09-27: ground #f5f4f7, box #fff radius 25px shadow 0 4px 8px rgba(0,0,0,.12),
   button #152642 / #fff radius 20px padding 16px 24px 18px/25.2px 700, body 18px/1.4 400 #000, muted #666.
   Shopify-only selectors (main:has, #MainContent, .shopify-section) are dropped; the desktop layout is rebuilt for this markup. */

/* Montserrat_UA is a variable font (fvar wght 100-900): the range is declared, so bold is never synthesised */
@font-face {
  font-family: Montserrat_UA;
  src: url("/static/fonts/montserrat-ua.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bp-ground: #f5f4f7; --bp-ink: #000; --bp-sec: #666; --bp-blue: #3d6bb3; --bp-navy: #152642;
  --bp-sep: rgba(0, 0, 0, .1); --bp-rail: #d9d9e0;
  --bp-radius: 25px; --bp-shadow: 0 4px 8px 0 rgba(0, 0, 0, .12);
  --bp-err: #b3261e;  /* 6.5:1 on white, 6.0:1 on the ground */
  --sec-pb: 40px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bp-ground); color: var(--bp-ink);
  font-family: Montserrat_UA, Montserrat, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px; line-height: 1.4; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }

/* header: white, the logo only, the site's height */
.hdr { display: flex; align-items: center; justify-content: center; height: 64px; background: #fff; }
.hdr img { display: block; width: 150px; height: auto; }

/* the white header flows into the ground (owner's gradient, 27.09) */
.page { background: linear-gradient(to bottom, #ffffff 0, #f5f4f7 200px) no-repeat, #f5f4f7; }
.sec { padding-bottom: var(--sec-pb); }
#apply { scroll-margin-top: 16px; }

.bp-col { width: 100%; max-width: 560px; margin-inline: auto; }

/* type: bold for hierarchy, tracking tightens with size; one size per level (display 34 > section 28 > card 22) */
.bp-h { margin: 0; font-family: inherit; font-weight: 700; color: var(--bp-ink); text-transform: none; overflow-wrap: break-word; }
.bp-h em { font-style: normal; color: var(--bp-blue); }
.bp-h--hero { font-size: 34px; line-height: 1.1; letter-spacing: -0.022em; }
.bp-h--sec { font-size: 28px; line-height: 1.12; letter-spacing: -0.018em; }
.bp-h--card { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.bp-p { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 400; color: var(--bp-ink); }
.bp-micro { margin: 0; font-size: 15px; line-height: 1.4; color: var(--bp-sec); }
.bp-tag { font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--bp-sec); }

/* site box */
.bp-box { margin: 0 16px; background: #fff; border-radius: var(--bp-radius); box-shadow: var(--bp-shadow); padding: 20px; }
.bp-plain { display: flex; flex-direction: column; gap: 16px; padding: 0 16px; }
.bp-plain > .bp-h, .bp-plain > .bp-p, .bp-plain > .bp-micro { padding-inline: 4px; }
.bp-plain > .bp-h + .bp-p { margin-top: -4px; }
.bp-plain > .bp-btn { margin-top: 8px; }

/* ticks */
.bp-checks { display: flex; flex-direction: column; gap: 12px; }
.bp-check { display: flex; gap: 12px; align-items: flex-start; }
.bp-check svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; }
.bp-check__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bp-check__t > span:first-child { font-size: 18px; line-height: 1.4; font-weight: 400; color: var(--bp-ink); }
.sec--hero .bp-check__t > span:first-child { font-weight: 500; }  /* E3 hero ticks are bp-check--lg */
/* grouped list: one surface, inset separators */
.bp-group { display: flex; flex-direction: column; background: #fff; border-radius: var(--bp-radius); box-shadow: var(--bp-shadow); overflow: hidden; }
.bp-group > .bp-check, .bp-group > .bp-prow { position: relative; margin: 0; padding: 13px 16px; align-items: center; min-height: 52px; }
.bp-group > .bp-check svg { margin-top: 0; }
.bp-group > * + *::before { content: ""; position: absolute; top: 0; right: 0; left: 50px; height: 1px; background: var(--bp-sep); transform: scaleY(.5); transform-origin: top; }
.bp-group > .bp-prow + .bp-prow::before { left: 16px; }

/* price rows */
.bp-prow { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; line-height: 1.4; }
.bp-prow span { color: var(--bp-ink); }
.bp-prow b { color: var(--bp-ink); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* owner comments 2026-10-04: the monthly estimate in grey under the bold amount, right-aligned */
.bp-prow__r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; flex-shrink: 0; max-width: 55%; }
.bp-prow .bp-prow__sub { font-size: 15px; line-height: 1.4; color: var(--bp-sec); }

/* buttons: the site button (Кнопка зворотнього звʼязку) */
.bp-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 57px; padding: 16px 24px;
  border-radius: 20px; background: var(--bp-navy); color: #fff; font-family: inherit; font-size: 18px; line-height: 25.2px;
  font-weight: 700; letter-spacing: normal; text-align: center; text-decoration: none; white-space: nowrap; flex-shrink: 0;
  border: 0; box-shadow: none; cursor: pointer; transition: opacity .125s ease-in-out; -webkit-appearance: none; appearance: none;
}
.bp-btn:hover { opacity: .9; color: #fff; }
.bp-btn:focus-visible { outline: 2px solid var(--bp-blue); outline-offset: 3px; }
.bp-btn[disabled] { opacity: .5; cursor: default; }
@media (max-width: 419px) { .bp-btn { padding-inline: 16px; } }

/* a standalone photo is a rounded image, never a box (correction 2026-10-03) */
.ph-round { margin: 0 16px; border-radius: 24px; overflow: hidden; background: #e9e9ee; }
.ph-round img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 1 hero: E3 layout, E4 type */
.bp-hero__in { display: flex; flex-direction: column; gap: 18px; padding: 32px 24px 28px; }
.bp-hero__in > .bp-tag { margin-bottom: -6px; }
.bp-cta-stack { display: flex; flex-direction: column; gap: 10px; }
.hero__ph { aspect-ratio: 900 / 506; }

/* 2 + 6 photo and text */
.split { display: flex; flex-direction: column; gap: 24px; }
.split__ph { height: 300px; }
.split__ph--founder img { object-position: center 22%; }
.split__ph--building img { object-position: center 40%; }
.split__txt > .bp-checks { padding-inline: 4px; }

/* 3 goal: the one bold line in a site box */
.goal { margin: 0; padding: 20px; background: #fff; border-radius: var(--bp-radius); box-shadow: var(--bp-shadow); font-size: 18px; line-height: 1.4; font-weight: 400; }
.goal strong { font-weight: 700; }
/* owner comment 2026-10-04: the closing line of «Кого ми шукаємо» in the same white box as the list above it */
.note-box { margin: 0; padding: 16px 20px; background: #fff; border-radius: var(--bp-radius); box-shadow: var(--bp-shadow); font-size: 18px; line-height: 1.4; }

/* 7 timeline (Hims-style rail), text-only steps */
.bp-tl { position: relative; padding-left: 40px; margin: 12px 0 0; }
.bp-tl__base, .bp-tl__fill { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; }
.bp-tl__base { background: var(--bp-rail); }
.bp-tl__fill { background: var(--bp-navy); transform-origin: top; transform: scaleY(0); will-change: transform; }
.bp-tl__head { position: absolute; left: 1px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--bp-navy); box-shadow: 0 0 0 4px rgba(21, 38, 66, .18); will-change: transform; }
.bp-tl__list { display: flex; flex-direction: column; gap: 40px; margin: 0; padding: 0; list-style: none; }
.bp-tl__step { position: relative; display: flex; flex-direction: column; gap: 10px; }
.bp-tl__dot { position: absolute; left: -38px; top: 2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #c9c9d2; background: #f5f4f7; }
.bp-tl__dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--bp-navy); opacity: 0; transition: opacity .2s ease; }
.bp-tl__step.is-lit .bp-tl__dot::after { opacity: 1; }
/* no media above the title here, so the dots, the head and the rail centre on the title's first line (22px x 1.2) */
.bp-tl--text .bp-tl__list { gap: 32px; }
.bp-tl--text .bp-tl__step { gap: 6px; }
.bp-tl--text .bp-tl__dot { top: 7px; }
.bp-tl--text .bp-tl__head { top: 6px; }
.bp-tl--text .bp-tl__base, .bp-tl--text .bp-tl__fill { top: 13px; }
@media (prefers-reduced-motion: reduce) { .bp-tl__head { display: none; } .bp-tl__dot::after { transition: none; } }
/* timeline wrappers: below 900px they take no box */
.bp-tl__side, .bp-tl__main { display: contents; }
.bp-tl__side > .bp-h, .bp-tl__side > .bp-p { padding-inline: 4px; }
.bp-tl__side > .bp-h + .bp-p { margin-top: -4px; }
.bp-tl__cta--side { display: none; }
.bp-tl__cta--end { margin-top: 24px; }

/* 8 form: one box */
.apply { padding: 24px 20px; }
.apply__form, .apply__done { display: flex; flex-direction: column; gap: 16px; }
.apply__form > .bp-h + .bp-p, .apply__done > .bp-h + .bp-p { margin-top: -4px; }
.apply__done > .bp-h:focus { outline: none; }
.f { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.f-field { display: flex; flex-direction: column; gap: 8px; }
.f-label { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--bp-ink); }
.f-hint { margin-top: -4px; font-size: 15px; line-height: 1.4; color: var(--bp-sec); }
.f-count { display: block; margin-top: 6px; font-size: 13px; line-height: 1.3; color: var(--bp-sec); text-align: right; font-variant-numeric: tabular-nums; }
.f-count.is-over { color: var(--bp-err); font-weight: 600; }
.deliv { margin-top: 4px; }
.f-input {
  display: block; width: 100%; min-height: 56px; margin: 0; padding: 14px 16px;
  font-family: inherit; font-size: 18px; line-height: 1.4; color: var(--bp-ink);
  background: #fff; border: 1px solid rgba(0, 0, 0, .15); border-radius: 14px;
  -webkit-appearance: none; appearance: none;
}
textarea.f-input { min-height: 148px; resize: vertical; }
.f-input::placeholder { color: #767676; opacity: 1; }
.f-input:focus { outline: 2px solid var(--bp-blue); outline-offset: 2px; border-color: var(--bp-blue); }
.f-input[aria-invalid="true"] { border-color: var(--bp-err); }
.f-input[readonly] { color: var(--bp-sec); }
.f-err { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--bp-err); }

/* video picker: the E3 dashed tile, white */
.f-video {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 148px; padding: 24px 20px;
  border: 2px dashed #b4b4c0; border-radius: 18px; background: #fff; text-align: center; cursor: pointer;
}
.f-video input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.f-video:focus-within { outline: 2px solid var(--bp-blue); outline-offset: 2px; }
.f-video.is-invalid { border-color: var(--bp-err); }
.f-video.is-locked { cursor: default; }
.f-video__empty, .f-video__chosen { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.f-video__empty[hidden], .f-video__chosen[hidden] { display: none; }
.f-video__t { font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--bp-ink); }
.f-video__h { max-width: 440px; font-size: 15px; line-height: 1.4; color: var(--bp-sec); }
.f-video__name { max-width: 100%; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--bp-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-video__size { font-size: 15px; line-height: 1.4; color: var(--bp-sec); font-variant-numeric: tabular-nums; }
.f-video__change { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--bp-blue); text-decoration: underline; text-underline-offset: 3px; }
.f-video.is-locked .f-video__change { visibility: hidden; }

.f-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: var(--bp-ink); cursor: pointer; }
.f-consent input { flex-shrink: 0; width: 22px; height: 22px; margin: 0; accent-color: var(--bp-navy); cursor: pointer; }
.f-consent input:focus-visible { outline: 2px solid var(--bp-blue); outline-offset: 2px; }
.f-consent.is-invalid input { outline: 2px solid var(--bp-err); outline-offset: 1px; }
.f-consent a, .pn__s a, .pn__back { color: var(--bp-blue); text-decoration: underline; text-underline-offset: 3px; }

.f-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.f-submit { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.f-progress { display: flex; flex-direction: column; gap: 10px; }
.f-progress[hidden] { display: none; }
.f-progress__t { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--bp-ink); font-variant-numeric: tabular-nums; }
.f-bar { height: 8px; border-radius: 999px; background: #e6e6ec; overflow: hidden; }
.f-bar span { display: block; width: 100%; height: 100%; border-radius: 999px; background: var(--bp-navy); transform: translateX(-100%); transition: transform .2s linear; }
@media (prefers-reduced-motion: reduce) { .f-bar span { transition: none; } }

/* footer */
.ftr { padding: 8px 20px 40px; text-align: center; }
.ftr p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--bp-sec); }
.ftr p + p { margin-top: 6px; }
.ftr a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* /privacy: the candidate privacy notice, the About section's plain column with short sections */
.pn { padding-top: 24px; }
.pn .bp-plain { gap: 32px; }
.pn__s { display: flex; flex-direction: column; gap: 12px; max-width: 720px; padding-inline: 4px; }
.pn__s ul { margin: 0; padding-left: 24px; }
.pn__s li + li { margin-top: 6px; }
.pn__back { align-self: flex-start; padding-inline: 4px; font-size: 15px; line-height: 1.4; font-weight: 600; }
.pn .bp-btn { align-self: flex-start; }

/* desktop (min-width 900px); every rule above stays the phone layout. Content 1152px, as on E3. */
@media (min-width: 900px) {
  :root { --sec-pb: 80px; }
  .hdr img { width: 160px; }
  .page { background: linear-gradient(to bottom, #ffffff 0, #f5f4f7 280px) no-repeat, #f5f4f7; }
  .bp-col { max-width: 1232px; padding-inline: 24px; }

  /* type: one step up per level, body and buttons stay the site's 18px */
  .bp-h--hero { font-size: 42px; line-height: 1.08; letter-spacing: -0.024em; }
  .bp-h--sec { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
  .bp-h--card { font-size: 24px; line-height: 1.2; }
  .bp-plain > .bp-p { max-width: 720px; }

  /* desktop buttons take their own width (E3), the form button stays full */
  .bp-btn { display: inline-flex; width: auto; padding-inline: 40px; }

  /* 1 hero: copy left, team photo right */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .bp-hero__in { max-width: 760px; gap: 24px; padding: 48px 40px 48px 16px; }
  .bp-cta-stack { align-items: flex-start; margin-top: 4px; }
  .hero__ph { margin: 48px 16px 32px 0; }

  /* 2 + 6 photo left, text right */
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: center; }
  .split__ph { height: 460px; margin-right: 0; border-radius: var(--bp-radius); }
  .split__txt { padding: 0 16px 0 0; gap: 20px; }
  .split__txt > .bp-checks { margin-top: 4px; }

  /* 3, 4, 5 heading left, list right (the E3 prices layout) */
  .duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 48px; row-gap: 16px; }
  .duo > .bp-h { grid-column: 1; grid-row: 2; }
  .duo > .bp-group { grid-column: 2; grid-row: 1 / -1; align-self: center; }
  .duo > .bp-btn { justify-self: start; margin-top: 8px; }
  .duo--do > .goal { grid-column: 1; grid-row: 3; margin-top: 4px; }
  .duo--do > .bp-btn { grid-column: 1; grid-row: 4; }
  .duo--pay > .bp-micro { grid-column: 1; grid-row: 3; }
  .duo--pay > .bp-btn { grid-column: 1; grid-row: 4; }
  .duo--who { grid-template-rows: auto auto; }
  .duo--who > .bp-h { grid-row: 1 / -1; align-self: center; }
  .duo--who > .bp-group { grid-row: 1; }
  .duo--who > .note-box { grid-column: 2; grid-row: 2; }

  /* 7 timeline, Hims layout: heading stays in view on the left (sticky) while the steps scroll on the right */
  .bp-timeline .bp-plain { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); column-gap: 56px; align-items: start; }
  .bp-timeline .bp-tl__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 120px; }
  .bp-timeline .bp-tl__main { display: block; min-width: 0; }
  .bp-timeline .bp-tl { margin-top: 4px; }
  .bp-tl__list { gap: 48px; }
  .bp-tl--text .bp-tl__list { gap: 40px; }
  .bp-tl--text .bp-tl__dot { top: 8px; }
  .bp-tl--text .bp-tl__head { top: 7px; }
  .bp-tl--text .bp-tl__base, .bp-tl--text .bp-tl__fill { top: 14px; }
  .bp-timeline .bp-tl__cta--side { display: block; margin-top: 8px; }
  .bp-timeline .bp-tl__cta--end { display: none; }

  /* 8 the form centred in one box, max 720px */
  .apply { max-width: 720px; margin-inline: auto; padding: 40px; }
  .f-submit > .bp-btn { display: flex; width: 100%; }

  .pn { padding-top: 48px; }
}
@media (min-width: 1200px) {
  .bp-h--hero { font-size: 48px; line-height: 1.06; letter-spacing: -0.026em; }
  .bp-h--sec { font-size: 36px; }
}

/* owner 2026-10-04: help contact under the submit button */
.f-help a { color: var(--bp-blue); font-weight: 600; text-decoration: none; }
.f-help a:hover { text-decoration: underline; }

/* owner 2026-10-04: «Clínica 28» in «Про клініку» links to the clinic's homepage */
.txt-link { color: var(--bp-blue); text-decoration: none; }
.txt-link:hover { text-decoration: underline; }
