/* =========================================================
   MRIYA DIGITAL — style.css
   Motion: design/motion-plan.md («Лінза фокусує»)
   ========================================================= */

/* ---------- Fonts (self-host UA-brand) ---------- */
@font-face { font-family: 'UA-brand'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/ua-brand-regular.woff2') format('woff2'); }
@font-face { font-family: 'UA-brand'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/ua-brand-bold.woff2') format('woff2'); }
@font-face { font-family: 'UA-brand'; font-weight: 900; font-style: normal; font-display: swap; src: url('../fonts/ua-brand-black.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --bg: #06070A;
  --ink: #0B0C0E;
  --paper: #F7F8FA;
  --paper-72: rgb(247 248 250 / .72);
  --paper-66: rgb(247 248 250 / .66);
  --paper-60: rgb(247 248 250 / .6);
  --blue: #437FFE;
  --blue-lt: #70B3F5;
  --gold: #F5B518;
  --gold-lt: #FFE887;

  --font: 'UA-brand', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --container: 77.5rem;
  --gutter: clamp(1.25rem, 6.9vw, 6.25rem);

  --r-sm: .75rem;
  --r-md: 1.125rem;
  --r-lg: 1.375rem;
  --r-pill: 62.4375rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-ui: 250ms;
  --dur-enter: 700ms;

  --glass-fill: rgb(11 12 14 / .66);
  --glass-line: rgb(247 248 250 / .18);

  --header-h: 7.5rem;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* Пружина (CSS linear()) — для натискань і акордеона */
    --ease-spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
/* Великі екрани (27", 4K): уся сітка в rem, корінь росте пропорційно макету 1440×900 —
   за шириною і висотою вікна, щоб перший екран лишався «першим екраном». До 1440 — рівно 16px. */
@media (min-width: 1441px) {
  html { font-size: clamp(16px, min(100vw / 90, 100vh / 56.25), 40px); }
}
/* плавний перехід між сторінками (index → thanks), де підтримується */
@view-transition { navigation: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: .1875rem; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link { position: absolute; left: -624.9375rem; top: .5rem; z-index: 1000; background: var(--paper); color: var(--ink); padding: .5rem 1rem; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { left: .5rem; }

/* =========================================================
   PAGE BACKGROUND — аврора + scrim + лінза
   ========================================================= */
.page-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.aurora {
  position: absolute; inset: 0 0 auto 0; height: 87.5rem;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
}
.aurora__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease-ui); }
.aurora.is-gl .aurora__canvas { opacity: 1; }

/* CSS-фолбек (і мобільна версія): радіальні градієнти без filter:blur */
.aurora__fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(34% 30% at 67% 14%, rgb(63 116 255 / .85), transparent 70%),
    radial-gradient(22% 22% at 74% 22%, rgb(143 192 255 / .5), transparent 70%),
    radial-gradient(30% 32% at 95% 55%, rgb(245 181 24 / .85), transparent 70%),
    radial-gradient(16% 17% at 92% 50%, rgb(255 232 135 / .5), transparent 70%),
    radial-gradient(26% 22% at 96% 72%, rgb(245 181 24 / .38), transparent 70%),
    radial-gradient(22% 18% at 11% 64%, rgb(67 127 254 / .28), transparent 70%);
  transition: opacity 1.2s var(--ease-ui);
}
.aurora.is-gl .aurora__fallback { opacity: 0; }

.scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(6 7 10 / .94) 0%, rgb(6 7 10 / .6) 40%, rgb(6 7 10 / 0) 64%);
}

/* Лінзова лінія: малюється синхронно зі скролом */
.lens {
  position: absolute; top: -3.75rem; left: 50%;
  width: 91.625rem; margin-left: -53.125rem;   /* та сама геометрія, що в макеті: x=-130 при ширині 1440 */
  height: calc(100% + 3.75rem);
  opacity: .5;
  overflow: visible;
}
@supports (animation-timeline: scroll()) {
  .lens {
    animation: lens-draw linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes lens-draw {
    from { clip-path: inset(0 0 calc(100% - 100svh) 0); }
    to   { clip-path: inset(0 0 0 0); }
  }
}
/* JS-фолбек виставляє --lens-reveal (0..1) */
.lens.is-js { clip-path: inset(0 0 calc((1 - var(--lens-reveal, 1)) * 100%) 0); }

/* =========================================================
   HEADER — прозора в hero → скло після 5rem
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  --glass: 0;
  background: rgb(6 7 10 / calc(var(--glass) * .62));
  -webkit-backdrop-filter: blur(calc(var(--glass) * 1.125rem)) saturate(calc(1 + var(--glass) * .3));
          backdrop-filter: blur(calc(var(--glass) * 1.125rem)) saturate(calc(1 + var(--glass) * .3));
  border-bottom: 1px solid rgb(247 248 250 / calc(var(--glass) * .08));
}
@property --glass { syntax: '<number>'; inherits: true; initial-value: 0; }
/* 0–5rem: прозора 7.5rem → тонка скляна 4.25rem; 2-й екран → поступово зникає */
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-glass linear both, header-hide linear both;
    animation-timeline: scroll(root block), scroll(root block);
    animation-range: 0 5rem, 200vh 250vh;
  }
  @keyframes header-glass {
    from { --glass: 0; height: var(--header-h); }
    to   { --glass: 1; height: 4.25rem; }
  }
  @keyframes header-hide {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateY(-1rem); visibility: hidden; }
  }
}
.site-header.is-scrolled { --glass: 1; height: 4.25rem; }
.site-header.is-hidden { opacity: 0; transform: translateY(-1rem); visibility: hidden; }
.site-header.is-js { transition: height var(--dur-ui) var(--ease-ui), opacity 400ms var(--ease-ui), transform 400ms var(--ease-ui), visibility 400ms; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: block; border-radius: .375rem; }
.logo img { width: 6.25rem; height: auto; }

