/* ==========================================================================
   KODA — Веб-студія. Стилі (v2, багатосторінковий).
   1. Змінні / теми          9.  Marquee            17. Тарифи
   2. Скидання               10. Статистика         18. Відгуки
   3. Утиліти                11. Послуги            19. FAQ
   4. Оверлеї                12. Калькулятор        20. CTA
   5. Кнопки                 13. Код-вікно          21. Контакти
   6. Навбар                 14. Таймлайн           22. Про нас (цінності/команда)
   7. Page-hero              15. Портфоліо/кейси    23. Футер
   8. Hero + 3D              16. Кейс-візуали       24. Інше / адаптив / motion
   ========================================================================== */

/* ===== 1. Змінні / теми ===== */
:root {
  --bg: #08080d;
  --bg-alt: #0e0d16;
  --surface: #14131e;
  --surface-2: #1a1927;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .17);
  --text: #f5f5f7;
  --text-dim: #a7a7bc;
  --text-faint: #73738c;

  --accent-1: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #22d3ee;
  --accent-4: #34d399;
  --accent-5: #fbbf24;

  --gradient-brand: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --gradient-cool: linear-gradient(135deg, var(--accent-3), var(--accent-1));

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, .38);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .5);
  --glow-ring: 0 0 0 1px rgba(139, 92, 246, .35), 0 10px 34px rgba(139, 92, 246, .28);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --container-w: 1240px;
  --nav-h: 76px;
  --section-py: clamp(4.5rem, 8vw, 7.5rem);

  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #faf9fc;
  --bg-alt: #f1eff8;
  --surface: #ffffff;
  --surface-2: #f4f2fa;
  --border: rgba(20, 20, 35, .1);
  --border-strong: rgba(20, 20, 35, .18);
  --text: #14141c;
  --text-dim: #4e4e66;
  --text-faint: #86869e;

  --shadow-sm: 0 2px 10px rgba(20, 20, 40, .07);
  --shadow-md: 0 16px 40px rgba(20, 20, 40, .09);
  --shadow-lg: 0 30px 70px rgba(20, 20, 40, .13);
  --glow-ring: 0 0 0 1px rgba(139, 92, 246, .28), 0 10px 34px rgba(139, 92, 246, .16);

  color-scheme: light;
}

/* ===== 2. Скидання ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
body.no-scroll { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }

section[id], .case[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

::selection { background: var(--accent-1); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-1); }
:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; border-radius: 4px; }

/* ===== 3. Утиліти ===== */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 28px; }

/* Градієнтний текст. Паддінги малюють фон поза лайн-боксом, щоб
   background-clip:text не «зрізав» хвостики щ/р/у та крапки над Ї. */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: .1em .04em .14em 0;
  margin: -.1em -.04em -.14em 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .8rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--accent-2); opacity: .7; }
.section-head .eyebrow::before { display: none; }

.section-head { max-width: 660px; margin: 0 auto 3.5rem; text-align: center; }
.section-title { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.8rem); margin-bottom: .9rem; text-wrap: balance; }
.section-desc { color: var(--text-dim); font-size: 1.05rem; }

.stars {
  background: linear-gradient(90deg, var(--accent-5), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 2px;
}

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff; font-weight: 700; font-size: .85rem;
  border: 2px solid var(--bg);
  flex-shrink: 0;
}
.avatar--sm { width: 38px; height: 38px; font-size: .72rem; }
.avatar--more { background: var(--surface-2); color: var(--text-dim); }

.chip {
  display: inline-flex; align-items: center;
  padding: 5px 13px; border-radius: var(--radius-full);
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .74rem; color: var(--text-dim);
}

.glass {
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--border-strong);
}

