/* ==========================================================================
   OS Web Digital — Premium E-commerce Growth
   Design direction: off-white ground, near-black editorial type,
   ONE accent (electric blue). Mobile-first.
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography blocks
   5.  Buttons
   6.  Header & nav
   7.  Hero + dashboard visual
   8.  Problems
   9.  System (dark) + funnel + method
   10. Solution cards
   11. Cases
   14. Consultation flow
   15. Final CTA
   16. Footer
   17. Modal + form
   19. Motion / reveal
   ========================================================================== */

/* ─────────────────────────── 1. TOKENS ─────────────────────────── */
:root {
  /* colour */
  --ink:        #0A0B0D;
  --ink-70:     #3D4046;
  --ink-50:     #6B6F76;
  --ink-30:     #A8ACB3;
  --ink-12:     #DEE0E4;
  --ink-06:     #EDEEF1;

  --bg:         #FAFAF9;
  --surface:    #FFFFFF;
  --dark:       #0A0B0D;
  --dark-soft:  #15171A;

  --accent:     #1F49FF;
  --accent-700: #1436D6;
  --accent-100: #E9EEFF;

  --ok:         #12855A;

  /* type */
  --font: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", "Arial", "Noto Sans", sans-serif;

  /* spacing / shape */
  --gutter: 20px;
  --maxw: 1240px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(10, 11, 13, .05), 0 4px 12px rgba(10, 11, 13, .04);
  --shadow-md: 0 2px 4px rgba(10, 11, 13, .05), 0 12px 32px rgba(10, 11, 13, .07);
  --shadow-lg: 0 8px 24px rgba(10, 11, 13, .08), 0 32px 64px rgba(10, 11, 13, .10);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 64px;
}

@media (min-width: 768px)  { :root { --gutter: 32px; --header-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* ─────────────────────── 2. RESET & BASE ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:not([class]) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.accent { color: var(--accent); }

/* ────────────────── 3. LAYOUT PRIMITIVES ────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 11vw, 132px); }

/* секція одразу після hero — коротший верхній відступ */
.section--problems { padding-top: clamp(48px, 6vw, 76px); }

/* секція «Наш підхід» — світла, як і сусідні */
.section--approach { background: var(--surface); border-block: 1px solid var(--ink-12); }

.section--cases  { background: var(--surface); border-block: 1px solid var(--ink-12); }
.section--consult{ background: var(--surface); border-top: 1px solid var(--ink-12); }

/* ─────────────────── 4. TYPOGRAPHY BLOCKS ─────────────────── */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--wide { max-width: 880px; }

.section__title {
  font-size: clamp(32px, 6.2vw, 60px);
  font-weight: 800;
  margin-bottom: 20px;
  text-wrap: balance;
}

.section__lead {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 62ch;
}
.section__lead + .section__lead { margin-top: 16px; }

/* ─────────────────────── 5. BUTTONS ─────────────────────── */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  min-height: 46px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--accent); box-shadow: 0 4px 14px rgba(31, 73, 255, .22); }
.btn--primary:hover { --btn-bg: var(--accent-700); box-shadow: 0 8px 22px rgba(31, 73, 255, .28); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink-12);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn--sm  { padding: 10px 18px; min-height: 40px; font-size: 14px; }
.btn--lg  { padding: 16px 28px; min-height: 54px; font-size: 16px; }
.btn--block { width: 100%; }

.btn__arrow { transition: transform .18s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ──────────────────── 6. HEADER & NAV ──────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 250, 249, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--ink-12); }

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }

/* «OS» уже є всередині знака — у тексті поруч лишається тільки Web Digital */
.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;        /* та сама скруглість, що була у попереднього знака */
  flex: none;
}

.logo__text {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.nav { display: flex; align-items: center; gap: 8px; }

.nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-70);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--ink-06); }
.nav__cta { margin-left: 8px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 899px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--ink-12);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link { padding: 14px 4px; font-size: 17px; font-weight: 600; color: var(--ink); border-radius: var(--r-sm); }
  .nav__cta { margin: 8px 0 0; width: 100%; }
}

