/* ============================================================
   AUTOGRAPH AGENCY - business development agency
   Palette: off-black #0B0C0B / #121312 · neon #18FC9B · mint #B9FEDF
   Type: Unbounded (display) + Manrope (body), обидва з кирилицею
   Motion: GSAP + Lenis, кастомні cubic-bezier, y/scale reveals
   ============================================================ */

:root {
  --bg: #0b0c0b;
  --bg-2: #101110;
  --bg-3: #151615;
  --shell: rgba(255, 255, 255, 0.04);
  --neon: #18fc9b;
  --neon-lift: #4dfdb1;        /* світліший неон = вища поверхня на hover */
  --neon-soft: rgba(24, 252, 155, 0.14);
  --mint: #b9fedf;
  --ink: #0f1210;
  --text: rgba(255, 255, 255, 0.84);
  --text-strong: #f6f8f7;
  --muted: #9aa39e;
  --line: rgba(255, 255, 255, 0.08);
  --r-card: 24px;
  --r-inner: 17px;
  --r-input: 12px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(88px, 11vw, 150px);
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* clip, а не hidden: hidden на корені ламає position:sticky всередині */
html { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--neon); color: #0a0a0a; }

/* Плівка-зерно поверх усього: fixed + pointer-events-none, не на скрол-контейнері */
.noise {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
/* Ритм секцій нерівний навмисне - однаковий паддінг на всіх секціях читається як шаблон */
.section--tight { padding-block: calc(var(--section) * 0.62); }
.section--airy { padding-block: calc(var(--section) * 1.28); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--neon); color: #0a0a0a; padding: 10px 18px; font-weight: 700;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--text-strong); }
h1 {
  font-size: clamp(29px, 5.9vw, 84px); line-height: 1.02; font-weight: 800;
  letter-spacing: -0.03em; text-transform: uppercase; min-width: 0;
}
/* anywhere тільки на вузьких екранах: воно змінює min-content
   і на десктопі стискає колонку, розриваючи слово посеред */
@media (max-width: 379px) { h1 { overflow-wrap: anywhere; } }
@media (min-width: 380px) { h1 { font-size: clamp(36px, 5.9vw, 84px); } }
h2 { font-size: clamp(28px, 4.4vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -0.015em; text-transform: uppercase; }
h3 { font-size: clamp(18px, 2vw, 23px); line-height: 1.25; font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(24, 252, 155, 0.35); border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--neon); font-weight: 500;
  background: rgba(24, 252, 155, 0.05);
}

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

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(44px, 6vw, 76px); }
.section-head p { max-width: 540px; color: var(--muted); }

/* ---------- Buttons (pill + вкладена стрілка-острівець) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 13.5px; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 10px 10px 10px 28px; border-radius: 999px;
  min-height: 56px; white-space: nowrap;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
              background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--neon); outline-offset: 3px;
}
.btn .ico {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover .ico { transform: translate(2px, -2px) scale(1.06); }

.btn-primary { background: var(--neon); color: #0a0a0a; }
.btn-primary .ico { background: rgba(10, 10, 10, 0.14); color: #0a0a0a; }
/* Підняття на темному - через світлість поверхні, не через кольоровий ореол */
.btn-primary:hover { transform: translateY(-2px); background: var(--neon-lift); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7); }

.btn-ghost { border: 1px solid var(--line); color: var(--text-strong); background: rgba(255, 255, 255, 0.02); }
.btn-ghost .ico { background: rgba(255, 255, 255, 0.07); color: var(--text-strong); }
.btn-ghost:hover { border-color: rgba(24, 252, 155, 0.6); color: var(--neon); transform: translateY(-2px); }
.btn-ghost:hover .ico { color: var(--neon); }

.btn-dark { background: #101210; color: #fff; }
.btn-dark .ico { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-strong);
  transition: color 0.3s var(--ease-out);
}
.link-arrow svg { transition: transform 0.35s var(--ease-out); }
.link-arrow:hover { color: var(--neon); }
.link-arrow:hover svg { transform: translate(4px, -4px); }

/* ---------- Header: плаваюча скляна пігулка ---------- */
.header {
  position: fixed; inset-inline: 0; top: 14px; z-index: 100;
  display: flex; justify-content: center; padding-inline: var(--gutter);
  pointer-events: none;
}
.header-inner {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; max-width: var(--container);
  padding: 10px 12px 10px 20px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}
.header.is-scrolled .header-inner {
  background: rgba(14, 15, 14, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 44px -22px rgba(0, 0, 0, 0.8);
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.06em; color: #fff; font-weight: 700; }
.brand-text span { font-size: 9px; letter-spacing: 0.22em; color: var(--neon); text-transform: uppercase; }

.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav a, .nav-toggle-sub {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 15px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--text);
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.nav a:hover, .nav-toggle-sub:hover { color: var(--neon); background: rgba(255, 255, 255, 0.05); }

.has-sub { position: relative; }
.has-sub .chevron { transition: transform 0.3s var(--ease-out); }
.has-sub.open .chevron, .has-sub:hover .chevron { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 350px;
  background: rgba(18, 19, 18, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 10px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0.28s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 28px 70px -24px rgba(0, 0, 0, 0.85);
}
.has-sub:hover .subnav, .has-sub.open .subnav, .has-sub:focus-within .subnav {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.subnav a { display: flex; padding: 11px 14px; border-radius: 11px; font-size: 14.5px; width: 100%; }
.subnav a:hover { background: rgba(24, 252, 155, 0.08); }
.subnav a span { color: var(--neon); font-family: var(--font-display); font-size: 10.5px; margin-right: 12px; padding-top: 3px; }

.header-cta { flex: none; }
.header-cta .btn { min-height: 46px; padding: 6px 6px 6px 20px; font-size: 12px; }
.header-cta .btn .ico { width: 32px; height: 32px; }

/* Burger */
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; z-index: 130; background: rgba(255, 255, 255, 0.05); }
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: #fff;
  transition: transform 0.35s var(--ease-io), opacity 0.25s var(--ease-out), top 0.35s var(--ease-io);
  border-radius: 2px;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }
.burger.active span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 110px; padding-bottom: 40px;
  position: relative; overflow: hidden;
  background: var(--bg);
}
/* промінь світла з правого верхнього кута, як у преміум-референсі */
.hero-beam {
  position: absolute; top: -30%; right: -12%; width: 68%; height: 130%;
  background:
    conic-gradient(from 215deg at 78% 22%,
      transparent 0deg,
      rgba(24, 252, 155, 0.16) 12deg,
      rgba(24, 252, 155, 0.05) 32deg,
      transparent 60deg);
  filter: blur(30px);
  pointer-events: none;
}
.hero-glow {
  position: absolute; left: -10%; bottom: -25%; width: 55%; height: 70%;
  background: radial-gradient(closest-side, rgba(24, 252, 155, 0.07), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 85% 65% at 55% 40%, black 15%, transparent 72%);
  opacity: 0.4;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(24px, 5vw, 60px); align-items: center; position: relative;
}
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-sub {
  font-family: var(--font-display); color: var(--neon);
  font-size: clamp(14px, 1.8vw, 22px); font-weight: 600; letter-spacing: 0.03em;
  display: flex; align-items: center; gap: 14px; margin-bottom: 8px;
  text-transform: uppercase;
}
.hero-sub .arrow { display: inline-flex; }
/* Заголовок тепер речення, а не одне слово: кегля менша, рядок щільніший,
   ширина обмежена, щоб не розповзався на пів екрана. */
.hero h1 {
  margin-bottom: 34px;
  font-size: clamp(30px, 4.1vw, 55px);
  line-height: 1.08;
  max-width: 17ch;
  text-wrap: balance;
  /* капслок працює для короткого слова, але речення в ньому читається важко
     і забирає весь екран, тому тут звичайний регістр */
  text-transform: none;
  letter-spacing: -0.02em;
}
.hero-desc { max-width: 500px; color: var(--muted); margin-bottom: 42px; font-size: clamp(16px, 1.6vw, 18px); }
.hero-desc strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* 3D-сцена: реальна перспектива, шари на різній глибині (translateZ),
   камера рухається від скролу + нахил за курсором. */
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
  /* дистанція має бути помітно більшою за глибину корпусу, інакше
     ближній край клавіатури роздувається і з'їдає екран */
}
/* ---------- Декоративні шари сцени ----------
   ⛔ Усі три ОБОВ'ЯЗКОВО поза потоком. Вони лишились без правил, і через це
   SVG-мережа займала 527px висоти як звичайний блок: ноут з'їжджав вниз, а
   на екранах до 900px заголовок і кнопка взагалі виносились за перший екран.
   Висоту сцени задає лише .lap3d своїм aspect-ratio. */