/* ===== 4. Оверлеї ===== */
.noise {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .noise { opacity: .02; mix-blend-mode: multiply; }

.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--gradient-brand);
  z-index: 9990;
}

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  display: none; pointer-events: none; z-index: 9998;
  border-radius: 50%; will-change: transform;
}
.cursor-dot { width: 8px; height: 8px; background: var(--accent-2); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent-1);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .25s var(--ease), border-color .25s var(--ease);
  opacity: .7;
}
.cursor-ring--hover { width: 56px; height: 56px; opacity: 1; border-color: var(--accent-2); }
.cursor-ring--click { width: 28px; height: 28px; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor input,
html.has-cursor textarea, html.has-cursor select, html.has-cursor label { cursor: none; }
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { display: block; }

.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.preloader--done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--text);
}
.preloader__logo svg { width: 30px; height: 30px; color: var(--accent-1); }
.preloader__bar { width: 220px; height: 3px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.preloader__bar-fill { height: 100%; width: 0%; background: var(--gradient-brand); border-radius: 99px; }
.preloader__percent { font-family: var(--font-mono); font-size: .85rem; color: var(--text-faint); }

/* ===== 5. Кнопки ===== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  font-weight: 600; font-size: .96rem; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--lg { padding: 17px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--gradient-brand); color: #fff; box-shadow: var(--glow-ring); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(139, 92, 246, .4); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--primary:active { transform: translateY(-1px); }

.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--accent-1); box-shadow: var(--shadow-md); }

.btn--outline-light { border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }

.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; }
.btn.is-loading .btn__text { opacity: 0; }
.btn.is-loading .btn__spinner { display: block; position: absolute; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; }
.btn.is-success { background: var(--accent-4); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 6. Навбар ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease), height .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar--scrolled {
  height: 66px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.navbar--hidden { transform: translateY(-100%); }

.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.logo__icon { display: flex; width: 26px; height: 26px; color: var(--accent-1); }
.logo__icon svg { width: 100%; height: 100%; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  padding: 9px 14px; border-radius: var(--radius-full);
  font-size: .93rem; font-weight: 500; color: var(--text-dim);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; border-radius: 2px;
  background: var(--gradient-brand);
}
.nav-links__cta { margin-left: 10px; }

.navbar__actions { display: flex; align-items: center; gap: 14px; position: relative; z-index: 950; }

.theme-toggle { position: relative; width: 22px; height: 22px; color: var(--text-dim); transition: color .25s; }
.theme-toggle:hover { color: var(--accent-1); }
.theme-toggle svg { position: absolute; top: 0; left: 0; width: 22px; height: 22px; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.icon-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
.icon-sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="light"] .icon-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="light"] .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

.hamburger { display: none; position: relative; width: 26px; height: 18px; }
.hamburger span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }
.hamburger.is-active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ===== 7. Page-hero (внутрішні сторінки) ===== */
.page-hero { position: relative; padding: calc(var(--nav-h) + 4rem) 0 3.6rem; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__inner { position: relative; z-index: 1; max-width: 780px; }
.crumbs {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint);
  margin-bottom: 20px;
}
.crumbs a { transition: color .25s; }
.crumbs a:hover { color: var(--accent-1); }
.page-hero__title { font-size: clamp(2.2rem, 3.4vw + 1rem, 3.6rem); margin-bottom: 16px; }
.page-hero__desc { color: var(--text-dim); font-size: 1.08rem; max-width: 620px; }

/* ===== 8. Hero (головна) + 3D ===== */
.hero { position: relative; padding: calc(var(--nav-h) + 4.6rem) 0 6rem; overflow: hidden; }

.hero__canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }

.hero__blobs, .page-hero .hero__blobs { position: absolute; inset: 0; z-index: 0; overflow: hidden; will-change: transform; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.blob--1 { width: 480px; height: 480px; background: var(--accent-1); top: -160px; left: -120px; animation: blobFloat 16s ease-in-out infinite; }
.blob--2 { width: 420px; height: 420px; background: var(--accent-2); top: 40px; right: -140px; animation: blobFloat 20s ease-in-out infinite reverse; }
.blob--3 { width: 380px; height: 380px; background: var(--accent-3); bottom: -180px; left: 30%; opacity: .3; animation: blobFloat 18s ease-in-out infinite; }
:root[data-theme="light"] .blob { opacity: .26; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 50px) scale(1.1); }
  66% { transform: translate(-30px, 20px) scale(.95); }
}

.hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  opacity: .6;
}

/* --- Плаваючі 3D-фігури --- */
.shapes3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; perspective: 1100px; }
.shape3d { position: absolute; transform-style: preserve-3d; will-change: transform; }
.shape3d__spin { width: 100%; height: 100%; transform-style: preserve-3d; }

.shape3d--cube { width: 84px; height: 84px; top: 16%; right: 8%; }
.shape3d--cube .shape3d__spin { animation: spin3d 22s linear infinite; }
.cube-face {
  position: absolute; inset: 0;
  border: 1.5px solid color-mix(in srgb, var(--accent-1) 65%, transparent);
  background: color-mix(in srgb, var(--accent-1) 7%, transparent);
  border-radius: 10px;
}
.cube-face:nth-child(1) { transform: translateZ(42px); }
.cube-face:nth-child(2) { transform: rotateY(180deg) translateZ(42px); }
.cube-face:nth-child(3) { transform: rotateY(90deg) translateZ(42px); }
.cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(42px); }
.cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(42px); }
.cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(42px); }

.shape3d--ring { width: 130px; height: 130px; bottom: 12%; left: 4%; }
.shape3d--ring .shape3d__spin { animation: spin3dAlt 26s linear infinite; }
.ring-el {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent-3) 60%, transparent);
}
.ring-el:nth-child(2) { transform: rotateX(60deg); border-color: color-mix(in srgb, var(--accent-2) 55%, transparent); }
.ring-el:nth-child(3) { transform: rotateY(60deg); border-color: color-mix(in srgb, var(--accent-1) 50%, transparent); }

.shape3d--crystal { width: 64px; height: 90px; top: 56%; right: 20%; }
.shape3d--crystal .shape3d__spin { animation: spin3d 18s linear infinite reverse; }
.crystal-plane {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 30%, transparent), color-mix(in srgb, var(--accent-1) 12%, transparent));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.crystal-plane:nth-child(2) { transform: rotateY(60deg); }
.crystal-plane:nth-child(3) { transform: rotateY(120deg); }