/* ───────────────────────── 7. HERO ───────────────────────── */
.hero {
  position: relative;
  /* нижній відступ менший за верхній: стрічка напрямків уже дає повітря,
     інакше між нею та блоком «Ми зможемо вам допомогти» зяяла порожнеча */
  padding-block: clamp(40px, 7vw, 84px) clamp(32px, 4vw, 52px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -160px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(31, 73, 255, .10), transparent 62%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

.hero__title {
  font-size: clamp(44px, 12.5vw, 96px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero__actions .btn { flex: 1 1 auto; }

.hero__micro { font-size: 14px; color: var(--ink-50); }

/* Стрічка напрямків: по центру, з повільним «плаванням».
   Анімується лише transform — це робота композитора GPU, без перерахунку
   лейауту, тож на швидкість завантаження не впливає. Рух вмикається,
   тільки поки блок у в'юпорті (клас .is-floating з main.js). */
.hero__strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 12px;
  max-width: 700px;            /* усі шість в один рядок не влазять: 3 + 3 виглядає рівніше */
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--ink-12);
}

/* на десктопі даємо плиткам більше повітря */
@media (min-width: 900px) {
  .hero__strip {
    gap: 18px 16px;
    max-width: 740px;
    padding-top: 38px;
  }
}

/* Однакові тривалість і фаза для всіх плиток — рухаються разом,
   тому в рядку завжди стоять на одній висоті. */
.hero__strip li {
  animation: chipFloat 7s ease-in-out infinite;
  animation-play-state: paused;
}
.hero__strip.is-floating li { animation-play-state: running; }

@keyframes chipFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -7px, 0); }
}

.hero__strip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(10, 11, 13, .04), 0 8px 20px rgba(10, 11, 13, .06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}

.hero__strip span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 73, 255, .14);
  transition: box-shadow .25s var(--ease);
}

.hero__strip li:hover span {
  transform: translateY(-3px);
  border-color: rgba(31, 73, 255, .45);
  box-shadow: 0 2px 4px rgba(10, 11, 13, .05), 0 14px 28px rgba(31, 73, 255, .16);
}
.hero__strip li:hover span::before { box-shadow: 0 0 0 5px rgba(31, 73, 255, .2); }

@media (max-width: 560px) {
  .hero__strip { gap: 9px; }
  .hero__strip span { padding: 9px 15px; font-size: 13px; gap: 8px; }
  .hero__strip span::before { width: 6px; height: 6px; }
  @keyframes chipFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -5px, 0); }
  }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* dashboard composition */
.dash {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.dash__card {
  background: var(--surface);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.dash:hover .dash__card--main { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.dash__card--main { grid-column: 1 / -1; padding: 22px; }
.dash__card--metric { display: flex; flex-direction: column; gap: 2px; }
/* дворядкова висота підпису, щоб цифри в трьох картках стояли на одній лінії */
.dash__card--metric .dash__label { min-height: 3.2em; }

.dash__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }

.dash__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.dash__value {
  display: block;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-block: 4px 12px;
}
.dash__value--sm { font-size: clamp(20px, 3.4vw, 26px); margin-bottom: 2px; }
.dash__to { color: var(--ink-30); }
.dash__delta { font-size: 12px; color: var(--ink-50); }

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.chip--accent { background: var(--accent-100); color: var(--accent-700); }

.spark { width: 100%; height: 84px; }
.spark__line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.6s var(--ease) forwards;
  animation-play-state: paused;
}
.is-visible .spark__line { animation-play-state: running; }
.spark__area { opacity: 0; animation: fade .9s var(--ease) .5s forwards; animation-play-state: paused; }
.is-visible .spark__area { animation-play-state: running; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.dash__bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 6px;
  height: 46px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-06);
}
.dash__bars span {
  height: 0;
  background: var(--ink-06);
  border-radius: 3px;
  transition: height .8s var(--ease);
}
.dash__bars span:nth-child(n+6) { background: var(--accent); opacity: .85; }
.is-visible .dash__bars span { height: var(--h); }
.dash__bars span:nth-child(2) { transition-delay: .05s; }
.dash__bars span:nth-child(3) { transition-delay: .1s; }
.dash__bars span:nth-child(4) { transition-delay: .15s; }
.dash__bars span:nth-child(5) { transition-delay: .2s; }
.dash__bars span:nth-child(6) { transition-delay: .25s; }
.dash__bars span:nth-child(7) { transition-delay: .3s; }
.dash__bars span:nth-child(8) { transition-delay: .35s; }

