/*
 * Contentor — стилі головної (лендінг). Підключається лише на головній.
 *
 * ПРО АНІМАЦІЇ. Три варіанти hero-візуалу, перемикаються ?anim=1|2|3 (див. front-page.php):
 *   1 — «Сканер каталогу»: промінь іде згори вниз, кожен рядок під ним заповнюється.
 *   2 — «Каталог оживає»: сітка карток заповнюється діагональною хвилею.
 *   3 — «Одна картка» (перший варіант, лишений як запасний).
 *
 * Головне правило: базовий стан елементів — ВИДИМИЙ, поява робиться з keyframes (0% → opacity 0).
 * Тому при `prefers-reduced-motion` (анімації вимкнені глобально) користувач бачить готовий
 * результат, а не порожнечу. З тієї ж причини клас js-reveal вішає САМ скрипт.
 *
 * Історія змін:
 * - 2026-08-20: Стилі .ct-spot/.ct-bit винесено в main.css (потрібні на всіх сторінках)
 * - 2026-08-19: Перероблено «Можливості», «Різниця», «Ціни»; додано 2 нові анімації,
 *               підсвітку за курсором, лічильники й мікроанімації по сторінці
 * - 2026-08-19: Створено
 */

/* ================= HERO ================= */
.ct-hero { padding: 44px 0 26px; }
.ct-hero-grid {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
}
.ct-hero-h {
  margin-top: 16px;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.05;
}
.ct-hero-h em { font-style: normal; color: var(--ct-violet-strong); }
.ct-hero-lead { max-width: 560px; font-size: 18px; }
.ct-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ct-hero-note { margin-top: 14px; font-size: 14px; color: var(--ct-ink-3); }

/* ---- Стрічка фактів ---- */
.ct-strip {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 34px; padding: 16px 22px;
  border-radius: var(--ct-r);
  background: var(--ct-glass);
  backdrop-filter: saturate(200%) blur(5px); -webkit-backdrop-filter: saturate(200%) blur(5px);
  border: 1px solid rgba(255, 255, 255, .66);
  box-shadow: var(--ct-shadow), var(--ct-sheen);
  font-size: 14.5px;
}
.ct-strip-i { display: flex; align-items: center; gap: 9px; color: var(--ct-ink-2); }
.ct-strip-i b { color: var(--ct-ink); font-weight: 620; font-variant-numeric: tabular-nums; }
.ct-strip-i .ct-dot { color: var(--ct-violet); }

/* ================= СПІЛЬНЕ ДЛЯ HERO-ВІЗУАЛІВ ================= */
.ct-viz {
  position: relative;
  padding: 18px; border-radius: var(--ct-r);
  background: var(--ct-glass-strong);
  backdrop-filter: var(--ct-blur); -webkit-backdrop-filter: var(--ct-blur);
  border: 1px solid rgba(255, 255, 255, .62);
  box-shadow: var(--ct-shadow), var(--ct-sheen);
}
.ct-viz-bar {
  display: flex; align-items: center; gap: 9px;
  padding-bottom: 13px; margin-bottom: 14px;
  border-bottom: 1px solid var(--ct-line);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ct-ink-3);
}
.ct-viz-bar .ct-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ct-green);
  animation: ctPulse 2.4s ease-out infinite;
}
.ct-viz-bar .ct-viz-count { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ct-violet-strong); }
@keyframes ctPulse {
  0%   { box-shadow: 0 0 0 0 rgba(21, 163, 74, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(21, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 163, 74, 0); }
}
.ct-viz-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--ct-line);
  font-size: 13px; color: var(--ct-ink-2);
}
.ct-viz-foot b { color: var(--ct-ink); font-weight: 650; font-variant-numeric: tabular-nums; }

/* Спільна смужка прогресу для будь-якого візуалу */
.ct-viz-progress { position: relative; height: 4px; margin-top: 13px; border-radius: 999px; background: rgba(27, 26, 43, .08); overflow: hidden; }
.ct-viz-progress i {
  position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #8B5CF6, #2563EB);
  transform-origin: left center;
  animation: ctProgress var(--ct-cycle, 7s) linear infinite;
}
@keyframes ctProgress {
  0%   { transform: scaleX(0); }
  88%  { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: .35; }
}