.hero-halo,
.hero-net,
.hero-shadow { position: absolute; pointer-events: none; }

.hero-halo {
  left: 50%; top: 44%; width: 82%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(24, 252, 155, 0.12), transparent 70%);
  filter: blur(28px);
}

/* Мережа вузлів: тонкий графічний шар за ноутом. Лінії й вузли малюються
   тут, у розмітці в них навмисно немає атрибутів stroke. */
.hero-net { inset: -2% 0; width: 100%; height: 104%; overflow: visible; }
.hero-net line {
  stroke: rgba(24, 252, 155, 0.20);
  stroke-width: 1.2;
  stroke-dasharray: 4 7;
}
.hero-net .node {
  fill: none;
  stroke: rgba(185, 254, 223, 0.22);
  stroke-width: 1.1;
}
.hero-net .pulse {
  fill: var(--neon);
  opacity: 0.75;
  animation: netPulse 3.4s var(--ease-io) infinite;
}
.hero-net .pulse:nth-of-type(even) { animation-delay: 1.1s; }
.hero-net .pulse:nth-of-type(3n) { animation-delay: 2.2s; }

@keyframes netPulse {
  0%, 100% { opacity: 0.22; r: 3; }
  50%      { opacity: 0.85; r: 5; }
}

.hero-shadow {
  left: 50%; bottom: 4%; width: 64%; height: 14%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent 74%);
  filter: blur(18px);
}

/* Обгортка сцени. CSS-3D тут більше не потрібен: тривимірність рахує
   WebGL. Флекс теж прибрано - він стискав canvas удвічі. */
.hero-stage {
  position: relative;
  display: block;
  width: 100%;
}
/* ноут можна крутити рукою */
.hero-visual { cursor: grab; touch-action: pan-y; }
.hero-visual.is-dragging { cursor: grabbing; }
/* ---------- 3D-ноутбук (Three.js) ----------
   Сцена малюється у canvas усередині цього контейнера.
   CSS тут лише задає місце й розмір: матеріали, світло й тіні - у WebGL. */
.lap3d {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  aspect-ratio: 1 / 0.86;
  cursor: grab;
  touch-action: pan-y;
  /* поки сцена не готова, місце вже зарезервоване і layout не стрибає */
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.lap3d.is-ready { opacity: 1; }
.lap3d.is-dragging { cursor: grabbing; }
.lap3d canvas { display: block; width: 100%; height: 100%; }

/* ---------- Marquee: дві перехресні стрічки (одна маркі-сцена на сторінку) ---------- */
.tapes { position: relative; padding-block: clamp(48px, 7vw, 90px); overflow: hidden; }
.tape {
  background: var(--mint); color: var(--ink);
  padding-block: 13px; overflow: hidden; white-space: nowrap;
  border-block: 2px solid #0a0a0a;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.85);
}
.tape-inner { display: inline-flex; will-change: transform; animation: tapeMove 30s linear infinite; }
.tape-chunk {
  display: inline-flex; align-items: center; gap: 26px; padding-inline: 13px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(14px, 1.7vw, 20px);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.tape-chunk img { width: 22px; height: 22px; }
.tape--a { transform: rotate(-2.6deg) scale(1.04); }
.tape--b { transform: rotate(2.1deg) scale(1.04); margin-top: -6px; position: relative; }
.tape--b .tape-inner { animation-direction: reverse; animation-duration: 36s; }
@keyframes tapeMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 76px); align-items: start; }
.why-copy h2 { margin-bottom: 26px; }
.why-copy .lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-strong); margin-bottom: 18px; line-height: 1.5; font-weight: 600; }
.why-copy .lead .accent { font-family: var(--font-display); font-size: 0.82em; }
.why-copy p:not(.lead) { color: var(--muted); }
.why-copy .mark { color: var(--neon); font-weight: 700; }

.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* double-bezel: зовнішній корпус + внутрішнє ядро */
.why-card {
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 7px;
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(24, 252, 155, 0.4); }
.why-card-core {
  background: var(--mint); color: var(--ink);
  border-radius: var(--r-inner); padding: 24px 22px; height: 100%;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.why-card .num {
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  background: #0f1210; color: var(--neon);
  display: grid; place-items: center; flex: none;
}
.why-card p { font-weight: 600; line-height: 1.5; font-size: 15px; color: var(--ink); }
.why-card--wide { grid-column: 1 / -1; }
.why-card--wide .why-card-core { flex-direction: row; align-items: center; }

/* ---------- Services ---------- */
.services { background: var(--bg-2); border-block: 1px solid var(--line); }
/* Асиметричний ритм 2 / 3 / 2 / 1 на 8 послуг.
   Рівна 3-колонкова сітка фіч - найвпізнаваніший AI-шаблон, тому не використовується.
   Розкладка тайлиться без порожніх клітин: 3+3 / 2+2+2 / 3+3 / 6. */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.services-grid > * { grid-column: span 2; }
.services-grid > :nth-child(1),
.services-grid > :nth-child(2),
.services-grid > :nth-child(6),
.services-grid > :nth-child(7) { grid-column: span 3; }
.services-grid > :nth-child(8) { grid-column: span 6; }

.service-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 30px 28px 26px; overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
}
.service-card::after {
  content: ""; position: absolute; right: -28%; bottom: -50%; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(24, 252, 155, 0.15), transparent 65%);
  opacity: 0; transition: opacity 0.45s var(--ease-out); pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(24, 252, 155, 0.45); }