.dash__split {
  display: block;
  height: 6px;
  margin: 10px 0 8px;
  border-radius: 999px;
  background: var(--ink-06);
  overflow: hidden;
}
.dash__split i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .9s var(--ease) .3s;
}
.is-visible .dash__split i { width: var(--p); }

.dash__delta { margin-top: auto; }

.dash__caption {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-50);
  padding-inline: 2px;
}

@media (min-width: 560px) {
  .dash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ─────────────────────── 8. PROBLEMS ─────────────────────── */
.problems {
  display: grid;
  gap: 1px;
  background: var(--ink-12);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.problem {
  position: relative;
  background: var(--surface);
  padding: clamp(24px, 4vw, 40px);
  transition: background-color .25s var(--ease);
}
.problem::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s var(--ease);
}
.problem:hover { background: #FCFCFF; }
.problem:hover::after { transform: scaleY(1); }

.problem__num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}

.problem__title {
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}

.problem__text { font-size: 15px; line-height: 1.6; color: var(--ink-70); max-width: 42ch; }

@media (min-width: 700px)  { .problems { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .problems { grid-template-columns: repeat(3, 1fr); } }

/* ──────────────── 9. SYSTEM (цитата про підхід) ──────────────── */
/* після видалення двох панелей заголовку не потрібен великий нижній відступ —
   цитата має власний margin-top */
#system .section__head { margin-bottom: 0; }

/* ─── Воронка: 5 кроків, кожен наступний вужчий ───
   Ширина задається інлайн через --w, синій підтон — через --tint.
   На мобільних звуження вимкнене: інакше текст у нижніх кроках
   стискається до нечитабельного. */
.funnel {
  max-width: 880px;
  margin: clamp(36px, 5vw, 56px) auto 0;
}

.funnel__list { display: grid; gap: 10px; }

.funnel__step {
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--ink-12);
  border-radius: 16px;
  background: rgba(31, 73, 255, var(--tint, .06));
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.funnel__step:hover { transform: translateY(-2px); border-color: rgba(31, 73, 255, .45); }

@media (min-width: 700px) {
  .funnel__step { width: var(--w); padding: 18px 26px; gap: 20px; }
}

.funnel__num {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.funnel__name { font-size: 17px; margin-bottom: 4px; }
.funnel__text { font-size: 14.5px; line-height: 1.5; color: var(--ink-70); }

/* крок, на якому бізнес заробляє — єдиний суцільний акцент */
.funnel__step--key {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(31, 73, 255, .32);
}
.funnel__step--key .funnel__num,
.funnel__step--key .funnel__name { color: #fff; }
.funnel__step--key .funnel__text { color: rgba(255, 255, 255, .86); }

.system__quote {
  margin: clamp(32px, 4.5vw, 48px) auto 0;
  font-size: clamp(19px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.35;
  max-width: 30ch;
  text-align: center;
  text-wrap: balance;
}

/* ────────────────── 10. SOLUTION CARDS ────────────────── */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.card__title { font-size: 21px; margin-bottom: 14px; }

/* Фото внизу картки. margin-top:auto притискає його до низу,
   тож у сусідніх картках з різною довжиною тексту фото стоять на одній лінії. */
.card__media {
  margin-top: auto;
  padding-top: 22px;
}
.card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;      /* у скріншотах сайтів шапка важливіша за низ */
  border: 1px solid var(--ink-12);   /* світлі скріншоти інакше зливаються з карткою */
  border-radius: 12px;
}

.card__media--empty span {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--ink-12);
  border-radius: 12px;
  background:
    repeating-linear-gradient(-45deg, var(--ink-06) 0 8px, transparent 8px 16px);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-30);
}
.card__problem {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  line-height: 1.5;
}
.card__text { font-size: 15px; color: var(--ink-70); line-height: 1.6; }

/* ───────────────────────── 11. CASES ───────────────────────── */
.cases { display: grid; gap: clamp(20px, 3vw, 32px); }

.case {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(22px, 3.5vw, 40px);
  background: var(--bg);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-xl);
  transition: box-shadow .3s var(--ease);
}
.case:hover { box-shadow: var(--shadow-md); }
@media (min-width: 900px) {
  .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
}

.case__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.case__title {
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.12;
  margin-bottom: 22px;
  text-wrap: balance;
}

.case__story { display: grid; gap: 12px; margin-bottom: 26px; }
.case__row { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: baseline; }
.case__k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.case__row p { font-size: 15px; color: var(--ink-70); line-height: 1.55; }
@media (max-width: 520px) {
  .case__row { grid-template-columns: 1fr; gap: 2px; }
}

.case__results { padding-top: 22px; border-top: 1px solid var(--ink-12); }
.case__resultsLabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 16px;
}
.case__metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 18px; }