/* ================= МОЖЛИВОСТІ: специфікація ================= */
.ct-spec { display: grid; gap: 0; }
.ct-spec-row {
  display: grid; grid-template-columns: 210px minmax(0, 1fr) 250px; gap: 26px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--ct-line);
}
.ct-spec-row:last-child { border-bottom: 1px solid var(--ct-line); }
.ct-spec-k { display: flex; align-items: center; gap: 11px; }
.ct-spec-ic {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ct-violet-soft); color: var(--ct-violet-strong); font-size: 15px; font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.ct-spec-row:hover .ct-spec-ic { transform: translateY(-2px) scale(1.06); background: rgba(124, 58, 237, .2); }
.ct-spec-k b { font-size: 16.5px; font-weight: 640; letter-spacing: -.01em; }
.ct-spec-v { font-size: 15.5px; color: var(--ct-ink-2); }
.ct-spec-v em { font-style: normal; color: var(--ct-ink); font-weight: 600; }
.ct-spec-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-spec-meta .ct-pill { font-size: 12px; }
.ct-spec-foot { margin-top: 22px; font-size: 14.5px; color: var(--ct-ink-3); }

/* ================= КРОКИ ================= */
.ct-flow { position: relative; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
/* Лінія, що з’єднує кроки; заповнюється, коли секція потрапила в екран */
.ct-flow::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 30px; height: 2px;
  background: linear-gradient(90deg, var(--ct-violet), rgba(37, 99, 235, .5));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.4, 0, .2, 1);
}
.ct-reveal.is-in .ct-flow::before, .ct-reveal:not(.is-in) .ct-flow::before { transform: scaleX(1); }
.js-reveal .ct-reveal:not(.is-in) .ct-flow::before { transform: scaleX(0); }
.ct-step { position: relative; background: transparent; box-shadow: none; border: 0; padding: 0; }
.ct-step-n {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(180deg, #8B5CF6, var(--ct-violet));
  color: #fff; font-weight: 650; font-size: 17px;
  box-shadow: 0 5px 14px rgba(124, 58, 237, .35), 0 0 0 6px rgba(247, 247, 252, .9);
}
.ct-step h3 { margin-top: 16px; font-size: 18px; }
.ct-step p { margin-top: 8px; font-size: 15px; color: var(--ct-ink-2); }

/* ================= РІЗНИЦЯ: матриця ================= */
.ct-matrix {
  overflow: hidden; border-radius: var(--ct-r);
  background: var(--ct-glass-strong);
  backdrop-filter: var(--ct-blur); -webkit-backdrop-filter: var(--ct-blur);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: var(--ct-shadow), var(--ct-sheen);
}
.ct-matrix table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ct-matrix th, .ct-matrix td { padding: 15px 18px; text-align: left; vertical-align: middle; }
.ct-matrix thead th {
  font-size: 12.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ct-ink-3); border-bottom: 1px solid var(--ct-line);
}
.ct-matrix thead th.ct-mx-us { color: var(--ct-violet-strong); }
.ct-matrix tbody tr { border-bottom: 1px solid var(--ct-line); transition: background .15s ease; }
.ct-matrix tbody tr:last-child { border-bottom: 0; }
.ct-matrix tbody tr:hover { background: rgba(255, 255, 255, .5); }
.ct-matrix td:first-child { font-weight: 600; color: var(--ct-ink); }
.ct-matrix td { color: var(--ct-ink-2); }
/* Колонка «ми» підсвічена вертикально — акцент без зайвих рамок */
.ct-matrix .ct-mx-us { background: rgba(124, 58, 237, .07); color: var(--ct-ink); }
.ct-matrix tbody .ct-mx-us { font-weight: 560; }
.ct-mx-mark { display: inline-flex; align-items: center; gap: 8px; }
.ct-mx-mark::before { content: "✓"; color: var(--ct-green); font-weight: 700; }
.ct-mx-none { display: inline-flex; align-items: center; gap: 8px; color: var(--ct-ink-3); }
.ct-mx-none::before { content: "—"; font-weight: 700; }

