/* ClientHeart v5 — світла сторінка, справжні роботи на знімках (назви розмиті в самих картинках). */
:root {
  --bg: #faf9f6;
  --band: #f2f1ec;
  --paper: #fff;
  --ink: #111214;
  --ink-2: #2d2f34;
  --muted: #676a71;
  --soft: #9a9ca2;
  --line: rgba(17, 18, 20, .09);
  --line-2: rgba(17, 18, 20, .16);
  --heart: #e2483d;
  --heart-2: #cf3a30;
  --heart-soft: #fdecea;
  --r: 22px;
  --shadow: 0 1px 2px rgba(17, 18, 20, .06), 0 14px 34px -16px rgba(17, 18, 20, .22);
  --shadow-lg: 0 2px 6px rgba(17, 18, 20, .05), 0 34px 70px -26px rgba(17, 18, 20, .34);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3 5 8.6l4.4-5' fill='none' stroke='%23e2483d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
section[id], main[id] { scroll-margin-top: 76px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--heart { background: var(--heart); color: #fff; box-shadow: 0 12px 26px -12px rgba(226, 72, 61, .75); }
.btn--heart:hover { background: var(--heart-2); }
.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .38); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14.5px; background: var(--ink); color: #fff; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, .84); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 22px; height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--heart); text-decoration: none; flex: none; }
.mark svg { width: 26px; height: 26px; }
.mark__txt b { display: block; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.01em; line-height: 1.1; }
.mark__txt small { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.top__nav { display: none; }
.lang { margin-left: auto; display: flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.lang button { border: 0; background: none; cursor: pointer; padding: 6px 10px; border-radius: 999px; font: 600 12.5px/1 var(--font); color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.top .btn--sm { display: none; }

/* ---------- перший екран ---------- */
.hero { position: relative; overflow: hidden; padding: 34px 0 0; }
.hero__text { position: relative; z-index: 2; }
.kicker { margin: 0 0 16px; color: var(--heart); font: 700 12px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0 0 20px; font-weight: 800; font-size: clamp(34px, 9.2vw, 78px); line-height: 1.02; letter-spacing: -.035em; }
h1 em { font-style: normal; color: var(--heart); }
.lead { margin: 0 0 26px; max-width: 38em; color: var(--ink-2); font-size: clamp(17px, 2.1vw, 19.5px); line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero__cta .btn { flex: 1 1 100%; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14.5px; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--heart-soft) var(--check) center / 11px no-repeat; }

.hero__text > * { animation: rise .9s var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .24s; }
.hero__text > :nth-child(5) { animation-delay: .32s; }
.wall { animation: fade-in 1.4s .2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
@keyframes fade-in { from { opacity: 0; } }

/* стіна робіт: на телефоні — дві стрічки, що їдуть убік */
.wall {
  display: flex; flex-direction: column; gap: 14px; margin-top: 38px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.wall__col { overflow: hidden; }
.wall__col--c { display: none; }
.wall__track { display: flex; width: max-content; will-change: transform; }
.wall.is-looped .wall__track { animation: wall-x 75s linear infinite; }
.wall.is-looped .wall__col--b .wall__track { animation-duration: 95s; animation-direction: reverse; }
.wall.is-paused .wall__track { animation-play-state: paused; }
@keyframes wall-x { to { transform: translate3d(-50%, 0, 0); } }
@keyframes wall-y { to { transform: translate3d(0, -50%, 0); } }

.wc { flex: none; margin: 0 14px 0 0; overflow: hidden; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); }
.wc img { display: block; width: 100%; height: auto; }
.wc--d { width: 248px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.wc__bar { display: flex; align-items: center; gap: 4px; height: 18px; padding: 0 8px; background: #f3f2ef; border-bottom: 1px solid var(--line); }
.wc__bar i { width: 6px; height: 6px; border-radius: 50%; background: #d6d3cd; }
.wc__bar b { margin-left: 8px; width: 40%; height: 7px; border-radius: 4px; background: #e4e1dc; }
.wc--m { width: 116px; padding: 3px; border-radius: 19px; background: #15161a; }
.wc--m img { border-radius: 16px; }
.wall__note { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin-top: 14px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.wall__note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--heart); box-shadow: 0 0 0 4px var(--heart-soft); }

/* ---------- секції ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec--work { background: var(--band); }
.head { max-width: 780px; margin-bottom: clamp(34px, 5vw, 56px); }
h2 { margin: 0 0 16px; font-weight: 800; font-size: clamp(31px, 5.4vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
h2 b { font-weight: 800; color: var(--soft); }
.head .lead { margin-bottom: 0; }

/* що робимо */
.svc { display: grid; gap: 18px; }
.svc__card {
  display: flex; flex-direction: column; overflow: hidden; padding-bottom: 26px;
  background: var(--paper); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.svc__card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.svc__vis { position: relative; height: 200px; overflow: hidden; }
.svc__vis img { position: absolute; display: block; box-shadow: var(--shadow); transition: transform .6s var(--ease); }
.svc__vis--site { background: #e7f1e9; }
.svc__vis--site img { left: 26px; top: 30px; width: 128%; max-width: none; border-radius: 10px; }
.svc__vis--bot { background: #dfeccf; }
.svc__vis--app { background: #f4ece2; }
.svc__vis--bot img, .svc__vis--app img { width: 132px; top: 26px; border-radius: 18px; border: 3px solid #15161a; }
.svc__vis--bot img:first-child, .svc__vis--app img:first-child { left: calc(50% - 142px); transform: rotate(-5deg); }
.svc__vis--bot img:last-child, .svc__vis--app img:last-child { left: calc(50% + 6px); top: 40px; transform: rotate(4deg); }
.svc__card:hover .svc__vis--site img { transform: translate(-10px, -6px); }
.svc__card:hover .svc__vis img:first-child { transform: rotate(-7deg) translateY(-6px); }
.svc__card:hover .svc__vis img:last-child { transform: rotate(6deg) translateY(-10px); }
.svc__vis--site:hover img { transform: translate(-10px, -6px); }
.svc__n { margin: 22px 26px 6px; color: var(--heart); font: 700 12.5px/1 var(--font); letter-spacing: .12em; }
.svc__card h3 { margin: 0 26px 10px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.svc__card > p:not(.svc__n) { margin: 0 26px 18px; color: var(--ink-2); font-size: 16px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: auto 26px 0; padding: 0; }
.chips li { padding: 6px 11px; border-radius: 999px; background: #f3f2ee; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.stack { margin: 30px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; text-align: center; }
.stack > span:first-child { color: var(--ink); font-weight: 600; }

/* роботи */
.feat { display: grid; gap: 30px; align-items: center; margin-bottom: clamp(72px, 10vw, 128px); }
.feat__vis { position: relative; padding: 7% 7% 12%; border-radius: 28px; }
.feat--market .feat__vis { background: #e3efe6; }
.feat--shop .feat__vis { background: #e9e6f3; }
.feat--lux .feat__vis { background: #ebe7de; }
.feat--box .feat__vis { background: #f1e7da; }
.browser { position: relative; margin: 0; width: 90%; overflow: hidden; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; background: #f4f3f0; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: #d8d5cf; }
.browser__bar b { margin-left: 12px; width: 36%; height: 9px; border-radius: 5px; background: #e5e2dd; }
.browser img, .browser video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #f4f3f0; }
.phone { margin: 0; overflow: hidden; padding: clamp(3px, .45vw, 6px); background: #15161a; border-radius: clamp(20px, 2.6vw, 34px); box-shadow: var(--shadow-lg); }
.phone img { display: block; width: 100%; height: auto; border-radius: clamp(17px, 2.2vw, 29px); }
.feat__vis .phone { position: absolute; right: 6%; bottom: 7%; width: 28%; }
.feat__vis--two { display: flex; align-items: flex-start; justify-content: center; gap: 6%; padding-bottom: 7%; }
.feat__vis--two .phone { position: relative; right: auto; bottom: auto; width: 38%; }
.feat__vis--two .phone + .phone { margin-top: 12%; }
.feat__tags { margin: 0 0 14px; color: var(--heart); font: 700 12px/1.4 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.feat h3 { margin: 0 0 16px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.feat__text > p:not(.feat__tags) { margin: 0 0 22px; color: var(--ink-2); }
.feat__list { list-style: none; display: grid; gap: 11px; margin: 0; padding: 0; }
.feat__list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 600; }
.feat__list li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--paper) var(--check) center / 12px no-repeat; box-shadow: 0 0 0 1px var(--line); }

/* боти */
.bots { padding-top: 8px; }
.head--sub h2 { font-size: clamp(28px, 4.4vw, 46px); }
.bots__row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 70%); gap: 16px;
  margin: 0 -16px; padding: 6px 16px 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.bots__row::-webkit-scrollbar { display: none; }
.bot { scroll-snap-align: start; }
.bot .phone { margin-bottom: 18px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.bot:hover .phone { transform: translateY(-6px); }
.bot h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.bot p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 40px; padding: 22px 24px; border-radius: var(--r); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.more__h { margin: 0; font-weight: 700; }
.more ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; color: var(--ink-2); }
.more li { display: flex; gap: 8px; }
.more li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--heart); }

/* як працюємо */
.steps { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.steps li { padding: 26px; background: var(--paper); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.steps b { display: block; margin-bottom: 8px; font-size: 20px; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* контакт */
.sec--contact { padding-top: 0; }
.cta { position: relative; overflow: hidden; padding: clamp(34px, 6vw, 84px); border-radius: 30px; background: #141518; color: #fff; }
.cta::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 72, 61, .5), transparent 66%); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta .kicker { color: #ff8278; }
.cta h2 { max-width: 15em; color: #fff; }
.cta h2 b { color: rgba(255, 255, 255, .5); }
.cta .lead { color: rgba(255, 255, 255, .74); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

.foot { padding: 30px 0 44px; color: var(--muted); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.foot p { margin: 0; }
.foot b { color: var(--ink-2); font-weight: 600; }

/* поява під час прокрутки (лише з JS) */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-float] { will-change: transform; }

/* ---------- планшет ---------- */
@media (min-width: 760px) {
  .wrap { padding: 0 32px; }
  .hero { padding-top: 56px; }
  .hero__cta .btn { flex: 0 0 auto; }
  .wc--d { width: 300px; }
  .wc--m { width: 140px; }
  .svc { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .bots__row { margin: 0 -32px; padding: 6px 32px 22px; grid-auto-columns: minmax(240px, 40%); }
}

/* ---------- комп'ютер ---------- */
@media (min-width: 1000px) {
  .top__nav { display: flex; gap: 26px; margin-left: auto; }
  .top__nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
  .top__nav a:hover { color: var(--heart); }
  .lang { margin-left: 4px; }
  .top .btn--sm { display: inline-flex; }

  .hero { display: flex; align-items: center; min-height: min(840px, calc(100svh - 64px)); padding: 0; }
  .hero__in { width: 100%; }
  .hero__text { max-width: min(690px, 50vw); padding: 64px 0 96px; }
  h1 { font-size: clamp(44px, 4.3vw, 64px); }
  .wall {
    position: absolute; z-index: 1; top: -180px; bottom: -180px; right: -60px; width: 46vw; max-width: 820px;
    flex-direction: row; gap: 20px; margin: 0; transform: rotate(-6deg);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%); mask-image: linear-gradient(90deg, transparent 0, #000 20%);
  }
  .wall__col { flex: 1; overflow: visible; -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); }
  .wall__col--b { flex: 0 0 24%; }
  .wall__col--c { display: block; }
  .wall__track { flex-direction: column; width: auto; }
  .wall.is-looped .wall__track { animation: wall-y 90s linear infinite; }
  .wall.is-looped .wall__col--b .wall__track { animation-duration: 120s; animation-direction: reverse; }
  .wall.is-looped .wall__col--c .wall__track { animation-duration: 105s; }
  .wc { margin: 0 0 20px; }
  .wc--d, .wc--m { width: 100%; }
  .wall__col--c .wc--m { width: 58%; margin-left: auto; margin-right: auto; }
  .wall__note { position: absolute; right: 32px; bottom: 26px; margin: 0; padding: 8px 14px 8px 12px; width: auto; max-width: none; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); color: var(--ink-2); }

  .svc { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .feat { grid-template-columns: 1.2fr 1fr; gap: 64px; }
  .feat--flip .feat__vis { order: 2; }
  .bots__row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; overflow: visible; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1400px) {
  .wall { right: calc((100vw - 1400px) / 2 - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall.is-looped .wall__track, .hero__text > *, .wall { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .svc__card, .svc__vis img, .bot .phone { transition: none; }
}