.service-card:hover::after { opacity: 1; }
.service-card .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 3.8vw, 48px); line-height: 1; color: var(--neon);
}
/* Перша картка дихає ширше, остання лягає горизонтально і закриває ритм */
.services-grid > :nth-child(1) { padding: 34px 32px 30px; }
.services-grid > :nth-child(1) .num { font-size: clamp(44px, 4.8vw, 62px); }
.services-grid > :nth-child(1) h3 { font-size: 18px; min-height: 0; }
.services-grid > :nth-child(8) {
  display: grid; grid-template-columns: auto minmax(0, 21ch) minmax(0, 1fr) auto;
  align-items: center; gap: 30px; padding: 30px 34px;
}
.services-grid > :nth-child(8) h3 {
  display: block; min-height: 0; min-width: 0;
  overflow-wrap: anywhere; font-size: 15.5px;
}
.services-grid > :nth-child(8) p { flex: none; min-width: 0; }
.services-grid > :nth-child(8) .link-arrow { margin-top: 0; white-space: nowrap; }
.service-card h3 { text-transform: uppercase; letter-spacing: 0.02em; font-size: 16px; min-height: 2.5em; display: flex; align-items: flex-end; }
.service-card p { color: var(--muted); font-size: 15px; flex: 1; }
.service-card .link-arrow::before { content: ""; position: absolute; inset: 0; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-step {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px 24px; background: rgba(255, 255, 255, 0.015);
  position: relative; overflow: hidden;
  transition: border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.process-step:hover { border-color: rgba(24, 252, 155, 0.4); transform: translateY(-4px); }
.process-step .step-ico {
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 20px;
  background: rgba(24, 252, 155, 0.1); border: 1px solid rgba(24, 252, 155, 0.35);
  color: var(--neon); display: grid; place-items: center;
}
.process-step h3 { font-size: 16.5px; text-transform: uppercase; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: 14.5px; }
.process-step .ghost-num {
  position: absolute; right: 14px; top: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 64px;
  color: rgba(255, 255, 255, 0.045); line-height: 1;
}

/* ---------- Cases (slider) ---------- */
.cases { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.slider { position: relative; }
/* margin/padding-inline давали стартовий scrollLeft > 0, через що
   ліва стрілка вмикалась коли ліворуч ще нічого нема. Забираємо зсув. */
.slider-track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scroll-padding-inline: 0;
  scrollbar-width: none;
  cursor: grab;
}
.slider-track:active { cursor: grabbing; }
.slider-track::-webkit-scrollbar { display: none; }
.case-card {
  flex: 0 0 clamp(280px, 30vw, 396px); scroll-snap-align: start;
  border-radius: var(--r-card); position: relative;
  background: var(--shell); border: 1px solid var(--line);
  padding: 7px;
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
  display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-6px); border-color: rgba(24, 252, 155, 0.4); }
.case-media {
  aspect-ratio: 16 / 10; overflow: hidden; position: relative;
  background: #191a19; border-radius: var(--r-inner);
}
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.7s var(--ease-out); }
.case-card:hover .case-media img { transform: scale(1.05); }
.case-media--brand {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(24, 252, 155, 0.16), transparent 55%),
    #131413;
}
.case-media--brand img { width: 72px; height: auto; object-fit: contain; opacity: 0.9; }
.case-media--mint { background: radial-gradient(circle at 30% 80%, rgba(15, 18, 16, 0.2), transparent 60%), var(--mint); }
.case-media--mint img { width: 72px; filter: brightness(0); opacity: 0.85; }
.case-body { padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.case-tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--neon); font-weight: 700; }
.case-body h3 { font-size: 16.5px; text-transform: uppercase; }
.case-body p { color: var(--muted); font-size: 14.5px; }

.slider-nav { display: flex; gap: 10px; }
.slider-btn {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out),
              color 0.3s var(--ease-out), opacity 0.3s, transform 0.3s var(--ease-out);
  color: #fff;
}
.slider-btn:hover { border-color: var(--neon); color: var(--neon); background: rgba(24, 252, 155, 0.06); }
.slider-btn:active { transform: scale(0.94); }
.slider-btn[disabled] { opacity: 0.3; pointer-events: none; }