/* ================= ВІДЕО (фасад: плеєр лише по кліку) ================= */
.ct-video {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  border-radius: var(--ct-r-lg, 18px); box-shadow: 0 18px 50px rgba(17, 12, 46, .16);
}
.ct-video-btn, .ct-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct-video iframe { border: 0; }
.ct-video-btn { display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.ct-video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: rgba(124, 58, 237, .95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .18s ease, background .18s ease;
}
.ct-video-play::before {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent #fff;
}
.ct-video-btn:hover .ct-video-play, .ct-video-btn:focus-visible .ct-video-play { transform: translate(-50%, -50%) scale(1.06); background: #7c3aed; }
.ct-video-cta { display: flex; justify-content: center; margin-top: 18px; }
@media (max-width: 720px) {
  .ct-video-play { width: 62px; height: 62px; }
  .ct-video-play::before { border-width: 11px 0 11px 17px; }
}

/* ================= ЦІНИ: прайс + калькулятор ================= */
.ct-pricing { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }

.ct-plist { display: grid; }
.ct-plist-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 15px 0; border-top: 1px solid var(--ct-line);
}
.ct-plist-row:first-child { border-top: 0; }
.ct-plist-n { font-weight: 600; }
.ct-plist-h { margin-top: 3px; font-size: 13.5px; color: var(--ct-ink-3); }
.ct-plist-now { font-size: 21px; font-weight: 680; color: #d63638; font-variant-numeric: tabular-nums; }
.ct-plist-p { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
/* Порядок у рядку: спочатку стара ціна, потім акційна — так читається як знижка, а не як дві ціни.
   Раніше стара була 14px сірим після нової — її просто не помічали. */
.ct-plist-now { font-size: 21px; font-weight: 680; color: #d63638; font-variant-numeric: tabular-nums; }
.ct-plist-old {
  font-size: 17px; font-weight: 500; color: var(--ct-ink); font-variant-numeric: tabular-nums;
  text-decoration: line-through; text-decoration-thickness: 2px;
}
.ct-plist-off {
  font-size: 12px; font-weight: 700; letter-spacing: .01em; color: #b32d2e; white-space: nowrap;
  background: rgba(214, 54, 56, .09); border-radius: 999px; padding: 3px 8px;
}
.ct-price-flag {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  font-size: 12px; font-weight: 700; color: #b32d2e; background: rgba(214, 54, 56, .09);
  border-radius: 999px; padding: 4px 10px;
}
.ct-plist-pack { background: rgba(124, 58, 237, .06); border-radius: var(--ct-r-sm); padding: 15px 16px; margin-top: 10px; }
.ct-plist-pack .ct-plist-row { border-top: 0; padding: 8px 0; }

/* Калькулятор */
.ct-calc { position: sticky; top: calc(var(--ct-header-h) + var(--ct-bar, 0px) + 16px); }
.ct-calc-opts { display: grid; gap: 8px; margin-top: 4px; }
.ct-calc-opt {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  padding: 11px 13px; border-radius: var(--ct-r-sm);
  border: 1px solid rgba(27, 26, 43, .12); background: rgba(255, 255, 255, .55);
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.ct-calc-opt:hover { border-color: rgba(124, 58, 237, .45); background: rgba(255, 255, 255, .8); }
.ct-calc-opt input { accent-color: var(--ct-violet); width: 17px; height: 17px; flex: none; }
.ct-calc-opt.is-on { border-color: var(--ct-violet); background: rgba(124, 58, 237, .08); }
.ct-calc-opt span { flex: 1 1 auto; font-size: 15px; }
.ct-calc-opt b { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ct-ink-2); }
.ct-calc-qty { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.ct-calc-qty label { font-size: 14.5px; color: var(--ct-ink-2); }
.ct-calc-qty input {
  width: 120px; padding: 9px 12px; border-radius: var(--ct-r-sm);
  border: 1px solid rgba(27, 26, 43, .14); background: rgba(255, 255, 255, .8);
  font-size: 15px; font-variant-numeric: tabular-nums;
}
.ct-calc-qty input:focus { outline: none; border-color: var(--ct-violet); box-shadow: 0 0 0 4px var(--ct-violet-soft); background: #fff; }
.ct-calc-out {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ct-line);
}
.ct-calc-sum { font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.ct-calc-per { font-size: 13.5px; color: var(--ct-ink-3); margin-top: 6px; }
.ct-calc-save { min-height: 20px; margin-top: 12px; font-size: 13.5px; color: #0F7A38; font-weight: 560; }
.ct-calc .ct-btn { width: 100%; margin-top: 16px; }

/* ================= FAQ ================= */
.ct-faq { display: grid; gap: 10px; }
.ct-faq details {
  padding: 2px 20px; border-radius: var(--ct-r-sm);
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--ct-sheen);
  transition: background .15s ease, border-color .15s ease;
}
.ct-faq details[open] { background: rgba(255, 255, 255, .82); border-color: rgba(124, 58, 237, .22); }
.ct-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 0; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 600;
}
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::after { content: "+"; flex: none; font-size: 21px; font-weight: 400; color: var(--ct-violet); transition: transform .25s cubic-bezier(.32, .72, 0, 1); }
.ct-faq details[open] summary::after { transform: rotate(45deg); }
/* Під час згортання open ще стоїть (його знімає JS у кінці), тому іконку
   й тло повертаємо окремим класом — інакше вони смікаються після анімації. */
.ct-faq details.is-closing summary::after { transform: none; }
.ct-faq details.is-closing { background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .7); }
.ct-faq-a { padding: 0 0 16px; font-size: 15.5px; color: var(--ct-ink-2); overflow: hidden; }

/* ================= ФІНАЛЬНИЙ CTA ================= */
.ct-cta {
  position: relative; overflow: hidden;
  padding: 42px 40px; border-radius: var(--ct-r);
  background: linear-gradient(140deg, #2E2A56, var(--ct-dark) 58%, #1E2140);
  color: #fff; text-align: center;
  box-shadow: 0 20px 50px rgba(24, 22, 45, .22);
}
.ct-cta::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 150%;
  background:
    radial-gradient(28rem 16rem at 18% 0%, rgba(124, 58, 237, .55), transparent 62%),
    radial-gradient(24rem 14rem at 84% 20%, rgba(37, 99, 235, .45), transparent 64%);
  pointer-events: none;
  animation: ctDrift 14s ease-in-out infinite alternate;
}
@keyframes ctDrift {
  0%   { transform: translate3d(-2%, 0, 0) scale(1); }
  100% { transform: translate3d(3%, -3%, 0) scale(1.06); }
}
.ct-cta > * { position: relative; z-index: 1; }
.ct-cta h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 690; letter-spacing: -.025em; }
.ct-cta p { max-width: 560px; margin: 13px auto 0; color: rgba(237, 236, 247, .78); font-size: 16.5px; }
.ct-cta .ct-hero-cta { justify-content: center; }

/* ================= ДИНАМІКА ПО СТОРІНЦІ ================= */
/* Поява секцій; клас js-reveal вішає скрипт (без JS — усе видно одразу) */
.js-reveal .ct-reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js-reveal .ct-reveal.is-in { opacity: 1; transform: none; }
/* Каскад для дітей: кожен наступний елемент трохи пізніше */
.js-reveal .ct-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js-reveal .ct-stagger.is-in > * { opacity: 1; transform: none; }
.js-reveal .ct-stagger.is-in > *:nth-child(1) { transition-delay: .05s; }
.js-reveal .ct-stagger.is-in > *:nth-child(2) { transition-delay: .12s; }
.js-reveal .ct-stagger.is-in > *:nth-child(3) { transition-delay: .19s; }
.js-reveal .ct-stagger.is-in > *:nth-child(4) { transition-delay: .26s; }
.js-reveal .ct-stagger.is-in > *:nth-child(5) { transition-delay: .33s; }
.js-reveal .ct-stagger.is-in > *:nth-child(6) { transition-delay: .40s; }

/* Картки: підйом і блік, що йде за курсором (координати ставить JS) */
.ct-card { transition: transform .22s ease, box-shadow .22s ease; }
.ct-card.ct-lift:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(24,22,45,.05), 0 18px 44px rgba(24,22,45,.13); }
.ct-card.ct-lift::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: radial-gradient(16rem 16rem at var(--cx, 50%) var(--cy, 50%), rgba(124, 58, 237, .14), transparent 60%);
  transition: opacity .25s ease;
}
.ct-card.ct-lift:hover::before { opacity: 1; }

/* ================= Адаптив ================= */
@media (max-width: 1040px) {
  .ct-spec-row { grid-template-columns: 190px minmax(0, 1fr); }
  .ct-spec-meta { grid-column: 2; }
  .ct-pricing { grid-template-columns: 1fr; }
  .ct-calc { position: static; }
}
@media (max-width: 980px) {
  .ct-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .ct-viz { max-width: 500px; }
  .ct-flow::before { display: none; }
}
@media (max-width: 760px) {
  .ct-hero { padding: 28px 0 16px; }
  .ct-strip { gap: 8px 18px; padding: 14px 16px; font-size: 13.5px; }
  .ct-spec-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
  .ct-spec-meta { grid-column: 1; }
  .ct-cta { padding: 30px 20px; }
  /* Матриця на вузькому — рядки як картки */
  .ct-matrix thead { display: none; }
  .ct-matrix table, .ct-matrix tbody, .ct-matrix tr, .ct-matrix td { display: block; width: 100%; }
  .ct-matrix tr { padding: 14px 16px; }
  .ct-matrix td { padding: 4px 0; }
  .ct-matrix td[data-l]::before {
    content: attr(data-l); display: block;
    font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ct-ink-3);
  }
  .ct-matrix .ct-mx-us { background: transparent; }
  .ct-matrix td:first-child { font-size: 16px; margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .ct-reveal, .js-reveal .ct-stagger > * { opacity: 1; transform: none; }
  .ct-flow::before { transform: scaleX(1); }
}

/* =========================================================================
   АНІМАЦІЯ 5: «Потік даних» — поля летять світловими лініями в картку
   Лінії — SVG-криві з анімованим stroke-dashoffset; блок у картці загорається
   рівно тоді, коли імпульс добігає.
   ========================================================================= */
.ct-wire { --ct-cycle: 8s; }
/* Сітка: чіпи — картка. Між ними ЗАЗОР під лінії; саме SVG — окремий шар на всю сцену,
   а не колонка сітки: так його система координат збігається з розкладкою. */
.ct-wire-stage { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 56px; align-items: center; }
.ct-wire-src { display: grid; gap: 9px; position: relative; z-index: 1; }
.ct-wire-chip {
  padding: 8px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(27, 26, 43, .1);
  font-size: 12px; font-weight: 600; color: var(--ct-ink-2);
  transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
/* активне поле — клас вішає JS рівно на час пробігу імпульсу */
.ct-wire-chip.is-on {
  border-color: var(--ct-violet); color: var(--ct-violet-strong);
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, .18);
}
/* Шар ліній — на всю сцену, координати 1:1 з пікселями макета (viewBox ставить JS) */
.ct-wire-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.ct-wire-svg path { fill: none; stroke: rgba(124, 58, 237, .18); stroke-width: 1.5; }
.ct-wire-svg path.ct-wire-flow {
  stroke: url(#ctGrad); stroke-width: 2.6; stroke-linecap: round; opacity: 0;
  /* dasharray/dashoffset виставляє JS за РЕАЛЬНОЮ довжиною кожного шляху:
     спільне число давало різну швидкість імпульсу й збивало синхрон. */
}
.ct-wire-card {
  position: relative; z-index: 1;
  padding: 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 14px 38px rgba(24, 22, 45, .12);
}
/* Слоти картки: порожні за замовчуванням, загораються класом is-on від JS.
   При reduced-motion initWire сам вішає is-on на всі слоти відразу. */
.ct-wire-slot { opacity: 0; transform: translateY(6px); filter: blur(3px); transition: opacity .45s ease, transform .45s ease, filter .45s ease; }
.ct-wire-slot.is-on { opacity: 1; transform: none; filter: blur(0); }
/* ВСІ блоки мають ФІКСОВАНУ висоту, а картка — сталий розмір.
   Інакше товар із назвою в два рядки робить картку вищою за товар із однорядковою,
   і при кожній зміні товару сторінка смікається по вертикалі. */
.ct-wire-title {
  font-size: 15px; font-weight: 650; line-height: 1.32;
  height: 3.96em;                       /* рівно 3 рядки */
  overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.ct-wire-lines { display: grid; gap: 6px; margin-top: 10px; height: 20px; }
.ct-wire-lines i { height: 7px; border-radius: 4px; background: linear-gradient(90deg, rgba(27, 26, 43, .14), rgba(27, 26, 43, .06)); }
.ct-wire-lines i:nth-child(2) { width: 88%; }
.ct-wire-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
  height: 24px; overflow: hidden;       /* рівно один ряд пігулок */
}
.ct-wire-tags .ct-pill { font-size: 11px; padding: 3px 9px; white-space: nowrap; }
.ct-wire-img {
  width: 100%; height: 62px; margin-top: 12px; border-radius: 11px;
  background: linear-gradient(150deg, #C4B5FD, #7C3AED 55%, #4F46E5);
}
/* Стала висота картки: 16*2 падинг + 63 назва + 30 опис + 36*2 теги + 74 зображення */
.ct-wire-card { height: 271px; }
/* Смужка прогресу тут керується JS, а не циклічною анімацією */
.ct-wire .ct-viz-progress i {
  animation: none; transform: scaleX(0);
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

@media (max-width: 760px) {
  /* Чіпи — стрічкою над карткою; лінії JS перебудує вертикально */
  .ct-wire-stage { grid-template-columns: 1fr; gap: 30px; }
  .ct-wire-src { display: flex; flex-wrap: wrap; gap: 7px; }
  .ct-wire-chip { font-size: 11.5px; padding: 6px 10px; }
  .ct-wire-chip.is-on { transform: translateY(-2px); }
}
