/* ROMANTIC Couture — лендінг «Пропозиція руки та серця»
   Палітра і шрифти — за брендбуком (2026). */
:root {
  --cherry: #52020F;
  --dark: #35000F;
  --rose: #851C23;
  --gold: #EFCF93;
  --gold-hi: #FFF1D2;
  --cream: #F6F3E4;
  --cream-2: #EEE8D3;
  --ink: #110D0E;
  --text: #2A0A10;
  --muted: #6E4A4F;
  --line-dark: rgba(239, 207, 147, .22);
  --line-light: rgba(82, 2, 15, .14);

  --f-display: "Jost", "Mont", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

  --gutter: 16px;
  --maxw: 1320px;
  --panel: 0px;
}
@media (min-width: 600px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lead :focus-visible, .yes :focus-visible, .steps :focus-visible, .faq :focus-visible { outline-color: var(--rose); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--cherry); padding: 10px 14px; border-radius: 2px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 14px;
  font: 600 14px/1.3 var(--f-body);
  letter-spacing: 0;
  color: var(--gold);
}
.eyebrow--dark { color: var(--rose); }

.h2 {
  margin: 0;
  font: 300 clamp(34px, 6.4vw, 72px)/1.02 var(--f-display);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--cherry);
  text-wrap: balance;
}
.h2 > span { display: block; }
.h2--light { color: var(--cream); }
.accent { font-weight: 400; color: var(--rose); }
.h2--light .accent, .hero .accent { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--gold); --fg: var(--cherry);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  background: var(--bg); color: var(--fg);
  border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1 var(--f-body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { font-size: 20px; transition: transform 200ms var(--ease-out); }
.btn--gold { box-shadow: 0 10px 30px -12px rgba(239, 207, 147, .55); }
.btn--cherry { --bg: var(--cherry); --fg: var(--gold-hi); }
.btn--line { --bg: transparent; --fg: var(--cream); border-color: rgba(246, 243, 228, .4); }
.btn--outline { --bg: transparent; --fg: var(--cherry); border-color: rgba(82, 2, 15, .35); }
.btn--wide { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { --bg: var(--gold-hi); }
  .btn--cherry:hover { --bg: var(--rose); }
  .btn--cherry:hover svg { transform: translateX(3px); }
  .btn--line:hover { border-color: var(--gold); --fg: var(--gold); }
  .btn--outline:hover { border-color: var(--cherry); }
}

.round {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--line-dark); color: var(--gold);
  cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}
.round svg { font-size: 22px; }
.round:active { transform: scale(0.94); }
.round:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .round:not(:disabled):hover { background: rgba(239, 207, 147, .1); border-color: var(--gold); } }
.round--light { border-color: rgba(246, 243, 228, .25); color: var(--cream); }

/* ---------- logo / mark (vectors from brand book, tinted via mask) ---------- */
.logo, .mark {
  display: block;
  background: var(--gold);
  -webkit-mask: url(/assets/logo.svg) no-repeat center / contain;
          mask: url(/assets/logo.svg) no-repeat center / contain;
}
.logo { width: 190px; aspect-ratio: 854.5 / 224.8; }
.logo--sm { width: 250px; }
.mark { -webkit-mask-image: url(/assets/mark.svg); mask-image: url(/assets/mark.svg); width: 84px; aspect-ratio: 415.9 / 391.7; }
@media (min-width: 900px) { .logo { width: 250px; } }

/* grain like the paper on the brand cover */
.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; isolation: isolate; background: var(--dark); color: var(--cream); }
.hero__media { position: absolute; z-index: -2; inset: 0 0 auto 0; height: 100svh; min-height: 680px; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; transform-origin: 50% 60%; }
.hero__shade {
  position: absolute; z-index: -1; inset: 0 0 auto 0; height: 100svh; min-height: 680px;
  background:
    linear-gradient(180deg, rgba(53, 0, 15, .72) 0%, rgba(53, 0, 15, .08) 22%, rgba(53, 0, 15, .25) 45%, rgba(53, 0, 15, .9) 72%, var(--dark) 100%);
}
.hero .grain { height: 100svh; min-height: 680px; bottom: auto; }

