/*
Theme Name: VIX Landing
Theme URI: https://vixdesignlab.com
Author: VIX Design Lab
Description: Лендінг VIX Design Lab. Кейси редагуються в адмінці: Кейси → Додати кейс.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: vix
*/

/* =====================================================================
   VIX Design Lab — landing page
   Reference: Figma "Landing page-2" / node 29:2787 (1920 frame, 1440 grid)
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root{
  /* З панелі Properties: заголовки — DM Sans Medium 500,
     текст — Inter Regular 400, плейсхолдери — Inter Light 300.
     Обидві гарнітури безкоштовні, підключені з Google Fonts. */
  --font-display:"DM Sans",-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-body:"Inter",-apple-system,"Segoe UI",Roboto,Arial,sans-serif;

  --cream:#F8F7F1;
  --cream-warm:#F3F2EE;
  --beige:#E3E1D5;
  --ink:#0B0A06;
  --ink-soft:#110D04;
  --ink-mid:#252118;
  --muted:#5C5C56;
  --muted-2:#77776F;
  --line:rgba(11,10,6,.12);
  --line-light:rgba(255,255,255,.14);
  --on-dark:#F4F2EC;
  --on-dark-muted:#B3B0A6;

  --r-pill:999px;
  --r-card:20px;
  --r-lg:24px;

  /* Фрейм макета 1905, поля 240 → контент 1425.
     max-width враховує внутрішні 40+40. */
  --container:1505px;
  --gutter:40px;
  /* Вертикальний ритм: зсув від межі секції до її бейджа.
     Виміряно окремо для кожної секції — вони різні. */
  --pad:120px;
  --sec-pad:var(--pad);

  /* Кеглі витягнуті з PDF-експорту макета (1905×10367, 1:1),
     не оцінені по пікселях. EN і UA збігаються всюди, крім H1:
     в UA він 62/74, бо український текст довший. */
  --fs-h1:80px;   --lh-h1:96px;
  --fs-h2:52px;   --lh-h2:62px;
  --fs-h3:36px;   --lh-h3:44px;
  --fs-lead:24px; --lh-lead:36px;
  --fs-body:18px; --lh-body:23px;
  --fs-sm:16px;
  --fs-btn:16px;

  /* Висота шапки: поле 26 + рядок 44. Фон героя піднімається на цю
     величину, щоб іти за меню, як у макеті. */
  --header-h:96px;

  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- RESET ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--font-body);
  font-size:var(--fs-body);
  line-height:var(--lh-body);
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;display:block}
/* Жодного синього від браузера: прапорці, радіо, прогрес-елементи
   й виділення тексту — у чорному з палітри. */
:root{accent-color:var(--ink)}
::selection{background:rgba(11,10,6,.85);color:#fff}
.roi ::selection,.reviews ::selection,.footer ::selection{background:rgba(244,242,236,.85);color:var(--ink)}
/* На телефонах будь-який елемент ширший за екран дає горизонтальний скрол
   і «стрибок» сторінки — глушимо на корені. */
html,body{overflow-x:hidden}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3,h4,p{margin:0}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:6px}
.reviews :focus-visible,.roi :focus-visible,.footer :focus-visible{outline-color:var(--on-dark)}


.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:var(--gutter)}
/* У Figma два десктопні фрейми: 1905 з контентом 1425 (поля 240) і 1440
   з контентом 1200 (поля 120). Між ними поля ростуть лінійно, тож на
   будь-якому екрані сітка збігається з макетом, а не прилипає до країв. */
@media (min-width:1200px){
  .container{
    --gutter:clamp(40px,calc(25.8vw - 251.6px),240px);
    max-width:none;
    width:min(1425px,calc(100% - 2 * var(--gutter)));
    padding-inline:0;
  }
}
.container--narrow{max-width:1032px}


/* ---------- ГАРНІТУРИ ----------
   Заголовки набрані DM Sans, решта — Inter. Розділено явно, бо в макеті
   це два різні сімейства, а не накреслення одного. */
h1,h2,h3,h4,
.h2,.hero__title,.case__title,.bcard h3,.step__body h3,
.review__title,.modal__title,.form__title,
.roi__value,.roi__minicard b,.modal__stats b,.review__stats b,
.acc__q,.step__num,.step::after{
  font-family:var(--font-display);
  font-weight:500;
}
.hero__title,.hero__title b{font-weight:700}
.modal__title{font-weight:700}
.hero__title i{font-weight:400}

/* ---------- TYPOGRAPHY PRIMITIVES ---------- */
.h2{
  font-size:var(--fs-h2);
  line-height:var(--lh-h2);
  font-weight:500;
  letter-spacing:-.02em;
}
/* Ширини текстових контейнерів зняті з Figma (Home page/Desktop 1905px):
   H2 секцій — до 847 («We simplify the workflow…»), підзаголовки — 672–720.
   Без обмеження абзац розтягувався на всі 1425 і йшов одним рядком. */
.sec-head .h2{max-width:860px}
.sec-sub{
  font-size:18px;
  line-height:23px;
  color:var(--muted);
  max-width:720px;
  margin-inline:auto;
}
/* Бейдж → H2 у макеті 13px, H2 → підзаголовок 20px. */
.sec-head{text-align:center;display:grid;justify-items:center;gap:20px}
.sec-head .pill{margin-bottom:-7px}
.sec-head--light .h2{color:var(--on-dark)}
.sec-head--light .sec-sub{color:var(--on-dark-muted)}

.section{padding-block:var(--sec-pad)}
.sec-cta{display:flex;justify-content:center;margin-top:56px}

/* ---------- PILLS / TAGS ---------- */
.pill{
  display:inline-flex;align-items:center;gap:8px;
  width:fit-content;
  height:40px;padding-inline:14px;
  border-radius:var(--r-pill);
  font-size:16px;line-height:1;
}
.pill--dark{
  background:linear-gradient(100deg,#3B3833 0%,#161410 55%,#2A2721 100%);
  color:var(--on-dark);
  transition:background .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease);
}
/* На темних секціях пігулка інша: заливка #2A2826, рамка #474643 —
   заміряно зі скріншота секції ROI. */
.pill--glass{
  background:#2A2826;
  border:1px solid #474643;
  color:var(--on-dark);
  transition:background .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease);
}
.pill .dot{
  width:12px;height:12px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff,#8E8B84 60%,#3A3833);
  flex:none;box-sizing:border-box;
  display:grid;place-items:center;
  transition:background .3s var(--ease),border-color .3s var(--ease);
}

/* Ховер бейджа секції: темна пігулка світлішає до бежевої зі світловим
   підсвітом на 29% ширини, крапки стають кільцями. Кольори з експорту:
   #E3E1D8 → #F3F1EB → #E2E0D7, текст #444340, кільця #878681.
   Однаковий і на кремових, і на темних секціях — щоб взаємодія
   читалася скрізь так само. */