/* ---------- Big CTA ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 340px at 50% 108%, rgba(24, 252, 155, 0.14), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { max-width: 820px; margin-inline: auto; margin-bottom: 16px; position: relative; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 42px; position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; position: relative; }

/* ---------- Contacts ---------- */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contacts-info .eyebrow { margin-bottom: 20px; }
.contacts-info h2 { margin-bottom: 36px; }
.contact-row { display: flex; align-items: center; gap: 18px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.contact-row:first-of-type { border-top: 1px solid var(--line); }
.contact-row .ico {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  border: 1px solid rgba(24, 252, 155, 0.4); color: var(--neon);
  display: grid; place-items: center;
  background: rgba(24, 252, 155, 0.05);
}
.contact-row small { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.contact-row a, .contact-row .val { font-size: 17px; font-weight: 600; color: var(--text-strong); transition: color 0.25s; word-break: break-word; }
.contact-row a:hover { color: var(--neon); }

/* форма: double-bezel м'ятна картка */
.form-shell {
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 8px;
}
.form-card {
  background: var(--mint); color: var(--ink);
  border-radius: var(--r-inner); padding: clamp(26px, 4vw, 42px);
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.form-card h2 { color: var(--ink); font-size: clamp(21px, 2.5vw, 28px); margin-bottom: 10px; }
.form-card > p { font-size: 15px; margin-bottom: 26px; color: rgba(15, 18, 16, 0.75); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 15px 18px; font: inherit; font-size: 16px;
  border: 1.5px solid rgba(15, 18, 16, 0.25); border-radius: var(--r-input);
  background: rgba(255, 255, 255, 0.65); color: var(--ink);
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.field input::placeholder { color: rgba(15, 18, 16, 0.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: #0f1210; background: #fff; }
.field .error-msg { display: none; align-items: center; gap: 6px; color: #9a1f17; font-size: 13px; margin-top: 6px; font-weight: 600; }
.field.invalid input { border-color: #9a1f17; }
.field.invalid .error-msg { display: flex; }
.form-card .btn { width: 100%; justify-content: space-between; }
.form-note { font-size: 12.5px; color: rgba(15, 18, 16, 0.55); margin-top: 12px; text-align: center; }
.form-success { display: none; text-align: center; padding: 36px 10px; }
.form-success.visible { display: block; }
.form-success .check {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: #0f1210; color: var(--neon); display: grid; place-items: center;
}
.form-success h3 { color: var(--ink); margin-bottom: 8px; }
.form-success p { color: rgba(15, 18, 16, 0.75); font-size: 15px; }

/* ---------- Footer ---------- */
/* Statement-футер (Ft5): велика заява + контакти в рядок.
   4-колонковий індекс посилань - впізнаваний AI-футер, тому не використовується. */
.footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 96px); background: var(--bg); }
.footer-statement {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: end; padding-bottom: clamp(40px, 5vw, 64px);
}
.footer-statement h2 { font-size: clamp(26px, 4vw, 52px); margin-bottom: 20px; }
.footer-statement .sig { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14.5px; }
.footer-statement .sig img { width: 40px; flex: none; }
.footer-contacts { display: grid; gap: 14px; justify-items: start; }
.footer-contacts a, .footer-contacts span {
  font-size: clamp(15px, 1.5vw, 17px); font-weight: 600; color: var(--text-strong);
  transition: color 0.25s var(--ease-out);
}
.footer-contacts a:hover { color: var(--neon); }
.footer-contacts small { display: block; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.footer-nav {
  border-top: 1px solid var(--line);
  padding-block: 24px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
}
.footer-nav a { color: var(--muted); font-size: 14.5px; transition: color 0.25s var(--ease-out); white-space: nowrap; }
.footer-nav a:hover { color: var(--neon); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px; display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 13px;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 5, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-card {
  position: relative; width: min(520px, 100%);
  transform: translateY(26px) scale(0.96);
  transition: transform 0.4s var(--ease-drawer);
  max-height: 90svh; overflow-y: auto;
}
.modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(15, 18, 16, 0.1); color: var(--ink);
  display: grid; place-items: center;
  transition: background-color 0.25s, transform 0.35s var(--ease-out);
}
.modal-close:hover { background: rgba(15, 18, 16, 0.2); transform: rotate(90deg); }

/* ---------- Service pages ---------- */
.page-hero {
  padding-top: clamp(150px, 19vw, 210px); padding-bottom: clamp(48px, 7vw, 84px);
  position: relative; overflow: hidden; background: var(--bg);
}
.page-hero .hero-beam { top: -40%; }
.page-hero .crumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; margin-bottom: 28px; flex-wrap: wrap; position: relative; }
.page-hero .crumbs a { transition: color 0.25s; }
.page-hero .crumbs a:hover { color: var(--neon); }
.page-hero .crumbs .sep { opacity: 0.5; }
.page-hero .crumbs .here { color: var(--text); }
.page-hero h1 { font-size: clamp(32px, 5.2vw, 70px); max-width: 1020px; position: relative; }
.page-hero .page-lead { max-width: 640px; color: var(--muted); margin-top: 26px; font-size: clamp(16px, 1.6vw, 18px); position: relative; }

/* 2 картки в ряд, остання «непарна» лягає на всю ширину.
   Тиловий 3-колонковий ряд рівних карток - AI-шаблон, тому не використовується.
   Правило тайлиться для 3, 4 і 6 підпослуг без порожніх клітин. */
.subservices-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.subservices-grid > * { grid-column: span 3; }
.subservices-grid > :nth-child(odd):last-child { grid-column: span 6; }
.subservices-grid > :nth-child(odd):last-child .sub-card-core {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 40px; align-items: start;
}
.subservices-grid > :nth-child(odd):last-child h3 { grid-column: 1; }
.subservices-grid > :nth-child(odd):last-child p { grid-column: 1; }
.subservices-grid > :nth-child(odd):last-child ul { grid-column: 2; grid-row: 1 / span 3; }
.subservices-grid > :nth-child(odd):last-child .btn { grid-column: 1; align-self: end; }
.sub-card {
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 7px;
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
  display: flex;
}
.sub-card:hover { transform: translateY(-6px); border-color: rgba(24, 252, 155, 0.4); }
.sub-card-core {
  background: var(--mint); color: var(--ink);
  border-radius: var(--r-inner); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 15px; width: 100%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.sub-card h3 { color: var(--ink); text-transform: uppercase; font-size: 16.5px; letter-spacing: 0.01em; }
.sub-card p { font-size: 15px; line-height: 1.6; color: rgba(15, 18, 16, 0.82); flex: 1; }
.sub-card ul { display: grid; gap: 8px; }
.sub-card li { font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; color: rgba(15, 18, 16, 0.85); font-weight: 500; }
.sub-card li svg { flex: none; margin-top: 4px; }
.sub-card .btn { align-self: stretch; justify-content: space-between; padding: 8px 8px 8px 22px; font-size: 12px; min-height: 48px; }
.sub-card .btn .ico { width: 34px; height: 34px; }

.help-cta {
  border: 1px solid rgba(24, 252, 155, 0.35); border-radius: var(--r-card);
  background:
    radial-gradient(440px 260px at 88% 18%, rgba(24, 252, 155, 0.12), transparent 65%),
    var(--bg-3);
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, auto);
  gap: 32px; align-items: center;
}
.help-cta h2 { font-size: clamp(23px, 3.2vw, 40px); margin-bottom: 12px; }
.help-cta p { color: var(--muted); max-width: 480px; }

/* ---------- Reveal helpers (JS керує transform; opacity завжди 1) ---------- */
.reveal, .reveal-item { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid > * { grid-column: span 1; }
  .services-grid > :nth-child(8) { grid-column: span 2; grid-template-columns: auto minmax(0, 1fr); }
  .services-grid > :nth-child(8) p,
  .services-grid > :nth-child(8) .link-arrow { grid-column: 2; }
  .services-grid > :nth-child(1) { padding: 30px 28px 26px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-statement { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* ⛔ Ноут НЕ ставимо першим. З order:-1 сцена займала весь перший екран,
     а заголовок і кнопка «Обговорити проєкт» опинялись нижче згину: на
     телефоні відвідувач бачив картинку й мусив шукати, про що взагалі сайт. */
  .hero-visual { order: 0; margin-top: 34px; }
  .lap3d { max-width: 340px; }
  /* на вузькому екрані сильний розворот по Y виносить ноут за правий край,
     тому ракурс майже фронтальний (значення збігаються з POSE у main.js) */
  .hero-stage { transform: rotateX(-11deg) rotateY(-4deg); }
  /* на вузькому виносні елементи літер підходять близько до тексту нижче */
  .hero h1 { margin-bottom: 26px; }
  .hero { padding-top: 120px; }
  .why-grid, .contacts-grid { grid-template-columns: 1fr; }
  .help-cta { grid-template-columns: 1fr; }

  .nav {
    position: fixed; inset: 0; z-index: 120;
    background: rgba(9, 10, 9, 0.9);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav > ul { flex-direction: column; gap: 4px; width: min(440px, 88vw); }
  .nav > ul > li { width: 100%; transform: translateY(24px); transition: transform 0.5s var(--ease-out); }
  .nav.open > ul > li { transform: translateY(0); }
  .nav.open > ul > li:nth-child(1) { transition-delay: 0.05s; }
  .nav.open > ul > li:nth-child(2) { transition-delay: 0.1s; }
  .nav.open > ul > li:nth-child(3) { transition-delay: 0.15s; }
  .nav.open > ul > li:nth-child(4) { transition-delay: 0.2s; }
  .nav.open > ul > li:nth-child(5) { transition-delay: 0.25s; }
  .nav a, .nav-toggle-sub { font-size: 20px; padding: 13px 18px; width: 100%; justify-content: space-between; }
  .subnav {
    position: static; min-width: 0; width: 100%;
    background: transparent; border: none; box-shadow: none; padding: 0 0 6px 16px;
    display: none; opacity: 1; visibility: visible; transform: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .has-sub.open .subnav { display: grid; }
  .subnav a { font-size: 16px; justify-content: flex-start; }
  .burger { display: block; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  /* декоративні шари не мають розсувати layout на вузьких екранах */
  .hero-net { inset: -4% 0; }
  .hero-beam { right: -4%; width: 78%; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid > * { grid-column: span 1 !important; }
  .services-grid > :nth-child(8) { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 30px 28px 26px; }
  .subservices-grid { grid-template-columns: 1fr; }
  .subservices-grid > *, .subservices-grid > :nth-child(odd):last-child { grid-column: span 1; }
  .subservices-grid > :nth-child(odd):last-child .sub-card-core { grid-template-columns: 1fr; }
  .subservices-grid > :nth-child(odd):last-child ul { grid-column: 1; grid-row: auto; }
  .process-grid, .why-cards { grid-template-columns: 1fr; }
  .why-card--wide .why-card-core { flex-direction: column; align-items: flex-start; }
  .case-card { flex-basis: min(320px, 84vw); }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: space-between; }
  .slider-nav { width: 100%; justify-content: flex-end; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .tape-inner { animation: none; }
  .hero-net .pulse { animation: none; opacity: 0.6; }
}

/* ---------- Hover тільки для точних курсорів ---------- */
@media (hover: none), (pointer: coarse) {
  .why-card:hover, .service-card:hover, .case-card:hover,
  .sub-card:hover, .process-step:hover { transform: none; }
}

/* посилання на живий сайт клієнта в картці кейса */
.case-visit {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px;
  font-family: var(--font-mono, var(--font-body));
  font-size: 12.5px; color: var(--neon);
  letter-spacing: 0.01em; word-break: break-all;
  transition: opacity 0.25s var(--ease-out);
}
.case-card:hover .case-visit { opacity: 0.82; }
.case-visit svg { flex: none; transition: transform 0.3s var(--ease-out); }
.case-card:hover .case-visit svg { transform: translate(2px, -2px); }
a.case-card { color: inherit; text-decoration: none; }
a.case-card:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

/* ---------- Власні продукти (ТЗ р.05, блок 04) ---------- */
.products { background: var(--bg-2); border-block: 1px solid var(--line); }

/* флагман: широка картка, знімок праворуч */
.prod-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: clamp(26px, 3.4vw, 44px);
  margin-bottom: 16px;
}
.prod-hero-copy h3 {
  display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
  font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: -0.01em;
}
.beta {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: var(--mint);
  padding: 5px 11px; border-radius: 999px;
}
.prod-lead { font-size: clamp(16px, 1.8vw, 18px); color: var(--text-strong); margin-bottom: 24px; max-width: 46ch; }
.prod-pillars { display: grid; margin-bottom: 28px; }
.prod-pillars li { display: grid; gap: 3px; padding: 14px 0; border-top: 1px solid var(--line); }
.prod-pillars li:last-child { border-bottom: 1px solid var(--line); }
.prod-pillars b {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--text-strong); letter-spacing: 0.01em;
}
.prod-pillars span { color: var(--muted); font-size: 14.5px; }

.prod-shot { margin: 0; background: var(--shell); border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px; }
.prod-shot img { width: 100%; height: auto; border-radius: var(--r-inner); }
.prod-shot figcaption { font-size: 12.5px; color: var(--muted); padding: 11px 8px 3px; text-align: center; }

/* дві менші картки */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prod-card {
  display: flex; flex-direction: column;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden; color: inherit;
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
}
a.prod-card:hover { transform: translateY(-6px); border-color: rgba(24, 252, 155, 0.45); }
a.prod-card:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.prod-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #121312; }
.prod-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.7s var(--ease-out); }
a.prod-card:hover .prod-card-media img { transform: scale(1.04); }

/* телефонія: власна графіка замість знімка, бо платформа внутрішня */
.prod-card-media--tel {
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, rgba(24, 252, 155, 0.14), transparent 62%), #111211;
}
.prod-card-media--tel svg { width: 62%; height: auto; }
.prod-card-media--tel .wv {
  stroke: var(--neon); stroke-width: 2; fill: none; opacity: 0.75;
  filter: drop-shadow(0 0 6px rgba(24, 252, 155, 0.6));
}
.prod-card-media--tel .wv2 { opacity: 0.3; }

.prod-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.prod-card-body h3 { font-size: 19px; text-transform: uppercase; letter-spacing: 0.01em; }
.prod-card-body p { color: var(--muted); font-size: 15px; flex: 1; }
.prod-note { font-size: 12.5px; color: var(--muted); opacity: 0.75; }

@media (max-width: 900px) {
  .prod-hero { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
}

/* картка кейса, де продуктом була сама система */
.case-media--crm {
  display: grid; place-content: center; gap: 6px; text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(24, 252, 155, 0.16), transparent 62%),
    #111211;
}
.case-media--crm .crm-mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3vw, 34px); letter-spacing: 0.02em;
  color: var(--text-strong);
}
.case-media--crm .crm-slug {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--neon);
}


/* ---------- Рядок довіри (ТЗ р.05, блок 02) ----------
   Доказ іде одразу за обіцянкою, до опису послуг.
   Логотипи приглушені, на наведення проявляються - щоб ряд не
   перетягував увагу на себе з заголовка. */
.trust { padding-block: clamp(30px, 4vw, 50px); border-bottom: 1px solid var(--line); }
.trust-label {
  font-family: var(--font-display); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 20px clamp(28px, 4.5vw, 60px);
}
.trust-item {
  display: block; line-height: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.3s var(--ease-out);
  opacity: 0.55;
}
.trust-item img {
  /* висота однакова, ширина за пропорцією; широкі знаки обмежені,
     щоб не домінували над компактними */
  height: 30px; width: auto; max-width: 148px;
  object-fit: contain; object-position: left center;
}
.trust-item:hover { opacity: 1; transform: translateY(-2px); }
.trust-item:focus-visible { opacity: 1; outline: 2px solid var(--neon); outline-offset: 6px; }
.trust-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 640px) {
  .trust-item img { height: 24px; max-width: 116px; }
}

/* лінія, що прокреслюється під заголовком секції */
.head-rule {
  display: block; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--neon), transparent 72%);
  opacity: 0.5; margin-top: 14px;
}
.section-head { position: relative; }

/* ============================================================
   БАГАТОСТОРІНКОВІСТЬ: мега-меню, хаби, блог, партнерка, кабінет
   Додано 03.09. Палітра й радіуси ті самі, нових змінних не вводимо.
   ============================================================ */

/* ---------- Хедер: посилання-пігулка + активний стан ---------- */
.pill-link {
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-strong);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
  white-space: nowrap;
}
.pill-link:hover { border-color: rgba(24, 252, 155, 0.5); background: var(--shell); }
.nav a.is-active { color: var(--neon); }

/* ---------- Мега-меню послуг ---------- */
/* ⛔ Мега-панель НЕ можна центрувати по своєму <li>: пункт «Послуги»
   стоїть близько до лівого краю, і панель на 920px виїжджала за екран.
   Тому .has-mega робимо static, і absolute панелі рахується від
   .header-inner, тобто вона рівна ширині шапки й ніколи не обрізається. */
.header-inner { position: relative; }
.has-sub.has-mega { position: static; }
.subnav.mega {
  left: 0; right: 0; width: auto; min-width: 0;
  top: calc(100% + 12px);
  transform: translateY(10px); transform-origin: top center;
  padding: 24px 26px 16px;
}
.has-sub.open .subnav.mega,
.has-sub.has-mega:hover .subnav.mega,
.has-sub.has-mega:focus-within .subnav.mega { transform: translateY(0); }
.mega-grid {
  display: grid; gap: 10px 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mega-title {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  padding: 0 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.mega-col > a {
  display: block; padding: 9px 10px; border-radius: 12px;
  transition: background 0.25s var(--ease-out);
}
.mega-col > a b {
  display: block; font-family: var(--font-body); font-size: 14px;
  font-weight: 600; color: var(--text-strong); line-height: 1.35;
}
.mega-col > a span {
  display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4;
}
.mega-col > a:hover { background: var(--shell); }
.mega-col > a:hover b { color: var(--neon); }
.mega-col > a.is-active b { color: var(--neon); }
.mega-foot {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between;
  margin-top: 14px; padding: 14px 10px 4px; border-top: 1px solid var(--line);
}
.mega-all {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; color: var(--neon);
}
.mega-hot { font-size: 12.5px; color: var(--muted); }
.mega-hot:hover { color: var(--text-strong); }

/* ---------- Hero: підкріплення тезами ---------- */
.hero-marks {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px;
}
.hero-marks li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--muted);
}
.hero-marks svg { color: var(--neon); flex: none; }

/* ---------- Смуга цифр ---------- */
.stats-row {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat-tile {
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 24px 22px 20px;
}
.stat-tile b {
  display: block; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700; line-height: 1; color: var(--text-strong); letter-spacing: -0.02em;
}
.stat-tile span {
  display: block; margin-top: 10px; font-size: 14px; font-weight: 600;
  color: var(--text-strong);
}
.stat-tile small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }

/* ---------- Що вміють AI-агенти ---------- */
.ai-sec { background:
  radial-gradient(1100px 460px at 50% -10%, rgba(24, 252, 155, 0.05), transparent 70%); }
.cap-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cap-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px 24px;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out);
}
.cap-card:hover { transform: translateY(-4px); background: var(--bg-3); border-color: rgba(255,255,255,0.14); }
.cap-ico {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--neon-soft); color: var(--neon); flex: none;
}
.cap-card h3 { font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.cap-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.cap-card .link-arrow { font-size: 13px; }
.ai-foot {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  justify-content: center; margin-top: 34px;
}
.ai-foot p { color: var(--muted); }

/* ---------- Послуги на головній: три групи-списки ---------- */
.svc-groups {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.svc-group {
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 22px 18px;
}
.svc-group-title {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--neon);
  padding: 0 8px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.svc-row {
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  padding: 12px 8px; border-radius: 12px;
  transition: background 0.25s var(--ease-out), padding-left 0.25s var(--ease-out);
}
.svc-row:hover { background: rgba(255,255,255,0.05); padding-left: 14px; }
.svc-row-main b {
  display: block; font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
  color: var(--text-strong); line-height: 1.3;
}
.svc-row-main span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.svc-row-go { color: var(--muted); flex: none; transition: color 0.25s var(--ease-out); }
.svc-row:hover .svc-row-go { color: var(--neon); }

/* ---------- Продукти: мінікартки ---------- */
.prod-minis {
  display: grid; gap: 14px; margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.prod-mini {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 24px 22px;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.prod-mini:hover { transform: translateY(-4px); background: var(--bg-3); }
.prod-mini-tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--neon);
  background: var(--neon-soft); padding: 5px 10px; border-radius: 999px;
}
.prod-mini h3 { font-size: 20px; }
.prod-mini p { font-size: 14.5px; color: var(--muted); flex: 1; }

/* ---------- Смуга партнерської програми ---------- */
.ref-band {
  display: grid; gap: 26px; align-items: center;
  grid-template-columns: 1.5fr 1fr;
  background: linear-gradient(120deg, rgba(24,252,155,0.10), rgba(24,252,155,0.02) 60%), var(--bg-2);
  border: 1px solid rgba(24,252,155,0.22);
  border-radius: var(--r-card); padding: clamp(26px, 4vw, 44px);
}
.ref-band h2 { font-size: clamp(23px, 2.8vw, 36px); margin-top: 14px; }
.ref-band p { color: var(--muted); margin-top: 12px; max-width: 52ch; }
.ref-band-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Блог: сітка карток ---------- */
.post-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.post-grid--wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.post-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 24px 22px;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out);
}
.post-card:hover { transform: translateY(-4px); background: var(--bg-3); border-color: rgba(255,255,255,0.14); }
.post-card-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.post-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--neon); background: var(--neon-soft); padding: 5px 10px; border-radius: 999px;
}
.post-meta { font-size: 12px; color: var(--muted); }
.post-card h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.post-card p { font-size: 14px; color: var(--muted); flex: 1; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq-item {
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-inner); overflow: hidden;
  transition: border-color 0.3s var(--ease-out);
}
.faq-item.open { border-color: rgba(24,252,155,0.3); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 18px; justify-content: space-between;
  padding: 19px 22px; text-align: left;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--text-strong);
}
.faq-q:hover { color: var(--neon); }
.faq-ico { flex: none; color: var(--muted); transition: transform 0.35s var(--ease-out), color 0.3s; }
.faq-item.open .faq-ico { transform: rotate(45deg); color: var(--neon); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.42s var(--ease-drawer); }
.faq-a-in { padding: 0 22px 20px; }
.faq-a p { color: var(--muted); font-size: 15.5px; max-width: 74ch; }