/* Ghost-кнопка в шапці */
.btn-ghost {
  display: inline-flex; align-items: center; gap: .625rem;
  min-height: 3.125rem; padding: .5rem .5rem .5rem 1.25rem;
  border-radius: var(--r-pill);
  background: rgb(247 248 250 / .06);
  border: 1px solid rgb(247 248 250 / .22);
  font-weight: 700; font-size: .875rem; line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-ui), border-color var(--dur-ui) var(--ease-ui), transform 400ms var(--ease-spring);
}
.btn-ghost__icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgb(247 248 250 / .14); transition: background-color var(--dur-ui) var(--ease-ui); }
.btn-ghost:hover { background: rgb(247 248 250 / .12); border-color: rgb(247 248 250 / .4); }
.btn-ghost:hover .btn-ghost__icon { background: var(--gold); color: var(--ink); }
.btn-ghost:active { transform: scale(.97); }

/* =========================================================
   PRIMARY CTA — «living material» (затверджено)
   ========================================================= */
.cta-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 3.8125rem; padding: 1.1875rem 1.875rem 1.1875rem 2.125rem;
  border: 0; border-radius: var(--r-pill);
  color: var(--ink); font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(110deg, #3a63e8, var(--blue-lt), var(--gold), var(--gold-lt), #3a63e8);
  background-size: 300% 100%;
  animation: cta-flow 7s linear infinite;
  box-shadow: 0 .625rem 2.5rem -.75rem rgb(245 181 24 / .5);
  transition: transform 450ms var(--ease-spring), box-shadow var(--dur-ui) var(--ease-ui);
}
.cta-primary:hover { transform: scale(1.03); box-shadow: 0 .875rem 3.125rem -.75rem rgb(245 181 24 / .62); }
.cta-primary:active { transform: scale(.97); transition-duration: 120ms; }
.cta-primary[disabled] { cursor: not-allowed; opacity: .6; transform: none; }
.cta-primary--block { width: 100%; }
.cta-primary > svg, .btn-ghost__icon > svg { width: 1.125rem; height: 1.125rem; flex: none; }
.btn-ghost__icon > svg { width: 1rem; height: 1rem; }
.lead-modal__close > svg { width: 1.25rem; height: 1.25rem; }
.cta-primary.is-idle { animation-play-state: paused; }
@keyframes cta-flow { to { background-position: 300% 0; } }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-md);
  -webkit-backdrop-filter: blur(1.375rem);
          backdrop-filter: blur(1.375rem);
}