.bar {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0;
}
.bar__logo { display: block; padding: 6px 0; }
.bar__right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid rgba(246, 243, 228, .25); border-radius: 999px; padding: 3px; backdrop-filter: blur(6px); background: rgba(53, 0, 15, .25); }
.lang button {
  border: 0; background: transparent; cursor: pointer;
  font: 600 11px/1 var(--f-body); letter-spacing: .08em;
  padding: 8px 9px; border-radius: 999px; color: rgba(246, 243, 228, .7);
  transition: background-color 200ms ease, color 200ms ease;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--cherry); }
.bar__phone {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(246, 243, 228, .25); text-decoration: none; color: var(--cream);
  backdrop-filter: blur(6px); background: rgba(53, 0, 15, .25);
}
.bar__phone svg { fill: currentColor; stroke: none; font-size: 16px; }
.bar__phone span { display: none; }

.hero__inner { position: relative; z-index: 2; }
.hero__copy {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 0 36px;
}
.hero__title {
  margin: 0 0 18px;
  font: 300 clamp(40px, 11vw, 78px)/0.98 var(--f-display);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero__title .line { display: block; }
.hero__title .accent { text-wrap: balance; }
.hero__lead { margin: 0 0 26px; max-width: 34em; font-size: 16px; line-height: 1.6; color: rgba(246, 243, 228, .86); }

.facts {
  list-style: none; margin: 0 0 22px; padding: 18px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px;
  border-top: 1px solid var(--line-dark);
}
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts b { font: 300 34px/1 var(--f-display); letter-spacing: -0.04em; color: var(--gold); font-variant-numeric: tabular-nums; }
.facts span { font-size: 12.5px; line-height: 1.35; color: rgba(246, 243, 228, .72); }

.gbadge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 10px; margin-bottom: 24px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  text-decoration: none; font-size: 13px; color: rgba(246, 243, 228, .85);
  background: rgba(53, 0, 15, .35); backdrop-filter: blur(6px);
  transition: border-color 200ms ease;
}
.gbadge__score { font: 600 13px/1 var(--f-body); background: var(--gold); color: var(--cherry); padding: 6px 8px; border-radius: 999px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 12px; }
@media (hover: hover) and (pointer: fine) { .gbadge:hover { border-color: var(--gold); } }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 899px) {
  .hero__media, .hero__shade, .hero .grain { height: 66svh; min-height: 470px; }
  .hero__media img { object-position: 50% 30%; }
  .hero__shade { background: linear-gradient(180deg, rgba(53, 0, 15, .6) 0%, rgba(53, 0, 15, 0) 22%, rgba(53, 0, 15, 0) 38%, rgba(53, 0, 15, .55) 52%, rgba(53, 0, 15, .88) 66%, var(--dark) 86%); }
  .hero .eyebrow { text-shadow: 0 1px 12px rgba(53, 0, 15, .9), 0 0 2px rgba(53, 0, 15, .6); }
  .hero__copy { min-height: 0; padding-top: max(300px, calc(66svh - 190px)); padding-bottom: 32px; }
  .hero__ctas .btn--line { display: none; }
  .facts { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0 10px; padding-top: 16px; margin-bottom: 18px; }
  .facts b { font-size: 25px; }
  .facts span { font-size: 11px; max-width: 8em; }
  .hero__lead { font-size: 15px; margin-bottom: 20px; }
  .gbadge { margin-bottom: 18px; }
}
.hero__ctas .btn { flex: 1 1 auto; }