/* ---------- Футер: колонки ---------- */
.footer-cols {
  display: grid; gap: 24px 32px; margin-top: 46px; padding-top: 34px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fcol { display: flex; flex-direction: column; gap: 9px; }
.fcol-title {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.fcol a { font-size: 14px; color: var(--text); transition: color 0.25s var(--ease-out); }
.fcol a:hover { color: var(--neon); }
.footer-legal { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--neon); }

/* ---------- Хаб послуг ---------- */
.hub-wrap { display: flex; flex-direction: column; gap: clamp(44px, 6vw, 76px); }
.hub-group-head {
  display: flex; align-items: baseline; gap: 18px; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.hub-group-head h2 { font-size: clamp(22px, 2.6vw, 34px); }
.hub-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.hub-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.hub-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px 24px;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out);
}
.hub-card:hover { transform: translateY(-5px); background: var(--bg-3); border-color: rgba(255,255,255,0.15); }
.hub-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--neon); background: var(--neon-soft);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 12px;
}
.hub-card h3 { font-size: 19px; line-height: 1.25; }
.hub-card-top p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.hub-list { display: grid; gap: 8px; flex: 1; }
.hub-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--text);
}
.hub-list svg { color: var(--neon); flex: none; margin-top: 5px; }

/* ---------- Продукти: великі блоки ---------- */
.prod-blocks { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); }
.prod-block {
  display: grid; gap: clamp(26px, 4vw, 54px); align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
}
.prod-block--flip .prod-block-copy { order: 2; }
.prod-block h2 { font-size: clamp(26px, 3.4vw, 44px); margin-top: 14px; }
.prod-block-copy > p { color: var(--muted); margin-top: 14px; }
.prod-block-copy .prod-lead { color: var(--text-strong); font-size: 18px; }
.prod-who {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r-input);
  background: var(--shell); border: 1px solid var(--line); font-size: 14px;
}
.prod-who b { color: var(--text-strong); }
.prod-shot--wave {
  display: grid; place-items: center; min-height: 280px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-card);
}
.prod-shot--wave svg { width: 78%; }

