/* Dzenda — сайт. Напрям (24.09): squarespace.com без відео —
   фото на весь екран, що змінюються самі; скляний бар зверху (як у Craft);
   екрани застосунку звисають із фото в темну смугу; кейси гортаються каруселлю
   з видимими сусідами. Тони темні брунатні. */

:root {
  --bg: #1B1512;
  --cream: #F4EBE0;
  --cream-2: rgba(244, 235, 224, .72);
  --cream-3: rgba(244, 235, 224, .5);
  --ink: #1C1915;
  --line: rgba(244, 235, 224, .14);
  /* передній план секції; кремова смуга перевизначає */
  --fg: var(--cream);
  --fg-2: var(--cream-2);
  --fg-3: var(--cream-3);
  --rule: var(--line);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Noto Serif Display", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 28px;
  --max: 1280px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --nav-h: 64px;
  --overlap: clamp(180px, 24vw, 340px);  /* наскільки екрани звисають із фото в темну смугу */

  /* зерно, як у друку: без нього суцільна заливка виглядає пластиком */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #1B1512 0%, #201814 50%, #171210 100%) fixed, var(--bg);
  color: var(--cream);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--light { background: linear-gradient(180deg, #FBF5EA 0%, #EBDCC2 100%); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(214, 168, 96, .55), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn--light:hover { background: linear-gradient(180deg, #FFFCF6 0%, #F1E4CC 100%); }
.btn--dark { background: #111; color: #fff; }
.btn--dark:hover { background: #000; }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn--lg { height: 56px; padding: 0 32px; font-size: 17px; }

/* ---------- скляний бар ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(1120px, calc(100% - 28px)); height: var(--nav-h);
  padding: 0 11px 0 26px; border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 12px 40px -14px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .55);
  transition: translate .35s var(--ease), opacity .25s;
}
/* при прокрутці вниз бар ховається, щоб не лягати на заголовок; угору — повертається */
.nav.is-hidden { translate: -50% -140%; opacity: 0; pointer-events: none; }
.brand { font: 500 24px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav__link { text-decoration: none; opacity: .85; transition: opacity .2s; }
.nav__link:hover { opacity: 1; }

/* ---------- перший екран: фото на весь екран ---------- */
.hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  min-height: 100svh;
  overflow-x: clip; /* бічні картки на телефоні визирають за край — без горизонтального скролу */
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: #2A1E1A;
}
.hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) brightness(.88); /* фото — тло, не герой: приглушене, щоб не сперечалось з екранами */
  opacity: 0; animation: slide 28s linear infinite both;
}
.hero__bg img:nth-child(2) { animation-delay: 7s; }
.hero__bg img:nth-child(3) { animation-delay: 14s; }
.hero__bg img:nth-child(4) { animation-delay: 21s; }
/* 4 кадри по 7 с: 1,4 с проявлення, повільне наближення, розчинення в наступний */
@keyframes slide {
  0%   { opacity: 0; transform: scale(1.04); }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  32%  { opacity: 0; transform: scale(1.11); }
  100% { opacity: 0; transform: scale(1.11); }
}
/* тонування: зверху під бар, знизу — розчинення в темну смугу */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 21, 18, .6) 0%, rgba(27, 21, 18, .3) 26%, rgba(27, 21, 18, .72) 46%, rgba(27, 21, 18, .96) 58%, var(--bg) 68%);
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--grain); opacity: .18; mix-blend-mode: overlay;
}

.hero__copy {
  margin: auto; text-align: center;
  padding: calc(var(--nav-h) + 72px) 24px 40px;
}
.hero h1 {
  margin: 0;
  font: 300 clamp(42px, 6.4vw, 92px)/1 var(--display);
  letter-spacing: -.035em; text-wrap: balance;
}
.hero__lead {
  max-width: 30em; margin: 26px auto 0;
  font-size: clamp(16px, 1.3vw, 19px); font-weight: 300; line-height: 1.5;
  color: var(--cream-2); text-wrap: pretty;
}
.hero__copy .btn { margin-top: 34px; }


/* ---------- iPhone-рамка для екранів застосунку — лише CSS, без картинок (Дзенда, 01.10: «сделать будто это айфон, с чёлкой») ----------
   .dev — контейнер (cqw = % від його ширини): ::before малює корпус, .dev__screen — екран зі статус-баром (час, Dynamic Island,
   значки), знімком застосунку в пропорції 390×844 і смугою з індикатором «додому». Кольори статус-бара/низу беруться з краю знімка. */