@keyframes spin3d { to { transform: rotateX(360deg) rotateY(360deg); } }
@keyframes spin3dAlt { to { transform: rotateX(-360deg) rotateY(360deg); } }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border-strong);
  font-size: .84rem; font-weight: 500; color: var(--text-dim);
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-4); animation: pulseDot 2s infinite; flex-shrink: 0; }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero__title { font-size: clamp(2.6rem, 4.4vw + 1rem, 4.8rem); margin-bottom: 26px; line-height: 1.12; }
.hero__title-line { display: block; }
.hero__title-line--gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: .06em .04em .16em 0; margin: -.06em -.04em -.16em 0;
}

.hero__subtitle { font-size: clamp(1.02rem, .4vw + 1rem, 1.2rem); color: var(--text-dim); max-width: 520px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 42px; }

.hero__trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__avatars { display: flex; }
.hero__avatars .avatar { margin-left: -12px; }
.hero__avatars .avatar:first-child { margin-left: 0; }
.hero__rating { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-dim); }
.hero__rating .stars { font-size: 1rem; }

/* браузерний мокап */
.hero__visual { position: relative; z-index: 1; perspective: 1200px; }
.mockup {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform .1s linear;
  transform-style: preserve-3d;
}
.mockup__glow {
  position: absolute; z-index: 0;
  width: 60%; height: 60%; left: 20%; top: 10%;
  background: var(--gradient-brand);
  filter: blur(70px); opacity: .3;
}
.tilt-glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .14), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.tilt--active .tilt-glare { opacity: 1; }
.mockup__bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mockup__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mockup__url {
  margin-left: 12px; padding: 5px 14px; border-radius: var(--radius-full);
  background: var(--surface-2); font-family: var(--font-mono); font-size: .74rem; color: var(--text-faint);
}
.mockup__body { position: relative; z-index: 1; padding: 26px; display: flex; flex-direction: column; gap: 22px; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--border-strong) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 2.6s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.mockup__nav { display: flex; align-items: center; gap: 10px; }
.sk--logo { width: 34px; height: 12px; border-radius: 4px; }
.sk--pill { width: 46px; height: 10px; border-radius: 99px; margin-left: 6px; }
.mockup__nav .sk--pill:first-of-type { margin-left: auto; }
.mockup__hero { display: flex; flex-direction: column; gap: 12px; padding: 10px 0 6px; }
.sk--title { width: 78%; height: 22px; }
.sk--text { width: 92%; height: 10px; }
.sk--short { width: 55%; }
.sk--btn { width: 130px; height: 34px; border-radius: var(--radius-full); margin-top: 6px; background: var(--gradient-brand); animation: none; opacity: .85; }
.mockup__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sk--card { height: 70px; }

.float-chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  font-size: .82rem; font-weight: 600;
  animation: chipFloat 5s ease-in-out infinite;
  z-index: 2;
}
.float-chip--1 { top: -16px; right: 6%; animation-delay: 0s; }
.float-chip--2 { bottom: 18%; left: -18px; animation-delay: 1.2s; }
.float-chip--3 { bottom: -14px; right: 14%; animation-delay: 2.4s; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .72rem; color: var(--text-faint); letter-spacing: .06em; text-transform: uppercase;
}
.hero__scroll svg { width: 18px; height: 18px; animation: bounceDown 2s ease-in-out infinite; }
@keyframes bounceDown { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(6px); opacity: 1; } }

/* reveal-система */
.hero-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
body.loaded .hero-reveal { opacity: 1; transform: none; }
.hero-reveal[data-delay="1"] { transition-delay: .05s; }
.hero-reveal[data-delay="2"] { transition-delay: .2s; }
.hero-reveal[data-delay="3"] { transition-delay: .35s; }
.hero-reveal[data-delay="4"] { transition-delay: .5s; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: .08s; }
.stagger > .reveal:nth-child(3) { transition-delay: .16s; }
.stagger > .reveal:nth-child(4) { transition-delay: .24s; }
.stagger > .reveal:nth-child(5) { transition-delay: .32s; }
.stagger > .reveal:nth-child(6) { transition-delay: .4s; }