/* ---------- Кейси: сторінка ---------- */
.kcases { display: flex; flex-direction: column; gap: 16px; }
.kcase {
  display: grid; gap: 0; align-items: stretch;
  grid-template-columns: 1.1fr 1fr;
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  transition: border-color 0.4s var(--ease-out);
}
.kcase:hover { border-color: rgba(255,255,255,0.16); }
.kcase:nth-child(even) .kcase-media { order: 2; }
.kcase-media { background: var(--bg-3); overflow: hidden; }
.kcase-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.kcase-body { padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; gap: 10px; }
.kcase-body h2 { font-size: clamp(22px, 2.4vw, 30px); }
.kcase-name { display: inline-flex; align-items: center; gap: 8px; }
a.kcase-name:hover { color: var(--neon); }
.kcase-dom { font-size: 13px; color: var(--muted); font-family: var(--font-body); }
.kcase-body > p { color: var(--muted); font-size: 15px; }
.kcase-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 8px;
}
.kcase-body ul { display: grid; gap: 8px; }
.kcase-body ul li { display: flex; gap: 10px; font-size: 14px; }
.kcase-body ul svg { color: var(--neon); flex: none; margin-top: 5px; }

/* ---------- Принципи ---------- */
.rule-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.rule {
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px 24px;
}
.rule h3 { font-size: 17px; margin-bottom: 10px; }
.rule p { font-size: 14.5px; color: var(--muted); }

/* ---------- Контакти: додатки ---------- */
.contact-plain { display: block; color: var(--text); font-size: 15px; }
.contact-note {
  margin-top: 26px; padding: 16px 18px; border-radius: var(--r-input);
  background: var(--shell); border: 1px solid var(--line); font-size: 14.5px; color: var(--muted);
}
.contact-note a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.map-shell {
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  filter: grayscale(0.35) contrast(1.05);
}
.map-shell iframe { display: block; }