/* ---------- Градієнтна рамка: шар з padding = товщина, маска лишає тільки рамку ---------- */
.svc-card::before, .svc-card__edge, .cta-panel::before, .report::before, .form-panel::before, .founder__photo::after {
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* =========================================================
   HERO
   ========================================================= */
main { position: relative; z-index: 1; }
.hero { padding: calc(var(--header-h) + 1.875rem) 0 4rem; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: .5625rem;
  padding: .5rem 1rem .5rem .875rem;
  border-radius: var(--r-pill);
  background: rgb(247 248 250 / .08);
  border: 1px solid rgb(247 248 250 / .16);
  font-size: .875rem; line-height: 1.125rem; color: rgb(247 248 250 / .9);
}
.eyebrow-pill__dot { width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 .625rem rgb(245 181 24 / .7); }

.hero__title {
  margin-top: 2.75rem;
  font-weight: 900; font-size: clamp(3rem, 5.85vw, 5.25rem); line-height: .98; letter-spacing: -0.02em;
}
.hero__line { display: block; }

.hero__sub { margin-top: 1.625rem; max-width: 37.5rem; font-size: 1.25rem; line-height: 1.5; color: var(--paper-72); }

.hero__actions { margin-top: 3.875rem; display: flex; align-items: center; gap: 2.1875rem; flex-wrap: wrap; }
.hero__stack { padding: 1.125rem 1.375rem; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  padding: .5rem .875rem; border-radius: var(--r-pill);
  background: rgb(247 248 250 / .16); border: 1px solid rgb(247 248 250 / .2);
  font-size: .8125rem; line-height: 1.0625rem;
}

/* ---------- Hero: «наведення фокусу» при завантаженні (один раз) ---------- */
.hero__in { animation: focus-in var(--dur-enter) var(--ease-out) both; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
@keyframes focus-in {
  from { opacity: 0; filter: blur(.5rem); transform: translateY(.625rem); }
  to   { opacity: 1; filter: blur(0);   transform: none; }
}

/* =========================================================
   SECTIONS — спільне
   ========================================================= */
.section { padding: 4rem 0; }
.h2 { font-weight: 900; font-size: clamp(2rem, 3.1vw, 2.75rem); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.section__lead { margin-top: 1.25rem; max-width: 40rem; font-size: 1.125rem; line-height: 1.5; color: var(--paper-66); }

/* Іконка в кільці (Lucide, stroke) */
.icon-ring {
  flex: none; display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem; border-radius: 1rem;
  border: 1px solid;
}
.icon-ring svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-ring--blue { color: #7AA0FF; border-color: rgb(67 127 254 / .5); background: linear-gradient(90deg, rgb(67 127 254 / .22), rgb(67 127 254 / .04)); }
.icon-ring--gold { color: var(--gold); border-color: rgb(245 181 24 / .5); background: linear-gradient(90deg, rgb(245 181 24 / .22), rgb(245 181 24 / .04)); }
.icon-ring--sm { width: 2.75rem; height: 2.75rem; border-radius: .8125rem; }
.icon-ring--sm svg { width: 1.25rem; height: 1.25rem; }
.c-blue { color: var(--blue); }
.c-gold { color: var(--gold); }

/* ---------- Блок 02 ---------- */
.europe__grid { display: grid; grid-template-columns: minmax(0, 42.5rem) minmax(0, 32.5rem); column-gap: 2.5rem; justify-content: space-between; align-items: start; }
.europe__text { margin-top: 1.75rem; font-size: 1.125rem; line-height: 1.58; color: rgb(247 248 250 / .7); }
.europe__text strong { font-weight: 700; color: var(--paper); }
.europe__facts { display: grid; gap: .75rem; }
.fact { display: grid; gap: .5625rem; padding: 1.25rem 1.5rem; border-radius: 1rem; border-color: rgb(247 248 250 / .14); }
.fact__label { font-size: .8125rem; line-height: 1.0625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.fact__value { font-size: 1rem; line-height: 1.48; color: rgb(247 248 250 / .82); }

/* ---------- Блок 03 — Метод ---------- */
.method__path {
  position: relative; list-style: none; margin: 4rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 3.5rem;
  view-timeline-name: --method;
}
.method__track { position: absolute; left: 0; right: 0; top: 5.75rem; height: 2px; background: rgb(247 248 250 / .08); border-radius: 2px; overflow: hidden; }
.method__fill { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(67 127 254 / .9), rgb(245 181 24 / .9)); }
.step { position: relative; }
.step__num {
  display: block; height: 5.125rem;
  font-weight: 900; font-size: 4rem; line-height: 5.125rem; letter-spacing: -0.02em;
  background-clip: text; -webkit-background-clip: text; color: transparent;
}
.step--1 .step__num { background-image: linear-gradient(180deg, var(--paper), var(--blue)); }
.step--2 .step__num { background-image: linear-gradient(90deg, var(--blue), var(--gold)); }
.step--3 .step__num { background-image: linear-gradient(180deg, var(--paper), var(--gold)); }
.step__node { position: absolute; left: 0; top: 5.25rem; width: 1.125rem; height: 1.125rem; border-radius: 50%; box-shadow: 0 0 0 .25rem var(--bg); }
.step--1 .step__node { background: var(--blue); --glow: rgb(67 127 254 / .9); }
.step--2 .step__node { background: linear-gradient(90deg, var(--blue), var(--gold)); --glow: rgb(153 153 229 / .7); }
.step--3 .step__node { background: var(--gold); --glow: rgb(245 181 24 / .9); }
.step__node::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 1.375rem 2px var(--glow); opacity: var(--lit, 1); }
.step__title { margin-top: 3.25rem; font-weight: 700; font-size: 1.375rem; line-height: 1.27; }
.step__text { margin-top: .75rem; font-size: 1rem; line-height: 1.56; color: var(--paper-66); }

/* ---------- Блок 04 — Послуги (скляні картки + акордеон) ---------- */
.services__grid { margin-top: 2.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.svc-card {
  --accent: 67 127 254;
  position: relative; isolation: isolate;
  padding: 2rem 2rem 1rem; border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgb(var(--accent) / .16), rgb(var(--accent) / 0) 50%),
    rgb(11 12 14 / .55);
  -webkit-backdrop-filter: blur(1.5rem); backdrop-filter: blur(1.5rem);
}
.svc-card--gold { --accent: 245 181 24; }
.svc-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgb(var(--accent) / .7), rgb(247 248 250 / .08) 60%);
}
/* motion #5: світло під курсором + яскравіша рамка з боку курсора */
.svc-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(22.5rem circle at var(--mx, 50%) var(--my, -40%), rgb(var(--accent) / .12), transparent 70%);
  opacity: 0; transition: opacity 300ms var(--ease-ui);
}
.svc-card__edge {
  position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(13.75rem circle at var(--mx, 50%) var(--my, -40%), rgb(var(--accent) / .95), transparent 70%);
  opacity: 0; transition: opacity 300ms var(--ease-ui);
}
.svc-card.is-lit::after, .svc-card.is-lit .svc-card__edge { opacity: 1; }

.svc-card__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.svc-card__title { font-weight: 700; font-size: 1.75rem; line-height: 1.28; letter-spacing: -0.01em; }
.svc-card__billing { margin-top: .25rem; font-size: .875rem; line-height: 1.125rem; color: rgb(247 248 250 / .55); }