/* ===== 9. Marquee ===== */
.marquee-section { padding: 2.4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-section:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee__item {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 500;
  color: var(--text-faint);
  padding: 0 2.2rem;
  position: relative;
  transition: color .3s;
}
.marquee__item:hover { color: var(--accent-1); }
.marquee__item::after { content: '/'; position: absolute; right: -.15em; color: var(--border-strong); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== 10. Статистика ===== */
.stats { padding: var(--section-py) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat__number {
  display: flex; justify-content: center; align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3vw + 1rem, 3.3rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.stat__number span {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .12em; margin-bottom: -.12em;
}
.stat__label { color: var(--text-dim); font-size: .92rem; max-width: 190px; margin: 0 auto; }


/* ===== 13. Про нас (головна) / код-вікно ===== */
.about { padding: var(--section-py) 0; }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__text .eyebrow { display: inline-flex; }
.about__text .section-title { margin-bottom: 20px; }
.about__text > p { color: var(--text-dim); margin-bottom: 30px; font-size: 1.02rem; }

.checklist li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: .96rem; font-weight: 500;
}
.checklist li:first-child { border-top: none; }
.checklist li svg { width: 20px; height: 20px; color: var(--accent-4); flex-shrink: 0; }

.code-window {
  position: relative;
  background: #0d0d14;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform .1s linear;
  transform-style: preserve-3d;
}
.code-window__bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.code-window__title { margin-left: 10px; font-family: var(--font-mono); font-size: .78rem; color: #6b6b82; }
.code-window__body {
  padding: 26px 24px 60px;
  font-family: var(--font-mono);
  font-size: .88rem; line-height: 1.75;
  color: #d4d4e8;
  white-space: pre-wrap; word-break: break-word;
  min-height: 220px;
}
.code-cursor { display: inline-block; width: 7px; height: 1em; background: var(--accent-3); vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tok-sel { color: #67e8f9; } .tok-prop { color: #c4b5fd; } .tok-val { color: #fbbf24; }
.tok-str { color: #6ee7b7; } .tok-func { color: #67e8f9; } .tok-punct { color: #6b6b82; }
.tok-tag { color: #f472b6; } .tok-attr { color: #c4b5fd; } .tok-kw { color: #f472b6; } .tok-param { color: #fbbf24; }

/* ===== 14. Процес / таймлайн ===== */
.process { padding: var(--section-py) 0; background: var(--bg-alt); }
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 32px; top: 32px; bottom: 32px; width: 2px; background: var(--border); z-index: 1; }
.timeline::after {
  content: ''; position: absolute; left: 32px; top: 32px; width: 2px;
  height: calc((100% - 64px) * var(--progress, 0));
  background: var(--gradient-brand); z-index: 1;
}
.timeline__item { position: relative; z-index: 2; display: flex; gap: 28px; padding-bottom: 48px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__number {
  flex: 0 0 64px; width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display); font-weight: 700; color: var(--accent-1);
  box-shadow: var(--shadow-sm);
}
.timeline__content { padding-top: 10px; }
.timeline__content h3 { font-size: 1.18rem; margin-bottom: 8px; }
.timeline__content p { color: var(--text-dim); font-size: .96rem; max-width: 460px; }

/* ===== 15. Портфоліо: прев'ю-картки, фільтри, міні-сітка ===== */
.portfolio { padding: var(--section-py) 0; }
.portfolio__filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 2.6rem; }
.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: .88rem; font-weight: 600; color: var(--text-dim);
  transition: all .3s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--accent-1); }
.filter-btn.active { background: var(--gradient-brand); color: #fff; border-color: transparent; }

.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.portfolio-card {
  position: relative;
  aspect-ratio: 4 / 3.1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
}
.portfolio-card.is-hidden { display: none; }
.portfolio-card.card-enter { animation: cardIn .5s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

.portfolio-card__thumb { position: absolute; inset: 0; z-index: 0; overflow: hidden; transition: transform .6s var(--ease); }
.portfolio-card__thumb::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 26px);
  mix-blend-mode: overlay;
}
.portfolio-thumb__shape { position: absolute; border-radius: 50%; filter: blur(20px); }
.portfolio-thumb__shape--a { width: 55%; height: 55%; top: -18%; right: -12%; background: rgba(255, 255, 255, .25); }
.portfolio-thumb__shape--b { width: 40%; height: 40%; bottom: -14%; left: -8%; background: rgba(0, 0, 0, .2); }

.portfolio-thumb--mirror { background: linear-gradient(135deg, #64748b, #22d3ee); }
.portfolio-thumb--vyriy { background: linear-gradient(135deg, #f59e0b, #2563eb); }
.portfolio-thumb--garderob { background: linear-gradient(135deg, #a16207, #292524); }
.portfolio-thumb--1 { background: linear-gradient(135deg, #f59e0b, #ec4899); }
.portfolio-thumb--2 { background: linear-gradient(135deg, #06b6d4, #6366f1); }
.portfolio-thumb--3 { background: linear-gradient(135deg, #64748b, #1e293b); }
.portfolio-thumb--4 { background: linear-gradient(135deg, #8b5cf6, #22d3ee); }
.portfolio-thumb--5 { background: linear-gradient(135deg, #34d399, #06b6d4); }
.portfolio-thumb--6 { background: linear-gradient(135deg, #d97706, #7c2d12); }

.portfolio-card__overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(to top, rgba(5, 5, 10, .88) 0%, rgba(5, 5, 10, .35) 55%, transparent 100%);
  color: #fff;
}
.portfolio-card__tag {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  padding: 5px 12px; border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  margin-bottom: 12px;
}
.portfolio-card__overlay h3 { font-size: 1.12rem; margin-bottom: 10px; }
.portfolio-card__view {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-size: .84rem; font-weight: 600;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.portfolio-card__view svg { width: 15px; height: 15px; }
.portfolio-card:hover .portfolio-card__view, .portfolio-card:focus-visible .portfolio-card__view { opacity: 1; transform: translateY(0); }
.portfolio-card:hover .portfolio-card__thumb { transform: scale(1.06); }

/* кейси (portfolio.html) */
.case { padding: var(--section-py) 0; }
.case--alt { background: var(--bg-alt); }
.case__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.case--alt .case__inner > .case__info { order: 2; }
.case--alt .case__inner > .case__visual { order: 1; }
.case__num {
  font-family: var(--font-mono); font-size: .8rem; color: var(--text-faint);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.case__num::after { content: ''; width: 34px; height: 1px; background: var(--border-strong); }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.case__info h2 { font-size: clamp(1.8rem, 2.4vw + 1rem, 2.6rem); margin-bottom: 14px; }
.case__lead { color: var(--text-dim); font-size: 1.04rem; margin-bottom: 22px; }
.case__block { margin-bottom: 18px; }
.case__block h4 { font-size: .92rem; margin-bottom: 6px; color: var(--accent-2); }
.case__block p { color: var(--text-dim); font-size: .95rem; }
.case__metrics { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.case__metric {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 110px;
}
.case__metric b {
  display: flex; align-items: baseline;
  font-family: var(--font-display); font-size: 1.3rem;
}
.case__metric b span {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .12em; margin-bottom: -.12em;
}
.case__metric i { font-style: normal; font-size: .78rem; color: var(--text-faint); }
.case__stack { display: flex; flex-wrap: wrap; gap: 8px; }

.case__visual { position: relative; min-height: 380px; display: grid; place-items: center; perspective: 1100px; }

/* ===== 16. Кейс-візуали ===== */
/* — Дзеркало (PROSTIR MGF) — */
.mirror-scene { position: relative; width: min(330px, 82%); transform-style: preserve-3d; }
.mirror {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 46% 46% 12px 12px / 30% 30% 12px 12px;
  padding: 12px;
  background: linear-gradient(160deg, #8f96a3, #3e434d 60%, #6b7280);
  box-shadow: var(--shadow-lg), inset 0 1px 2px rgba(255, 255, 255, .4);
  transition: transform .1s linear;
  transform-style: preserve-3d;
  overflow: hidden;
}
.mirror__glass {
  position: absolute; inset: 12px;
  border-radius: 44% 44% 8px 8px / 28% 28% 8px 8px;
  background: linear-gradient(155deg, #cdd6e0 0%, #98a6b8 35%, #d9e2ec 52%, #8b99ad 70%, #b9c5d4 100%);
  overflow: hidden;
}
.mirror__glass::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(120px 120px at 26% 24%, color-mix(in srgb, var(--accent-1) 34%, transparent), transparent 70%),
    radial-gradient(140px 140px at 72% 66%, color-mix(in srgb, var(--accent-3) 26%, transparent), transparent 70%);
}
.mirror__shine {
  position: absolute; top: -30%; bottom: -30%; width: 46%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-18deg);
  animation: shineSweep 4.2s ease-in-out infinite;
  left: -60%;
}
@keyframes shineSweep {
  0%, 55% { left: -60%; }
  85%, 100% { left: 130%; }
}
.mirror__stand {
  width: 44%; height: 16px; margin: -4px auto 0;
  background: linear-gradient(180deg, #565d68, #2c3038);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 22px 24px -10px rgba(0, 0, 0, .5);
}
.glass-shard {
  position: absolute;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent-3) 45%, transparent), color-mix(in srgb, #fff 22%, transparent));
  clip-path: polygon(50% 0%, 100% 60%, 22% 100%);
  animation: chipFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3));
}
.glass-shard--1 { width: 52px; height: 52px; top: 4%; right: -12%; animation-delay: .4s; }
.glass-shard--2 { width: 34px; height: 34px; bottom: 12%; left: -14%; animation-delay: 1.6s; }
.glass-shard--3 { width: 26px; height: 26px; top: 40%; right: -18%; animation-delay: 2.8s; }

/* — VYRIY (укр бренд) — */
.vyriy-scene { position: relative; width: min(360px, 86%); transform-style: preserve-3d; }
.vyriy-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, #0b1d3f 0%, #14337a 42%, #f59e0b 78%, #fcd34d 100%);
  box-shadow: var(--shadow-lg);
  transition: transform .1s linear;
  transform-style: preserve-3d;
}
.vyriy-sun {
  position: absolute; left: 50%; bottom: 16%;
  width: 44%; aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fde68a 0%, #f59e0b 70%);
  box-shadow: 0 0 60px 18px rgba(245, 158, 11, .45);
  animation: sunRise 7s ease-in-out infinite;
}
@keyframes sunRise { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-12px); } }
.vyriy-bird {
  position: absolute;
  width: 26px; height: 10px;
  animation: birdFly 9s linear infinite;
  opacity: 0;
}
.vyriy-bird::before, .vyriy-bird::after {
  content: '';
  position: absolute; top: 0;
  width: 14px; height: 10px;
  border: 2.5px solid rgba(255, 255, 255, .85);
  border-bottom: none; border-left: none; border-right: none;
  border-radius: 50% 50% 0 0;
}
.vyriy-bird::before { left: 0; transform: rotate(-8deg); }
.vyriy-bird::after { right: 0; transform: rotate(8deg); }
.vyriy-bird--1 { top: 22%; animation-delay: 0s; }
.vyriy-bird--2 { top: 14%; animation-delay: 3s; }
.vyriy-bird--3 { top: 30%; animation-delay: 6s; }
@keyframes birdFly {
  0% { left: -12%; opacity: 0; }
  8% { opacity: .9; }
  50% { transform: translateY(-14px); }
  92% { opacity: .9; }
  100% { left: 104%; opacity: 0; }
}
.vyriy-title {
  position: absolute; left: 0; right: 0; top: 8%;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.9rem);
  font-weight: 900; letter-spacing: .12em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.vyriy-sub {
  position: absolute; left: 0; right: 0; top: calc(8% + 3.4rem);
  text-align: center;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

/* — GARDEROB (одяг) — */
.garderob-scene { position: relative; width: min(400px, 92%); height: 380px; transform-style: preserve-3d; }
.gard-card {
  position: absolute; top: 50%; left: 50%;
  width: 200px; aspect-ratio: 3 / 4.2;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-style: preserve-3d;
}
.gard-card__img { height: 62%; position: relative; }
.gard-card__img::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 18px);
}
.gard-card--1 .gard-card__img { background: linear-gradient(150deg, #d6c7b2, #8a6f52); }
.gard-card--2 .gard-card__img { background: linear-gradient(150deg, #3f3f46, #18181b); }
.gard-card--3 .gard-card__img { background: linear-gradient(150deg, #9ca3af, #4b5563); }
.gard-card__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.gard-card__line { height: 9px; border-radius: 6px; background: var(--surface-2); }
.gard-card__line--short { width: 55%; }
.gard-card__price {
  margin-top: 2px;
  font-family: var(--font-display); font-size: .9rem; font-weight: 700;
  color: var(--accent-2);
}
.gard-card--1 { transform: translate(-50%, -50%) translateX(-118px) rotateY(16deg) translateZ(-70px) scale(.92); animation: gardFloat1 7s ease-in-out infinite; }
.gard-card--2 { transform: translate(-50%, -50%) rotateY(-6deg) translateZ(30px); animation: gardFloat2 7s ease-in-out infinite; z-index: 2; }
.gard-card--3 { transform: translate(-50%, -50%) translateX(118px) rotateY(-20deg) translateZ(-70px) scale(.92); animation: gardFloat3 7s ease-in-out infinite; }
@keyframes gardFloat1 { 50% { transform: translate(-50%, -50%) translateX(-118px) translateY(-10px) rotateY(16deg) translateZ(-70px) scale(.92); } }
@keyframes gardFloat2 { 50% { transform: translate(-50%, -50%) translateY(-14px) rotateY(-6deg) translateZ(30px); } }
@keyframes gardFloat3 { 50% { transform: translate(-50%, -50%) translateX(118px) translateY(-8px) rotateY(-20deg) translateZ(-70px) scale(.92); } }
.gard-tag {
  position: absolute;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand); color: #fff;
  font-size: .74rem; font-weight: 700;
  box-shadow: var(--shadow-md);
  animation: chipFloat 5s ease-in-out infinite;
  z-index: 3;
}
.gard-tag--1 { top: 8%; left: 6%; }
.gard-tag--2 { bottom: 10%; right: 4%; animation-delay: 1.4s; }

/* ===== 17. Тарифи ===== */
.pricing { padding: var(--section-py) 0; background: var(--bg-alt); }
.pricing--plain { background: transparent; }
.pricing__toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 3rem; }
.pricing__currency-label { font-size: .92rem; font-weight: 600; color: var(--text-faint); transition: color .3s; cursor: pointer; }
.pricing__currency-label.active { color: var(--text); }
.switch {
  position: relative; width: 52px; height: 28px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
}
.switch__thumb {
  position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient-brand);
  transition: transform .3s var(--ease);
}
.switch--on .switch__thumb { transform: translateX(24px); }

.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column;
  padding: 2.4rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card--popular { border-color: var(--accent-1); background: var(--surface-2); box-shadow: var(--glow-ring); }
.price-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px; border-radius: var(--radius-full);
  background: var(--gradient-brand); color: #fff;
  font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.price-card__desc { color: var(--text-dim); font-size: .9rem; margin-bottom: 22px; min-height: 40px; }
.price-card__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 26px; }
.price-card__from { color: var(--text-faint); font-size: .88rem; }
.price-card__amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; }
.price-card__features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; flex-grow: 1; }
.price-card__features li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text-dim); }
.price-card__features svg { width: 18px; height: 18px; color: var(--accent-4); flex-shrink: 0; margin-top: 1px; }
.pricing__note { text-align: center; color: var(--text-faint); font-size: .85rem; margin-top: 2.2rem; }

/* ===== 18. Відгуки ===== */
.testimonials { padding: var(--section-py) 0; }
.testimonial-slider { position: relative; max-width: 720px; margin: 0 auto; }
.testimonial-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.testimonial-track { display: flex; will-change: transform; transition: transform .6s var(--ease); }
.testimonial-card {
  flex: 0 0 100%;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.6rem;
  text-align: center;
  overflow: hidden;
}
.testimonial-card__quote {
  position: absolute; top: 4px; left: 24px; z-index: 0;
  font-family: var(--font-display); font-size: 6rem; line-height: 1;
  color: var(--accent-1); opacity: .12;
}
.testimonial-card__stars { position: relative; z-index: 1; margin-bottom: 18px; font-size: 1.1rem; }
.testimonial-card__text { position: relative; z-index: 1; font-size: 1.08rem; line-height: 1.65; margin-bottom: 26px; }
.testimonial-card__author { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial-card__author div { text-align: left; display: flex; flex-direction: column; }
.testimonial-card__author strong { font-size: .92rem; }
.testimonial-card__author span { font-size: .82rem; color: var(--text-faint); }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
  z-index: 3;
}
.slider-btn:hover { background: var(--gradient-brand); border-color: transparent; color: #fff; transform: translateY(-50%) scale(1.08); }
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn--prev { left: -23px; }
.slider-btn--next { right: -23px; }

.slider-dots { display: flex; justify-content: center; gap: 9px; margin-top: 28px; }
.slider-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); transition: all .3s var(--ease); }
.slider-dot.active { width: 26px; border-radius: 99px; background: var(--gradient-brand); }

/* ===== 19. FAQ ===== */
.faq { padding: var(--section-py) 0; background: var(--bg-alt); }
.faq--plain { background: transparent; }
.faq__inner { max-width: 760px; margin: 0 auto; }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item__header {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; text-align: left; font-size: 1rem; font-weight: 600;
}
.faq-item__icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-1); transition: transform .35s var(--ease), color .35s; }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); color: var(--accent-2); }
.faq-item__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }
.faq-item__panel-inner { overflow: hidden; }
.faq-item__panel-inner p { padding: 0 24px 22px; color: var(--text-dim); font-size: .95rem; line-height: 1.7; }

/* ===== 20. CTA ===== */
.cta { position: relative; margin: 0 28px; padding: 5.5rem 2rem; border-radius: var(--radius-lg); overflow: hidden; background: #0d0616; text-align: center; }
.cta__blobs { position: absolute; inset: 0; z-index: 0; background: var(--gradient-brand); opacity: .85; }
.cta__blobs::before, .cta__blobs::after { content: ''; position: absolute; border-radius: 50%; filter: blur(80px); }
.cta__blobs::before { width: 340px; height: 340px; background: var(--accent-3); top: -120px; right: 10%; opacity: .5; }
.cta__blobs::after { width: 300px; height: 300px; background: #fff; bottom: -140px; left: 10%; opacity: .2; }
.cta__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; color: #fff; }
.cta__inner h2 { font-size: clamp(2rem, 3vw + 1rem, 2.8rem); margin-bottom: 16px; }
.cta__inner h2 .text-gradient { background: linear-gradient(90deg, #fff, #e9d5ff); -webkit-background-clip: text; background-clip: text; }
.cta__inner p { opacity: .88; margin-bottom: 34px; font-size: 1.05rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cta .btn--primary { background: #fff; color: #18181f; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.cta .btn--primary:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, .32); }

/* ===== 21. Контакти ===== */
.contact { padding: var(--section-py) 0; }
.contact__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; }
.contact__info > p { color: var(--text-dim); margin: 16px 0 30px; font-size: 1.02rem; }
.contact__list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--accent-1); }
.contact__icon svg { width: 19px; height: 19px; }
.contact__list a { font-weight: 500; transition: color .25s; }
.contact__list a:hover { color: var(--accent-2); }

.contact__social { display: flex; gap: 12px; }
.contact__social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: all .3s var(--ease);
}
.contact__social a svg { width: 18px; height: 18px; }
.contact__social a:hover { background: var(--gradient-brand); color: #fff; border-color: transparent; transform: translateY(-3px); }

.contact__form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-group { position: relative; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: .96rem;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.form-group textarea { min-height: 120px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent-1); box-shadow: 0 0 0 4px rgba(139, 92, 246, .14);
}
.form-group label {
  position: absolute; left: 18px; top: 16px;
  color: var(--text-faint); font-size: .96rem;
  pointer-events: none;
  transition: all .2s var(--ease);
  background: var(--surface);
  padding: 0 6px;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label {
  top: -9px; left: 12px; font-size: .76rem; color: var(--accent-1); font-weight: 600;
}
.form-group select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6a6ba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.form-group select:invalid { color: var(--text-faint); }

.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3.4rem; }
.next-step {
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.next-step__num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2);
  font-family: var(--font-display); font-size: .82rem; color: var(--accent-1);
  margin-bottom: 14px;
}
.next-step h3 { font-size: .98rem; margin-bottom: 6px; }
.next-step p { color: var(--text-dim); font-size: .88rem; }

/* ===== 22. Про нас: цінності / команда ===== */
.values { padding: var(--section-py) 0; background: var(--bg-alt); }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.value-card {
  padding: 1.9rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.value-card:hover { transform: translateY(-5px); border-color: var(--accent-1); }
.value-card__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--radius-md); background: var(--surface-2); color: var(--accent-2);
  margin-bottom: 16px;
}
.value-card__icon svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { color: var(--text-dim); font-size: .88rem; }

.team { padding: var(--section-py) 0; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 940px; margin: 0 auto; }
.team-card { perspective: 1000px; height: 300px; cursor: pointer; }
.team-card__inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease);
}
.team-card:hover .team-card__inner,
.team-card:focus-visible .team-card__inner,
.team-card.is-flipped .team-card__inner { transform: rotateY(180deg); }
.team-card__front, .team-card__back {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 1.8rem;
  text-align: center;
}
.team-card__front { background: var(--surface); }
.team-card__back { background: var(--surface-2); border-color: var(--accent-1); transform: rotateY(180deg); }
.team-card__avatar {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient-brand);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff;
  margin-bottom: 6px;
}
.team-card__front h3 { font-size: 1.08rem; }
.team-card__front span { color: var(--text-faint); font-size: .86rem; }
.team-card__hint { margin-top: 10px; font-family: var(--font-mono); font-size: .7rem; color: var(--text-faint); letter-spacing: .06em; text-transform: uppercase; }
.team-card__back p { color: var(--text-dim); font-size: .9rem; }
.team-card__tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }

.story { padding: var(--section-py) 0; }
.story__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.story__text > p { color: var(--text-dim); margin-bottom: 16px; font-size: 1.02rem; }
.story__visual { position: relative; display: grid; place-items: center; min-height: 320px; perspective: 1100px; }
.about-shapes { position: relative; width: 240px; height: 240px; }
.about-shapes .shape3d--cube { top: 4px; left: 0; }
.about-shapes .shape3d--ring { bottom: 4px; right: 0; }

/* ===== 23. Футер ===== */
.footer { padding: 5rem 0 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer__inner { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 4rem; }
.footer__inner--3col { grid-template-columns: 1.5fr repeat(2, 1fr); }
.footer__brand p { color: var(--text-dim); font-size: .92rem; margin: 16px 0 22px; max-width: 260px; }
.footer__col h4 { font-size: .92rem; margin-bottom: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a, .footer__col span { color: var(--text-dim); font-size: .92rem; transition: color .25s; }
.footer__col a:hover { color: var(--accent-1); }
.footer__bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: var(--text-faint); }
.heart { color: var(--accent-2); display: inline-block; animation: heartBeat 1.4s ease-in-out infinite; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* ===== 24. Інше ===== */
.back-to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 500;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--glow-ring);
  opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.back-to-top--visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px) scale(1.05); }
.back-to-top svg { width: 20px; height: 20px; }

.confetti-piece {
  position: fixed; width: 8px; height: 8px; border-radius: 2px;
  pointer-events: none; z-index: 9997;
  animation: confettiFly .9s ease-out forwards;
}
@keyframes confettiFly { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* ===== Адаптивність ===== */
@media (max-width: 1100px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .slider-btn--prev { left: 10px; }
  .slider-btn--next { right: 10px; }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin: 0 auto; order: -1; }
  .hero__content { text-align: center; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .about__inner, .story__inner { grid-template-columns: 1fr; gap: 3rem; }
  .about__code { order: -1; }
  .case__inner { grid-template-columns: 1fr; gap: 3rem; }
  .case--alt .case__inner > .case__info { order: 1; }
  .case--alt .case__inner > .case__visual { order: 2; }
  .shape3d--crystal { display: none; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 0; top: 0;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 6px;
    padding: 90px 20px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    will-change: transform;
    z-index: 850;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-link { font-size: 1.2rem; padding: 12px 22px; flex-shrink: 0; }
  .nav-links__cta { margin: 20px 0 0; }
  .navbar__cta { display: none; }
  .hamburger { display: block; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing__grid .price-card--popular { margin-top: 10px; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: 1fr; max-width: 380px; }
  .next-steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-py: 4rem; --nav-h: 68px; }
  .container { padding: 0 20px; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1rem; }
  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .timeline::before { left: 26px; top: 26px; bottom: 26px; }
  .timeline::after { left: 26px; top: 26px; height: calc((100% - 52px) * var(--progress, 0)); }
  .timeline__number { flex-basis: 52px; width: 52px; height: 52px; font-size: .95rem; }
  .timeline__item { gap: 20px; }
  .slider-btn { display: none; }
  .cta { margin: 0 16px; padding: 3.6rem 1.4rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .testimonial-card { padding: 2.4rem 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
  .shape3d--cube { width: 60px; height: 60px; right: 4%; top: 12%; }
  .cube-face:nth-child(1) { transform: translateZ(30px); }
  .cube-face:nth-child(2) { transform: rotateY(180deg) translateZ(30px); }
  .cube-face:nth-child(3) { transform: rotateY(90deg) translateZ(30px); }
  .cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(30px); }
  .cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(30px); }
  .cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(30px); }
  .shape3d--ring { width: 90px; height: 90px; }
  .garderob-scene { height: 330px; transform: scale(.82); }
  .case__visual { min-height: 330px; }
}

@media (max-width: 420px) {
  .hero__trust { flex-direction: column; gap: 12px; }
  .float-chip { font-size: .74rem; padding: 8px 12px; }
  .float-chip--2 { left: -8px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .hero__canvas { display: none !important; }
}