/* ---------- Чипи ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--shell);
}
.chip--link { transition: color 0.25s, border-color 0.25s; }
.chip--link:hover { color: var(--neon); border-color: rgba(24,252,155,0.45); }

/* ---------- Стаття ---------- */
.art-hero { position: relative; padding-block: clamp(120px, 13vw, 168px) clamp(26px, 4vw, 44px); }
.art-container { max-width: 1120px; }
.art-hero h1 {
  font-size: clamp(27px, 4.2vw, 54px); text-transform: none; letter-spacing: -0.025em;
  line-height: 1.08; margin-top: 16px; max-width: 24ch;
}
.art-lead { font-size: clamp(16px, 1.5vw, 20px); color: var(--text); margin-top: 18px; max-width: 68ch; }
.art-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 22px; font-size: 13px; color: var(--muted);
}
.art-meta .dot { opacity: 0.5; }
.art-layout {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 260px minmax(0, 1fr);
  padding-bottom: var(--section);
}
.art-side { position: sticky; top: 104px; align-self: start; display: flex; flex-direction: column; gap: 22px; }
.art-toc-title {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.art-toc ol { counter-reset: toc; display: grid; gap: 8px; }
.art-toc li { counter-increment: toc; font-size: 13.5px; }
.art-toc li::before {
  content: counter(toc, decimal-leading-zero); color: var(--neon);
  font-weight: 700; margin-right: 8px; font-size: 11px;
}
.art-toc a { color: var(--muted); }
.art-toc a:hover { color: var(--text-strong); }
.art-services { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.art-services .link-arrow { font-size: 13px; }

.art-body { max-width: 74ch; }
.art-body h2 {
  font-size: clamp(21px, 2.3vw, 29px); margin-top: 44px; margin-bottom: 14px;
  text-transform: none; letter-spacing: -0.02em; scroll-margin-top: 100px;
}
.art-body h2:first-child { margin-top: 0; }
.art-body h3 {
  font-size: clamp(17px, 1.8vw, 21px); margin-top: 28px; margin-bottom: 10px;
  text-transform: none; letter-spacing: -0.01em;
}
.art-body p { margin-bottom: 16px; color: var(--text); }
.art-ul { display: grid; gap: 10px; margin: 6px 0 22px; }
.art-ul li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.art-ul svg { color: var(--neon); flex: none; margin-top: 7px; }
.art-ol { counter-reset: aol; display: grid; gap: 12px; margin: 6px 0 22px; }
.art-ol li {
  counter-increment: aol; position: relative; padding-left: 42px; color: var(--text);
}
.art-ol li::before {
  content: counter(aol, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--neon);
  background: var(--neon-soft); width: 30px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
}
.art-quote {
  margin: 26px 0; padding: 22px 26px; border-left: 2px solid var(--neon);
  background: var(--shell); border-radius: 0 var(--r-inner) var(--r-inner) 0;
  font-family: var(--font-display); font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 500; line-height: 1.45; color: var(--text-strong); letter-spacing: -0.01em;
}
.art-note {
  margin: 26px 0; padding: 20px 22px; border-radius: var(--r-inner);
  background: var(--bg-2); border: 1px solid var(--line);
}
.art-note b {
  display: block; font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--neon); margin-bottom: 8px;
}
.art-note p { margin: 0; color: var(--muted); font-size: 15px; }
.art-table-wrap { overflow-x: auto; margin: 22px 0 26px; border-radius: var(--r-inner); border: 1px solid var(--line); }
.art-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.art-table th {
  text-align: left; padding: 14px 16px; background: var(--bg-3);
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.art-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.art-table tr:last-child td { border-bottom: none; }
.art-cta {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  margin: 34px 0; padding: 26px 28px; border-radius: var(--r-card);
  background: linear-gradient(120deg, rgba(24,252,155,0.10), rgba(24,252,155,0.02) 60%), var(--bg-2);
  border: 1px solid rgba(24,252,155,0.22);
}
.art-cta b {
  display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: var(--text-strong); letter-spacing: -0.01em;
}
.art-cta p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; max-width: 52ch; }

/* ---------- Дивіться також ---------- */
.rel-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rel-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 24px 22px;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.rel-card:hover { transform: translateY(-4px); background: var(--bg-3); }
.rel-tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--neon);
}
.rel-card h3 { font-size: 18px; line-height: 1.25; }
.rel-card p { font-size: 14px; color: var(--muted); flex: 1; }

/* ---------- Тарифи партнерки ---------- */
.tiers { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tier {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 30px 26px;
}
.tier--best { border-color: rgba(24,252,155,0.35); background: var(--bg-3); }
.tier-mark {
  position: absolute; top: -11px; left: 26px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #08130d; background: var(--neon); padding: 4px 11px; border-radius: 999px;
}
.tier-name {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.tier-pct {
  font-family: var(--font-display); font-size: clamp(38px, 4.6vw, 58px); font-weight: 800;
  line-height: 1; color: var(--text-strong); letter-spacing: -0.03em;
}
.tier-text { font-size: 14.5px; color: var(--muted); }
.tier ul { display: grid; gap: 9px; flex: 1; margin: 4px 0 10px; }
.tier li { display: flex; gap: 10px; font-size: 13.5px; }
.tier li svg { color: var(--neon); flex: none; margin-top: 5px; }
.tiers-note { margin-top: 20px; font-size: 13.5px; color: var(--muted); max-width: 76ch; }

/* ---------- Кроки-потік ---------- */
.flow { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.flow-step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 24px 22px;
}
.flow-num {
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--neon);
  background: var(--neon-soft); width: 38px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; flex: none;
}
.flow-step h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.25; }
.flow-step p { font-size: 14px; color: var(--muted); }

/* ---------- Калькулятор винагороди ---------- */
.ref-calc {
  display: grid; gap: clamp(24px, 4vw, 48px); align-items: center;
  grid-template-columns: 1fr 0.95fr;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: clamp(26px, 4vw, 46px);
}
.ref-calc h2 { font-size: clamp(24px, 3vw, 38px); margin-top: 14px; }
.ref-calc-copy p { color: var(--muted); margin-top: 14px; max-width: 46ch; }
.ref-calc-box { background: var(--shell); border: 1px solid var(--line); border-radius: var(--r-inner); padding: 26px 24px; }
.calc-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.ref-calc-box input[type="range"] {
  width: 100%; height: 4px; border-radius: 4px; appearance: none;
  background: linear-gradient(90deg, var(--neon), rgba(255,255,255,0.12));
}
.ref-calc-box input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--neon); border: 3px solid var(--bg); cursor: grab;
}
.ref-calc-box input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--neon); border: 3px solid var(--bg); cursor: grab;
}
.calc-val { margin-top: 14px; font-size: 14px; color: var(--muted); }
.calc-val b { font-family: var(--font-display); font-size: 26px; color: var(--text-strong); }
.calc-rates { display: flex; gap: 8px; margin-top: 20px; }
.calc-rate {
  flex: 1; padding: 11px 8px; border-radius: 11px; border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; color: var(--muted);
  transition: all 0.25s var(--ease-out);
}
.calc-rate:hover { color: var(--text-strong); border-color: rgba(255,255,255,0.2); }
.calc-rate.is-on { background: var(--neon); color: #08130d; border-color: var(--neon); }
.calc-out { margin: 22px 0 18px; font-size: 14px; color: var(--muted); }
.calc-out b {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px);
  color: var(--neon); display: block; margin-top: 4px;
}