.sec-head .pill--dark,
.sec-head .pill--glass{cursor:default}
.sec-head .pill--dark:hover,
.sec-head .pill--glass:hover{
  background:linear-gradient(100deg,#E3E1D8 0%,#F3F1EB 29%,#E5E3DB 70%,#E2E0D7 100%);
  border-color:transparent;
  color:#444340;
}
.sec-head .pill--dark:hover .dot,
.sec-head .pill--glass:hover .dot{
  background:transparent;
  border:1.5px solid #878681;
  position:relative;
}
.sec-head .pill--dark:hover .dot::after,
.sec-head .pill--glass:hover .dot::after{
  content:"";position:absolute;inset:0;margin:auto;
  width:4px;height:4px;border-radius:50%;background:#444340;
}
.ico-spark{width:16px;height:16px;flex:none;display:block}

.tags{display:flex;flex-wrap:wrap;gap:12px 8px}
.tags li{
  height:36px;padding-inline:16px;
  display:inline-flex;align-items:center;
  border-radius:var(--r-pill);
  background:rgba(11,10,6,.06);
  font-size:16px;color:#3B3A35;
}
.tags--lg li{height:36px;padding-inline:16px;font-size:16px}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  height:56px;padding-inline:32px;
  border-radius:var(--r-pill);
  font-size:var(--fs-btn);
  font-weight:500;line-height:19px;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-weight:500;
  white-space:nowrap;
  transition:transform .25s var(--ease),box-shadow .25s var(--ease),
              background .25s var(--ease),border-color .25s var(--ease),
              color .25s var(--ease);
}
.btn--primary{
  background:linear-gradient(105deg,#4A4640 0%,#17150F 48%,#3A3730 100%);
  color:var(--on-dark);
  box-shadow:0 1px 0 rgba(255,255,255,.14) inset,0 8px 24px rgba(11,10,6,.18);
}
/* Ховер темної кнопки: вона світлішає до бежевої зі світловим підсвітом
   і сірою рамкою, текст стає темним. Кольори зняті зі скріншотів макета:
   рамка #8E8C86, заливка #E3E1D8 → #F2F0E9 → #E2E0D7. */
.btn--primary{border:1px solid transparent}
.btn--primary:hover{
  background:linear-gradient(100deg,#E3E1D8 0%,#F2F0E9 45%,#E2E0D7 100%);
  border-color:#8E8C86;
  color:var(--ink);
  box-shadow:0 6px 18px rgba(11,10,6,.10);
}

.btn--outline{
  border:1px solid rgba(11,10,6,.28);
  height:44px;
}
.btn--outline:hover{background:rgba(11,10,6,.05)}

/* Ховер текстової кнопки: зʼявляється рамка й дуже світла заливка.
   У спокої рамки немає, тому тримаємо прозору — щоб не стрибала ширина. */
.btn--ghost{
  padding-inline:32px;
  border:1px solid transparent;
}
.btn--ghost:hover{
  border-color:#A5A39D;
  background:rgba(255,255,255,.5);
}
.btn--sm{height:44px;font-size:12px}
.btn__ico{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.btn__ico circle{fill:currentColor;stroke:none}
.btn--block{width:100%}


/* На темних секціях (відгуки, ROI, футер) світлий ховер читається,
   а сіра рамка губиться — беремо світлішу. */
.reviews .btn--primary:hover,
.roi .btn--primary:hover,
.footer .btn--primary:hover{border-color:rgba(244,242,236,.35)}
.reviews .btn--ghost:hover,
.roi .btn--ghost:hover,
.footer .btn--ghost:hover{
  border-color:rgba(244,242,236,.45);
  background:rgba(244,242,236,.08);
}

.arr{
  width:20px;height:20px;flex:none;
  background:currentColor;
  /* Стрілка — вектор із макета, фарбується через маску */
  -webkit-mask:no-repeat center/contain url(assets/img/ico-arrow.svg);
  mask:no-repeat center/contain url(assets/img/ico-arrow.svg);
  transition:transform .25s var(--ease);
}
.btn:hover .arr{transform:translateX(3px)}

/* ---------- LOGO ---------- */
/* Шапка — векторне лого з макета (198×41, з радіальними градієнтами).
   Футер лишається на растрі: там потрібна світла версія на темному тлі. */
.logo{display:inline-flex;align-items:center}
.logo__img{width:198px;height:41px;display:block}
.logo--stacked img{width:80px;height:auto;display:block}

/* ---------- HEADER ---------- */
.header{
  position:sticky;top:0;z-index:60;
  padding-block:26px;
  transition:background .3s var(--ease),box-shadow .3s var(--ease);
}
.header.is-stuck{
  background:rgba(248,247,242,.82);
  backdrop-filter:blur(14px);
  box-shadow:0 1px 0 var(--line);
}
.header__inner{display:flex;align-items:center;gap:16px}
.header__inner .logo{margin-right:16px}
.nav{order:2}
.lang{order:3}
.header__actions{order:4}
.nav{display:flex;gap:36px;margin-inline:auto;font-size:16px;color:#2C2B26}
.nav a{position:relative;padding-block:6px}
.nav a::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
  background:currentColor;transform:scaleX(0);transform-origin:left;
  transition:transform .3s var(--ease);
}
.nav a:hover::after{transform:scaleX(1)}
.header__actions{display:flex;align-items:center;gap:16px}
.lang{
  display:inline-flex;align-items:center;gap:6px;
  /* navbar.png: пігулка мови 66×44 — тієї ж висоти, що кнопка поруч */
  height:44px;padding-inline:14px;
  border:1px solid rgba(11,10,6,.24);
  border-radius:var(--r-pill);
  font-size:13px;
}
.ico-globe{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.2}
.burger{display:none;width:44px;height:44px;border:1px solid rgba(11,10,6,.18);border-radius:12px;flex-direction:column;gap:5px;align-items:center;justify-content:center;background:rgba(255,255,255,.5)}
.burger span{width:18px;height:1.5px;background:var(--ink);border-radius:2px;transition:transform .25s var(--ease),opacity .25s var(--ease)}
.burger[aria-expanded="true"] span:first-child{transform:translateY(3.5px) rotate(45deg)}
.burger[aria-expanded="true"] span:last-child{transform:translateY(-3px) rotate(-45deg)}

/* Прив'язано до висоти шапки: раніше тут стояло жорстке 78,
   а мобільна шапка тепер 58 — меню висіло з відривом. */
.mobile-menu{
  position:fixed;inset:var(--header-h) 0 auto;z-index:55;
  background:var(--cream);
  border-bottom:1px solid var(--line);
  padding:16px var(--gutter) 28px;
  display:grid;gap:20px;
}
.mobile-menu[hidden]{display:none}
@media (min-width:761px){
  .mobile-menu{display:none}
}
.mobile-menu nav{display:grid;gap:4px}
.mobile-menu nav a{padding:12px 0;font-size:18px;border-bottom:1px solid var(--line)}

/* ---------- HERO ---------- */
.hero{position:relative;padding-top:50px;padding-bottom:133px}
/* Фон героя — оригінальний рендер із макета (raw image fill).
   Виміряно з експорту: шар стоїть на 11% прозорості й згасає
   між 83% і 94% своєї висоти. */
.hero__bg{
  position:absolute;left:0;right:0;
  top:calc(-1 * var(--header-h));
  height:1080px;z-index:0;
  pointer-events:none;
}
.hero__bg-video,.hero__bg-still{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;object-position:top center;
  opacity:.11;
  -webkit-mask:linear-gradient(180deg,#000 0 83%,transparent 94%);
  mask:linear-gradient(180deg,#000 0 83%,transparent 94%);
}
/* На десктопі фон живий — тільки відео. Статичний кадр лишається
   для мобільної версії та як запасний варіант там, де відео не грає.
   Атрибут poster прикриває момент завантаження, тож розриву не видно. */
.hero__bg-video{z-index:1}
.hero__bg-still{z-index:0;display:none}

@media (max-width:760px){
  .hero__bg-video{display:none}
  .hero__bg-still{display:block}
}

/* Менше руху — показуємо кадр замість відео на будь-якій ширині.
   Правило стоїть після мобільного, щоб перебивати його. */
@media (prefers-reduced-motion:reduce){
  .hero__bg-video{display:none}
  .hero__bg-still{display:block}
}
.hero__inner{position:relative;z-index:1;display:grid;justify-items:center;text-align:center}
.hero__pill{margin-bottom:24px}

/* Бейдж героя змінює напис по колу. З панелі Interactions у Figma:
   After delay 800 ms, Animate = Instant — переходу немає, підміна різка.
   Тому тут навмисно жодних transition. */
.hero__pill{position:relative;overflow:hidden}
.hero__pill-item{
  display:inline-flex;align-items:center;gap:8px;white-space:nowrap;
}
.hero__pill-item:not(:first-child){
  position:absolute;left:16px;top:50%;transform:translateY(-50%);
}
.hero__pill-item:not(.is-current){opacity:0;pointer-events:none}

.hero__title{
  font-size:var(--fs-h1);
  line-height:var(--lh-h1);
  letter-spacing:-.03em;
  font-weight:400;
  /* Заміряно у Figma (Home page/Desktop 1905px): контейнер H1 — 1136 */
  max-width:1136px;
}
.hero__title .ln{display:block}
.hero__title b{font-weight:700}
.hero__title i{font-style:italic;font-weight:400;color:#54534C}
.hero__sub{
  margin-top:14px;
  font-size:var(--fs-lead);
  line-height:var(--lh-lead);
  font-weight:400;
  color:var(--muted);
  /* Абзац під H1 у макеті — 946, два рядки */
  max-width:946px;
}
.hero__cta{display:flex;align-items:center;gap:24px;margin-top:50px}
/* Цитата змінюється синхронно з бейджем. Варіанти накладені один на
   одного, висота блоку фіксована по найвищому — інакше сторінка
   смикалася б при кожній підміні. */
.hero__quote{
  position:relative;
  height:40px;
  margin-top:84px;
}
.hero__quote-item{
  position:absolute;left:50%;top:0;
  transform:translateX(-50%);
  display:inline-flex;align-items:center;gap:10px;
  white-space:nowrap;
}
.hero__quote-item:not(.is-current){opacity:0;pointer-events:none}
.avatar{width:40px;height:40px;border-radius:50%;display:block;flex:none}
.avatar--40{width:40px;height:40px}
.hero__quote-bubble{
  height:38px;display:inline-flex;align-items:center;padding-inline:18px;
  border-radius:var(--r-pill);
  background:rgba(11,10,6,.05);
  font-size:16px;font-style:italic;color:#3B3A35;
}

/* ---------- LOGO STRIP ---------- */
/* ---------- ПОЯВА ЗАГОЛОВКІВ СЕКЦІЙ ----------
   Той самий рух, що в герої, але за скролом. Клас .reveal ставить
   скрипт, тому без JavaScript текст просто видно — він не зникає. */
/* Перехід навмисно НЕ в .reveal, а тільки в .reveal.is-in.
   Інакше момент, коли скрипт вішає клас на вже видимий заголовок,
   сам стає переходом: текст показується й повільно гасне до нуля,
   а потім проявляється знову. Так початковий стан застосовується
   миттєво, а анімується лише поява. */
.reveal{
  opacity:0;
  transform:translateY(24px);
}
.reveal.is-in{
  opacity:1;
  transform:none;
  transition:opacity .7s cubic-bezier(.22,.61,.36,1),
             transform .7s cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
}

/* ---------- ПОЯВА ГЕРОЯ ----------
   Блоки проступають знизу вгору з невеликим зсувом, по черзі.
   Параметрів у макеті немає, тож узято стримані: 0.7с, крива плавного
   сповільнення, крок близько 90 мс між елементами.

   fill-mode both дає початковий стан ще до запуску — інакше текст
   блимнув би на повній непрозорості в перший кадр. */
@keyframes hero-in{
  from{opacity:0;transform:translateY(24px)}
  to{opacity:1;transform:none}
}
.hero__pill,
.hero__title .ln,
.hero__sub,
.hero__cta,
.hero__quote{
  animation:hero-in .7s cubic-bezier(.22,.61,.36,1) both;
}
.hero__pill{animation-delay:.05s}
.hero__title .ln:nth-child(1){animation-delay:.14s}
.hero__title .ln:nth-child(2){animation-delay:.23s}
.hero__title .ln:nth-child(3){animation-delay:.32s}
.hero__sub{animation-delay:.44s}
.hero__cta{animation-delay:.53s}
.hero__quote{animation-delay:.62s}

@media (prefers-reduced-motion:reduce){
  .hero__pill,.hero__title .ln,.hero__sub,.hero__cta,.hero__quote{animation:none}
}

.logos{padding-block:40px;overflow:hidden;
  -webkit-mask:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  mask:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
}
.logos__row{
  display:flex;align-items:center;gap:72px;
  animation:marquee 42s linear infinite;
  width:max-content;
}
/* Логотипи — окремі PNG із макета, у власних розмірах.
   Без накладень і без зміни прозорості: у файлах уже закладено
   потрібний тон, тому будь-який overlay зробив би їх іншими. */
.logos__item{
  display:block;flex:none;
  height:auto;
  width:auto;
}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- CASE STUDIES ---------- */
/* Переміряно: підзаголовок закінчується на 1384, роздільник на 1415,
   теги першої картки починаються на 1446 — по 31px з кожного боку. */
.cases__body{
  display:grid;
  /* Колонка фільтрів 240 як у макеті, але може підрости під найдовшу
     назву («Mobile Apps Design» — 255 з відступами й стрілкою), щоб текст
     не ламався на два рядки. */
  grid-template-columns:minmax(240px,max-content) minmax(0,1fr);
  column-gap:56px;
  margin-top:31px;
  padding-top:31px;
  border-top:1px solid var(--line);
}
.filters{display:grid;align-content:start;gap:4px;position:sticky;top:120px}
.filters__item{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  height:52px;padding-inline:20px;
  border-radius:var(--r-pill);
  font-size:20px;color:#3B3A35;
  text-align:left;
  white-space:nowrap;
  transition:background .25s var(--ease),color .25s var(--ease);
}
.filters__item .arr{opacity:0;transition:opacity .25s var(--ease)}
.filters__item:hover{background:rgba(11,10,6,.05)}
.filters__item.is-active{
  background:linear-gradient(100deg,#3B3833 0%,#161410 60%,#2A2721 100%);
  color:var(--on-dark);
}
.filters__item.is-active .arr{opacity:1}

.cases__grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:56px 44px;
}
.case{display:grid;align-content:start;gap:12px}
.case[hidden]{display:none}
.cases__empty{
  grid-column:1/-1;
  padding:48px 0;
  text-align:center;
  color:var(--muted);
}
.tags li.is-clickable{cursor:pointer;transition:background .2s var(--ease),color .2s var(--ease)}
.tags li.is-clickable:hover{background:rgba(11,10,6,.12)}
.case .tags{max-width:480px}
.case__title{font-size:var(--fs-h3);line-height:var(--lh-h3);font-weight:500;letter-spacing:-.02em;margin-top:11px}
.case__desc{font-size:18px;line-height:24px;color:var(--muted);max-width:480px}
.case__thumb{
  display:block;width:100%;aspect-ratio:542/415;
  padding:0;
  border-radius:var(--r-card);
  margin-top:4px;
  background-color:#141310;
  overflow:hidden;
  transition:transform .4s var(--ease),box-shadow .4s var(--ease);
}
.case__thumb:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(11,10,6,.22)}

/* ---------- BENEFITS ---------- */
.benefits{
  background:linear-gradient(180deg,var(--cream) 0%,var(--beige) 26%,var(--beige) 100%);
}
.bento{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:36px;
  margin-top:64px;
  align-items:start;
}
.bento__col{display:grid;gap:40px;align-content:start}
.bento__col--offset{padding-top:24px}
.bcard{
  position:relative;isolation:isolate;
  border-radius:var(--r-card);
  padding:24px;
  min-height:270px;
  /* Іконка вгорі, заголовок з описом притиснуті донизу — як у макеті.
     Сітка з 1fr давала розтяг заголовка й діру під ним. */
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--on-dark);
  background:#141310 linear-gradient(108deg,#3A3833 0%,#1E1C19 40%,#0C0B09 100%);
  box-shadow:0 12px 34px rgba(11,10,6,.16);
  overflow:hidden;
  transition:transform .35s var(--ease),box-shadow .35s var(--ease);
}
/* Фон — власний рендер кожної картки з макета (варіант L для десктопа,
   S для мобільного). У кожної своя світлова пляма й текстура. */
.bcard::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:var(--bg) center/cover no-repeat;
}
.bcard--chart  {--bg:url(assets/img/bg-chart.png)}
.bcard--rocket {--bg:url(assets/img/bg-rocket.png)}
.bcard--spark  {--bg:url(assets/img/bg-spark.png)}
.bcard--search {--bg:url(assets/img/bg-search.png)}
.bcard--support{--bg:url(assets/img/bg-support.png)}
.bcard--price  {--bg:url(assets/img/bg-price.png)}
.bcard:hover{transform:translateY(-4px);box-shadow:0 20px 44px rgba(11,10,6,.24)}
/* Іконка має два стани — темна плитка і світла на ховері картки */
.bcard__ico{
  width:48px;height:48px;display:block;
  position:relative;z-index:2;
}
.bcard__ico img{position:absolute;inset:0;width:100%;height:100%;transition:opacity .3s var(--ease)}
.bcard__ico-h{opacity:0}
.bcard:hover .bcard__ico-d{opacity:0}
.bcard:hover .bcard__ico-h{opacity:1}
.bcard h3{font-size:24px;line-height:30px;font-weight:500;position:relative;z-index:2;margin-top:auto}
.bcard p{font-size:18px;line-height:23px;color:var(--on-dark-muted);position:relative;z-index:2}

/* ---------- REVIEWS ---------- */
.reviews{
  position:relative;
  padding-block:88px 124px;
  /* На десктопі фон — лише відео на суцільному темному; статичний
     градієнт і кадр лишаються тільки телефонам і reduced-motion. */
  background:#100D04;
  color:var(--on-dark);
  overflow:hidden;
}
@media (max-width:760px),(prefers-reduced-motion:reduce){
  .reviews{
    background:
      radial-gradient(70% 55% at 50% 42%,#3A362C 0%,rgba(58,54,44,0) 62%),
      linear-gradient(180deg,#100D04 0%,#191509 50%,#100D04 100%);
  }
}
/* ================= ВІДГУКИ =================
   Переміряно з експорту 1:1 (картка 559×512, бічні 255 → масштаб 0.44,
   центри бічних на ±717 від центру, яскравість ~11%). */

/* Фонове відео секції відгуків — задається в Customizer. Прозорість
   приходить змінною звідти ж, бо на темному тлі потрібний рівень
   залежить від самого ролика. Без налаштування блок не виводиться
   взагалі, і секція лишається з градієнтом. */
.reviews__bg{
  position:absolute;inset:0;z-index:0;
  pointer-events:none;
}
.reviews__bg-video,
.reviews__bg-still{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  opacity:var(--reviews-bg-opacity,.22);
}
.reviews__bg-still{display:none}
.reviews > .container{position:relative;z-index:1}

@media (max-width:760px){
  /* На телефонах відео не вантажимо — лишається кадр. */
  .reviews__bg-video{display:none}
  .reviews__bg-still{display:block}
}
@media (prefers-reduced-motion:reduce){
  .reviews__bg-video{display:none}
  .reviews__bg-still{display:block}
}

.reviews__stage{
  position:relative;
  margin-top:56px;
  height:512px;
  min-height:512px;
  transition:height .55s var(--ease);
}
.review{
  position:absolute;left:50%;top:50%;
  width:560px;
  background:var(--cream);
  color:var(--ink);
  border-radius:20px;
  padding:40px;
  text-align:center;
  transform:translate(-50%,-50%) scale(.44);
  opacity:0;
  pointer-events:none;
  transition:transform .55s var(--ease),opacity .55s var(--ease);
}
/* Чотири крапки в кутах: 6 px, центр на 23 px від країв. */
.review::before{
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:
    radial-gradient(3px 3px at 23px 23px,rgba(11,10,6,.07) 99%,transparent 100%),
    radial-gradient(3px 3px at calc(100% - 23px) 23px,rgba(11,10,6,.07) 99%,transparent 100%),
    radial-gradient(3px 3px at 23px calc(100% - 23px),rgba(11,10,6,.07) 99%,transparent 100%),
    radial-gradient(3px 3px at calc(100% - 23px) calc(100% - 23px),rgba(11,10,6,.07) 99%,transparent 100%);
}
/* Сусідні картки не малюємо: у фоновому ролику вже їде своя карусель
   карток, і HTML-копії поверх неї не збігаються з рухомими. На екрані
   лишається одна активна картка над відео; гортання — крапками, свайпом
   і стрілками клавіатури. */
.review.is-prev,.review.is-next{opacity:0;visibility:hidden;pointer-events:none}
.review.is-prev{transform:translate(calc(-50% - 717px),-50%) scale(.44)}
.review.is-next{transform:translate(calc(-50% + 717px),-50%) scale(.44)}
.review.is-current{
  transform:translate(-50%,-50%) scale(1);
  opacity:1;
  pointer-events:auto;
  z-index:2;
  box-shadow:0 30px 70px rgba(0,0,0,.35);
}

.review__stars{
  display:flex;justify-content:center;align-items:center;gap:8px;
  font-size:16px;line-height:1;
  margin-bottom:22px;
}
.stars{color:#1A1710;letter-spacing:2px}
.review__title{font-size:22px;line-height:28px;font-weight:500;margin-bottom:22px}
.review__text{
  font-size:16px;line-height:21px;font-style:italic;color:#3A3833;
  max-width:380px;margin:0 auto 22px;
}
.review__author{display:flex;align-items:center;justify-content:center;gap:12px;text-align:left;margin-bottom:22px}
.review__author b{display:block;font-size:20px;line-height:24px;font-weight:600}
.review__author small{display:block;font-size:14px;line-height:18px;color:var(--muted-2)}

/* Кольори зняті з експорту блоку (Frame 98, 480×95 @2×):
   фон #E8E5DD, значення #363533, підписи #161616, роздільник #E6E3DB.
   Підписи в макеті темніші за значення — це не помилка виміру. */
.review__stats{
  display:grid;grid-template-columns:repeat(3,auto);
  justify-content:space-between;
  background:#E8E5DD;
  border-radius:18px;
  padding:20px 0;
}
.review__stats li{position:relative;padding-inline:20px}
.review__stats li+li::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background:#E6E3DB;
}
.review__stats b{display:block;font-size:22px;line-height:24px;font-weight:600;color:#363533}
.review__stats small{display:block;font-size:14px;line-height:18px;color:#161616;margin-top:14px}

/* Переміряно зі скріншота: пігулка 117×32, крапки 16 з кроком 26,
   тобто проміжок 10. Підкладка помітніша, ніж було: на темній секції
   виходить #48453D, а це чверть світлого кольору, не десята частина. */
.dots{
  display:inline-flex;justify-content:center;align-items:center;gap:10px;
  margin-top:32px;
  height:32px;padding-inline:11px;
  border-radius:var(--r-pill);
  background:rgba(227,224,214,.22);
}
.dots-wrap{display:flex;justify-content:center}
/* У макеті між карткою відгуку і крапками 90px. */
.reviews .dots{margin-top:51px}
.dots button{
  width:16px;height:16px;border-radius:50%;flex:none;
  background:radial-gradient(circle at 34% 28%,#FFFFFF 0%,#F2F0EA 52%,#D8D5CC 100%);
  box-shadow:0 1px 2px rgba(0,0,0,.35);
  position:relative;
  transition:background .3s var(--ease);
}
.dots button::after{
  content:"";position:absolute;left:50%;top:50%;
  width:6px;height:6px;margin:-3px 0 0 -3px;
  border-radius:50%;background:#9A978F;
  transition:background .3s var(--ease);
}
.dots button.is-active{
  background:radial-gradient(circle at 34% 28%,#5A5750 0%,#26241E 55%,#0D0C09 100%);
}
.dots button.is-active::after{background:#C9C6BE}

/* Бічні картки клікабельні, крапки з більшою зоною дотику.
   Візуальний розмір крапки лишається 16 — росте лише невидиме поле,
   бо в 16 px пальцем влучити важко. */
.reviews__stage{touch-action:pan-y}
.reviews__stage:focus-visible{outline:2px solid var(--on-dark);outline-offset:6px;border-radius:24px}
.dots button{position:relative}
.dots button::before{
  content:"";position:absolute;inset:-9px;
  border-radius:50%;
}

.dots--dark{background:rgba(11,10,6,.06)}

/* ---------- PROCESS ---------- */
.process{padding-block:94px 137px}
/* Розділова лінія і відступ — на доріжці, а не на списку кроків:
   список лежить усередині закріпленого блоку й їздить разом із ним,
   тому лінія перекреслювала підзаголовок секції. */
.steps__grid{margin-top:56px;padding-top:70px;border-top:1px solid var(--line)}
/* Переміряно з експорту 1:1: бейдж 48, проміжок 22, ілюстрація 392×396,
   крок рівно 416, лінія 264 від 57, далі примарний бейдж. */

/* Ілюстрації винесені в окрему липку колонку: одна тримається на місці,
   поки прокручується текст кроку, і підмінюється наступною. Усі одразу
   не показуються — видно рівно одну. */
/* Секція працює як «доріжка прокрутки»: висота задана явно, а всередині
   закріплений блок, у якому підміняються і текст, і ілюстрація.
   Висота доріжки 1440 — три кроки по 480; у макеті блок займав 1248,
   тож довжина сторінки майже не змінилась. */
.steps__layout{
  position:relative;
  /* Довжина доріжки = висота закріпленого блоку + по 400 на крок.
     Точне значення виставляє скрипт (висота заголовка залежить від
     мови й ширини); це запасний варіант без JS. */
  height:calc(720px + 1200px);
}
/* Закріплюється весь блок: бейдж, H2, підзаголовок і кроки. Раніше
   липли лише кроки, а заголовок їхав угору — секція «губилась». */
.steps__pin{
  position:sticky;
  top:calc(var(--header-h) + 24px);
}
.steps__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 392px;
  column-gap:22px;
  align-items:start;
  height:396px;
  box-sizing:content-box;
}
/* На невисоких екранах блок із заголовком не влазить під шапку з
   відступом — притискаємо до самої шапки. */
@media (max-height:900px){
  .steps__pin{top:var(--header-h)}
}
.steps{position:relative;height:100%;margin:0;padding:0;border:0;list-style:none}
/* Картка під ілюстрацією — рівний #E2E0D7 із макета. Раніше вона була
   запечена в PNG разом із малюнком; тепер малюнок прозорий, тож при
   ховері підміняється тільки він, а підкладка лишається на місці. */
.steps__media{
  position:relative;
  align-self:start;
  width:392px;
  aspect-ratio:392/396;
  background:#E2E0D7;
  border-radius:16px;
  overflow:hidden;
}
.steps__shot{
  position:absolute;inset:0;
  opacity:0;
  transform:translateY(40px) scale(.96);
  transition:opacity .5s var(--ease),transform .5s var(--ease);
}
.steps__shot.is-current{opacity:1;transform:none}
.steps__shot.is-past{opacity:0;transform:translateY(-28px) scale(1.03)}
.steps__shot.is-next{opacity:0}
.steps__shot img{
  /* Малюнок піднято: верх на 5 %, висота від ширини (канва квадратна 600×600),
     низ не прив'язаний до картки — фігура не впирається в край і не ріжеться. */
  position:absolute;top:5%;left:8%;bottom:auto;
  width:84%;height:auto;aspect-ratio:1/1;
  object-fit:contain;
  transition:opacity .35s var(--ease);
}
.steps__shot .shot-h{opacity:0}
.steps__media:hover .is-current .shot-d{opacity:0}
.steps__media:hover .is-current .shot-h{opacity:1}

@media (prefers-reduced-motion:reduce){
  .steps__shot{transition:none}
}

/* Кроки складені один на одного — видно рівно той, що активний.
   Лінія таймлайну й примарний бейдж у такому режимі не потрібні:
   вони описували послідовність, яку тепер показує сама підміна. */
/* Кроки складені один на одного. Наступний наїжджає знизу й накриває
   попередній, попередній іде вгору — звідси відчуття стосу, а не
   простого згасання. Скрол назад програє те саме у зворотний бік. */
.step{
  position:absolute;inset:0;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  column-gap:22px;
  align-content:start;
  opacity:0;
  transform:translateY(56px);
  pointer-events:none;
  transition:opacity .5s var(--ease),transform .5s var(--ease);
}
.step.is-current{opacity:1;transform:none;pointer-events:auto}
.step.is-past{opacity:0;transform:translateY(-44px)}

/* Під активним кроком — приглушена цифра наступного (псевдоелемент нижче)
   і заголовок цього ж кроку поруч із нею. Власний бейдж наступного кроку
   ховаємо: цифру вже намальовано, інакше вийшло б дві однакові поруч.
   Абзац теж прихований — на цій висоті він усе одно обрізався б. */
.step.is-next{
  opacity:.45;
  transform:translateY(296px);
  pointer-events:none;
}
.step.is-next .step__num{visibility:hidden}
.step.is-next .step__body p{display:none}
.step.is-next::before,
.step.is-next::after{display:none}

.step[data-next]::after{
  content:attr(data-next);
  position:absolute;left:0;top:296px;
  width:48px;height:48px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(11,10,6,.06);
  font-family:var(--font-display);
  font-size:32px;font-weight:500;color:#56544D;
  opacity:.5;
  pointer-events:none;
}

/* Лінія від бейджа вниз і приглушена цифра наступного кроку — підказка,
   що буде далі. Розміри з макета: лінія починається на 57 і має 264,
   примарний бейдж 48×48 на 330. У третього кроку наступного немає,
   тому там атрибута немає і бейдж не малюється. */
.step::before{
  content:"";position:absolute;left:23px;top:57px;
  width:1px;height:239px;background:var(--line);
}
.step:not([data-next])::before{height:0}
.step__num{
  width:48px;height:48px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(11,10,6,.06);
  font-size:32px;color:#56544D;
}

/* Ілюстрація всередині кроку — потрібна лише мобільній розкладці,
   де кожен крок показує свою. На десктопі працює спільна липка
   колонка .steps__media, тому тут ховаємо. */
.step__media{display:none}



.step__body{padding-bottom:8px}
.step__body h3{font-size:var(--fs-h3);line-height:var(--lh-h3);font-weight:500;letter-spacing:-.02em}
.step__body p{margin-top:12px;font-size:18px;line-height:23px;color:var(--muted);max-width:480px}

/* ---------- ROI ---------- */
.roi{
  padding-block:64px 189px;
  background:
    radial-gradient(60% 60% at 50% 40%,#2E2B24 0%,rgba(46,43,36,0) 70%),
    linear-gradient(180deg,#070604 0%,#141209 50%,#070604 100%);
  color:var(--on-dark);
}
.roi__card{
  margin-top:94px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--r-lg);
  background:linear-gradient(150deg,rgba(255,255,255,.05),rgba(255,255,255,.01));
  box-shadow:0 0 80px rgba(255,240,200,.05);
  padding:44px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
}
.roi__inputs{display:grid;gap:76px;align-content:start}
.field{display:grid;grid-template-columns:1fr auto;gap:31px 16px;align-items:center}
.field label{font-size:24px;letter-spacing:0}
.field output{font-size:24px;font-weight:600;text-align:right}
.field input[type=range]{grid-column:1/-1;-webkit-appearance:none;appearance:none;width:100%;height:4px;border-radius:4px;background:rgba(255,255,255,.75)}
.field input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:#EDEAE1;box-shadow:0 2px 6px rgba(0,0,0,.4);cursor:pointer}
.field input[type=range]::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:#EDEAE1;cursor:pointer}
.roi__label{font-size:24px;letter-spacing:0}
.roi__value{font-size:48px;line-height:1.1;font-weight:600;letter-spacing:-.02em;margin-top:26px}
.roi__note{margin-top:24px;font-size:18px;line-height:22px;color:var(--on-dark-muted);max-width:510px}
.roi__mini{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:70px}
.roi__minicard{
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;padding:22px 18px;min-height:114px;
}
.roi__minicard p{font-size:24px;letter-spacing:0}
.roi__minicard b{display:block;margin-top:8px;font-size:32px;font-weight:600}

/* ---------- FAQ ---------- */
.faq{padding-top:56px}
.faq .sec-head{gap:8px}
/* Список питань у макеті 915 по центру, а не на всю ширину контейнера */
.acc{margin-top:48px;max-width:915px;margin-inline:auto}
.acc__item{border-bottom:1px solid var(--line)}
.acc__q{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:24px 0;
  font-size:24px;text-align:left;
}
.acc__ico{
  width:18px;height:18px;flex:none;
  background:currentColor;
  -webkit-mask:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
  mask:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
  transition:transform .3s var(--ease);
}
.acc__item:not(.is-open) .acc__ico{transform:rotate(90deg)}
.acc__a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .35s var(--ease)}
.acc__item.is-open .acc__a{grid-template-rows:1fr}
.acc__a-in{overflow:hidden}
.acc__a ul,.acc__a p{font-size:18px;line-height:23px;color:var(--muted)}
.acc__a ul{list-style:disc;padding-left:22px;margin-bottom:8px}
.acc__a-in>:last-child{padding-bottom:24px}

/* ---------- CTA ---------- */
/* Секція «Our Meeting» — з Why Us.png (1440×499): поля 120 зверху і знизу,
   кнопка на 40 нижче підзаголовка (було 146 — між текстом і кнопкою
   зяяла порожнеча). Фон: кремовий угорі переходить у бежевий #E3E0D5
   до середини, далі рівний; світла «хвиля» — м'який радіальний відблиск. */
#contact .sec-cta{margin-top:40px}
/* У цій секції бейдж стоїть на 27 вище H2 (у решті — 13) */
.cta .sec-head .pill{margin-bottom:7px}
.cta{
  padding-block:120px;
  background:
    radial-gradient(55% 32% at 50% 0%,rgba(248,247,241,.9) 0%,rgba(248,247,241,0) 100%),
    linear-gradient(180deg,var(--cream) 0%,#EDEBE2 22%,#E3E0D5 50%,#E3E0D5 100%);
}

/* ---------- FOOTER ----------
   Геометрія з footer.relative.png (1440×422): лого на 48 від верху,
   абзац 384 на 28 нижче лого, соцмережі 54 на 40 нижче абзацу, підпис
   на 72 нижче соцмереж, знизу 40. Меню — з 617 від лівого краю
   контейнера, дві колонки з кроком 216, рядки з кроком 44. */
.footer{
  background:#0A0803 url(assets/img/footer-bg.png) center top/cover no-repeat;
  color:var(--on-dark);
  padding-block:48px 34px;
}
.footer__inner{display:grid;grid-template-columns:1fr 1fr;gap:34px}
.footer__brand{max-width:384px}
.footer__brand p{margin-top:27px;font-size:18px;line-height:23px;color:var(--on-dark-muted)}
.socials{display:flex;gap:15px;margin-top:40px}
/* Іконка складається з двох частин: зовнішнє кільце і гліф.
   Кільце малюємо через CSS — воно лишається різким на будь-якій
   щільності екрана. З макета береться тільки гліф. */
.socials a{
  width:54px;height:54px;display:grid;place-items:center;
  border:1px solid #E4E1D7;
  border-radius:50%;
  transition:transform .25s var(--ease),opacity .25s var(--ease),background .25s var(--ease);
}
.socials a img{width:20px;height:20px;display:block}
.socials a:hover{transform:translateY(-2px);background:rgba(244,242,236,.08)}
.footer__nav{display:grid;grid-template-columns:repeat(2,216px);gap:0;justify-content:start}
.footer__nav li{margin-bottom:20px}
.footer__nav li:last-child{margin-bottom:0}
.footer__nav a{font-size:16px;line-height:24px;color:var(--on-dark);transition:color .25s var(--ease)}
.footer__nav a:hover{color:var(--on-dark-muted)}
.footer__bottom{margin-top:72px;font-size:16px;line-height:23px;color:var(--on-dark-muted)}
.footer__bottom b{font-weight:500;color:var(--on-dark)}

/* ---------- CASE MODAL ----------
   Геометрія знята з Pop-up/Medical Center.png (кадр 1778×1336 @2×):
   поля 80, колонки 600 / 906 із проміжком 60, hero 906×680,
   мініатюри 372 із проміжком 29 і підглядом по краях.            */
.modal{position:fixed;inset:0;z-index:100;display:grid}
.modal__panel[hidden]{display:none}
.modal[hidden]{display:none}
.modal__scrim{position:absolute;inset:0;background:rgba(11,10,6,.55);backdrop-filter:blur(4px)}
/* Фрейм 1778×1336, поле 80, колонки 600 і 906 з проміжком 59.
   Один із проміжних експортів давав 1350×1194 — це був інший варіант
   макета; тут значення з останнього експорту, вони збігаються
   з панеллю Properties. */
.modal__panel{
  position:relative;
  margin:auto;
  width:min(1778px,calc(100vw - 64px));
  height:min(1336px,calc(100vh - 64px));
  background:var(--cream);
  border-radius:24px;
  border-top:2px solid rgba(11,10,6,.06);
  padding:80px 80px 0;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:45px;
  animation:modal-in .35s var(--ease);
}
@keyframes modal-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* Стрілка й хрестик у макеті стоять на 96 від краю фрейму (ікона 16 у
   кнопці 40), тобто на 3 px глибше за поле панелі. */
.modal__bar{display:flex;justify-content:space-between;margin:3px 3px 0}
.icon-btn{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;transition:background .2s var(--ease)}
.icon-btn:hover{background:rgba(11,10,6,.06)}
.icon-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.icon-btn svg path{fill:none;stroke:inherit}

.modal__body{
  display:grid;
  grid-template-columns:600px minmax(0,1fr);
  gap:59px;
  justify-content:start;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:0 0 80px;
}
/* Тонкий скрол усередині панелі, як у макеті */
.modal__body{scrollbar-width:thin;scrollbar-color:rgba(11,10,6,.25) transparent}
.modal__body::-webkit-scrollbar{width:6px}
.modal__body::-webkit-scrollbar-track{background:transparent}
.modal__body::-webkit-scrollbar-thumb{background:rgba(11,10,6,.25);border-radius:3px}

.modal__col{min-width:0}
.modal__col--text{display:grid;align-content:start;justify-items:start;gap:16px}
/* justify-items:start потрібен лише пігулці; решта тягнеться на всю колонку */
.modal__col--text > *:not(.pill){justify-self:stretch;width:100%}
/* Заміряно з Pop-up/Medical Center.png: пігулка 182×40, теги 28 заввишки
   з кроком 17 (і між чипами, і між рядками). */
.pill--lg{height:40px;padding-inline:18px;font-size:16px}
/* Пігулка клієнта в попапі — з експорту Pop-up/Label-1.png (183×40 @2×):
   градієнт зліва направо #4F4F4F → #000, рамка 1px #7A6656 (теплий
   коричневий), крапки 16 суцільно чорні, текст білий; поля 12, проміжок 12. */
.modal__col--text .pill--lg{
  height:40px;padding-inline:12px;gap:12px;
  background:linear-gradient(90deg,#4F4F4F 0%,#545454 15%,#2A2A2A 60%,#000 100%);
  border:1px solid #7A6656;
  color:#fff;
  cursor:default;
}
.modal__col--text .pill--lg .dot{
  /* Стан за замовчуванням — з фрейму Pop-up/Medical Center: світлий диск
     #F0F0F0 із сірим кільцем #B5B5B5 і сірою точкою #898989 посередині. */
  width:16px;height:16px;position:relative;
  background:#F0F0F0;border:0;
  box-shadow:inset 0 0 0 1.5px #B5B5B5;
  transition:background .3s var(--ease),box-shadow .3s var(--ease);
}
.modal__col--text .pill--lg .dot::after{
  content:"";position:absolute;inset:0;margin:auto;
  width:5px;height:5px;border-radius:50%;background:#898989;
  transition:opacity .3s var(--ease);
}
/* Ховер — з експорту Label-1.png: пігулка та сама, крапки стають
   суцільно чорними. */
.modal__col--text .pill--lg:hover .dot{background:#000;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.modal__col--text .pill--lg:hover .dot::after{opacity:0}
.modal__col--text .tags--lg{gap:17px}
.tags--lg li{height:28px;padding-inline:16px;font-size:16px}
.modal__title{font-size:52px;line-height:60px;font-weight:700;letter-spacing:-.03em;margin-block:4px 4px}
.modal__lead{font-size:18px;line-height:23px}
.modal__col--text h3{font-size:36px;line-height:44px;font-weight:500;letter-spacing:-.02em;margin-top:12px}
.modal__col--text h4{font-size:24px;line-height:30px;font-weight:500;letter-spacing:.01em;margin-top:0}
/* :not(.pill) — інакше це правило перебиває колір .pill--dark
   за специфічністю, і напис у пігулці стає темним на темному. */
.modal__col--text > p:not(.pill){font-size:16px;line-height:19px;color:#25231E}

.modal__stats{
  display:grid;grid-template-columns:repeat(3,1fr);
  margin-top:20px;padding-top:24px;border-top:1px solid var(--line);
}
.modal__stats li{padding-right:20px;position:relative}
.modal__stats li+li{padding-left:20px}
.modal__stats li+li::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:1px;background:var(--line)}
.modal__stats b{display:block;font-size:36px;line-height:44px;font-weight:500;letter-spacing:-.02em}
.modal__stats span{display:block;margin-top:6px;font-size:18px;line-height:23px;color:#3B3A35}

.modal__col--media{display:block;min-width:0}
/* Галерея — 906 як у макеті; колонка ширша, бо стрілки «Next» стоять
   на краю панелі, а не на краю картинки. */
.modal__gallery{display:grid;gap:24px;align-content:start;max-width:906px}
/* Крапки в попапі на десктопі без підкладки: hero → 24 → крапки 16 → 24 → стрічка */
.modal__gallery .dots{margin-top:0;height:16px;padding:0;background:none}
/* Мініатюри показуємо лише коли екранів більше одного — скрипт ховає стрічку,
   тут страхуємо на випадок, якщо він не встиг. */
.modal__strip[hidden]{display:none}
.modal__hero{
  width:100%;height:auto;aspect-ratio:906/680;
  border-radius:var(--r-lg);
  object-fit:cover;display:block;
  background-color:#0F0E0B;
}
/* Стрічка мініатюр: компактний ряд під великим екраном, щоб не з'їдати
   висоту попапу. Клік по мініатюрі показує екран великим. Якщо всі
   влазять — ряд по центру; якщо ні — тягнеться пальцем/колесом. */
.modal__strip{
  /* Як у макеті Pop-up: мініатюри 372×273 з проміжком 29 — у 906 влазять
     дві з хвостиком, решта гортається пальцем/колесом (і клавішами через
     фокус). Активна підтягується у видиму зону скриптом. */
  --thumb:372px;
  display:flex;gap:29px;
  padding:3px;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
}
.modal__strip::-webkit-scrollbar{display:none}
/* width дублює flex-basis навмисно: без нього мінімальна ширина флекс-елемента
   бере розмір картинки, і мініатюри розпирають стрічку. */
.modal__thumb{
  flex:0 0 var(--thumb);width:var(--thumb);min-width:0;
  padding:0;border-radius:16px;overflow:hidden;
  scroll-snap-align:start;
  background-color:#0F0E0B;
  cursor:pointer;
  opacity:.55;
  box-shadow:0 0 0 0 var(--ink);
  transition:opacity .25s var(--ease),box-shadow .25s var(--ease);
}
.modal__thumb img{
  /* height:auto скидає атрибут height="546", який ставить WordPress —
     без цього мініатюра тягнеться у високий стовпчик. */
  width:100%;height:auto;aspect-ratio:372/273;
  object-fit:cover;object-position:50% 0;display:block;
}
.modal__thumb:hover{opacity:.85}
.modal__thumb.is-active{opacity:1;box-shadow:0 0 0 2px var(--ink)}
/* Рамку фокуса лишаємо тільки для клавіатури — після кліку мишкою її не має бути */
.modal__thumb:focus:not(:focus-visible){outline:none}
.modal__thumb:focus-visible{outline-offset:2px}

/* «Next» — 40 під стрічкою, притиснуто до краю панелі; -12 компенсує
   інсет іконки в круглій кнопці (стрілка в макеті на 1695 при полі 1698). */
.modal__nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:20px;margin-top:40px;margin-right:-12px}
.modal__gallery--inline,.modal__nav-slot{display:none}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width:1740px){
  .modal__panel{padding:56px 56px 0;gap:32px}
  .modal__body{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:44px;padding-bottom:56px}
}

@media (max-width:1400px){
  :root{--fs-h1:64px;--lh-h1:76px;--gutter:32px}
  .steps__grid{grid-template-columns:minmax(0,1fr) 320px}
  .steps__media{width:320px}
  }

@media (max-width:1100px){
  :root{--fs-h1:52px;--lh-h1:62px;--fs-h2:38px;--lh-h2:46px;
    --pad:88px}
  .reviews{padding-block:64px 88px}
  .roi{padding-block:48px 68px}
  .process{padding-block:70px 100px}
  .faq{padding-top:44px}
  .nav{display:none}
  .cases__body{grid-template-columns:1fr;row-gap:32px}
  /* У макеті смуга прокрутки під фільтрами видима — вона підказує,
     що стрічку можна тягнути. Тому не ховаємо, а оформлюємо. */
  .filters{
    position:static;display:flex;overflow-x:auto;gap:8px;
    padding-bottom:10px;
    scrollbar-width:thin;
    scrollbar-color:rgba(11,10,6,.35) rgba(11,10,6,.10);
  }
  .filters::-webkit-scrollbar{height:4px}
  .filters::-webkit-scrollbar-track{background:rgba(11,10,6,.10);border-radius:2px}
  .filters::-webkit-scrollbar-thumb{background:rgba(11,10,6,.35);border-radius:2px}
  .filters__item{flex:none}
  .bento{grid-template-columns:repeat(2,1fr)}
  .bento__col--offset{padding-top:0}
  .roi__card{grid-template-columns:1fr;gap:40px}
  .modal__panel{padding:32px 32px 0}
  .modal__body{grid-template-columns:minmax(0,1fr);gap:32px;padding-bottom:40px}
  .modal__col--media{display:none}
  .modal__gallery--inline{display:grid;gap:16px}
  .modal__nav-slot{display:block}
  .modal__nav{margin-right:0}
}

@media (max-width:760px){
  :root{
    --gutter:16px;
    --pad:64px;
    /* Мобільна шкала з PDF-експорту фрейму 375 px, 1:1. */
    --fs-h1:42px;--lh-h1:50px;
    --fs-h2:36px;--lh-h2:36px;
    --fs-h3:24px;--lh-h3:30px;
    --fs-lead:18px;--lh-lead:23px;
    --fs-body:16px;--lh-body:19px;
    --fs-btn:16px;
    /* Мобільна шапка нижча: поле 12 + рядок 34. */
    --header-h:58px;
  }
  /* Шапка переміряна з мобільного PDF: лого 107×22, пігулка мови 72×34,
     бургер 34×34. Проміжки нерівні — лого→пігулка 43, пігулка→бургер 88,
     тому бургер відтиснутий праворуч, а не стоїть поруч. */
  .header{padding-block:12px}
  .header__inner{gap:0}
  .logo__img{width:107px;height:22px}
  .lang{width:72px;height:34px;padding:0;margin-left:43px;justify-content:center;gap:5px;font-size:12px}
  .ico-globe{width:14px;height:14px}
  .header__actions{margin-left:auto;gap:0}
  .burger{width:34px;height:34px;border-radius:9px;gap:4px}
  .burger span{width:14px}
  .header__actions .btn--outline{display:none}
  /* Пігулка мови в макеті стоїть одразу за лого, а не в правій групі */
  .header__actions{order:3}
  .lang{order:2}
  .burger{display:flex}
  .nav{display:none}

  .hero{padding-top:24px;padding-bottom:56px}
  .hero__pill{margin-bottom:28px;height:34px;font-size:13px}
  .hero__title .ln{display:contents}
  .hero__title b,.hero__title i{display:block}
  .hero__sub br{display:none}
  .hero__cta{flex-direction:column;gap:16px;width:100%;margin-top:32px}
  /* Напис «LET'S TALK ABOUT YOUR PROJECT» з інтервалом літер займає
     близько 288 px, а з полями 32+32 не вміщався навіть у контейнер 343.
     Тому на вузьких екранах поля менші, а перенос дозволений. */
  .btn{
    padding-inline:20px;
    white-space:normal;
    text-align:center;
    height:auto;min-height:52px;
    padding-block:14px;
  }
  .hero__cta .btn{width:100%}
  .hero__quote{margin-top:40px}

  .logos__row{gap:40px}
  .logos__item{font-size:17px}

  .sec-sub br{display:none}
  .cases__grid{grid-template-columns:1fr;gap:40px}
  .case .tags,.case__desc{max-width:none}

  .bento{grid-template-columns:1fr;gap:16px;margin-top:40px}
  .bento__col{gap:16px}
  .bcard{min-height:0}
  .bcard--chart  {--bg:url(assets/img/bg-chart-s.png)}
  .bcard--rocket {--bg:url(assets/img/bg-rocket-s.png)}
  .bcard--spark  {--bg:url(assets/img/bg-spark-s.png)}
  .bcard--search {--bg:url(assets/img/bg-search-s.png)}
  .bcard--support{--bg:url(assets/img/bg-support-s.png)}
  .bcard--price  {--bg:url(assets/img/bg-price-s.png)}
  .footer{background-image:url(assets/img/footer-bg-m.png)}

  /* На вузьких екранах карусель без бічних карток */
  .review{width:calc(100vw - 32px);padding:24px}
  .review.is-prev,.review.is-next{opacity:0}
  .review__stats{padding:16px}
  .review__stats{grid-template-columns:1fr;gap:12px;text-align:left;padding:16px}
  .review__stats li+li::before{display:none}
  .review__stats li{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
  .review__stats small{margin-top:0}

  /* На мобільному ілюстрація йде над заголовком (Property_1_Mobile.png). */
  /* На вузьких екранах закріплення вимкнене: кроки йдуть звичайним
     потоком, ілюстрація липне зверху й підміняється за скролом. */
  .steps__layout{height:auto!important}
  .steps__pin{position:static}
  .steps__grid{
    grid-template-columns:minmax(0,1fr);
    row-gap:20px;
    height:auto;
  }
  .steps{height:auto}
  /* Скидаємо стани закріпленого режиму: на мобільному кроки йдуть
     поспіль, і класи is-next / is-past, які лишає скрипт, не мають
     ні ховати їх, ні зсувати на 296 пікселів. */
  .step,
  .step.is-current,
  .step.is-next,
  .step.is-past{
    position:relative;inset:auto;
    opacity:1;transform:none;pointer-events:auto;
  }
  .step{
    grid-template-columns:40px minmax(0,1fr);
    column-gap:22px;
    padding-bottom:40px;
  }
  .step.is-next .step__num{visibility:visible}
  .step.is-next .step__body p{display:block}
  /* Лінія тягнеться від бейджа донизу кроку, як у макеті. */
  .step::before{
    display:block;
    left:19px;top:48px;bottom:0;height:auto;
  }
  /* Примарна цифра наступного кроку — лише для закріпленого режиму.
     Селектор з атрибутом, бо десктопне правило .step[data-next]::after
     має вищу специфічність і перебивало просте .step::after. */
  .step::after,.step[data-next]::after{display:none}
  .step__num{width:40px;height:40px;font-size:20px}

  /* Ілюстрація над заголовком, у власній бежевій картці. */
  .step__media{
    display:block;
    grid-column:2;
    width:100%;aspect-ratio:1/1;
    margin-bottom:20px;
    background:#E2E0D7;
    border-radius:16px;
    object-fit:contain;
    padding:12%;
    box-sizing:border-box;
  }
  .step__body{grid-column:2}
  /* Спільна колонка на мобільному не потрібна. */
  .steps__media{display:none}
  .step.is-past{opacity:1;transform:none}
  .steps__media{
    position:sticky;
    top:calc(var(--header-h) + 12px);
    width:100%;max-width:280px;
    margin-inline:auto;
    order:-1;
    z-index:1;
  }
  .step{grid-template-columns:40px 1fr;row-gap:16px;padding-bottom:40px;min-height:0}
    .step__body{grid-column:2;grid-row:2}
  .step__body p{max-width:none}

  .roi__card{padding:20px;margin-top:32px}
  .roi__value{font-size:40px}
  .roi__mini{grid-template-columns:1fr}
  .field label{font-size:12px}

  .acc__q{font-size:17px;padding:20px 0}
  .sec-cta{margin-top:32px}
  .sec-cta .btn{width:100%}

  .footer{padding-block:48px 24px}
  .footer__inner{grid-template-columns:1fr;gap:32px}
  .footer__nav{grid-template-columns:repeat(2,1fr);justify-content:start}
  .footer__bottom{margin-top:40px}

  /* Мобільний попап — з PDF (фрейм 375×1644): пігулка 14, теги 16,
     заголовок 36, лід і текст 16/19, h3 24, h4 18, поля 16. */
  /* Mobile/Pop-up/case-1.png (375×1644): кнопки на 32 від верху, пігулка 32,
     теги 28 із кроком 9, контент 320 завширшки — праворуч місце під скрол. */
  .modal__panel{width:100vw;height:100vh;height:100dvh;border-radius:0;border-top:0;padding:16px 16px 0;gap:24px;
    padding-top:max(16px,env(safe-area-inset-top))}
  .modal__body{scrollbar-width:none}
  .modal__body::-webkit-scrollbar{display:none}
  .modal__bar{margin:16px 8px 0}
  .modal__body{padding:0 0 max(16px,env(safe-area-inset-bottom))}
  .pill--lg{font-size:14px;height:32px}
  .modal__col--text .pill--lg{height:32px;padding-inline:10px;gap:10px}
  .modal__col--text .pill--lg .dot{width:13px;height:13px}
  .modal__col--text .tags--lg{gap:9px}
  /* .modal — щоб перебити загальне мобільне .tags li нижче у файлі */
  .modal .tags--lg li{height:28px;padding-inline:16px;font-size:16px}
  .modal__title{font-size:36px;line-height:42px}
  .modal__lead{font-size:16px;line-height:19px}
  .modal__col--text h3{font-size:24px;line-height:30px}
  .modal__col--text h4{font-size:18px;line-height:22px}
  .modal__col--text p{font-size:16px;line-height:19px}

  /* Кеглі, зняті з мобільного PDF поіменно — вони не виводяться
     з десктопних пропорційно, тому задані окремо. */
  .sec-head .pill{font-size:14px;height:32px}
  .hero__pill{font-size:12.5px;height:32px;padding-inline:16px}
  .sec-sub{font-size:16px;line-height:20px;max-width:none}
  .case__title{font-size:24px;line-height:30px}
  .case__desc{font-size:16px;line-height:19px}
  .filters__item{font-size:16px;height:44px}
  .tags li{height:32px;padding-inline:12px;font-size:16px}
  .bcard h3{font-size:20px;line-height:25px}
  .bcard p{font-size:16px;line-height:19px}
  .review__title{font-size:16px}
  .review__text{font-size:14px;line-height:17px}
  .review__author b{font-size:16px;line-height:20px}
  .review__author small{font-size:14px}
  .review__stats b{font-size:16px;line-height:20px}
  .review__stats small{font-size:12px;margin-top:8px}
  .step__num{font-size:32px}
  .step__body h3{font-size:20px;line-height:25px}
  .step__body p{font-size:16px;line-height:19px}
  .roi__label{font-size:18px;line-height:22px}
  .roi__value{font-size:42px}
  .roi__note{font-size:16px;line-height:19px}
  .roi__minicard p{font-size:16px}
  .roi__minicard b{font-size:32px}
  .field label{font-size:16px}
  .field output{font-size:20px}
  .acc__q{font-size:20px;line-height:24px}
  .acc__a ul,.acc__a p{font-size:16px;line-height:24px}
  .footer__brand p{font-size:16px;line-height:24px}
  .footer__nav a{font-size:16px}
  .footer__nav li{margin-bottom:24px}
  .footer__bottom{font-size:14px}
  .hero__quote-bubble{font-size:16px}
  .modal__col--text h3{font-size:26px;line-height:32px}
  .modal__col--text p{font-size:16px;line-height:24px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}

/* ---------- MEDIA FILLERS ---------- */
.modal__hero{width:100%;height:auto;object-fit:cover;display:block}

/* Прев'ю кейсу: ч/б стан за замовчуванням, кольоровий проявляється на hover.
   Обидва стани — окремі рендери з макета, не CSS-фільтр. */
.case__thumb{position:relative;isolation:isolate}
.case__img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.case__img--color{
  position:absolute;inset:0;
  opacity:0;
  transition:opacity .45s var(--ease);
}
.case__thumb:hover .case__img--color,
.case__thumb:focus-visible .case__img--color{opacity:1}
.modal__hero{border-radius:var(--r-lg)}
.logos__item{height:26px;width:auto;object-fit:contain;opacity:.9;flex:none}
.avatar{object-fit:cover}
.avatar--initials{
  display:grid;place-items:center;
  background:rgba(11,10,6,.08);
  font-size:13px;font-weight:600;color:#4A4842;
}

/* ---------- VOICE PLAYER ----------
   Розміри й патерн хвилі зняті з Player.png. Два стани: спокій — бежева
   пігулка з темною кнопкою; програвання — темна пігулка зі світлою кнопкою. */
.player{
  display:flex;align-items:center;gap:14px;
  height:56px;padding:0 20px 0 6px;
  border-radius:var(--r-pill);
  background:linear-gradient(96deg,#E9E6DB 0%,#F5F3EC 45%,#E4E1D6 100%);
  transition:background .35s var(--ease),color .35s var(--ease);
}
.player__btn{
  width:44px;height:44px;flex:none;
  border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#4C4A45,#17150F);
  color:#F6F4EE;
  transition:background .35s var(--ease),color .35s var(--ease),transform .2s var(--ease);
}
.player__btn:hover{transform:scale(1.04)}
.player__ico{display:grid;place-items:center;width:16px;height:18px}
.player__ico svg{width:100%;height:100%}
.player__ico--pause{display:none}
.player.is-playing .player__ico--play{display:none}
.player.is-playing .player__ico--pause{display:grid}

.player__wave{
  flex:1;min-width:0;
  height:20px;
  display:flex;align-items:center;gap:5px;
  overflow:hidden;
}
.player__wave i{
  flex:none;width:3px;border-radius:2px;
  background:currentColor;
  opacity:.32;
  transition:opacity .2s linear;
}
.player__wave i.is-played{opacity:.9}
.player__time{font-size:17px;font-weight:600;flex:none}
.player__vol{width:22px;height:20px;flex:none;opacity:.85}
.player__vol svg{width:100%;height:100%}
.player__vol:hover{opacity:1}
.player.is-muted .player__vol{opacity:.4}

.player.is-playing{
  background:linear-gradient(96deg,#5B5852 0%,#232019 42%,#0C0B08 100%);
  color:var(--on-dark);
}
.player.is-playing .player__btn{background:#F3F1EA;color:#141210}

@media (max-width:760px){
  .player{height:48px;gap:10px;padding-right:14px}
  .player__btn{width:38px;height:38px}
  .player__time{font-size:15px}
}

/* ================= УКРАЇНСЬКА ВЕРСІЯ =================
   У макеті H1 українською менший — 62/74 замість 80/96, бо текст довший.
   Решта шкали в обох мовах однакова (звірено по PDF). */
.lang-uk{
  --fs-h1:62px; --lh-h1:74px;
}
@media (max-width:1400px){
  .lang-uk{--fs-h1:52px;--lh-h1:62px}
}
@media (max-width:760px){
  .lang-uk{--fs-h1:32px;--lh-h1:40px}
}
/* Перемикач мови — те саме, що кнопка .lang, але посилання */
a.lang{text-decoration:none}
a.lang:hover{background:rgba(11,10,6,.05)}

/* ================= КОНТАКТНА ФОРМА =================
   Геометрія з Pop-up/Contact Form (1778×1272 @2×): колонка форми
   719..1678, поля 467×46 у дві колонки з проміжком 25, заливка #E3E0D6. */
.modal--form .modal__panel{
  width:min(1778px,calc(100vw - 64px));
  height:min(1272px,calc(100vh - 64px));
  padding:48px 48px 0;
}
.form__body{
  display:grid;
  grid-template-columns:600px minmax(0,959px);
  gap:60px;
  justify-content:center;
  overflow-x:hidden;overflow-y:auto;
  overscroll-behavior:contain;
  padding:0 0 60px;
  scrollbar-width:thin;scrollbar-color:rgba(11,10,6,.25) transparent;
}
.form__body::-webkit-scrollbar{width:6px}
.form__body::-webkit-scrollbar-thumb{background:rgba(11,10,6,.25);border-radius:3px}
.form__body[hidden]{display:none}
.form__intro{display:grid;align-content:start;justify-items:start;gap:16px}
.form__title{font-size:52px;line-height:62px;font-weight:500;letter-spacing:-.02em}
.form__sub{font-size:18px;line-height:23px;color:var(--muted);max-width:572px}

.form__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,468px));
  column-gap:25px;row-gap:20px;
  align-content:start;
}
.field-t{display:grid;gap:2px;margin:0}
.field-t--wide{grid-column:1/-1}
.field-t label{font-size:16px;line-height:21px;color:var(--muted)}
.field-t label b{color:#B4463C;font-weight:400;margin-left:2px}
/* Заливка поля — не рівний колір, а світловий підсвіт зліва:
   від #E3E0D6 до #F6F4ED на 31% ширини й назад до #E3E0D6 на 64%.
   Знято з експорту Field.png (470×47, радіус 10). */
.field-t input,.field-t select,.field-t textarea{
  width:100%;
  min-height:47px;
  padding:0 17px;
  border:1px solid transparent;
  border-radius:10px;
  background:linear-gradient(90deg,#E3E0D6 0%,#F6F4ED 31%,#E3E0D6 64%,#E3E0D6 100%);
  color:var(--ink);
  font:inherit;font-size:16px;
  transition:border-color .2s var(--ease),filter .2s var(--ease);
}
.field-t textarea{min-height:110px;padding:14px 17px;resize:vertical;line-height:23px}
.field-t input::placeholder,.field-t textarea::placeholder{
  color:#8A877E;font-weight:300;line-height:130%;
}
.field-t input:focus,.field-t select:focus,.field-t textarea:focus{
  outline:none;border-color:rgba(11,10,6,.35);filter:brightness(1.02);
}
.field-t select{appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0A06' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center;background-size:18px;
  padding-right:44px;
}
.field-t input[aria-invalid="true"],.field-t textarea[aria-invalid="true"]{border-color:#B4463C}

.form__slot-title{font-size:16px;line-height:20px;color:var(--muted);margin-top:12px}
.field-t__label{display:block;font-size:16px;line-height:21px;color:var(--muted)}
.field-t label small,.field-t__label small{font-size:13px;color:#8A877E}
/* Власний календар: поле з іконкою і спливаюча сітка. Кольори лише з
   палітри — вибраний день чорний із білою цифрою, сьогодні — обведений. */
.datepick{position:relative;display:block}
.datepick input[type="text"]{padding-right:44px;cursor:pointer}
.datepick__ico{position:absolute;right:16px;top:50%;width:16px;height:16px;margin-top:-8px;pointer-events:none;
  fill:none;stroke:var(--ink);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.datepick__ico circle{fill:var(--ink);stroke:none}
.datepick__pop{
  position:absolute;left:0;top:calc(100% + 8px);z-index:5;
  width:308px;padding:16px;
  background:#F8F7F1;border:1px solid rgba(11,10,6,.14);border-radius:14px;
  box-shadow:0 18px 40px rgba(11,10,6,.14);
}
.datepick__pop[hidden]{display:none}
.datepick__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.datepick__title{font-size:15px;font-weight:500;color:var(--ink)}
.datepick__nav{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:var(--ink)}
.datepick__nav:hover{background:rgba(11,10,6,.06)}
.datepick__nav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.datepick__grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.datepick__wd{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#8A877E;text-align:center;padding:4px 0 6px}
.datepick__day{
  height:36px;border-radius:50%;font-size:14px;color:var(--ink);
  display:grid;place-items:center;padding:0;
}
.datepick__day:hover{background:rgba(11,10,6,.08)}
.datepick__day.is-today{box-shadow:inset 0 0 0 1px rgba(11,10,6,.45)}
.datepick__day.is-selected,.datepick__day.is-selected:hover{background:var(--ink);color:#fff;box-shadow:none}
.datepick__day.is-muted{color:#B5B2A8}
.datepick__day:disabled{color:#C9C6BC;cursor:default;background:none}
.datepick__day:focus-visible{outline-offset:-2px}
.form__agree label{display:flex;align-items:center;gap:12px;cursor:pointer;font-size:16px;color:var(--ink)}
/* Селектор із .field-t і [type], бо мобільне правило .field-t input
   задає висоту 46/52 і тягнуло кружечок в овал. */
.field-t.form__agree input[type="checkbox"]{
  appearance:none;-webkit-appearance:none;
  width:22px;height:22px;min-width:22px;min-height:0;max-height:22px;
  aspect-ratio:1/1;flex:none;
  border-radius:50%;border:1.5px solid rgba(11,10,6,.4);background:transparent;padding:0;
}
.field-t.form__agree input[type="checkbox"]:checked{
  border-color:var(--ink);
  background:radial-gradient(circle,var(--ink) 0 45%,transparent 46%);
}
.form__legal{font-size:14px;line-height:20px;color:var(--muted)}
.form__error{margin:12px 0 0;font-size:15px;color:#B4463C}
.form__error[hidden]{display:none}

/* Екран подяки — окрема невелика панель (Pop-up/Thank you!, 800×483):
   поле 60, радіус 24, всередині колонка по центру: галочка 56 → 33 →
   заголовок 52/60 → 24 → підзаголовок → 42 → кнопка 317×54. Клас
   is-thanks ставить скрипт після успішного надсилання. */
.modal--form.is-thanks .modal__panel{
  width:min(800px,calc(100vw - 32px));
  height:auto;max-height:calc(100vh - 32px);
  padding:60px;
  border-radius:24px;
  gap:40px;
}
.modal--form.is-thanks .modal__bar{margin:0}
.form__thanks{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  justify-items:center;align-content:start;
  text-align:center;gap:0;padding:0;overflow:visible;
}
.form__thanks .form__title{font-size:52px;line-height:60px;margin-top:33px}
.form__thanks .form__sub{margin-top:24px;max-width:none}
.form__thanks .btn{margin-top:32px;width:317px;max-width:100%;justify-content:center}
.form__check{
  width:56px;height:56px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#4A4640,#17150F);
}
.form__check svg{width:26px;height:26px;fill:none;stroke:#F4F2EC;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:1400px){
  .form__body{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:44px}
  .form__title{font-size:40px;line-height:48px}
}
@media (max-width:900px){
  .modal--form .modal__panel{padding:32px 24px 0}
  .form__body{grid-template-columns:minmax(0,1fr);gap:28px;padding-bottom:32px}
  .form__grid{grid-template-columns:minmax(0,1fr);row-gap:16px}
  .field-t--wide{grid-column:1}
  .form__title{font-size:32px;line-height:40px}
  .form__thanks .form__title{font-size:40px}
}

/* Текст із візуального редактора: абзаци, списки, жирний.
   Стилі однакові з простими <p>, щоб вигляд не залежав від того,
   як саме контент-менеджер відформатував блок. */
.modal__rich>*{margin:0}
.modal__rich>*+*{margin-top:12px}
.modal__rich p,.modal__rich li{font-size:16px;line-height:19px;color:#25231E}
.modal__rich ul,.modal__rich ol{padding-left:22px}
.modal__rich ul{list-style:disc}
.modal__rich ol{list-style:decimal}
.modal__rich li+li{margin-top:6px}
.modal__rich strong,.modal__rich b{font-weight:600;color:var(--ink)}
.modal__rich a{text-decoration:underline}

/* ---------- СТІЙКІСТЬ НА ВУЗЬКИХ ЕКРАНАХ ----------
   Брейкпоінти покривають типові ширини, але телефони бувають від 320
   до 430 px. Ці правила діють на всьому діапазоні й не дають нічому
   виїхати за межі екрана, навіть якщо текст виявиться довшим. */

/* Жодне зображення чи відео не ширше за свого батька. */
img,video,svg,canvas{max-width:100%}

/* Сторінка не прокручується вбік. clip замість hidden — він не ламає
   position:sticky, на якому тримаються шапка й закріплені кроки. */
html{overflow-x:clip}
body{overflow-x:clip;max-width:100vw}

/* Довгі слова й адреси переносяться, а не розпирають блок. */
p,h1,h2,h3,h4,li,a,button,input,textarea,select{overflow-wrap:anywhere}

/* Кнопка ніколи не ширша за контейнер. Текст у ній може перенестись:
   «LET'S TALK ABOUT YOUR PROJECT» з інтервалом літер займає близько
   280 px, і на екрані 320 разом із полями вже не вміщався. */
.btn{max-width:100%}

@media (max-width:400px){
  :root{--gutter:14px}
  .btn{padding-inline:20px;letter-spacing:.02em}
  .btn--sm{padding-inline:16px}
  .pill{padding-inline:12px;gap:6px}
  .tags li{padding-inline:10px}
  .step__media{padding:9%}
  .modal__panel{padding:20px 14px 0}
  .field-t input,.field-t select,.field-t textarea{padding-inline:14px}
}

/* Дуже вузькі екрани — 320 px і старі пристрої. */
@media (max-width:360px){
  :root{--fs-h1:34px;--lh-h1:42px;--fs-h2:30px;--lh-h2:34px}
  .btn{font-size:14px;height:50px}
  .hero__quote-bubble{font-size:14px;padding-inline:12px}
  .dots{gap:8px;padding-inline:9px}
}

/* ---------- ПОПАПИ НА МОБІЛЬНОМУ ----------
   Заміряно з експортів 375: у формі шапка по центру, поля 343×46
   на всю ширину контейнера; у попапі кейсу галерея вже переноситься
   під заголовок скриптом, тут лише розміри. */
@media (max-width:760px){
  /* Форма — на всю ширину і висоту телефону. Селектор той самий, що в
     десктопному правилі (.modal--form .modal__panel), інакше ширина
     calc(100vw - 64px) перебиває мобільний .modal__panel і по боках
     лишаються поля, як було на скріні. */
  .modal--form .modal__panel{
    width:100vw;height:100vh;height:100dvh;
    border-radius:0;border-top:0;
    padding:16px 16px 0;gap:24px;
    /* Виріз/«чубчик» і домашній індикатор iPhone */
    padding-top:max(16px,env(safe-area-inset-top));
    padding-left:max(16px,env(safe-area-inset-left));
    padding-right:max(16px,env(safe-area-inset-right));
  }
  .form__body{
    grid-template-columns:minmax(0,1fr);
    gap:24px;
    padding-bottom:max(32px,env(safe-area-inset-bottom));
    /* На тачскріні смуга прокрутки лягала поверх полів — ховаємо */
    scrollbar-width:none;
  }
  .form__body::-webkit-scrollbar{display:none}
  .form__intro{justify-items:center;text-align:center;gap:12px}
  .form__title{font-size:36px;line-height:42px}
  .form__sub{font-size:16px;line-height:20px;max-width:none}
  .form__grid{grid-template-columns:minmax(0,1fr);row-gap:16px}
  .field-t--wide{grid-column:1}
  .field-t input,.field-t select,.field-t textarea{min-height:46px}
  .field-t textarea{min-height:120px}
  .form__legal{font-size:13px;line-height:18px}
  .datepick__pop{width:min(308px,calc(100vw - 32px))}
  .form__thanks .form__title{font-size:36px;line-height:42px;margin-top:24px}
  .form__thanks .form__sub{margin-top:16px}
  .form__thanks .btn{margin-top:32px;width:100%}
  .modal--form.is-thanks .modal__panel{width:100vw;max-height:none;height:100vh;height:100dvh;border-radius:0;padding:16px 16px 32px;padding-top:max(16px,env(safe-area-inset-top))}
  .modal--form.is-thanks .modal__bar{margin:16px 8px 0}
  .form__thanks{align-content:center}

  /* Попап кейсу */
  .modal--case .modal__panel,
  .modal__panel{padding:16px 16px 0}
  .modal__body{gap:24px}
  /* Показники: цифра 28, підпис 16/17, роздільники з відступом 8 */
  .modal__stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px;padding-top:12px}
  .modal__stats li,.modal__stats li+li{padding-inline:8px}
  .modal__stats li:first-child{padding-left:0}
  .modal__stats b{font-size:28px;line-height:34px}
  .modal__stats span{font-size:16px;line-height:17px;margin-top:6px}
  /* Стрілки — внизу, по центру, під показниками */
  .modal__nav{justify-content:center;margin:7px 0 0}
  /* Галерея: hero 320×240, крапки на білій пігулці, стрічка 280×101
     з підглядом 12 по краях, потім 28 до ліда. */
  .modal__gallery--inline{display:grid;gap:12px;margin-bottom:8px}
  /* Великий екран на мобільному — завжди 4:3 на всю ширину: картинка
     будь-яких пропорцій кадрується від верхнього краю, не тягнеться. */
  .modal__hero{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:50% 0}
  .modal__gallery .dots{height:30px;padding-inline:9px;background:#fff}
  .modal__gallery .dots button{width:14px;height:14px}
  /* Мобільний: 240 у ряд 320 — видно 1⅓ мініатюри, далі гортається */
  .modal__strip{--thumb:240px;gap:8px}
  .modal__thumb{border-radius:8px}
}

/* Гумова мобільна розкладка секції процесу: жодних фіксованих ширин,
   ілюстрація тягнеться під колонку контенту. */
@media (max-width:760px){
  .steps__layout,
  .steps__pin,
  .steps,
  .step,
  .step__body,
  .step__media{max-width:100%;min-width:0}
  .step__media{width:100%;height:auto}
  .step__body h3{overflow-wrap:anywhere}
}