.metric { display: grid; gap: 4px; }
.metric__k { font-size: 12px; font-weight: 600; color: var(--ink-50); }
.metric__v {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.metric__b { font-size: 11px; color: var(--ink-30); }

/* Скріншот кейсу — клікабельний: відкривається у вікні перегляду.
   У картці показуємо верхню частину в пропорції 16:10, щоб усі кейси
   мали однакову висоту; повне зображення видно вже у вікні. */
.case__shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--ink-12);
  cursor: zoom-in;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.case__shot:hover { border-color: rgba(31, 73, 255, .45); box-shadow: 0 12px 30px rgba(31, 73, 255, .16); }

.case__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform .35s var(--ease);
}
.case__shot:hover img { transform: scale(1.02); }

/* підказка, що по скріншоту можна клікнути */
.case__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 11, 13, .74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.case__shot:hover .case__zoom,
.case__shot:focus-visible .case__zoom {
  background: var(--accent);
  transform: translateY(-2px);
}

.cases__note {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(22px, 3vw, 32px);
  background: var(--accent-100);
  border-radius: var(--r-lg);
}
.cases__note p { font-size: 15px; line-height: 1.65; color: var(--ink-70); max-width: 70ch; }
.cases__note strong { color: var(--ink); }
.cases__note .btn { justify-self: start; }
@media (min-width: 900px) {
  .cases__note { grid-template-columns: 1fr auto; gap: 32px; }
}

/* ───────────────────────── 12. TRUST ───────────────────────── */
.trust { display: grid; gap: clamp(32px, 5vw, 56px); align-items: start; }
@media (min-width: 960px) { .trust { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); } }

.trust__list { display: grid; gap: 1px; background: var(--ink-12); border-radius: var(--r-lg); overflow: hidden; }
.trust__item { background: var(--surface); padding: clamp(20px, 3vw, 28px); }
.trust__item h3 { font-size: 17px; margin-bottom: 8px; }
.trust__item p { font-size: 15px; color: var(--ink-70); line-height: 1.55; }
@media (min-width: 560px) { .trust__list { grid-template-columns: repeat(2, 1fr); } }

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--ink-12);
}
.stack li {
  padding: 6px 13px;
  border: 1px solid var(--ink-12);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-50);
}

/* ────────────────────── 13. PROCESS STEPS ────────────────────── */
.steps { display: grid; gap: 1px; background: var(--ink-12); border: 1px solid var(--ink-12); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { background: var(--surface); padding: clamp(24px, 3.5vw, 36px); }
.step__num {
  display: block;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--ink-12);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  transition: color .25s var(--ease);
}
.step:hover .step__num { color: var(--accent); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-70); line-height: 1.55; }

/* ─────────────────── 14. CONSULTATION FLOW ─────────────────── */
.consult { display: grid; gap: clamp(32px, 5vw, 56px); align-items: start; }
@media (min-width: 960px) { .consult { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); } }

.consult__flow { display: grid; gap: 0; }
.consult__flow li {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding-bottom: 26px;
}
.consult__flow li:last-child { padding-bottom: 0; }
.consult__flow li::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 4px;
  width: 2px;
  background: var(--ink-12);
}
.consult__flow li:last-child::before { display: none; }