/* ---------- Кабінет: вхід ---------- */
.auth-wrap { display: grid; gap: 18px; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); align-items: start; }
.auth-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: clamp(24px, 3.4vw, 36px);
}
.auth-card > h2 { font-size: clamp(21px, 2.4vw, 28px); }
.auth-card > p { color: var(--muted); margin-top: 12px; }
.auth-tabs { display: flex; gap: 6px; padding: 5px; background: var(--shell); border-radius: 13px; margin-bottom: 24px; }
.auth-tab {
  flex: 1; padding: 10px; border-radius: 9px; font-weight: 700; font-size: 14px;
  color: var(--muted); transition: all 0.25s var(--ease-out);
}
.auth-tab.is-on { background: var(--bg-3); color: var(--text-strong); }
.auth-form { display: grid; gap: 14px; }
.auth-link { font-size: 13px; color: var(--muted); text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.auth-link:hover { color: var(--neon); }
.auth-msg { margin-top: 16px; font-size: 14px; color: var(--neon); min-height: 1px; }
.auth-msg.is-bad { color: #ff8a80; }
.auth-aside { padding: clamp(24px, 3vw, 34px); background: var(--shell); border: 1px solid var(--line); border-radius: var(--r-card); }
.auth-aside h2 { font-size: 19px; margin-bottom: 18px; }
.auth-aside-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.auth-aside-note a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.check-row { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.check-row input { margin-top: 3px; accent-color: var(--neon); width: 16px; height: 16px; flex: none; }
.check-row a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Кабінет: дашборд ---------- */
.dash { display: flex; flex-direction: column; gap: 20px; }
.dash-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; }
.dash-head h2 { font-size: clamp(24px, 3vw, 36px); margin-top: 8px; }
.dash-sub { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.dash-sub b { color: var(--neon); }
.copy-field { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.copy-field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.copy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.copy-row input {
  flex: 1; min-width: 220px; padding: 13px 16px; border-radius: var(--r-input);
  background: var(--bg); border: 1px solid var(--line); color: var(--text-strong);
  font-family: var(--font-body); font-size: 14.5px;
}
.copy-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.copy-note b { color: var(--neon); font-family: var(--font-display); letter-spacing: 0.04em; }
.dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-table-wrap { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.dash-table th {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.dash-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.dash-table tr:last-child td { border-bottom: none; }
.dash-empty { color: var(--muted); text-align: center; padding: 30px 14px; }
.st { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.st-new { color: var(--mint); background: rgba(185,254,223,0.12); }
.st-work { color: #ffd479; background: rgba(255,212,121,0.12); }
.st-won { color: #08130d; background: var(--neon); }
.st-lost { color: var(--muted); background: rgba(255,255,255,0.07); }

/* ---------- Форма: стан помилки ---------- */
.form-fail { display: none; text-align: center; padding: 14px 0; }
.form-fail.visible { display: block; }
.form-fail .warn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 16px; font-family: var(--font-display); font-size: 22px; font-weight: 800;
  color: #ff8a80; background: rgba(255,138,128,0.14);
}
.form-fail h3 { font-size: 20px; margin-bottom: 10px; }
.form-fail p { color: var(--muted); font-size: 14.5px; }
.form-fail-links { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.form-fail-links a { color: var(--neon); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Поле select у формах ---------- */
.field select {
  width: 100%; padding: 14px 16px; border-radius: var(--r-input);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text-strong);
  font-family: var(--font-body); font-size: 15px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa39e' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select:focus { outline: none; border-color: rgba(24,252,155,0.5); }
.field select option { background: var(--bg-2); color: var(--text-strong); }

/* ---------- 404 та службові ---------- */
.page-hero--short { padding-block: clamp(120px, 13vw, 170px) clamp(20px, 3vw, 34px); }
.h1--doc { font-size: clamp(26px, 3.6vw, 46px); text-transform: none; letter-spacing: -0.025em; }
.nf { text-align: center; padding-block: clamp(140px, 16vw, 210px) clamp(60px, 8vw, 110px); }
.nf .chips, .nf .hero-actions { justify-content: center; }
.nf-code {
  font-family: var(--font-display); font-size: clamp(80px, 16vw, 190px); font-weight: 800;
  line-height: 0.85; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.13);
  margin-bottom: 18px;
}
.nf .page-lead { margin-inline: auto; }

/* ---------- Сервісні картки: номер ---------- */
.sub-num {
  display: block; font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--neon); margin-bottom: 12px;
}

/* ============================================================
   Адаптив нових блоків
   ============================================================ */
@media (max-width: 1100px) {
  .subnav.mega { width: min(680px, calc(100vw - 32px)); }
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-grid, .svc-groups, .prod-minis, .post-grid, .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-row, .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-layout { grid-template-columns: 1fr; }
  .art-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 28px; }
  .art-toc, .art-services { flex: 1 1 260px; }
  .art-services { padding-top: 0; border-top: none; }
  .prod-block, .prod-block--flip { grid-template-columns: 1fr; }
  .prod-block--flip .prod-block-copy { order: 0; }
  .kcase, .kcase:nth-child(even) { grid-template-columns: 1fr; }
  .kcase-media, .kcase:nth-child(even) .kcase-media { order: 0; max-height: 300px; }
  .ref-band, .ref-calc { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .cap-grid, .svc-groups, .prod-minis, .post-grid, .post-grid--wide,
  .tiers, .stats-row, .dash-stats, .mega-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .hero-marks { gap: 8px 16px; }
  .art-hero h1 { max-width: none; }
  .faq-q { padding: 16px 18px; font-size: 15px; }
  .faq-a-in { padding: 0 18px 18px; }
  .dash-head { flex-direction: column; align-items: flex-start; }
  .tier-pct { font-size: 42px; }
  .subnav.mega { padding: 16px; }
}

/* ---------- Мобільний драйвер: мега-меню в колонку ----------
   ⛔ У драйвері 13 послуг плюс розділи, це більше за висоту екрана.
   Тому меню вирівнюється зверху й скролиться, а не центрується. */
.nav-mobile-only { display: none; }

@media (max-width: 900px) {
  .nav {
    justify-content: flex-start;
    padding: 92px 0 48px;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav > ul { margin-inline: auto; }
  .nav-mobile-only { display: block; }
  .nav-mobile-only a { color: var(--neon); }

  .subnav.mega {
    position: static; width: 100%; left: auto; right: auto;
    transform: none; padding: 2px 0 8px 14px;
  }
  .has-sub.open .subnav.mega { transform: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 4px; }
  .mega-title {
    padding: 12px 10px 6px; margin-bottom: 2px;
    font-size: 10px; letter-spacing: 0.16em;
  }
  .mega-col > a { padding: 10px; }
  .mega-col > a b { font-size: 16px; }
  .mega-col > a span { display: none; }
  .mega-foot { margin-top: 10px; padding: 12px 10px 0; }
  .mega-hot { display: none; }
}

/* ⛔ Атрибут hidden мусить перемагати наші display:grid/flex.
   Правило браузера з UA-таблиці слабше за будь-яке авторське, тому
   .auth-wrap{display:grid} показував схований блок кабінету. */
[hidden] { display: none !important; }

/* Пастка для спам-ботів: прибрана з потоку, але не display:none,
   бо частина ботів такі поля свідомо пропускає. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