/* ---------- LEAD FORM ---------- */
.lead { position: relative; background: var(--cream); color: var(--text); margin: 0 calc(var(--gutter) * -1); scroll-margin-top: 0; }
.lead__card { padding: 44px var(--gutter) 48px; max-width: 560px; margin: 0 auto; }
.lead__title {
  margin: 0 0 24px;
  font: 300 clamp(32px, 8vw, 44px)/1.02 var(--f-display);
  letter-spacing: -0.04em; text-transform: uppercase; color: var(--cherry);
}
.lead__title em { display: block; font-style: normal; font-weight: 400; color: var(--rose); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font: 600 13.5px/1.35 var(--f-body); color: var(--cherry); padding: 0; }
.field legend { margin-bottom: 8px; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; height: 52px; padding: 0 16px;
  font: 500 16px/1 var(--f-body); color: var(--text);
  background: #fff; border: 1px solid rgba(82, 2, 15, .18); border-radius: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: rgba(82, 2, 15, .35); }
.field input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(133, 28, 35, .12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field__err { display: none; margin: 0; font-size: 12.5px; color: #B0222C; }
.field.is-bad .field__err { display: block; }
.field.is-bad input, .field.is-bad select { border-color: #B0222C; }

.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border: solid var(--rose); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); pointer-events: none;
  transition: transform 200ms var(--ease-out);
}
.select select {
  width: 100%; height: 52px; padding: 0 44px 0 16px;
  font: 500 15px/1.2 var(--f-body); color: rgba(82, 2, 15, .45);
  background: #fff; border: 1px solid rgba(82, 2, 15, .18); border-radius: 12px;
  cursor: pointer; text-overflow: ellipsis;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  -webkit-appearance: none; appearance: none;
}
.select.is-set select { color: var(--text); }
.select select option { color: var(--text); }
.select select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(133, 28, 35, .12); }
@media (hover: hover) and (pointer: fine) { .select select:hover { border-color: rgba(133, 28, 35, .45); } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid rgba(82, 2, 15, .16); background: transparent; border-radius: 999px;
  padding: 7px 12px; font: 500 13px/1 var(--f-body); color: var(--cherry); cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip.is-on { background: var(--cherry); color: var(--gold-hi); border-color: var(--cherry); }
@media (hover: hover) and (pointer: fine) { .chip:hover:not(.is-on) { border-color: var(--rose); } }

.form__case[hidden] { display: none; }
.form__case { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FFF4E2; border: 1px dashed rgba(133, 28, 35, .35); font-size: 13.5px; color: var(--cherry); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.form__case button { border: 0; background: none; color: var(--rose); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }
.form__note { display: flex; gap: 10px; margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.form__note svg { font-size: 16px; margin-top: 1px; color: var(--rose); }
.form button[type="submit"] { margin-top: 6px; min-height: 58px; font-size: 16px; }
.form button[type="submit"][aria-busy="true"] { opacity: .7; pointer-events: none; }

.done { text-align: center; padding: 28px 0 8px; outline: none; }
.done__mark { display: block; margin: 0 auto 18px; width: 72px; aspect-ratio: 415.9/391.7; background: var(--cherry); -webkit-mask: url(/assets/mark.svg) no-repeat center/contain; mask: url(/assets/mark.svg) no-repeat center/contain; }
.done__title { margin: 0 0 12px; font: 300 30px/1.05 var(--f-display); text-transform: uppercase; letter-spacing: -0.04em; color: var(--cherry); }
.done__title em { display: block; font-style: normal; font-weight: 400; color: var(--rose); }
.done__text { margin: 0 auto 22px; max-width: 30em; color: var(--muted); font-size: 15px; }
.done__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; margin: 0 auto; }
.done:not([hidden]) { animation: doneIn 600ms var(--ease-out) both; }
@keyframes doneIn { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }

/* ---------- desktop hero: photo left, form panel right ---------- */
@media (min-width: 900px) {
  :root { --panel: clamp(440px, 36vw, 540px); }
  .hero { min-height: max(100svh, 860px); }
  .hero__media, .hero__shade, .hero .grain { height: auto; inset: 0 var(--panel) 0 0; min-height: 0; }
  .hero__media img { object-position: 66% 50%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(53, 0, 15, .7) 0%, rgba(53, 0, 15, 0) 20%),
      linear-gradient(0deg, rgba(53, 0, 15, .96) 0%, rgba(53, 0, 15, .82) 30%, rgba(53, 0, 15, .45) 56%, rgba(53, 0, 15, 0) 76%),
      linear-gradient(90deg, rgba(53, 0, 15, .88) 0%, rgba(53, 0, 15, .7) 34%, rgba(53, 0, 15, .2) 62%, rgba(53, 0, 15, 0) 78%);
  }
  .bar { right: var(--panel); }
  .bar__phone { width: auto; height: 40px; padding: 0 14px; gap: 8px; border-radius: 999px; display: inline-flex; align-items: center; font: 600 13px/1 var(--f-body); letter-spacing: .02em; }
  .bar__phone span { display: inline; }
  .hero__inner { max-width: none; padding: 0; display: grid; grid-template-columns: 1fr var(--panel); min-height: max(100svh, 860px); }
  .hero__copy { min-height: 0; padding: 140px var(--gutter) 52px; max-width: 860px; }
  .hero__title { font-size: clamp(48px, 5vw, 80px); }
  .hero__lead { font-size: 17px; max-width: 32em; }
  .facts { grid-template-columns: repeat(4, auto); justify-content: start; gap: 0 38px; max-width: 720px; }
  .facts b { font-size: 40px; }
  .hero__ctas .btn--gold { display: none; }
  .hero__ctas .btn { flex: 0 0 auto; }
  .lead { margin: 0; display: flex; align-items: center; border-left: 1px solid rgba(239, 207, 147, .25); }
  .lead__card { padding: 92px clamp(28px, 3.4vw, 52px) 40px; max-width: none; width: 100%; }
  .lead__title { font-size: clamp(32px, 2.8vw, 42px); }
  .form { gap: 16px; }
  .chips { gap: 5px; }
}
@media (min-width: 900px) and (max-height: 820px) {
  .lead__card { padding-top: 76px; }
  .lead__title { margin-bottom: 18px; }
  .form { gap: 13px; }
  .field input[type="text"], .field input[type="tel"], .select select { height: 46px; }
}

/* candle-light that follows the cursor over the photo (desktop only, decorative) */
.hero__glow { display: none; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .hero__glow {
    display: block; position: absolute; z-index: -1; left: 0; top: 0; width: 760px; height: 760px; margin: -380px 0 0 -380px;
    border-radius: 50%; pointer-events: none; mix-blend-mode: soft-light; opacity: 0;
    background: radial-gradient(closest-side, rgba(255, 214, 150, .75), rgba(255, 190, 110, .25) 45%, rgba(255, 190, 110, 0) 100%);
    transition: opacity 600ms ease; will-change: transform;
  }
  .hero.is-lit .hero__glow { opacity: 1; }
}

/* hero intro choreography */
.js .hero__media img { animation: heroImg 2200ms var(--ease-out) both; }
@keyframes heroImg { from { transform: scale(1.12); filter: brightness(.55); } to { transform: none; filter: none; } }
.js .reveal-hero { animation: rise 900ms var(--ease-out) both; }
.js .reveal-hero:nth-child(1) { animation-delay: 250ms; }
.js .hero__title .line:nth-child(1) { animation-delay: 360ms; }
.js .hero__title .line:nth-child(2) { animation-delay: 440ms; }
.js .hero__title .line:nth-child(3) { animation-delay: 560ms; }
.js .hero__lead { animation-delay: 700ms; }
.js .facts { animation-delay: 800ms; }
.js .gbadge { animation-delay: 880ms; }
.js .hero__ctas { animation-delay: 940ms; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.js .lead__card { animation: rise 900ms 500ms var(--ease-out) both; }

/* gold glint across «Так» words — once, after intro */
.hero__title .accent {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold) 42%, var(--gold-hi) 50%, var(--gold) 58%, var(--gold) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js .hero__title .accent { animation: rise 900ms 560ms var(--ease-out) both, glint 2400ms 1500ms var(--ease-soft) both; }
@keyframes glint { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* =====================================================================
   CASES
   ===================================================================== */
.cases {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 88px 0 72px; color: var(--cream);
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(133, 28, 35, .55) 0%, rgba(133, 28, 35, 0) 70%),
    linear-gradient(180deg, var(--dark) 0%, var(--cherry) 100%);
}
.cases__head { position: relative; z-index: 2; margin-bottom: 40px; }
.cases__sub { margin: 20px 0 0; max-width: 36em; color: rgba(246, 243, 228, .72); font-size: 16px; }
@media (min-width: 900px) {
  .cases { padding: 128px 0 96px; }
  .cases__head { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 0 48px; margin-bottom: 56px; }
  .cases__head .eyebrow { grid-column: 1 / -1; }
  .cases__sub { margin: 0 0 8px; }
}

.rail {
  position: relative; z-index: 2;
  display: flex; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 6px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  cursor: grab;
  --h: min(64svh, 520px);
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag .card { pointer-events: none; }
@media (min-width: 600px) { .rail { --h: clamp(420px, 58vh, 540px); gap: 20px; } }
@media (min-width: 1200px) { .rail { padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); } }
.rail::after { content: ""; flex: 0 0 1px; }

.card {
  flex: none; scroll-snap-align: start;
  margin: 0; width: calc(var(--h) * var(--ar));
  max-width: 86vw;
  border: 0; padding: 0; background: none; text-align: left; cursor: pointer; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.card__frame { display: block; position: relative; height: var(--h); overflow: hidden; border-radius: 3px; background: #2a0009; transition: transform 200ms var(--ease-out); }
.card:active .card__frame { transform: scale(0.985); }
.card__frame img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  transition: scale 700ms var(--ease-out);
}
.card__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(53, 0, 15, 0) 60%, rgba(53, 0, 15, .55) 100%); pointer-events: none; }
.card__zoom {
  position: absolute; z-index: 2; right: 14px; bottom: 14px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(53, 0, 15, .45); border: 1px solid rgba(246, 243, 228, .35); color: var(--cream);
  transition: transform 300ms var(--ease-out), background-color 200ms ease;
}
.card__zoom svg { font-size: 18px; }
.card__cap { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 16px 2px 0; }
.card__n { grid-row: span 2; font: 400 13px/1.5 var(--f-display); color: var(--gold); letter-spacing: .04em; padding-top: 2px; }
.card__t { font: 400 17px/1.25 var(--f-display); text-transform: uppercase; letter-spacing: -0.01em; color: var(--cream); }
.card__s { font-size: 14px; line-height: 1.45; color: rgba(246, 243, 228, .66); }
.card__s i { font-style: normal; color: rgba(239, 207, 147, .8); }
@media (hover: hover) and (pointer: fine) {
  /* паралакс у слайдері — тільки з мишею (на телефоні гальмує свайп) */
  .card__frame img { left: -6%; width: 112%; will-change: transform; }
  .card:hover .card__frame img { scale: 1.04; }
  .card:hover .card__zoom { background: var(--gold); color: var(--cherry); transform: rotate(90deg); }
}

.rail__ui { position: relative; z-index: 2; display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.rail__progress { flex: 1; height: 1px; background: var(--line-dark); position: relative; overflow: hidden; }
.rail__progress span { position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(.1); }
.rail__count { margin: 0; font: 400 14px/1 var(--f-display); color: rgba(246, 243, 228, .6); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.rail__count b { font-weight: 400; color: var(--gold); }
.rail__arrows { display: none; gap: 10px; }
@media (min-width: 900px) { .rail__arrows { display: flex; } }

.cases__cta { position: relative; z-index: 2; margin-top: 56px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cases__cta p { margin: 0; max-width: 30em; color: rgba(246, 243, 228, .8); font: 400 20px/1.45 var(--f-body); }
@media (min-width: 900px) { .cases__cta { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 40px; border-top: 1px solid var(--line-dark); } .cases__cta p { font-size: 22px; } }

/* =====================================================================
   YES WALL
   ===================================================================== */
.yes { background: var(--cream); padding: 88px 0 80px; overflow: hidden; }
.yes__head { margin-bottom: 40px; }
@media (min-width: 900px) { .yes { padding: 128px 0 112px; } .yes__head { margin-bottom: 56px; } }

.marquee { display: grid; gap: 12px; --mh: 210px; }
@media (min-width: 900px) { .marquee { gap: 16px; --mh: 300px; } }
.marquee__row { display: flex; gap: 12px; width: max-content; animation: slide 70s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 80s; }
@media (min-width: 900px) { .marquee__row { gap: 16px; } }
.marquee__row img { height: var(--mh); width: calc(var(--mh) * .75); object-fit: cover; border-radius: 3px; background: var(--cream-2); }
@keyframes slide { to { transform: translate3d(-50%, 0, 0); } }

.quotes { display: grid; gap: 28px; margin-top: 56px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 80px; } }
.quote { margin: 0; padding-top: 22px; border-top: 1px solid var(--line-light); position: relative; }
.quote::before { content: "“"; position: absolute; top: -6px; right: 0; font: 300 64px/1 var(--f-display); color: rgba(133, 28, 35, .18); }
.quote blockquote { margin: 0 0 14px; font: 500 17px/1.55 var(--f-body); color: var(--cherry); }
.quote figcaption { font-size: 13px; color: var(--muted); }
.quote figcaption b { font-weight: 600; color: var(--cherry); }
.yes__more { margin-top: 36px; }
.link { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--f-body); color: var(--rose); text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(133, 28, 35, .3); transition: border-color 200ms ease; }
.link svg { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover { border-color: var(--rose); } .link:hover svg { transform: translate(2px, -2px); } }

/* =====================================================================
   STEPS + FAQ
   ===================================================================== */
.steps { background: var(--cream-2); padding: 88px 0; }
.steps__list { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.step { padding: 26px 0; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; }
.step__n { grid-row: span 2; font: 300 40px/1 var(--f-display); letter-spacing: -0.04em; color: var(--rose); }
.step h3 { margin: 4px 0 0; font: 400 21px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: -0.02em; color: var(--cherry); }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; max-width: 30em; }
@media (min-width: 900px) {
  .steps { padding: 128px 0; }
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
  .step { display: flex; flex-direction: column; padding-top: 28px; }
  .step__n { font-size: 56px; margin-bottom: 18px; }
}

.faq { background: var(--cream); padding: 88px 0 96px; }
.faq__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq { padding: 128px 0; } .faq__grid { grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; } .faq__grid > div:first-child { position: sticky; top: 48px; } }
.faq__list details { border-top: 1px solid var(--line-light); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-light); }
.faq__list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0;
  font: 400 19px/1.3 var(--f-display); color: var(--cherry); letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before, .faq__list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--rose);
  transition: transform 260ms var(--ease-out);
}
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0deg); }
.faq__list details p { margin: 0; padding: 0 40px 24px 0; color: var(--muted); font-size: 15.5px; }
.faq__list details[open] p { animation: faqIn 360ms var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* =====================================================================
   FINAL
   ===================================================================== */
.final {
  position: relative; isolation: isolate; overflow: hidden; color: var(--cream); text-align: center;
  padding: 80px 0 88px;
  background: linear-gradient(180deg, var(--dark) 0%, var(--cherry) 55%, var(--rose) 100%);
}
.final__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.final .mark { margin-bottom: 28px; width: 84px; }
.final__sub { margin: 20px auto 34px; max-width: 30em; color: rgba(246, 243, 228, .8); }
.final__pts { list-style: none; margin: -14px 0 30px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13px; color: rgba(246, 243, 228, .75); }
.final__pts li { display: inline-flex; align-items: center; gap: 8px; }
.final__pts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: .6; margin-right: 6px; }
@media (max-width: 599px) { .final__pts { flex-direction: column; align-items: center; } .final__pts li + li::before { display: none; } }
.final__btns { display: grid; gap: 10px; width: 100%; max-width: 420px; grid-template-columns: 1fr 1fr; }
.final__btns .btn { grid-column: 1 / -1; }
.contact {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(246, 243, 228, .3); text-decoration: none; color: var(--cream);
  font: 600 14px/1 var(--f-body);
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.contact svg { font-size: 19px; }
.contact svg path[d^="M6.6"] { fill: currentColor; stroke: none; }
.contact:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .contact:hover { border-color: var(--gold); background: rgba(239, 207, 147, .08); } }
.contact--light { color: var(--cherry); border-color: rgba(82, 2, 15, .25); background: #fff; }
.contact--light svg { color: var(--rose); }
@media (hover: hover) and (pointer: fine) { .contact--light:hover { border-color: var(--rose); background: #FFF9F2; } }
@media (min-width: 900px) {
  .final { padding: 112px 0 120px; }
  .final .mark { width: 110px; }
  .final__btns { max-width: none; width: auto; display: flex; flex-wrap: wrap; justify-content: center; }
  .final__btns .btn { min-width: 220px; }
}

.foot { background: var(--ink); color: rgba(246, 243, 228, .6); padding: 56px 0 calc(120px + env(safe-area-inset-bottom)); }
.foot__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.foot__slogan { margin: 0; font: 300 15px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--gold); }
.foot__contacts { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 6px; font-style: normal; font-size: 15px; line-height: 1.5; color: rgba(246, 243, 228, .85); }
.foot__contacts a { color: inherit; text-decoration: none; padding: 2px 0; }
@media (hover: hover) and (pointer: fine) { .foot__contacts a:hover { color: var(--gold); } }
.foot__meta { margin: 10px 0 0; font-size: 13px; }
.foot__meta a { color: rgba(246, 243, 228, .8); text-decoration: none; }
@media (min-width: 900px) { .foot { padding-bottom: 56px; } }

/* =====================================================================
   DOCK — contacts always at hand
   ===================================================================== */
.dock {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(53, 0, 15, .86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--line-dark);
}
@media (max-width: 899px) {
  html { scroll-padding-bottom: 90px; } /* поля форми не ховаються під панеллю */
}
.dock.is-on { transform: none; opacity: 1; }
.dock__cta { flex: 1; min-height: 48px; padding: 0 16px; font-size: 14.5px; box-shadow: none; }
.dock__btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #fff; text-decoration: none; transition: transform 160ms var(--ease-out), filter 200ms ease;
}
.dock__btn svg { font-size: 22px; }
.dock__btn:active { transform: scale(0.94); }
.dock__btn--tg { background: #4C78A8; }
.dock__btn--wa { background: #4A8C66; }
.dock__btn--call { background: var(--gold); color: var(--cherry); }
.dock__btn--call svg path { fill: currentColor; stroke: none; }
@media (min-width: 900px) {
  .dock {
    left: auto; right: 24px; bottom: 24px; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
    flex-direction: column; gap: 12px;
    transform: translateX(calc(100% + 40px)); opacity: 0; transition: transform 420ms var(--ease-out), opacity 300ms ease;
  }
  .dock__cta { display: none; }
  .dock__btn { width: 58px; height: 58px; box-shadow: 0 14px 30px -12px rgba(17, 13, 14, .6); }
  .dock__btn svg { font-size: 25px; }
}
@media (min-width: 900px) and (hover: hover) { .dock__btn:hover { filter: brightness(1.08); transform: translateY(-2px); } }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(17, 13, 14, .96); color: var(--cream);
  display: grid; grid-template-rows: 1fr auto;
}
.lb:not([open]) { display: none; }
.lb::backdrop { background: rgba(17, 13, 14, .7); }
.lb[open] { animation: lbIn 320ms var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } }
.lb__stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 64px 12px 8px; touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; transition: opacity 220ms ease, transform 320ms var(--ease-out), filter 220ms ease; }
.lb__stage img.is-swap { opacity: 0; transform: scale(.985); filter: blur(4px); }
.lb__bar { display: flex; flex-direction: column; gap: 16px; padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
.lb__cap { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; }
.lb__n { grid-row: span 2; font: 400 13px/1.6 var(--f-display); color: var(--gold); }
.lb__title { margin: 0; font: 400 19px/1.25 var(--f-display); text-transform: uppercase; }
.lb__sub { margin: 0; color: rgba(246, 243, 228, .66); font-size: 14px; }
.lb__actions { display: flex; gap: 10px; align-items: center; }
.lb__actions .btn { margin-left: auto; min-height: 52px; }
.lb__close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 3; background: rgba(17, 13, 14, .4); }
@media (min-width: 900px) {
  .lb__stage { padding: 72px 96px 12px; }
  .lb__bar { flex-direction: row; align-items: center; justify-content: space-between; padding: 20px 40px 28px; }
  .lb__close { top: 20px; right: 24px; }
}

/* =====================================================================
   SCROLL REVEALS
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card { opacity: 0; transform: translateX(40px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rail.is-in .card { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__glow { display: none !important; }
  .js .hero__media img, .js .reveal-hero, .js .lead__card, .js .hero__title .accent { animation: none !important; }
  .hero__title .accent { background: none; color: var(--gold); }
  .js .reveal, .js .card { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee__row { animation: none; }
  .marquee { overflow-x: auto; }
  .card__frame img { transform: none !important; }
  .dock, .lb[open], .done:not([hidden]) { transition: none; animation: none; }
}