.svc + .svc { border-top: 1px solid rgb(247 248 250 / .12); }
.svc__h { margin: 0; font: inherit; }
.svc__btn {
  width: 100%; display: flex; align-items: center; gap: 1.25rem;
  padding: 1.375rem 0; background: none; border: 0; text-align: left; cursor: pointer;
  transition: padding-bottom 280ms var(--ease-out);
}
.svc__btn[aria-expanded="true"] { padding-bottom: .625rem; }
.svc__name { flex: 1; font-weight: 700; font-size: 1.25rem; line-height: 1.625rem; letter-spacing: -0.005em; }
.svc__price { font-weight: 700; font-size: 1.125rem; line-height: 1.4375rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chev {
  flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid rgb(247 248 250 / .2);
  transition: background-color var(--dur-ui) var(--ease-ui), border-color var(--dur-ui) var(--ease-ui);
}
.chev svg { width: 1rem; height: 1rem; fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 420ms var(--ease-spring), stroke var(--dur-ui) var(--ease-ui); }
.svc__btn:hover .chev { border-color: rgb(247 248 250 / .45); }
.svc__btn[aria-expanded="true"] .chev { background: rgb(245 181 24 / .14); border-color: rgb(245 181 24 / .6); }
.svc__btn[aria-expanded="true"] .chev svg { transform: rotate(180deg); stroke: var(--gold); }
.svc__btn:focus-visible { outline-offset: -2px; border-radius: .5rem; }
.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
.svc__panel > div { overflow: hidden; visibility: hidden; transition: visibility 0s 280ms; }
.svc__btn[aria-expanded="true"] + .svc__panel > div, .svc__h:has([aria-expanded="true"]) + .svc__panel > div { visibility: visible; transition-delay: 0s; }
.svc__panel p { padding-bottom: 1.375rem; font-size: 1rem; line-height: 1.52; color: var(--paper-60); }
.svc__btn[aria-expanded="true"] + .svc__panel, .svc__h:has([aria-expanded="true"]) + .svc__panel { grid-template-rows: 1fr; }
.services .section__lead { max-width: 43.75rem; }
.services__note { margin-top: 2.5rem; font-size: .875rem; line-height: 1.125rem; color: rgb(247 248 250 / .5); }

/* ---------- Блок 05 — CTA ---------- */
.cta-panel, .report, .form-panel { position: relative; }
.cta-panel::before, .report::before, .form-panel::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: var(--gb-w, 1px); pointer-events: none;
  background: var(--gb);
}
.cta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
  padding: 4rem; border-radius: var(--r-md);
  background: rgb(11 12 14 / .45);
  --gb: linear-gradient(90deg, rgb(67 127 254 / .6), rgb(247 248 250 / .08) 45%, rgb(247 248 250 / .08) 70%, rgb(245 181 24 / .6));
  -webkit-backdrop-filter: blur(1.375rem); backdrop-filter: blur(1.375rem);
}
.cta-panel__copy { max-width: 42.5rem; }
.cta-panel .section__lead { max-width: 40rem; }
.cta-panel__action { display: grid; justify-items: center; gap: .875rem; flex: none; }

/* ---------- Блок 06 — За що ви платите ---------- */
.payfor__grid { margin-top: 3.5rem; display: grid; grid-template-columns: 33.25rem 1fr; gap: 3rem; align-items: start; }
.payfor__list { display: grid; gap: 1.75rem; }
.thesis { display: flex; gap: 1.125rem; align-items: flex-start; }
.thesis__lead { font-weight: 700; font-size: 1.125rem; line-height: 1.35; }
.thesis__text { margin-top: .375rem; font-size: 1rem; line-height: 1.55; color: var(--paper-66); }

.report {
  --rp: 2rem; --ch: 13.75rem;
  margin: 0; padding: var(--rp) var(--rp) 2.25rem; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgb(67 127 254 / .16), rgb(67 127 254 / 0) 60%), rgb(11 12 14 / .6);
  --gb: linear-gradient(90deg, rgb(67 127 254 / .6), rgb(245 181 24 / .6));
  box-shadow: 0 1.5rem 5rem -.5rem rgb(67 127 254 / .22);
  -webkit-backdrop-filter: blur(1.5rem); backdrop-filter: blur(1.5rem);
}
.report__chart { width: 100%; height: var(--ch); overflow: visible; }
.report__grid line { stroke: rgb(247 248 250 / .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.report__line { vector-effect: non-scaling-stroke; }
.report__dot {
  position: absolute; width: .75rem; height: .75rem; border-radius: 50%;
  left: calc(var(--rp) + (570 / 594) * (100% - 2 * var(--rp)) - .375rem);
  top: calc(var(--rp) + var(--ch) * 18 / 220 - .375rem);
  background: var(--gold); box-shadow: 0 0 1rem 2px rgb(245 181 24 / .9);
}
.report__caption { margin-top: 1.5rem; display: flex; gap: .875rem; align-items: flex-start; }
.report__caption p { font-weight: 700; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }

/* ---------- Блок 07 — Засновники ---------- */
.founders__grid { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.founder__photo {
  position: relative; aspect-ratio: 600 / 640; border-radius: var(--r-md); overflow: hidden;
  background: #000;
  box-shadow: -.75rem -.75rem 3.75rem -.625rem rgb(67 127 254 / .14), .75rem 1rem 3.75rem -.625rem rgb(245 181 24 / .12);
}
.founder__photo::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, rgb(67 127 254 / .95), rgb(247 248 250 / .18) 50%, rgb(245 181 24 / .95));
}
.founder__photo picture { display: block; height: 100%; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__name { margin-top: 1.75rem; font-weight: 700; font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; }
.founder__bio { margin-top: .875rem; max-width: 35rem; font-size: 1rem; line-height: 1.52; color: var(--paper-66); }

/* ---------- Блок 08 — Форма ---------- */
.contact { padding-bottom: 6rem; }
.contact__grid { display: grid; grid-template-columns: 35rem 1fr; gap: 4rem; align-items: start; }
.contact__copy .section__lead { max-width: 32.5rem; margin-top: 1.5rem; }
.contact__line { margin-top: 2rem; font-size: .875rem; line-height: 1.5; color: var(--paper-60); }
.contact__line a { color: var(--paper); text-decoration: none; margin-left: .75rem; }
.contact__line a:hover { text-decoration: underline; }
.form-panel {
  padding: 2.75rem; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgb(67 127 254 / .2), rgb(67 127 254 / .03) 55%, rgb(245 181 24 / .07)), rgb(19 22 28 / .82);
  --gb: linear-gradient(135deg, rgb(67 127 254 / .85), rgb(247 248 250 / .16) 50%, rgb(245 181 24 / .75)); --gb-w: 1.5px;
  box-shadow: 0 1.5rem 5.625rem -.625rem rgb(67 127 254 / .28);
  -webkit-backdrop-filter: blur(1.5rem); backdrop-filter: blur(1.5rem);
}

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; padding-bottom: 3rem; }
.site-footer__divider { height: 1px; background: linear-gradient(90deg, rgb(67 127 254 / .7), rgb(247 248 250 / .14), rgb(245 181 24 / .7)); }
.site-footer__top { display: flex; align-items: center; justify-content: space-between; padding: 3rem 0 2.5rem; }
.logo--footer img { width: 7.5rem; }
.site-footer__email { font-size: 1.25rem; line-height: 1.625rem; color: var(--paper); text-decoration: none; }
.site-footer__email:hover { text-decoration: underline; text-underline-offset: .25rem; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; font-size: .875rem; line-height: 1.125rem; color: var(--paper-60); }
.site-footer__links { display: flex; align-items: center; gap: .375rem; }
.site-footer__links > span[aria-hidden] { color: rgb(247 248 250 / .3); }
.site-footer__links a, .link-btn { color: var(--paper-60); text-decoration: none; background: none; border: 0; padding: .25rem 2px; font-size: .875rem; cursor: pointer; }
.site-footer__links a:hover, .link-btn:hover { color: var(--paper); }
.lang a[aria-current="page"] { color: var(--paper); font-weight: 700; }