.dev { container-type: inline-size; position: relative; display: block; width: 100%; isolation: isolate; }
.dev::before {
  content: ""; position: absolute; inset: 0; border-radius: 15.5cqw; z-index: 0;
  background: linear-gradient(150deg, #3b3b41 0%, #141416 38%, #1c1c20 70%, #2c2c31 100%);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, .85), inset 0 0 0 .45cqw rgba(255, 255, 255, .14), inset 0 0 0 1.3cqw #08080a;
}
/* бічні кнопки: без звуку + гучність ліворуч, живлення праворуч */
.dev::after {
  content: ""; position: absolute; left: -.9cqw; top: 24cqw; width: .9cqw; height: 6cqw; border-radius: .6cqw 0 0 .6cqw; background: #2a2a2f;
  box-shadow: 0 10cqw 0 #2a2a2f, 0 21cqw 0 #2a2a2f, calc(100% + 1.8cqw) 14cqw 0 #2a2a2f, calc(100% + 1.8cqw) 22cqw 0 #2a2a2f;
}
.dev__screen { position: relative; z-index: 1; margin: 3cqw; border-radius: 12.6cqw; overflow: hidden; background: var(--sb, #000); display: flex; flex-direction: column; }
/* статус-бар лежить ПОВЕРХ знімка: застосунок знятий у повному екрані Telegram і сам відступає 59 px під острівець,
   тож під часом і значками — його власне тло, без шва (Дзенда, 01.10: «тут все криво») */
.dev__status {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; pointer-events: none;
  height: 15.1cqw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 7cqw 0 8.5cqw;
  color: var(--sbt, #fff); font: 600 4.3cqw/1 -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif; letter-spacing: -.01em;
}
.dev__time { justify-self: start; }
.dev__island { justify-self: center; width: 32.3cqw; height: 9.5cqw; border-radius: 999px; background: #000; margin-top: .4cqw; }
.dev__icons { justify-self: end; display: flex; align-items: center; gap: 1.6cqw; }
.dev__ic { height: 3cqw; width: auto; display: block; }
.dev__screen > img {
  display: block; position: static; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top;
  border-radius: 0; box-shadow: none; transform: none; margin: 0; flex: none; max-width: none;
}
/* індикатор «додому» теж поверх знімка: екран знятий із safe area 34 pt, контент іде під нього, як на айфоні */
.dev__home { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 8.7cqw; z-index: 2; pointer-events: none; }
.dev__home::after { content: ""; position: absolute; left: 50%; bottom: 2cqw; width: 35.6cqw; height: 1.3cqw; border-radius: 999px; background: var(--bbt, #fff); opacity: .85; translate: -50% 0; }

/* три справжні екрани в ряд, плоско, як картки сайтів у Squarespace: центральний вищий і більший,
   бічні трохи нижче й менші; знизу нічого не ріжемо — картки цілком спускаються з фото в темну смугу */
.fan {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: flex-start;
  margin-bottom: calc(-1 * var(--overlap));
}
.fan__card {
  flex: none; width: clamp(160px, 23vw, 330px);
  animation: rise .9s var(--ease) both;
}
.fan__card--c { z-index: 2; }
.fan__card--l { margin-right: calc(-1 * clamp(6px, .8vw, 12px)); margin-top: clamp(28px, 4vw, 56px); transform: scale(.92); transform-origin: top right; animation-delay: .08s; }
.fan__card--r { margin-left: calc(-1 * clamp(6px, .8vw, 12px)); margin-top: clamp(28px, 4vw, 56px); transform: scale(.92); transform-origin: top left; animation-delay: .16s; }
@keyframes rise {
  from { opacity: 0; translate: 0 70px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ---------- кейси ---------- */
/* зверху — звис віяла + повітря, інакше розчинення карток лягає на заголовок */
.cases { padding: calc(var(--overlap) + clamp(40px, 5vw, 72px)) 0 clamp(64px, 8vw, 104px); }
.cases__head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 48px); padding: 0 24px; text-align: center; }
.cases__head h2 {
  margin: 0; font: 300 clamp(34px, 4.4vw, 60px)/1.04 var(--display); letter-spacing: -.03em;
}
.cases__head p { margin: 16px auto 0; max-width: 30em; color: var(--cream-2); font-size: 17px; font-weight: 300; }

/* пігулки-вкладки, як у Squarespace: клік гортає карусель до кейса */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tab {
  height: 40px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--cream-2); font-size: 15px;
  transition: background-color .2s, color .2s;
}
.tab:hover { color: var(--cream); }
.tab.is-active { background: rgba(244, 235, 224, .12); color: var(--cream); }

.carousel { position: relative; }
.track {
  --card-w: min(1080px, 76vw);
  --side: calc((100% - var(--card-w)) / 2);
  display: flex; gap: 20px;
  padding: 0 var(--side) 8px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--side);
  align-items: flex-start;   /* кожна картка свого зросту — без порожнечі під телефонами в нижчих */
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }

.arrow {
  position: absolute; top: 50%; z-index: 3; translate: 0 -50%;
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(27, 21, 18, .45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .2s, opacity .2s, transform .2s var(--ease);
}
.arrow:hover { background: rgba(27, 21, 18, .75); }
.arrow:active { transform: scale(.94); }
.arrow[disabled] { opacity: .3; pointer-events: none; }
.arrow--prev { left: calc(var(--side-px, 0px) - 26px); }
.arrow--next { right: calc(var(--side-px, 0px) - 26px); }

.card {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 0 0 var(--card-w); scroll-snap-align: center;
  display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(24px, 4vw, 56px);
  min-height: clamp(520px, 44vw, 640px); border-radius: var(--r);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px) 0;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .16; mix-blend-mode: overlay;
}
.card__text { align-self: start; padding-bottom: clamp(28px, 4vw, 56px); }
.card__kind { margin: 0; font-size: 15px; }
.card__name { margin: 12px 0 0; font: 400 clamp(46px, 5.4vw, 76px)/1 var(--display); letter-spacing: -.03em; }
.card__lead { max-width: 26em; margin: 22px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.card__list { list-style: none; margin: 30px 0 0; padding: 0; font-size: 15.5px; }
.card__list li { padding: 13px 0; border-top: 1px solid var(--card-line); }
.card__list li:last-child { border-bottom: 1px solid var(--card-line); }
.card__text .btn { margin-top: 30px; }

.card__screens { position: relative; align-self: end; min-height: 0; }
.card__screens img {
  border-radius: clamp(20px, 2.2vw, 32px);
  box-shadow: 0 34px 60px -30px rgba(20, 16, 40, .45), 0 0 0 1px rgba(0, 0, 0, .05);
}
/* сайт закладу вгорі колонки (як Squarespace показує сайти клієнтів), три екрани знизу сходинкою, низ ріже край картки */
.card__screens--3 { align-self: start; display: flex; flex-direction: column; gap: 22px; padding-bottom: clamp(24px, 4vw, 56px); }
.card__screens--3 .card__site {
  width: 100%; border-radius: 12px; box-shadow: 0 30px 60px -28px rgba(20, 16, 40, .5), 0 0 0 1px rgba(36, 33, 79, .1);
}
.card__screens--3 .card__phones { display: flex; gap: 16px; align-items: flex-start; }
.card__screens--3 .dev { flex: 1 1 0; min-width: 0; }
.card__screens--1 { height: clamp(380px, 42vw, 560px); }
.card__screens--1 .dev { position: absolute; left: 50%; top: 0; width: clamp(220px, 27vw, 370px); transform: translateX(-50%); }

/* салон — палітра SkinGlow: крем, чорнильно-синій, золото */
.card--salon { --card-line: rgba(36, 33, 79, .16); background: radial-gradient(80% 60% at 100% 0%, rgba(201, 169, 110, .35), transparent 60%), linear-gradient(165deg, #F6EFE4 0%, #EEE6DA 50%, #E6D9C4 100%); color: #24214F; }
.card--salon .card__kind { color: #94763F; }

/* зал — палітра myfgym: чорний і помаранчевий */
.card--gym { --card-line: rgba(242, 238, 232, .14); background: radial-gradient(90% 60% at 0% 100%, rgba(240, 122, 45, .22), transparent 60%), linear-gradient(160deg, #1E1B19 0%, #0F0D0C 55%, #050404 100%); color: #F2EEE8; grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.card--gym .card__text { order: 2; }
/* екран myfgym — цілком, без обрізки краєм картки (Дзенда, 25.09: «давай екран не обрезать») */
.card--gym { padding-bottom: clamp(28px, 4vw, 56px); }
.card--gym .card__screens--1 { height: auto; align-self: center; display: flex; justify-content: center; }
/* relative, не static: інакше корпус (::before, absolute) розтягується на всю колонку картки */
.card--gym .card__screens--1 .dev { position: relative; left: auto; top: auto; transform: none; width: clamp(200px, 19vw, 260px); }
.card--gym .card__kind { color: #F07A2D; }
/* три ролі одного застосунку (07.10, Дзенда: «три екрана админ тренер клиент и что все это одно приложение»):
   над телефонами — скоба «Один застосунок», під кожним — роль */
.card__screens--roles { align-self: start; display: flex; flex-direction: column; gap: clamp(16px, 1.6vw, 22px); width: 100%; max-width: 880px; margin-inline: auto; }
/* CRM з компʼютера під телефонами (07.10, Дзенда: «три телефона выше и ниже красиво показываем срм») — вікно з рядком-заголовком */
.card__crm { margin: clamp(6px, 1vw, 14px) 0 0; }
.card__win { position: relative; padding-top: 24px; border-radius: 12px; overflow: hidden; background: #1d1d22; box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1); }
.card__win::before { content: ""; position: absolute; left: 12px; top: 8px; width: 44px; height: 8px; background: radial-gradient(circle 4px at 4px 4px, var(--dot, rgba(255, 255, 255, .26)) 96%, transparent), radial-gradient(circle 4px at 22px 4px, var(--dot, rgba(255, 255, 255, .26)) 96%, transparent), radial-gradient(circle 4px at 40px 4px, var(--dot, rgba(255, 255, 255, .26)) 96%, transparent); }
.card .card__screens .card__win img { display: block; width: 100%; height: auto; border-radius: 0; box-shadow: none; }
.card__crm figcaption { margin-top: 14px; text-align: center; font-size: 15px; opacity: .78; }
.card--salon .card__win { --dot: rgba(36, 33, 79, .22); background: #ebe3d6; box-shadow: 0 30px 60px -28px rgba(20, 16, 40, .5), 0 0 0 1px rgba(36, 33, 79, .12); }
.card__app { --app: #F07A2D; margin: 0; display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--app); }
.card__app::before, .card__app::after { content: ""; flex: 1 1 0; height: 12px; transform: translateY(6px); border: 1px solid rgba(242, 238, 232, .32); border-bottom: 0; }
.card__app::before { border-right: 0; border-top-left-radius: 8px; }
.card__app::after { border-left: 0; border-top-right-radius: 8px; }
.card__roles { display: flex; gap: clamp(12px, 1.5vw, 22px); align-items: flex-start; }
.card__role { flex: 1 1 0; min-width: 0; margin: 0; }
.card__role figcaption { margin-top: 14px; text-align: center; font-size: 15px; color: rgba(242, 238, 232, .78); }
.card--gym .card__screens img { box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }

/* «ваш заклад» — теплий брунатний, як тонування фото */
.card--next { background: radial-gradient(90% 70% at 100% 0%, rgba(214, 168, 96, .35), transparent 58%), linear-gradient(165deg, #6B4B4E 0%, #563F41 50%, #3B2A2C 100%); color: var(--cream); grid-template-columns: 1fr; align-content: center; text-align: center; min-height: clamp(420px, 36vw, 520px); padding-bottom: clamp(28px, 4vw, 56px); }
.card--next .card__text { padding-bottom: 0; }
.card--next .card__kind { color: rgba(244, 235, 224, .6); }
.card--next .card__lead { margin-inline: auto; }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--cream); opacity: .3; transition: width .25s var(--ease), opacity .2s; }
.dot.is-active { width: 24px; opacity: 1; }

/* ---------- «працює само» ---------- */
.auto {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px);
  max-width: var(--max); margin: 0 auto; padding: clamp(72px, 8vw, 120px) 24px 0;
}
.auto h2, .keys h2 { margin: 0; font: 300 clamp(34px, 4.4vw, 60px)/1.04 var(--display); letter-spacing: -.03em; }
.auto__lead { margin: 18px 0 0; max-width: 22em; color: var(--fg-2); font-size: 17px; font-weight: 300; }
.auto__list { list-style: none; margin: 0; padding: 0; }
.auto__list li {
  padding: 20px 0; border-top: 1px solid var(--rule);
  font-size: clamp(17px, 1.4vw, 21px); font-weight: 300; line-height: 1.4; color: var(--fg-2);
}
.auto__list li:last-child { border-bottom: 1px solid var(--rule); }
.auto__list b, .card__list b { font-weight: 500; color: inherit; }
.auto__list b { color: var(--fg); }

/* ---------- загальна двоколонка: заголовок ліворуч, список праворуч ---------- */
.sec {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px);
  max-width: var(--max); margin: 0 auto; padding: clamp(72px, 8vw, 120px) 24px 0;
}
.sec h2, .roles h2, .unique h2 { margin: 0; font: 300 clamp(34px, 4.4vw, 60px)/1.04 var(--display); letter-spacing: -.03em; }
.sec__lead { margin: 18px 0 0; max-width: 22em; color: var(--fg-2); font-size: 17px; font-weight: 300; }
.sec__list { list-style: none; margin: 0; padding: 0; }
.sec__list li {
  padding: 20px 0; border-top: 1px solid var(--rule);
  font-size: clamp(17px, 1.4vw, 21px); font-weight: 300; line-height: 1.4; color: var(--fg-2);
}
.sec__list li:last-child { border-bottom: 1px solid var(--rule); }
.sec__list b { font-weight: 500; color: var(--fg); }

/* справжні рядки з чатів Telegram */
.chatrows { display: grid; gap: 10px; margin-top: 34px; max-width: 460px; }
.chatrows img { width: 100%; border-radius: 14px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
.chatrows__note { margin: 6px 0 0; font-size: 14px; color: var(--fg-3); }

/* ---------- ролі ---------- */
.roles { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 8vw, 120px) 24px 0; }
.roles__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.roles__head p, .unique__text p { margin: 16px 0 0; color: var(--cream-2); font-size: clamp(17px, 1.4vw, 19px); font-weight: 300; }
.roles__row {
  display: grid; grid-template-columns: minmax(150px, 2fr) repeat(3, minmax(0, 3fr)); gap: 20px; align-items: end;
  padding: 28px 0; border-top: 1px solid var(--rule);
}
.roles__brand { display: flex; flex-direction: column; gap: 6px; align-self: start; }
.roles__name { font: 400 clamp(28px, 2.6vw, 38px)/1 var(--display); letter-spacing: -.02em; }
.roles__kind { font-size: 14px; color: var(--cream-3); }
.phone { margin: 0; }
.phone .dev { width: 100%; }
.phone figcaption, .window figcaption { margin-top: 12px; font-size: 14px; color: var(--fg-2); line-height: 1.4; }
.phone figcaption b { font-weight: 500; color: var(--fg); }
.window { margin: 0; }
.window img { width: 100%; border-radius: 10px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }
.roles__note { margin: 20px 0 0; font-size: 13px; color: var(--fg-3); }

/* ---------- CRM ---------- */
.crm { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 8vw, 120px) 24px 0; }
.crm h2 { margin: 0; font: 300 clamp(34px, 4.4vw, 60px)/1.04 var(--display); letter-spacing: -.03em; }
.crm__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); align-items: end; }
.crm__head p { margin: 0; max-width: 30em; color: var(--fg-2); font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; }
.crm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
/* «З компʼютера» / «З телефона» — дві дороги до тієї самої CRM (07.10, Дзенда: «почему там нет админки с мини аппа») */
.crm__via { margin: clamp(32px, 4vw, 48px) 0 0; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #94763F; }
.crm__mobile { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 96px); align-items: center; margin-top: clamp(56px, 6vw, 88px); }
.crm__mtext .crm__via { margin-top: 0; }
.crm__mtext p:not(.crm__via) { margin: 14px 0 0; max-width: 24em; color: var(--fg-2); font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; line-height: 1.5; }
.crm__phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 28px); max-width: 860px; }

/* ---------- «не схожий на інших» ---------- */
.unique {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: center;
  max-width: var(--max); margin: 0 auto; padding: clamp(72px, 8vw, 120px) 24px 0;
}
.unique__text p { max-width: 30em; }
/* три застосунки на одній системі — цілі телефони в ряд, нічого не ріжемо (Дзенда, 01.10: «обрезано и нет война») */
.unique__phones { display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding: clamp(24px, 3vw, 44px) 5%; border-radius: var(--r); background: linear-gradient(160deg, #2a201c 0%, #241B18 55%, #1e1613 100%); }
.unique__phones .dev { flex: 0 1 29%; min-width: 0; }
.unique__phones .dev:nth-child(2) { margin-bottom: clamp(16px, 2vw, 32px); }

/* ---------- можливості — ряд високих карток із живими шматками застосунку (як «Everything you need» у Squarespace) ---------- */
.feat { max-width: none; padding-left: 0; padding-right: 0; }
.feat__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr) auto; gap: clamp(24px, 4vw, 72px); align-items: end;
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.feat__head h2 { margin: 0; font: 300 clamp(34px, 4vw, 56px)/1.04 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.feat__head p { margin: 0; max-width: 30em; color: var(--fg-2); font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; }
.arrows--inline { display: flex; gap: 10px; align-self: end; }
.arrow--static { position: static; translate: none; color: var(--ink); background: transparent; border-color: rgba(28, 25, 21, .25); }
.arrow--static:hover { background: rgba(28, 25, 21, .08); }
.feat__rail {
  --pad: max(24px, calc((100% - var(--max)) / 2 + 24px));
  display: flex; gap: 20px; margin-top: clamp(32px, 4vw, 56px);
  padding: 0 var(--pad) 8px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain;
}
.feat__rail::-webkit-scrollbar { display: none; }
.fcard {
  position: relative; isolation: isolate; overflow: hidden; flex: 0 0 clamp(280px, 24vw, 400px); height: clamp(440px, 36vw, 520px);
  scroll-snap-align: start; padding: 30px 28px 0; border-radius: 22px;
  display: flex; flex-direction: column; color: var(--cream);
}
.fcard::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: .16; mix-blend-mode: overlay; }
.fcard h3 { margin: 0; font: 500 clamp(22px, 1.9vw, 28px)/1.15 var(--sans); letter-spacing: -.02em; }
.fcard p { margin: 12px 0 0; font-size: 15px; line-height: 1.45; font-weight: 300; opacity: .8; }
/* «предмети» всередині картки — сверстані, без скрінів застосунку (Дзенда: «тут без скринов мини аппа») */
.art { position: absolute; left: 28px; right: 28px; bottom: 30px; top: 42%; display: flex; flex-wrap: wrap; align-content: center; gap: 8px; --ink-a: var(--cream); --soft: rgba(244, 235, 224, .12); --line-a: rgba(244, 235, 224, .22); }
.fcard--cream .art { --ink-a: var(--ink); --soft: rgba(28, 25, 21, .07); --line-a: rgba(28, 25, 21, .18); }
.pill { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-a); font-size: 14px; color: var(--ink-a); background: var(--soft); }
.pill--on { background: linear-gradient(180deg, #E4C990, #B8935A); color: #2A1B19; border-color: transparent; font-weight: 500; box-shadow: 0 8px 18px -8px rgba(214, 168, 96, .7); }
.fcard--cream .pill--on { color: #2A1B19; }
.pill--ghost { background: transparent; }
.tag { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--bg); background: var(--ink-a); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .6); }
.fcard--cream .tag { color: #fff; }
.tag--tilt { margin-top: 6px; }
.big { display: block; width: 100%; font: 500 clamp(40px, 3.4vw, 52px)/1 var(--sans); letter-spacing: -.03em; color: var(--ink-a); white-space: nowrap; }
.big small { font-size: .45em; font-weight: 300; opacity: .6; margin-left: 4px; }
.muted { display: block; width: 100%; font-size: 14px; color: var(--ink-a); opacity: .65; }
.meter { display: block; width: 100%; height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #E4C990, #B8935A); }
.receipt { position: relative; width: 100%; padding: 18px 18px 16px; border-radius: 16px; background: #FBF8F2; color: var(--ink); box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .8); }
.receipt__sum { display: block; font: 500 40px/1 var(--sans); letter-spacing: -.03em; }
.receipt__row { display: block; margin-top: 8px; font-size: 13px; color: rgba(28, 25, 21, .6); }
.receipt__ok { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1C1915; color: #fff; font-size: 16px; }
.formula { display: block; width: 100%; font-size: 15px; color: var(--ink-a); opacity: .75; }
.bubble { position: relative; max-width: 88%; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #182533; color: #fff; font-size: 14px; line-height: 1.35; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .8); }
.bubble b { display: block; font-weight: 500; color: #6ab3f3; margin-bottom: 2px; }
.bubble--right { align-self: flex-end; margin-left: auto; border-radius: 16px 16px 4px 16px; background: #2b5278; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: 100%; }
.week span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; border-radius: 12px; background: var(--soft); font-size: 12px; color: var(--ink-a); }
.week i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-a); }
.week i + i { margin-top: -1px; }
.week .week__off { opacity: .4; }
.label { width: 100%; padding: 16px 18px 14px; border-radius: 14px; background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 20px 34px -20px rgba(0, 0, 0, .7); }
/* офіційні знаки: LiqPay — вільний простір не менше висоти «L», мінімум 12 px; plata by mono — з брендбуку еквайрингу mono */
.logos { display: flex; align-items: center; gap: 22px; width: 100%; margin-top: 4px; }
/* 28 px, а коли картка вужча за обидва знаки (телефон 375: 253 px на 292) — обидва пропорційно менші,
   а не «plata by mono» під краєм картки (Дзенда, 25.09: «обрезано моно»). */
.logos img { height: auto; max-height: 28px; width: auto; min-width: 0; flex: 0 1 auto; }
.label img { height: 22px; width: auto; align-self: flex-start; }
.label__ttn { font-size: 13px; color: rgba(28, 25, 21, .6); }
.bars { display: flex; align-items: flex-end; gap: 8px; width: 100%; height: 96px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--ink-a); opacity: .85; }
.bars i:last-child { background: linear-gradient(180deg, #E4C990, #B8935A); opacity: 1; }
.fcard--brown { background: radial-gradient(120% 80% at 100% 0%, rgba(214, 168, 96, .38), transparent 55%), linear-gradient(165deg, #5A3E3B 0%, #3A2825 45%, #2A1B19 100%); }
.fcard--black { background: radial-gradient(110% 70% at 0% 100%, rgba(148, 118, 63, .32), transparent 60%), linear-gradient(160deg, #24201D 0%, #0E0C0B 55%, #050404 100%); }
.fcard--navy { background: radial-gradient(120% 80% at 100% 100%, rgba(122, 108, 230, .45), transparent 58%), linear-gradient(160deg, #3A3480 0%, #24214F 50%, #15122F 100%); }
.fcard--cream { background: radial-gradient(110% 70% at 100% 0%, rgba(201, 169, 110, .38), transparent 58%), linear-gradient(165deg, #FFFDF9 0%, #F4ECDE 55%, #E9DCC6 100%); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(28, 25, 21, .08); }
.fcard--cream img { box-shadow: 0 30px 50px -28px rgba(20, 16, 40, .45), 0 0 0 1px rgba(28, 25, 21, .08); }

/* ---------- «під ключ» ---------- */
.keys { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 8vw, 120px) 24px clamp(72px, 8vw, 120px); }
.keys__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); align-items: end; }
.keys__head p { margin: 0; max-width: 30em; color: var(--fg-2); font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; }
.step { padding-top: 22px; border-top: 1px solid var(--rule); }
.step__n { font-size: 14px; letter-spacing: .06em; color: var(--fg-3); }
.step h3 { margin: 14px 0 0; font: 400 clamp(22px, 2vw, 28px)/1.2 var(--display); letter-spacing: -.01em; }
.step p { margin: 10px 0 0; color: var(--fg-2); font-size: 16px; font-weight: 300; }
.keys__cta { margin-top: clamp(36px, 4vw, 56px); }
.keys--own { padding-bottom: 0; }
.keys--own .step h3 { margin-top: 0; }

/* ---------- смуги: сторінка чергує темне полотно, кремові й брунатну панелі ---------- */
.band { margin: clamp(56px, 7vw, 104px) 16px 0; border-radius: var(--r); padding-bottom: clamp(64px, 8vw, 104px); position: relative; isolation: isolate; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: .14; mix-blend-mode: overlay; }
.band > section { padding-top: clamp(56px, 7vw, 96px); }
.band--cream { background: radial-gradient(90% 60% at 100% 0%, rgba(201, 169, 110, .28), transparent 60%), linear-gradient(170deg, #F5EEE3 0%, #EEE6DA 50%, #E4D8C5 100%); color: var(--ink); --fg: var(--ink); --fg-2: rgba(28, 25, 21, .72); --fg-3: rgba(28, 25, 21, .5); --rule: rgba(28, 25, 21, .14); }
.band--brown { background: radial-gradient(100% 70% at 0% 0%, rgba(214, 168, 96, .32), transparent 55%), linear-gradient(165deg, #6B4B4E 0%, #563F41 45%, #3B2A2C 100%); color: var(--cream); }
.band--cream .window img { box-shadow: 0 30px 50px -30px rgba(20, 16, 40, .5), 0 0 0 1px rgba(28, 25, 21, .08); }
.band--cream .chatrows img { box-shadow: 0 24px 40px -24px rgba(20, 16, 40, .5); }
.band + .keys, .band + .sec, .band + .unique { padding-top: clamp(72px, 8vw, 120px); }

/* ---------- підвал ---------- */
.foot {
  display: flex; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 28px 24px 40px;
  border-top: 1px solid var(--line); color: var(--cream-2); font-size: 14px;
}
.foot a { text-decoration: none; }

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  :root { --r: 22px; --nav-h: 56px; --overlap: 42vw; }
  .nav { top: 10px; width: calc(100% - 20px); padding: 0 8px 0 20px; }
  .nav__link { display: none; }
  .brand { font-size: 22px; }

  .hero__copy { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 28px; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); letter-spacing: -.03em; }
  .hero__copy .btn { width: min(100%, 320px); }
  /* рівно 100vw: бічні картки менші й ховаються під центральну, логотипи по краях лишаються цілими */
  .fan__card { width: 44vw; }
  .fan__card--l, .fan__card--r { width: 38vw; margin-top: 12vw; transform: none; }
  .fan__card--l { margin-right: -10vw; }
  .fan__card--r { margin-left: -10vw; }

  .cases__head { padding: 0 20px; }
  .tabs { gap: 4px; }
  .tab { height: 36px; padding: 0 14px; font-size: 14px; }
  .arrow { display: none; }

  .track { --card-w: 86vw; gap: 12px; }
  .card, .card--gym { grid-template-columns: 1fr; min-height: 0; padding: 26px 20px 0; }
  .card--gym .card__text { order: 0; }
  .card__text { padding-bottom: 6px; }
  .card__name { font-size: 44px; }
  .card__list { font-size: 15px; }

  .card__screens--3 { margin-top: 8px; padding-bottom: 20px; gap: 16px; }
  .card__screens--3 .card__phones { gap: 10px; }
  .card__screens--1 { height: auto; }
  .card__screens--1 .dev { width: 62vw; }
  .card--gym { padding-bottom: 22px; }
  .card--gym .card__screens--1 { margin-top: 8px; }
  /* картки в стрічці одного зросту (найвища — SkinGlow): телефони одразу під текстом, запас — унизу */
  .card--gym { align-content: start; }
  .card__screens--roles { align-self: start; margin-top: 10px; gap: 12px; }
  .card__app { font-size: 11px; gap: 10px; }
  .card__app::before, .card__app::after { height: 9px; transform: translateY(4.5px); }
  .card__roles { gap: 8px; }
  .card__role figcaption { margin-top: 8px; font-size: 12.5px; }
  .card__win { padding-top: 16px; border-radius: 8px; }
  .card__win::before { left: 8px; top: 5px; transform: scale(.7); transform-origin: left top; }
  .card__crm figcaption { margin-top: 8px; font-size: 12.5px; }
  .card--next { min-height: 0; padding-bottom: 32px; }

  .auto, .sec, .keys__head, .unique { grid-template-columns: 1fr; gap: 20px; }
  .auto, .sec, .keys, .roles, .unique { padding-left: 20px; padding-right: 20px; }
  .feat__head { grid-template-columns: 1fr; gap: 14px; padding: 0 16px; }
  .arrows--inline { display: none; }
  .feat__rail { --pad: 16px; gap: 12px; }
  .fcard { flex-basis: 78vw; height: 104vw; padding: 24px 20px 0; }
  .art { left: 20px; right: 20px; bottom: 22px; top: 44%; }
  .band { margin-left: 8px; margin-right: 8px; }
  .band > section { padding-left: 16px; padding-right: 16px; }
  .sec__list li { font-size: 17px; padding: 16px 0; }
  .chatrows { margin-top: 24px; }
  .roles__row { grid-template-columns: 1fr; gap: 14px; }
  .roles__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roles__row .roles__brand { grid-column: 1 / -1; }
  .phone figcaption, .window figcaption { font-size: 12.5px; }
  .crm { padding-left: 20px; padding-right: 20px; }
  .crm__head { grid-template-columns: 1fr; gap: 16px; }
  .crm__grid { grid-template-columns: 1fr; gap: 18px; }
  .crm__mobile { grid-template-columns: 1fr; gap: 18px; }
  .crm__via { font-size: 11.5px; }
  .crm__phones { gap: 10px; }
  .unique__phones { justify-content: flex-start; gap: 14px; padding: 22px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .unique__phones::-webkit-scrollbar { display: none; }
  .unique__phones .dev { flex: 0 0 60vw; scroll-snap-align: center; }
  .unique__phones .dev:nth-child(2) { margin-bottom: 0; }
  .auto__list li { font-size: 17px; padding: 16px 0; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .keys__cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fan__card { animation: none; }
  .hero__bg img { animation: none; }
  .hero__bg img:first-child { opacity: 1; }
}

/* ---------- рух: усе на CSS і появі в кадрі; під пальцем нічого не рухається ---------- */
/* центральний iPhone у hero — три екрани по черзі (кросфейд, без JS) */
.dev__stack { position: relative; width: 100%; aspect-ratio: 390 / 844; overflow: hidden; }
.dev__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; animation: devcycle 13.5s ease-in-out infinite both; }
.dev__stack img:nth-child(2) { animation-delay: 4.5s; }
.dev__stack img:nth-child(3) { animation-delay: 9s; }
.fan__card--l .dev__stack img { animation-delay: -1.5s; } .fan__card--l .dev__stack img:nth-child(2) { animation-delay: 3s; } .fan__card--l .dev__stack img:nth-child(3) { animation-delay: 7.5s; }
.fan__card--r .dev__stack img { animation-delay: -3s; } .fan__card--r .dev__stack img:nth-child(2) { animation-delay: 1.5s; } .fan__card--r .dev__stack img:nth-child(3) { animation-delay: 6s; }
@keyframes devcycle { 0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; } }

/* паралакс фото першого екрана — scroll-driven, лише де підтримується */
@supports (animation-timeline: scroll()) {
  .hero__bg { inset: -14vh 0 0; animation: heroPar linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes heroPar { to { translate: 0 10vh; } }
}

/* поява секцій: клас .reveal ставить script.js, .in — коли елемент у кадрі (один раз) */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* предмети в картках можливостей оживають, коли картка в кадрі (.is-live) */
.js .fcard:not(.is-live) .art > * { opacity: 0; }
.fcard.is-live .art > * { animation: artin .6s var(--ease) both; }
.fcard.is-live .art > :nth-child(2) { animation-delay: .12s; }
.fcard.is-live .art > :nth-child(3) { animation-delay: .24s; }
.fcard.is-live .art > :nth-child(4) { animation-delay: .36s; }
.fcard.is-live .art > :nth-child(5) { animation-delay: .48s; }
.fcard.is-live .art > :nth-child(6) { animation-delay: .6s; }
.fcard.is-live .art > :nth-child(7) { animation-delay: .72s; }
.fcard.is-live .art > :nth-child(8) { animation-delay: .84s; }
@keyframes artin { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
/* запис: обране вікно спалахує золотом, бирка «Записано» приходить останньою */
.fcard.is-live .art--booking .pill--on { animation: artin .6s .24s both, pillon .55s 1.2s both; }
.fcard.is-live .art--booking .tag { animation-delay: 1.7s; }
@keyframes pillon { from { filter: grayscale(1) brightness(.6); } 60% { scale: 1.06; } to { filter: none; scale: 1; } }
/* чек: галочка домальовується */
.receipt__ok svg path { stroke-dasharray: 24; }
.js .fcard:not(.is-live) .receipt__ok svg path { stroke-dashoffset: 24; }
.fcard.is-live .receipt__ok svg path { stroke-dashoffset: 24; animation: draw .5s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* абонемент: шкала заповнюється */
.fcard.is-live .meter i { animation: meter 1s .7s var(--ease) both; }
@keyframes meter { from { width: 0; } }
/* чат: друге повідомлення — пізніше */
.fcard.is-live .art--chat .bubble--right { animation-delay: 1s; }
/* тиждень: дні загоряються по черзі, бирка — після */
.fcard.is-live .week span { animation: artin .45s var(--ease) both; }
.fcard.is-live .week span:nth-child(2) { animation-delay: .08s; } .fcard.is-live .week span:nth-child(3) { animation-delay: .16s; }
.fcard.is-live .week span:nth-child(4) { animation-delay: .24s; } .fcard.is-live .week span:nth-child(5) { animation-delay: .32s; }
.fcard.is-live .week span:nth-child(6) { animation-delay: .4s; } .fcard.is-live .week span:nth-child(7) { animation-delay: .48s; }
.fcard.is-live .art--week .tag { animation-delay: 1s; }
/* Нова Пошта: статуси перемикаються один за одним */
.fcard.is-live .art--np .pill:nth-of-type(1) { animation: artin .6s .12s both, blink .6s 1s both; }
.fcard.is-live .art--np .pill:nth-of-type(2) { animation: artin .6s .24s both, blink .6s 1.6s both; }
.fcard.is-live .art--np .pill--on { animation: artin .6s .36s both, pillon .55s 2.2s both; }
@keyframes blink { 50% { filter: brightness(1.7); } }
/* фінанси: стовпчики виростають */
.fcard.is-live .bars i { transform-origin: bottom; animation: grow .7s var(--ease) both; }
.fcard.is-live .bars i:nth-child(2) { animation-delay: .07s; } .fcard.is-live .bars i:nth-child(3) { animation-delay: .14s; }
.fcard.is-live .bars i:nth-child(4) { animation-delay: .21s; } .fcard.is-live .bars i:nth-child(5) { animation-delay: .28s; }
.fcard.is-live .bars i:nth-child(6) { animation-delay: .35s; } .fcard.is-live .bars i:nth-child(7) { animation-delay: .42s; }
@keyframes grow { from { transform: scaleY(0); } }

/* дотик мишею на компʼютері — ледь підняти */
@media (hover: hover) {
  .card, .fcard { transition: translate .35s var(--ease); }
  .card:hover, .fcard:hover { translate: 0 -4px; }
}

/* ---------- CTA посеред сторінки ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 96px) 24px 0;
}
.cta__text { margin: 0; font: 300 clamp(26px, 3vw, 40px)/1.1 var(--display); letter-spacing: -.025em; }
.cta__actions { display: flex; align-items: center; gap: 26px; }

/* ---------- FAQ ---------- */
.faq {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px);
  max-width: var(--max); margin: 0 auto; padding: clamp(72px, 8vw, 120px) 24px 0;
}
.faq h2 { margin: 0; font: 300 clamp(34px, 4.4vw, 60px)/1.04 var(--display); letter-spacing: -.03em; }
.faq__head p { margin: 16px 0 0; color: var(--cream-2); font-size: 17px; font-weight: 300; }
.faq__q { border-top: 1px solid var(--line); }
.faq__q:last-child { border-bottom: 1px solid var(--line); }
.faq__q summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 20px 0; font-size: clamp(17px, 1.4vw, 21px); font-weight: 400;
}
.faq__q summary::-webkit-details-marker { display: none; }
.faq__q summary::after { content: "+"; flex: none; font-size: 1.3em; font-weight: 300; line-height: 1; color: var(--cream-2); transition: rotate .3s var(--ease); }
.faq__q[open] summary::after { rotate: 45deg; }
.faq__q p { margin: 0 0 22px; max-width: 40em; color: var(--cream-2); font-weight: 300; line-height: 1.5; }

/* ---------- форма заявки (у брунатній смузі) ---------- */
.lead {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; align-items: end;
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); border-radius: 22px;
  background: rgba(27, 21, 18, .32); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.lead h3 { grid-column: 1 / -1; margin: 0; font: 400 clamp(24px, 2.2vw, 32px)/1.15 var(--display); letter-spacing: -.01em; }
.lead > p { grid-column: 1 / -1; margin: -4px 0 6px; color: var(--cream-2); font-weight: 300; }
.lead > p a { color: var(--cream); }
.lead label { display: grid; gap: 6px; font-size: 13px; color: var(--cream-3); }
.lead input {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06); color: var(--cream); font: 400 16px var(--sans);
}
.lead input::placeholder { color: rgba(244, 235, 224, .4); }
.lead input:focus { outline: none; border-color: rgba(228, 201, 144, .85); background: rgba(255, 255, 255, .09); }
.lead input[aria-invalid="true"] { border-color: #E08A74; }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead button { margin-top: 6px; }
.lead button[disabled] { opacity: .6; pointer-events: none; }
.lead__note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--cream-3); }
.lead__note a { color: var(--cream-2); }
.lead__done, .lead__err { grid-column: 1 / -1; margin: 4px 0 0; font-size: 17px; }
.lead__done { color: #D6EBCF; }
.lead__err { color: #F2BFAE; }
.lead__err a { color: var(--cream); }
.lead.is-sent label, .lead.is-sent button, .lead.is-sent .lead__note { display: none; }

.foot__links { display: flex; gap: 18px; }

@media (max-width: 760px) {
  .fan__card--r { display: none; }                       /* на телефоні два iPhone, не три */
  .fan__card--l { margin-right: -5vw; }
  .phone figcaption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cta { flex-direction: column; align-items: flex-start; padding-left: 20px; padding-right: 20px; }
  .faq { grid-template-columns: 1fr; gap: 12px; padding-left: 20px; padding-right: 20px; }
  .lead { grid-template-columns: 1fr; }
  .lead button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: 0 0; transition: none; }
  .js .fcard:not(.is-live) .art > * { opacity: 1; }
  .fcard.is-live .art *, .fcard.is-live .art > * { animation: none !important; }
  .js .fcard:not(.is-live) .receipt__ok svg path { stroke-dashoffset: 0; }
  .dev__stack img { animation: none; }
  .dev__stack img:first-child { opacity: 1; }
  .hero__bg { animation: none; }
}

/* ---------- люкс-деталі (01.10) ---------- */
::selection { background: #E4C990; color: #1B1512; }
:focus-visible { outline: 2px solid #E4C990; outline-offset: 3px; border-radius: 4px; }
/* wordmark: сериф, щільний трекінг, золота крапка */
.wordmark { font: 500 24px/1 var(--serif); letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.wordmark i { display: inline-block; width: .22em; height: .22em; margin-left: .1em; border-radius: 50%; background: linear-gradient(180deg, #E4C990, #B8935A); vertical-align: baseline; }
.foot__brand { display: inline-flex; align-items: baseline; gap: 10px; }
.foot__brand .wordmark { font-size: 20px; color: var(--cream); }
/* заголовок першого екрана зʼявляється рядок за рядком */
.hero h1 .l { display: block; animation: rise .9s var(--ease) both; }
.hero h1 .l:nth-child(2) { animation-delay: .08s; }
.hero__lead { animation: rise .9s .18s var(--ease) both; }
.hero__copy .btn { animation: rise .9s .26s var(--ease) both; }
/* кнопки: блик при наведенні */
.btn--light { background: linear-gradient(100deg, #FBF5EA 0%, #EBDCC2 38%, #FFFBF3 50%, #EBDCC2 62%, #FBF5EA 100%); background-size: 260% 100%; background-position: 100% 0; transition: background-position .7s var(--ease), transform .2s var(--ease), box-shadow .3s; }
.btn--light:hover { background-position: 0 0; box-shadow: 0 14px 34px -12px rgba(214, 168, 96, .7), inset 0 1px 0 rgba(255, 255, 255, .7); }
/* рядок «Працюють на Dzenda» */
.clients { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 3vw, 44px); margin: 0 auto clamp(28px, 4vw, 44px); padding: 0 24px; opacity: .78; }
.clients__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.clients__mfg { height: 26px; width: auto; }
.clients__sg { font: 500 17px/1 var(--serif); letter-spacing: .3em; text-indent: .3em; color: var(--cream); }
/* «ваші» — одна фраза */
.own { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 8vw, 120px) 24px 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.own h2 { margin: 0; font: 300 clamp(34px, 4.4vw, 60px)/1.04 var(--display); letter-spacing: -.03em; }
.own p { margin: 0; max-width: 34em; font-size: clamp(18px, 1.6vw, 24px); font-weight: 300; line-height: 1.45; color: var(--cream-2); }
/* CRM: два великі екрани */
.crm__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) {
  .clients { flex-wrap: wrap; gap: 14px 22px; }
  .own { grid-template-columns: 1fr; gap: 14px; padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .l, .hero__lead, .hero__copy .btn { animation: none; }
}

/* ---------- кому підходить — ніші набором, без іконок ---------- */
.who { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 8vw, 120px) 24px 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.who h2 { margin: 0; font: 300 clamp(34px, 4.4vw, 60px)/1.04 var(--display); letter-spacing: -.03em; }
.who__head p { margin: 16px 0 0; max-width: 24em; color: var(--cream-2); font-size: 17px; font-weight: 300; }
.who__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.who__list li { padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: clamp(15px, 1.2vw, 17px); color: var(--cream-2); transition: color .25s, border-color .25s, background-color .25s; }
.who__list li:hover { color: var(--ink); background: #E4C990; border-color: #E4C990; }
@media (max-width: 760px) { .who { grid-template-columns: 1fr; gap: 16px; padding-left: 20px; padding-right: 20px; } .who__list li { padding: 10px 14px; font-size: 14px; } }

/* ---------- ціни ---------- */
.price { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 8vw, 120px) 24px 0; }
.price__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); align-items: end; }
.price h2 { margin: 0; font: 300 clamp(34px, 4.4vw, 60px)/1.04 var(--display); letter-spacing: -.03em; }
.price__head p { margin: 0; max-width: 30em; color: var(--cream-2); font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; }
.price__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 56px); }
.plan {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 2.6vw, 36px); border-radius: 22px; background: rgba(244, 235, 224, .04); box-shadow: inset 0 0 0 1px rgba(244, 235, 224, .12);
}
.plan::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: .12; mix-blend-mode: overlay; }
.plan--main { background: radial-gradient(110% 70% at 100% 0%, rgba(214, 168, 96, .32), transparent 58%), linear-gradient(165deg, #5A3E3B 0%, #3A2825 55%, #2A1B19 100%); box-shadow: inset 0 0 0 1px rgba(228, 201, 144, .35); }
.plan__name { margin: 0; font: 400 clamp(22px, 2vw, 28px)/1.1 var(--display); letter-spacing: -.01em; }
.plan__price { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.plan__price b { font: 500 clamp(36px, 3.2vw, 48px)/1 var(--sans); letter-spacing: -.035em; }
.plan__price span { font-size: 14px; color: var(--cream-3); }
.plan__for { margin: 0; color: var(--cream-2); font-weight: 300; min-height: 2.6em; }
.plan__list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--cream-2); }
.plan__list li::before { content: "— "; color: #E4C990; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(244, 235, 224, .28); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(244, 235, 224, .6); }
.price__terms { list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; font-size: 15px; color: var(--cream-2); font-weight: 300; }
.price__terms li::before { content: "· "; color: #E4C990; }
@media (max-width: 760px) {
  .price { padding-left: 20px; padding-right: 20px; }
  .price__head { grid-template-columns: 1fr; gap: 14px; }
  .price__grid { grid-template-columns: 1fr; gap: 14px; }
  .plan .btn { width: 100%; }
  .price__terms { grid-template-columns: 1fr; }
}

/* ---------- VOIN: у рядку брендів, картка кейса, три iPhone на телефоні ---------- */
.clients__voin { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.clients__voin b { font: 800 19px/1 var(--sans); letter-spacing: .01em; color: var(--cream); }
.clients__voin i { font: 700 6.5px/1 var(--sans); letter-spacing: .42em; color: #e4322b; font-style: normal; margin-top: 3px; }
.card--voin { background: radial-gradient(90% 60% at 100% 100%, rgba(228, 50, 43, .18), transparent 60%), linear-gradient(160deg, #1e2128 0%, #14161b 55%, #0f1115 100%); color: #f2f2f5; --card-line: rgba(242, 242, 245, .14); }
.card--voin .card__kind { color: #e4322b; }
.card--voin .card__app { --app: #e4322b; }
@media (max-width: 760px) {
  .fan__card--r { display: block; }                      /* VOIN має бути і на телефоні — три iPhone, вужчі */
  .fan__card { width: 40vw; }
  .fan__card--l, .fan__card--r { width: 35vw; margin-top: 11vw; transform: none; }
  .fan__card--l { margin-right: -9vw; }
  .fan__card--r { margin-left: -9vw; }
  .clients__voin b { font-size: 17px; } .clients__voin i { font-size: 6px; }
}