.consult__flow span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--ink-12);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.consult__flow h3 { font-size: 17px; margin-bottom: 6px; padding-top: 8px; }
.consult__flow p { font-size: 15px; color: var(--ink-70); line-height: 1.55; }

/* ───────────────────── 15. FINAL CTA ───────────────────── */
.section--final {
  background: var(--surface);
  color: var(--ink);
  /* секція вище теж біла — розділяємо їх лінією */
  border-top: 1px solid var(--ink-12);
  text-align: center;
  padding-block: clamp(72px, 12vw, 144px);
}
.final { max-width: 780px; margin-inline: auto; }
.final__title {
  font-size: clamp(32px, 6.5vw, 62px);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.final__sub {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--ink-70);
  line-height: 1.6;
  margin-bottom: 34px;
  max-width: 54ch;
  margin-inline: auto;
}
.final__micro { margin-top: 18px; font-size: 14px; color: var(--ink-50); }

/* ───────────────────────── 16. FOOTER ───────────────────────── */
.footer { background: var(--bg); color: var(--ink-70); border-top: 1px solid var(--ink-12); }

.footer__inner {
  display: grid;
  gap: 36px;
  padding-block: clamp(48px, 7vw, 72px) 40px;
}
@media (min-width: 700px)  { .footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; } }

.logo--footer .logo__text { color: var(--ink); }

.footer__desc { margin-top: 16px; font-size: 15px; line-height: 1.6; max-width: 38ch; }

.footer__col { display: grid; align-content: start; gap: 12px; }
.footer__h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 2px;
}
.footer__col a, .footer__linkBtn {
  font-size: 15px;
  color: var(--ink-70);
  transition: color .18s var(--ease);
  justify-self: start;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.footer__col a:hover, .footer__linkBtn:hover { color: var(--ink); }
.footer__small { font-size: 13px; color: var(--ink-50); line-height: 1.6; }

.footer__bottom {
  padding-bottom: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-12);
  font-size: 13px;
  color: var(--ink-50);
  text-align: center;
}

/* телефон — головний контакт, тому помітніший за решту */
.footer__phone {
  font-size: 19px !important;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink) !important;
}


/* ─────────────────────── 17. MODAL + FORM ─────────────────────── */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; }
.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 13, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.modal.is-open .modal__overlay { opacity: 1; }

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  margin: auto;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
  max-height: 100dvh;
  overflow-y: auto;
}
.modal.is-open .modal__dialog { transform: none; opacity: 1; }

@media (max-width: 560px) {
  .modal__dialog {
    width: 100%;
    margin: auto 0 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    max-height: 94dvh;
  }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--ink-06);
  border: 0;
  border-radius: 999px;
  color: var(--ink-70);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.modal__close:hover { background: var(--ink-12); color: var(--ink); }

.modal__title { font-size: clamp(24px, 4vw, 30px); margin-bottom: 10px; }
.modal__desc { font-size: 15px; color: var(--ink-70); line-height: 1.55; margin-bottom: 24px; }

.form { display: grid; gap: 16px; }