/* =========================================================
   MOTION — «Лінза фокусує» (design/motion-plan.md)
   CSS scroll-driven; де не підтримується — JS-фолбек на Web Animations API
   ========================================================= */
@keyframes focus-pull { from { opacity: 0; filter: blur(.375rem); transform: translateY(.5rem); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes iris { from { clip-path: circle(0% at 50% 42%); } to { clip-path: circle(75% at 50% 42%); } }
@keyframes reveal-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes step-in { from { opacity: .18; filter: blur(.25rem); } to { opacity: 1; filter: blur(0); } }
@keyframes node-lit { from { --lit: 0; transform: scale(.6); } to { --lit: 1; transform: scale(1); } }
@keyframes dot-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes dot-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.report__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; pointer-events: none; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@property --lit { syntax: '<number>'; inherits: true; initial-value: 1; }

.shimmer {
  background: linear-gradient(100deg, var(--gold) 40%, #FFF6CF 50%, var(--gold) 60%) 0 0 / 300% 100% repeat-x;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.report.is-done .shimmer { animation: shimmer 1.1s var(--ease-ui) 1 both; }
.report.is-done .report__dot::after { animation: dot-pulse 1s var(--ease-out) 1; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .focus-in { animation: focus-pull linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    .method__fill { animation: reveal-x linear both; animation-timeline: --method; animation-range: entry 0% cover 60%; }
    .step { animation: step-in linear both; animation-timeline: --method; }
    .step__node { animation: node-lit linear both; animation-timeline: --method; }
    .step--1, .step--1 .step__node { animation-range: entry 0% cover 16%; }
    .step--2, .step--2 .step__node { animation-range: cover 13% cover 29%; }
    .step--3, .step--3 .step__node { animation-range: cover 34% cover 50%; }
    .report { view-timeline-name: --report; }
    .report__line { animation: reveal-x linear both; animation-timeline: --report; animation-range: entry 40% cover 55%; }
    .report__area { animation: reveal-x linear both; animation-timeline: --report; animation-range: entry 40% cover 55%; }
    .report__dot { animation: dot-in linear both; animation-timeline: --report; animation-range: cover 53% cover 56%; }
    .founder__photo picture { animation: iris linear both; animation-timeline: view(); animation-range: entry 5% cover 40%; }
  }
  /* Без scroll-timeline (Safari < 26, Firefox) ті самі анімації веде JS: initScrollFallback у main.js */
}

/* =========================================================
   LEAD MODAL (попап-форма)
   ========================================================= */
.lead-modal {
  width: min(35rem, 100% - 2rem); max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; background: transparent; color: var(--paper);
  overflow: visible;
}
.lead-modal::backdrop { background: rgb(6 7 10 / .72); -webkit-backdrop-filter: blur(.375rem); backdrop-filter: blur(.375rem); }
.lead-modal[open] { animation: modal-in 220ms var(--ease-out); }
.lead-modal[open]::backdrop { animation: fade-in 220ms var(--ease-ui); }
.lead-modal.is-closing { animation: modal-out 150ms var(--ease-ui) forwards; }
.lead-modal.is-closing::backdrop { animation: fade-out 150ms var(--ease-ui) forwards; }
@keyframes modal-in { from { opacity: 0; transform: scale(.95); } }
@keyframes modal-out { to { opacity: 0; transform: scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.lead-modal__panel {
  position: relative;
  max-height: calc(100dvh - 2rem); overflow-y: auto;
  padding: 2.75rem;
  border-radius: var(--r-lg);
  /* 1) відтінок  2) непрозора поверхня  3) градієнтна рамка (видно лише в border) */
  background:
    linear-gradient(180deg, rgb(67 127 254 / .18), rgb(67 127 254 / .03) 55%, rgb(245 181 24 / .06)) padding-box,
    linear-gradient(#13161C, #13161C) padding-box,
    linear-gradient(135deg, rgb(67 127 254 / .85), rgb(247 248 250 / .16) 50%, rgb(245 181 24 / .75)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 1.5rem 5.625rem -.625rem rgb(67 127 254 / .28);
}
.lead-modal__title { font-weight: 900; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.01em; padding-right: 2.5rem; margin-bottom: 1.75rem; }
.lead-modal__close {
  position: absolute; top: .875rem; right: .875rem;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgb(247 248 250 / .18); background: rgb(247 248 250 / .06);
  cursor: pointer; transition: background-color var(--dur-ui) var(--ease-ui);
}
.lead-modal__close:hover { background: rgb(247 248 250 / .14); }
html.modal-open { overflow: hidden; }

/* ---------- Form ---------- */
.lead-form { display: grid; gap: 1.25rem; }
.form-field { display: grid; gap: .625rem; }
.form-field label { font-size: .875rem; line-height: 1.3; color: rgb(247 248 250 / .82); }
.req { color: var(--gold); }
.form-field input, .form-field textarea {
  width: 100%; min-height: 3.25rem; padding: .875rem 1.125rem;
  font: inherit; font-size: 1rem; color: var(--paper);
  background: rgb(11 12 14 / .7);
  border: 1px solid rgb(247 248 250 / .2); border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease-ui), box-shadow var(--dur-fast) var(--ease-ui);
}
.form-field textarea { min-height: 7.5rem; resize: vertical; }
.lead-modal .form-field textarea { min-height: 6rem; }
.form-field ::placeholder { color: rgb(247 248 250 / .55); }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 .1875rem rgb(67 127 254 / .35); }
.form-field [aria-invalid="true"] { border-color: var(--gold); }
.form-field.is-shake input { animation: shake 150ms var(--ease-ui) 2; }
@keyframes shake { 25% { transform: translateX(-.25rem); } 75% { transform: translateX(.25rem); } }
.form-error { font-size: .875rem; line-height: 1.3; color: var(--gold); }
.form-error:empty { display: none; }
.hp { position: absolute; left: -624.9375rem; width: 1px; height: 1px; opacity: 0; }
.lead-form .cta-primary { margin-top: .75rem; }
.form-status { font-size: .875rem; line-height: 1.4; color: var(--gold); text-align: center; }

/* ---------- thanks.html ---------- */
.thanks__main { min-height: 100svh; display: grid; align-items: center; padding: 3rem 0; }
.thanks__main .logo { margin-bottom: 4rem; width: max-content; }
.thanks__title { font-weight: 900; font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 14ch; }
.thanks__text { margin: 1.5rem 0 2.5rem; font-size: 1.25rem; line-height: 1.5; color: var(--paper-72); max-width: 35rem; }
a.cta-primary { text-decoration: none; }

/* =========================================================
   COOKIE BANNER — компактне віконце внизу (Consent Mode v2)
   ========================================================= */
.cookie-banner {
  position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 80;
  width: min(26.25rem, 100% - 2rem);
  padding: 1.25rem 1.25rem 1.125rem; border-radius: var(--r-md);
  background: #13161C;
  border: 1px solid rgb(247 248 250 / .14);
  box-shadow: 0 1.125rem 3.75rem -.75rem rgb(0 0 0 / .6);
  opacity: 0; transform: translateY(.75rem);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner__text { font-size: .875rem; line-height: 1.5; color: rgb(247 248 250 / .82); }
.cookie-banner__actions { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
.cookie-btn {
  min-height: 2.75rem; padding: .625rem .875rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: .875rem; line-height: 1.2; cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-ui), border-color var(--dur-ui) var(--ease-ui), color var(--dur-ui) var(--ease-ui);
}
.cookie-btn--reject { background: transparent; color: var(--paper); border: 1px solid rgb(247 248 250 / .3); }
.cookie-btn--reject:hover { border-color: rgb(247 248 250 / .6); background: rgb(247 248 250 / .06); }
.cookie-btn--accept { background: var(--gold); color: var(--ink); border: 1px solid var(--gold); }
.cookie-btn--accept:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
@media (max-width: 767px) {
  .cookie-banner { left: .75rem; right: .75rem; bottom: .75rem; width: auto; padding: 1rem; }
}

/* =========================================================
   RESPONSIVE — планшет (768–1199)
   ========================================================= */
@media (max-width: 1199px) {
  .europe__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .payfor__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .method__path { column-gap: 2rem; }
  .cta-panel { padding: 3rem; }
}
/* планшет альбомно: у двох колонках карток довга ціна не влазить в один рядок із назвою */
@media (min-width: 992px) and (max-width: 1199px) {
  .svc__btn { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .75rem; row-gap: .25rem; }
  .svc__name { grid-column: 1; }
  .svc__price { grid-column: 1; grid-row: 2; font-size: 1rem; white-space: normal; }
  .chev { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 991px) {
  .services__grid { grid-template-columns: 1fr; }
  .payfor__grid, .contact__grid, .europe__grid { grid-template-columns: 1fr; }
  .europe__facts { margin-top: 2rem; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .cta-panel__action { justify-items: start; }
}

/* =========================================================
   RESPONSIVE — мобільний (≤ 767) · макет 155:2 (375)
   ========================================================= */
@media (max-width: 767px) {
  :root { --gutter: 1.25rem; --header-h: 4.5rem; }

  /* скло на мобільному без backdrop-filter (FPS на Android) */
  .glass, .svc-card, .cta-panel, .report, .form-panel { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .glass { background: rgb(11 12 14 / .85); }
  .svc-card { background: linear-gradient(180deg, rgb(var(--accent) / .16), rgb(var(--accent) / 0) 50%), rgb(11 12 14 / .88); }
  .cta-panel { background: rgb(11 12 14 / .85); }
  .report { background: linear-gradient(180deg, rgb(67 127 254 / .16), rgb(67 127 254 / 0) 60%), rgb(11 12 14 / .88); }
  .form-panel { background: linear-gradient(180deg, rgb(67 127 254 / .2), rgb(67 127 254 / .03) 55%, rgb(245 181 24 / .07)), rgb(19 22 28 / .95); }

  /* шапка: 72 → 60, суцільна підкладка */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(6 7 10 / calc(var(--glass) * .92)); }
  @supports (animation-timeline: scroll()) {
    @keyframes header-glass { from { --glass: 0; height: 4.5rem; } to { --glass: 1; height: 3.75rem; } }
  }
  .site-header.is-scrolled { height: 3.75rem; }
  .logo img { width: 5.25rem; }
  .btn-ghost { min-height: 2.75rem; padding: .375rem .375rem .375rem .875rem; gap: .5rem; font-size: .8125rem; }

  /* аврора: CSS, повільний дрейф (пауза, коли hero поза екраном) */
  .aurora { height: 81.25rem; }
  .aurora__fallback {
    inset: -2.5rem;
    background:
      radial-gradient(23.75rem 21.25rem at 20.625rem 3.75rem, rgb(63 116 255 / .9), transparent 72%),
      radial-gradient(15rem 15rem at 20.625rem 10.625rem, rgb(143 192 255 / .5), transparent 72%),
      radial-gradient(23.75rem 21.25rem at 23.125rem 45rem, rgb(245 181 24 / .9), transparent 72%),
      radial-gradient(13.75rem 12.5rem at 22.5rem 43.75rem, rgb(255 232 135 / .5), transparent 72%),
      radial-gradient(15rem 12.5rem at 1.875rem 75.625rem, rgb(67 127 254 / .25), transparent 70%);
    animation: aurora-drift 18s ease-in-out infinite alternate;
  }
  .aurora.is-paused .aurora__fallback { animation-play-state: paused; }
  .scrim { background: linear-gradient(90deg, rgb(6 7 10 / .9) 0%, rgb(6 7 10 / .55) 55%, rgb(6 7 10 / .1) 100%); }
  .lens { left: 0; margin-left: 0; width: 100%; top: 0; height: 100%; }

  /* типографіка */
  .section { padding: 3rem 0; }
  .h2 { font-size: 1.875rem; line-height: 1.15; }
  .section__lead { font-size: 1rem; line-height: 1.55; margin-top: .875rem; }

  /* hero */
  .hero { padding: calc(var(--header-h) + 1.75rem) 0 3rem; }
  .eyebrow-pill { font-size: .8125rem; }
  .hero__title { margin-top: 1.125rem; font-size: min(10.6vw, 2.75rem); line-height: 1.04; letter-spacing: -0.025em; }
  .hero__sub { margin-top: 1rem; font-size: 1.0625rem; }
  .hero__actions { margin-top: 1.75rem; flex-direction: column; align-items: stretch; gap: 2.25rem; }
  .hero__actions .cta-primary { width: 100%; padding-top: 1.125rem; padding-bottom: 1.125rem; }
  .hero__stack { padding: 1rem; }

  /* 02 */
  .europe__text { margin-top: 1rem; font-size: 1rem; line-height: 1.55; }
  .europe__grid { gap: 0; }
  .europe__facts { margin-top: 1.75rem; }
  .fact { padding: 1rem 1.125rem; }

  /* 03 — вертикальна шкала */
  .method__path { margin-top: 2rem; grid-template-columns: 1fr; row-gap: 2rem; }
  .method__track { left: .5rem; right: auto; width: 2px; top: var(--track-top, 1.625rem); height: var(--track-h, 0); }
  .method__fill { background: linear-gradient(180deg, rgb(67 127 254 / .9), rgb(245 181 24 / .9)); }
  .step { padding-left: 2.5rem; }
  .step__num { height: 3.25rem; font-size: 2.5rem; line-height: 3.25rem; }
  .step__node { left: 2px; top: 1.1875rem; width: .875rem; height: .875rem; }
  .step__title { margin-top: .25rem; font-size: 1.25rem; }
  .step__text { margin-top: .625rem; }

  /* 04 */
  .services__grid { margin-top: 1.75rem; gap: 1rem; }
  .svc-card { padding: 1.5rem 1.125rem .5rem; }
  .svc-card__head { margin-bottom: .5rem; }
  .svc-card__title { font-size: 1.5rem; }
  .svc__btn { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .625rem; row-gap: .25rem; padding: 1rem 0; }
  .svc__btn[aria-expanded="true"] { padding-bottom: .5rem; }
  .svc__name { grid-column: 1; font-size: 1.125rem; line-height: 1.3; }
  .svc__price { grid-column: 1; grid-row: 2; font-size: .8125rem; line-height: 1.3; white-space: normal; }
  .chev { grid-column: 2; grid-row: 1 / span 2; width: 2.25rem; height: 2.25rem; }
  .svc__panel p { font-size: .9375rem; padding-bottom: 1rem; }
  .services__note { margin-top: 1.25rem; font-size: .8125rem; }

  /* 05 */
  .cta-panel { padding: 2rem 1.25rem 1.75rem; gap: 1.75rem; }
  .cta-primary { padding-left: 1.375rem; padding-right: 1.25rem; }
  .cta-panel .h2 { font-size: 1.75rem; }
  .cta-panel__action { width: 100%; justify-items: center; }
  .cta-panel__action .cta-primary { width: 100%; }

  /* 06 */
  .payfor__grid { margin-top: 1.75rem; gap: 2rem; }
  .payfor__list { gap: 1.5rem; }
  .thesis { gap: .875rem; }
  .thesis__lead { font-size: 1.0625rem; }
  .report { --rp: 1.25rem; --ch: 9.375rem; padding-bottom: 1.5rem; }
  .report__caption { flex-direction: column; gap: .875rem; margin-top: 1.25rem; }
  .report__caption p { font-size: 1.1875rem; }

  /* 07 */
  .founders__grid { margin-top: 1.75rem; grid-template-columns: 1fr; gap: 2.5rem; }
  .founder__photo { aspect-ratio: 335 / 360; }
  .founder__name { margin-top: 1.25rem; font-size: 1.5rem; }
  .founder__bio { margin-top: .625rem; }

  /* 08 */
  .contact { padding-bottom: 4rem; }
  .contact__grid { gap: 2rem; }
  .contact__copy .section__lead { margin-top: 1rem; }
  .contact__line { margin-top: 1.25rem; }
  .contact__line a { display: block; margin: 2px 0 0; }
  .form-panel { padding: 1.75rem 1.25rem; border-radius: 1.25rem; }
  .lead-form { gap: 1.125rem; }

  /* footer */
  .site-footer { padding-bottom: 2.5rem; }
  .site-footer__top { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2rem 0 1.75rem; }
  .site-footer__email { font-size: 1.125rem; }
  .site-footer__bottom { flex-direction: column-reverse; align-items: flex-start; gap: .625rem; }
  .site-footer__links { flex-direction: column; align-items: flex-start; gap: .375rem; }
  .site-footer__links > span[aria-hidden] { display: none; }
  .site-footer__links a, .link-btn { padding: .375rem 0; }
  .logo--footer img { width: 6.875rem; }

  /* попап */
  .lead-modal__panel { padding: 1.75rem 1.25rem 1.5rem; }
  .lead-modal__title { font-size: 1.5rem; margin-bottom: 1.25rem; }
}

/* телефон горизонтально (низький екран): шапка як на мобільному, hero вміщається в перший екран */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --header-h: 4.5rem; }
  @supports (animation-timeline: scroll()) {
    @keyframes header-glass { from { --glass: 0; height: 4.5rem; } to { --glass: 1; height: 3.75rem; } }
  }
  .site-header.is-scrolled { height: 3.75rem; }
  .logo img { width: 5.25rem; }
  .btn-ghost { min-height: 2.75rem; padding: .375rem .375rem .375rem .875rem; gap: .5rem; font-size: .8125rem; }
  .hero { padding: calc(var(--header-h) + .75rem) 0 2.5rem; }
  .eyebrow-pill { font-size: .8125rem; padding-block: .375rem; }
  .hero__title { margin-top: .875rem; font-size: clamp(2rem, 11vh, 3rem); line-height: 1.02; }
  .hero__line { display: inline-block; }   /* рядки заголовка стають в один-два рядки замість трьох */
  .hero__sub { margin-top: .75rem; font-size: 1rem; }
  .hero__actions { margin-top: 1.25rem; flex-direction: row; align-items: center; gap: 1.25rem; }
  .hero__actions .cta-primary { width: auto; min-height: 3.25rem; padding-block: .875rem; }
  .hero__stack { padding: .625rem .875rem; }
  /* сторінка подяки */
  .thanks__main { padding: 1.25rem 0; }
  .thanks__main .logo { margin-bottom: 1.25rem; }
  .thanks__title { font-size: clamp(1.75rem, 9vh, 2.5rem); max-width: none; }
  .thanks__text { margin: .75rem 0 1.25rem; font-size: 1rem; }
  .thanks__main .cta-primary { min-height: 3.25rem; padding-block: .875rem; }
}

/* дуже вузькі екрани (< 360): нічого не повинно розпирати сторінку */
@media (max-width: 359px) {
  :root { --gutter: 1rem; }
  .btn-ghost > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn-ghost { padding: .375rem; }
  .cta-primary { white-space: normal; text-align: center; line-height: 1.2; padding-left: 1.125rem; padding-right: 1rem; }
  .svc-card { padding-left: .875rem; padding-right: .875rem; }
  .cta-panel, .form-panel { padding-left: 1rem; padding-right: 1rem; }
  .report { --rp: 1rem; }
  .eyebrow-pill { font-size: .75rem; }
  .hero__title { font-size: 10vw; }
  .h2 { font-size: 1.625rem; }
}
@keyframes aurora-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-1.125rem, 1.5rem, 0); } }

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .method__fill { animation-name: reveal-y; animation-range: entry 25% entry 100%; }
    .step--1, .step--1 .step__node { animation-range: entry 20% entry 36%; }
    .step--2, .step--2 .step__node { animation-range: entry 56% entry 72%; }
    .step--3, .step--3 .step__node { animation-range: entry 84% entry 100%; }
  }
}
@keyframes reveal-y { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* =========================================================
   REDUCED MOTION — паралельний дизайн: одразу фінальний стан
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__in { animation: none; }
  .cta-primary { animation: none; }
  .lens { animation: none !important; clip-path: none !important; }
  .lead-modal[open], .lead-modal[open]::backdrop, .lead-modal.is-closing, .lead-modal.is-closing::backdrop { animation: none; }
  .form-field.is-shake input { animation: none; }
  .aurora__fallback { animation: none !important; }
  .cookie-banner { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