.field { display: grid; gap: 7px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-70); }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px; /* ≥16px: iOS не зумить при фокусі */
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--ink-12);
  border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field__input::placeholder { color: var(--ink-30); }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 73, 255, .12);
}
.field__input[aria-invalid="true"] { border-color: #C8321F; }
.field__error { font-size: 13px; color: #C8321F; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.form__note { font-size: 12.5px; line-height: 1.5; color: var(--ink-50); }
.form__note a { color: var(--ink-70); text-decoration: underline; text-underline-offset: 2px; }
.form__fail { font-size: 13.5px; color: #C8321F; line-height: 1.5; }

.btn.is-loading { pointer-events: none; opacity: .72; }

.modal__content--success { text-align: center; padding-top: 8px; }
.success__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #E4F5ED;
  color: var(--ok);
}
.modal__content--success .modal__desc { margin-bottom: 26px; }

/* ──────────────── 17b. LIGHTBOX (перегляд скріншота) ──────────────── */
.lightbox { position: fixed; inset: 0; z-index: 130; display: grid; }
.lightbox[hidden] { display: none; }

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 13, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.lightbox.is-open .lightbox__overlay { opacity: 1; }

.lightbox__dialog {
  position: relative;
  z-index: 1;
  margin: auto;
  padding: clamp(12px, 3vw, 28px);
  max-width: 100%;
  transform: scale(.97);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.lightbox.is-open .lightbox__dialog { transform: none; opacity: 1; }

.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; }

/* object-fit: contain — пропорції зображення не змінюються */
.lightbox__img {
  display: block;
  max-width: min(1200px, 92vw);
  max-height: 82dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.lightbox__caption {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .66);
  text-align: center;
}

.lightbox__close {
  position: fixed;                     /* у кутку екрана, а не на зображенні */
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background-color .18s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, .24); }

@media (max-width: 640px) {
  .lightbox__close { top: max(10px, env(safe-area-inset-top)); right: 10px; }
  .lightbox__img { max-height: 74dvh; max-width: 94vw; }
}

/* ───────────────────── 19. MOTION / REVEAL ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* стагер для сіток */
.problems .reveal.is-visible,
.cards .reveal.is-visible,
.steps .reveal.is-visible { transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .dash__bars span { height: var(--h); }
  .spark__line { stroke-dashoffset: 0; }
  .spark__area { opacity: 1; }
}

/* ──────────── ПЛАВАЮЧА КНОПКА (тільки мобільні) ────────────
   z-index нижчий за модалку (120) і вікно перегляду (130),
   тож вона не перекриває їх, коли ті відкриті. */
.sticky-cta {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 80;
  display: none;                       /* на десктопі не потрібна */
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(31, 73, 255, .35), 0 2px 6px rgba(10, 11, 13, .18);

  /* сховано, поки користувач не прогорнув перший екран */
  opacity: 0;
  transform: translateY(14px) scale(.96);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.sticky-cta:active { transform: scale(.97); }

@media (max-width: 899px) {
  .sticky-cta { display: inline-flex; }
}

/* дуже вузькі екрани — лишаємо тільки іконку, щоб кнопка не займала пів ширини */
@media (max-width: 359px) {
  .sticky-cta { padding: 14px; font-size: 0; gap: 0; }
  .sticky-cta svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; transform: none; }
}

/* ─────────────────── СТОРІНКА «ДЯКУЄМО» ─────────────────── */
.thanks { padding-block: clamp(48px, 8vw, 96px); }
.thanks__wrap { max-width: 720px; text-align: center; }

.thanks__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
  border-radius: 999px;
  background: #E4F5ED;
  color: var(--ok);
}

.thanks__title {
  font-size: clamp(34px, 6.5vw, 56px);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.thanks__lead {
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 52ch;
  margin: 0 auto clamp(36px, 6vw, 56px);
}

/* що буде далі — знімає тривогу «а коли передзвонять?» */
.thanks__steps {
  display: grid;
  gap: 1px;
  background: var(--ink-12);
  border: 1px solid var(--ink-12);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
}
.thanks__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: clamp(18px, 3vw, 24px);
  background: var(--surface);
}
.thanks__steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-100);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
.thanks__steps h2 { font-size: 17px; margin-bottom: 4px; }
.thanks__steps p { font-size: 15px; line-height: 1.55; color: var(--ink-70); }

.thanks__contacts { margin-top: clamp(36px, 6vw, 56px); }
.thanks__note { font-size: 15px; color: var(--ink-70); margin-bottom: 16px; }
.thanks__hours { margin-top: 14px; font-size: 13px; color: var(--ink-50); }

.thanks__back {
  display: inline-block;
  margin-top: clamp(32px, 5vw, 48px);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-70);
}
.thanks__back:hover { color: var(--ink); }

/* ─────────────────────── LEGAL PAGES ─────────────────────── */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal__wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 12px; }
.legal__meta { font-size: 14px; color: var(--ink-50); margin-bottom: 40px; }
.legal h2 { font-size: clamp(20px, 3vw, 25px); margin: 40px 0 14px; }
.legal h3 { font-size: 17px; margin: 24px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-70); }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 12px; display: grid; gap: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font-size: 14px; font-weight: 600; color: var(--ink-70); }
.legal__back:hover { color: var(--ink); }
