/*
 * razrabotka-enhance.css — кастомные стили для рекламной LP
 *   /razrabotka-google-tablits/
 *
 * Цели:
 *   1. Заменить слабый Tilda-hero «продуктовым» hero с анимированным
 *      мокапом Google-таблицы, Telegram-бота и дашборда.
 *   2. Добавить sticky-мессенджеры, плавающий CTA и счётчики доверия.
 *   3. Дать ROI-калькулятор и FAQ без правки Tilda-блоков.
 *
 * Токены — из css/helpexcel-tokens.css (var(--he-*)).
 * Не трогает существующие .t-rec / .t396 классы.
 */

/* ──────────────────────────────────────────────────────────────────
   0. Глобальная мягкая прокрутка + общий контейнер
   ────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

.re-section {
  position: relative;
  width: 100%;
  font-family: var(--he-font-family, 'FuturaPT', system-ui, sans-serif);
  color: var(--he-color-text, #1d2233);
  box-sizing: border-box;
}
.re-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.re-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--he-color-accent, #5171f7);
  background: rgba(81, 113, 247, 0.08);
  padding: 6px 12px;
  border-radius: var(--he-radius-pill, 999px);
  margin-bottom: 16px;
}
.re-h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--he-color-text, #1d2233);
}
.re-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.45;
  color: var(--he-color-text-secondary, #363f55);
  max-width: 760px;
  margin: 0 auto 32px;
}
.re-center { text-align: center; }
.re-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--he-radius-pill, 999px);
  font-size: 16px;
  font-weight: 500;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .25s ease, color .25s ease;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}
.re-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #817af9 0%, #5b48f5 100%);
  box-shadow: 0 10px 26px -10px rgba(91, 72, 245, 0.55);
}
.re-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -10px rgba(91, 72, 245, 0.7); }
.re-btn--ghost {
  color: var(--he-color-text, #1d2233);
  border-color: var(--he-color-button, #817af9);
  background: #fff;
}
.re-btn--ghost:hover { background: var(--he-color-button, #817af9); color: #fff; }

/* ──────────────────────────────────────────────────────────────────
   1. Старый Tilda-hero — скрываем (заменяем своим)
   ────────────────────────────────────────────────────────────────── */
body.has-re-hero #rec1111351916 { display: none !important; }

/* ──────────────────────────────────────────────────────────────────
   2. Новый HERO с анимированным «живым» продуктом
   ────────────────────────────────────────────────────────────────── */
.re-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  background:
    radial-gradient(60% 60% at 18% 12%, rgba(129, 122, 249, 0.18) 0%, rgba(129, 122, 249, 0) 60%),
    radial-gradient(50% 50% at 85% 88%, rgba(234, 86, 153, 0.14) 0%, rgba(234, 86, 153, 0) 65%),
    linear-gradient(180deg, #fff 0%, #f7faff 100%);
}
.re-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(81, 113, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 113, 247, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(60% 70% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.re-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 959px) {
  .re-hero { padding: 40px 0 56px; }
  .re-hero__grid { grid-template-columns: 1fr; gap: 32px; }
}
.re-hero__copy { position: relative; z-index: 2; }
.re-hero__title {
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.04;
  font-weight: 700;
  margin: 14px 0 18px;
  letter-spacing: -0.01em;
}
.re-hero__title .re-grad {
  background: linear-gradient(95deg, #5171f7 0%, #817af9 50%, #ea5699 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.re-hero__lead {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.5;
  color: var(--he-color-text-secondary, #363f55);
  margin: 0 0 28px;
  max-width: 560px;
}
.re-hero__ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.re-hero__trust {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  margin-top: 28px;
  font-size: 14px; color: var(--he-color-text-secondary, #363f55);
}
.re-hero__trust b { color: var(--he-color-text, #1d2233); }
.re-hero__trust-item { display: flex; align-items: center; gap: 8px; }
.re-hero__trust-item::before {
  content: ""; width: 16px; height: 16px; flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%2300a85a' d='M6.5 11L3 7.5l1-1L6.5 9l5-5 1 1z'/></svg>") center/contain no-repeat;
}
.re-hero__timer {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: var(--he-radius-pill, 999px);
  background: rgba(0, 168, 90, 0.08);
  color: #008e4d;
  font-size: 13px; font-weight: 500;
}
.re-hero__timer .re-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00a85a;
  box-shadow: 0 0 0 0 rgba(0, 168, 90, 0.7);
  animation: re-pulse-dot 1.6s infinite;
}
@keyframes re-pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0, 168, 90, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(0, 168, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 168, 90, 0); }
}

/* ──────────────────────────────────────────────────────────────────
   3. Анимированный мокап: таблица + бот + дашборд
   ────────────────────────────────────────────────────────────────── */
.re-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 640px;
  margin-left: auto;
}
@media (max-width: 959px) { .re-mockup { margin: 0 auto; } }

.re-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--he-color-border, #e2e8f8);
  border-radius: var(--he-radius-lg, 16px);
  box-shadow: 0 30px 60px -25px rgba(29, 34, 51, 0.18), 0 8px 16px -8px rgba(29, 34, 51, 0.08);
  overflow: hidden;
  font-size: 12px;
}

/* Sheet card — слева сверху */
.re-card--sheet {
  left: 0; top: 0;
  width: 70%; height: 70%;
  z-index: 1;
  animation: re-float 6s ease-in-out infinite;
}
.re-card__head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--he-color-border, #e2e8f8);
  background: #fafbff;
}
.re-card__dot { width: 10px; height: 10px; border-radius: 50%; }
.re-card__dot--r { background: #ff5f56; }
.re-card__dot--y { background: #ffbd2e; }
.re-card__dot--g { background: #27c93f; }
.re-card__title {
  margin-left: 8px;
  font-size: 12px; font-weight: 500;
  color: var(--he-color-text-secondary, #363f55);
}
.re-sheet {
  width: 100%; height: calc(100% - 36px);
  display: grid;
  grid-template-columns: 36px repeat(4, 1fr);
  grid-auto-rows: minmax(22px, 1fr);
  font-size: 11px;
}
.re-sheet__cell {
  border-right: 1px solid #eef0f7;
  border-bottom: 1px solid #eef0f7;
  display: flex; align-items: center;
  padding: 0 8px;
  background: #fff;
  color: #2a3247;
  position: relative;
  transition: background .35s ease;
}
.re-sheet__cell--rownum,
.re-sheet__cell--colhead {
  background: #f3f5fb;
  color: #7a82a0;
  font-weight: 500;
  font-size: 10px;
  justify-content: center;
}
.re-sheet__cell--colhead { border-bottom: 1px solid #d4dced; }
.re-sheet__cell--num { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.re-sheet__cell--pos { color: #008e4d; font-weight: 500; }
.re-sheet__cell--neg { color: #e23b3b; font-weight: 500; }
.re-sheet__cell--total { background: #eef2ff; color: var(--he-color-text); font-weight: 600; }
.re-sheet__cell--formula-glow {
  animation: re-cell-glow 4.8s ease-in-out infinite;
}
@keyframes re-cell-glow {
  0%, 70% { background: #fff; box-shadow: inset 0 0 0 0 rgba(81,113,247,0); }
  72%, 82% { background: #eaf0ff; box-shadow: inset 0 0 0 2px rgba(81,113,247,0.45); }
  100% { background: #fff; box-shadow: inset 0 0 0 0 rgba(81,113,247,0); }
}
.re-sheet__cell--total[data-counter] {
  transition: color .3s ease;
}

@keyframes re-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* TG bot card — справа сверху */
.re-card--bot {
  right: 0; top: 8%;
  width: 56%; height: 38%;
  z-index: 3;
  animation: re-float 7s ease-in-out -2s infinite;
}
.re-bot__head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #2aabee 0%, #229ed9 100%);
  color: #fff;
}
.re-bot__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: #229ed9;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.re-bot__info { display: flex; flex-direction: column; }
.re-bot__name { font-size: 13px; font-weight: 600; }
.re-bot__status { font-size: 10px; opacity: 0.85; }
.re-bot__body {
  padding: 14px;
  background: #eef4f8;
  height: calc(100% - 48px);
  overflow: hidden;
  position: relative;
}
.re-bot__msg {
  background: #fff;
  border-radius: 12px 12px 12px 4px;
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.35;
  color: #1d2233;
  max-width: 92%;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(29, 34, 51, 0.08);
  opacity: 0;
  transform: translateY(8px);
  animation: re-bot-msg 8s ease-out infinite;
}
.re-bot__msg b { color: #229ed9; }
.re-bot__msg--1 { animation-delay: 0.4s; }
.re-bot__msg--2 { animation-delay: 2.6s; background: #cfe9c9; border-radius: 12px 12px 4px 12px; margin-left: auto; }
.re-bot__msg--3 { animation-delay: 4.8s; }
@keyframes re-bot-msg {
  0% { opacity: 0; transform: translateY(8px); }
  6%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Dashboard card — снизу */
.re-card--dash {
  right: 4%; bottom: 0;
  width: 64%; height: 44%;
  z-index: 2;
  animation: re-float 8s ease-in-out -1s infinite;
}
.re-dash {
  height: calc(100% - 36px);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 10px;
}
.re-kpi {
  display: flex; flex-direction: column;
  background: #f7faff;
  border-radius: 10px;
  padding: 8px 10px;
}
.re-kpi__label { font-size: 10px; color: #7a82a0; text-transform: uppercase; letter-spacing: 0.04em; }
.re-kpi__value { font-size: 18px; font-weight: 700; color: #1d2233; font-variant-numeric: tabular-nums; }
.re-kpi__delta { font-size: 10px; color: #008e4d; }
.re-dash__chart {
  grid-column: 1 / -1;
  position: relative;
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
  border-radius: 10px;
  overflow: hidden;
}
.re-dash__chart svg { width: 100%; height: 100%; display: block; }
.re-dash__line {
  stroke: #5171f7;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: re-draw-line 3.5s ease-out 0.6s forwards, re-redraw 9s ease-in-out 4.5s infinite;
}
.re-dash__area {
  fill: url(#re-area-grad);
  opacity: 0;
  animation: re-fade-in 1s ease-out 3s forwards;
}
.re-dash__dot {
  fill: #5171f7;
  opacity: 0;
  animation: re-dot-appear 1.2s ease-out 3.5s forwards;
}
@keyframes re-draw-line { to { stroke-dashoffset: 0; } }
@keyframes re-redraw {
  0% { stroke-dashoffset: 0; }
  10% { stroke-dashoffset: 320; }
  40% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes re-fade-in { to { opacity: 1; } }
@keyframes re-dot-appear { to { opacity: 1; } }

/* Соединительные точки между карточками */
.re-mockup__link {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.re-mockup__link svg { width: 100%; height: 100%; display: block; }
.re-link__path {
  fill: none;
  stroke: rgba(81, 113, 247, 0.35);
  stroke-width: 1.6;
  stroke-dasharray: 4 6;
  animation: re-dash-flow 1.8s linear infinite;
}
@keyframes re-dash-flow {
  to { stroke-dashoffset: -20; }
}

/* ──────────────────────────────────────────────────────────────────
   4. Sticky-мессенджеры (правый низ)
   ────────────────────────────────────────────────────────────────── */
/* На этой LP свой sticky-блок .re-msgr (WA+TG), глобальные пилюли
   #hp-header-cb (helpexcel-header-buttons.js) дублируются — скрываем. */
#hp-header-cb { display: none !important; }

.re-msgr {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease;
}
.re-msgr.is-visible { opacity: 1; transform: translateY(0); }
.re-msgr__btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 28px -8px rgba(29, 34, 51, 0.35);
  background: #fff;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.re-msgr__btn:hover { transform: scale(1.07); box-shadow: 0 18px 36px -10px rgba(29, 34, 51, 0.4); }
.re-msgr__btn--wa { background: #25d366; }
.re-msgr__btn--tg { background: #229ed9; }
.re-msgr__btn svg { width: 28px; height: 28px; }
.re-msgr__btn--wa::after,
.re-msgr__btn--tg::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  animation: re-msgr-pulse 2.6s ease-out infinite;
}
.re-msgr__btn--wa::after { color: #25d366; }
.re-msgr__btn--tg::after { color: #229ed9; }
.re-msgr__btn--tg::after { animation-delay: 1.3s; }
@keyframes re-msgr-pulse {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.22); }
}
@media (max-width: 600px) {
  .re-msgr { right: 12px; bottom: 90px; gap: 8px; }
  .re-msgr__btn { width: 44px; height: 44px; box-shadow: 0 8px 18px -6px rgba(29, 34, 51, 0.32); }
  .re-msgr__btn svg { width: 22px; height: 22px; }
  /* на мобильном убираем halo-кольцо, оно цепляет sticky-bar и выглядит как «синий круг сзади» */
  .re-msgr__btn--wa::after,
  .re-msgr__btn--tg::after { animation: none; opacity: 0; display: none; }
}

/* Sticky bottom CTA для мобильных */
.re-mob-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 9998;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--he-color-border, #e2e8f8);
  box-shadow: 0 -8px 24px -10px rgba(29, 34, 51, 0.18);
}
.re-mob-cta .re-btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;           /* длинный текст переносится, а не уходит за край */
  text-align: center;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.2;
  min-height: 46px;
}
@media (max-width: 600px) { .re-mob-cta { display: block; } }

/* ──────────────────────────────────────────────────────────────────
   5. Counters (цифры доверия)
   ────────────────────────────────────────────────────────────────── */
.re-stats {
  background: #fff;
  padding: 56px 0;
  border-top: 1px solid var(--he-color-border, #e2e8f8);
  border-bottom: 1px solid var(--he-color-border, #e2e8f8);
}
.re-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 760px) { .re-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }
.re-stat__num {
  display: block;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(95deg, #5171f7 0%, #ea5699 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.re-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--he-color-text-secondary, #363f55);
  line-height: 1.4;
}

/* ──────────────────────────────────────────────────────────────────
   6. Animated process pipeline
   ────────────────────────────────────────────────────────────────── */
.re-pipe { padding: 72px 0; background: #f7faff; }
.re-pipe__head { text-align: center; margin-bottom: 48px; }
.re-pipe__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.re-pipe__step {
  background: #fff;
  border: 1px solid var(--he-color-border, #e2e8f8);
  border-radius: var(--he-radius-lg, 16px);
  padding: 24px 22px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease, box-shadow .3s ease;
}
.re-pipe__step.is-visible { opacity: 1; transform: translateY(0); }
.re-pipe__step:hover { box-shadow: 0 22px 40px -20px rgba(81, 113, 247, 0.3); }
.re-pipe__step::before {
  content: attr(data-step);
  position: absolute;
  top: -14px; left: 22px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5171f7 0%, #817af9 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 16px -6px rgba(81, 113, 247, 0.5);
}
.re-pipe__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(81, 113, 247, 0.1);
  color: #5171f7;
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 14px;
}
.re-pipe__icon svg { width: 24px; height: 24px; }
.re-pipe__title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.re-pipe__desc { font-size: 13px; line-height: 1.5; color: var(--he-color-text-secondary, #363f55); margin: 0; }
@media (max-width: 859px) { .re-pipe__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .re-pipe__grid { grid-template-columns: 1fr; } }

/* ──────────────────────────────────────────────────────────────────
   7. ROI-калькулятор
   ────────────────────────────────────────────────────────────────── */
.re-calc { padding: 72px 0; background: #fff; }
.re-calc__wrap {
  background: linear-gradient(135deg, #5171f7 0%, #817af9 50%, #ea5699 100%);
  border-radius: 24px;
  padding: 2px;
  box-shadow: 0 30px 60px -25px rgba(81, 113, 247, 0.45);
}
.re-calc__inner {
  background: #fff;
  border-radius: 22px;
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
@media (max-width: 859px) {
  .re-calc__inner { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; }
}
.re-calc__head h2 { margin: 6px 0 14px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; }
.re-calc__head p { color: var(--he-color-text-secondary, #363f55); margin: 0 0 22px; }
.re-calc__group { margin-bottom: 20px; }
.re-calc__group label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; font-weight: 500; margin-bottom: 8px;
  color: var(--he-color-text, #1d2233);
}
.re-calc__group label b { color: var(--he-color-accent, #5171f7); font-variant-numeric: tabular-nums; font-size: 16px; }
.re-calc__slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: var(--he-color-bg-light, #f2f4fb);
  border-radius: var(--he-radius-pill, 999px);
  outline: none;
}
.re-calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--he-color-button, #817af9);
  box-shadow: 0 4px 12px -2px rgba(129, 122, 249, 0.5);
  cursor: pointer;
  transition: transform .15s ease;
}
.re-calc__slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.re-calc__slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--he-color-button, #817af9);
  cursor: pointer; box-shadow: 0 4px 12px -2px rgba(129, 122, 249, 0.5);
}
.re-calc__chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.re-calc__chip {
  padding: 6px 12px;
  border: 1px solid var(--he-color-border, #e2e8f8);
  border-radius: var(--he-radius-pill, 999px);
  font-size: 13px;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
  color: var(--he-color-text-secondary, #363f55);
  font-family: inherit;
}
.re-calc__chip:hover { border-color: var(--he-color-button, #817af9); }
.re-calc__chip.is-active {
  background: var(--he-color-button, #817af9);
  color: #fff;
  border-color: var(--he-color-button, #817af9);
}
.re-calc__result {
  background: var(--he-color-bg-light, #f2f4fb);
  border-radius: var(--he-radius-lg, 16px);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
}
.re-calc__result::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 122, 249, 0.18) 0%, transparent 70%);
}
.re-calc__row { margin-bottom: 18px; }
.re-calc__row:last-child { margin-bottom: 0; }
.re-calc__row span { display: block; font-size: 13px; color: var(--he-color-text-secondary, #363f55); margin-bottom: 4px; }
.re-calc__row b {
  display: block; font-size: 26px; font-weight: 700;
  color: var(--he-color-text, #1d2233);
  font-variant-numeric: tabular-nums;
  transition: color .25s ease;
}
.re-calc__row--accent b {
  background: linear-gradient(95deg, #008e4d 0%, #00a85a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 32px;
}
.re-calc__cta {
  margin-top: 22px;
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────────────────────
   8. FAQ-аккордеон
   ────────────────────────────────────────────────────────────────── */
.re-faq { padding: 72px 0; background: #f7faff; }
.re-faq__list { max-width: 820px; margin: 0 auto; }
.re-faq__item {
  background: #fff;
  border: 1px solid var(--he-color-border, #e2e8f8);
  border-radius: var(--he-radius-lg, 16px);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.re-faq__item[open] { box-shadow: 0 20px 40px -20px rgba(81, 113, 247, 0.25); }
.re-faq__q {
  list-style: none;
  padding: 18px 56px 18px 22px;
  font-size: 16px; font-weight: 600;
  color: var(--he-color-text, #1d2233);
  cursor: pointer;
  position: relative;
  user-select: none;
}
.re-faq__q::-webkit-details-marker { display: none; }
.re-faq__q::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--he-color-bg-light, #f2f4fb);
  color: var(--he-color-button, #817af9);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 400; line-height: 1;
  transition: transform .25s ease, background .25s ease;
}
.re-faq__item[open] .re-faq__q::after { transform: translateY(-50%) rotate(45deg); background: var(--he-color-button, #817af9); color: #fff; }
.re-faq__a {
  padding: 0 22px 22px;
  color: var(--he-color-text-secondary, #363f55);
  font-size: 14px;
  line-height: 1.55;
}

/* ──────────────────────────────────────────────────────────────────
   9. Scroll-reveal helper
   ────────────────────────────────────────────────────────────────── */
.re-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.re-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ──────────────────────────────────────────────────────────────────
   10. Showcase: 3 живых мокапа таблиц (Простые / Средние / Сложные)
   ────────────────────────────────────────────────────────────────── */
.re-show { padding: 72px 0 80px; background: #fff; }
.re-show__head { text-align: center; margin-bottom: 32px; }

.re-show__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  background: var(--he-color-bg-light, #f2f4fb);
  border-radius: var(--he-radius-pill, 999px);
  margin-top: 22px;
}
.re-show__tab {
  appearance: none; border: 0; cursor: pointer;
  padding: 10px 20px;
  background: transparent;
  border-radius: var(--he-radius-pill, 999px);
  font-family: inherit;
  font-size: 14px; font-weight: 500;
  color: var(--he-color-text-secondary, #363f55);
  transition: background .25s ease, color .25s ease;
  white-space: nowrap;
}
.re-show__tab:hover { color: var(--he-color-text, #1d2233); }
.re-show__tab.is-active {
  background: #fff;
  color: var(--he-color-accent, #5171f7);
  box-shadow: 0 4px 12px -4px rgba(81, 113, 247, 0.3);
}

.re-show__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: stretch;
  background: linear-gradient(180deg, #f7faff 0%, #fff 100%);
  border: 1px solid var(--he-color-border, #e2e8f8);
  border-radius: 24px;
  padding: 32px;
  margin-top: 24px;
  box-shadow: 0 30px 60px -30px rgba(29, 34, 51, 0.12);
}
@media (max-width: 859px) {
  .re-show__body { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
}

.re-show__panel {
  display: none;
}
.re-show__panel.is-active {
  display: contents;
}
.re-show__copy { display: flex; flex-direction: column; justify-content: center; }
.re-show__copy h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  margin: 0 0 12px;
}
.re-show__copy p {
  font-size: 15px; line-height: 1.55;
  color: var(--he-color-text-secondary, #363f55);
  margin: 0 0 18px;
}
.re-show__copy ul {
  list-style: none; padding: 0; margin: 0 0 22px;
}
.re-show__copy li {
  font-size: 14px; line-height: 1.55;
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
  color: var(--he-color-text, #1d2233);
}
.re-show__copy li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%2300a85a' d='M6.5 11L3 7.5l1-1L6.5 9l5-5 1 1z'/></svg>") center/contain no-repeat;
}
.re-show__price {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(81, 113, 247, 0.08);
  color: var(--he-color-accent, #5171f7);
  border-radius: var(--he-radius-pill, 999px);
  font-size: 14px; font-weight: 600;
  align-self: flex-start;
  margin-bottom: 14px;
}

.re-show__viz {
  position: relative;
  min-height: 360px;
  background: #fff;
  border: 1px solid var(--he-color-border, #e2e8f8);
  border-radius: var(--he-radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 16px 32px -16px rgba(29, 34, 51, 0.12);
}
.re-show__viz .re-card__head { border-radius: 16px 16px 0 0; }

/* ─── Viz 1 — План-факт ───────────────────────────────────────── */
.re-viz-plan { padding: 0; display: flex; flex-direction: column; height: 100%; }
.re-viz-plan__table {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.6fr 0.6fr;
  align-content: start;
  font-size: 12px;
}
.re-viz-plan__cell {
  padding: 9px 12px;
  border-bottom: 1px solid #eef0f7;
  display: flex; align-items: center;
  color: var(--he-color-text, #1d2233);
  font-variant-numeric: tabular-nums;
}
.re-viz-plan__cell--head {
  background: #f3f5fb;
  color: #7a82a0;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom-color: #d4dced;
}
.re-viz-plan__bar {
  position: relative;
  width: 100%; height: 8px;
  background: #f2f4fb;
  border-radius: 4px; overflow: hidden;
}
.re-viz-plan__bar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #5171f7 0%, #817af9 100%);
  border-radius: 4px;
  transform-origin: left center;
  transform: scaleX(0);
  animation: re-bar-grow 4s ease-out forwards;
}
.re-viz-plan__cell--pct { font-weight: 600; color: var(--he-color-accent); }
.re-viz-plan__cell--total { background: #eef2ff; font-weight: 600; }
.re-show__panel.is-active .re-viz-plan__bar::after { animation: re-bar-grow 2.4s ease-out forwards; }
@keyframes re-bar-grow { to { transform: scaleX(var(--re-bar, 0.8)); } }

/* ─── Viz 2 — Kanban CRM ──────────────────────────────────────── */
.re-viz-kanban { padding: 18px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; height: 100%; }
.re-kanban__col {
  background: #f7faff;
  border-radius: 10px;
  padding: 10px 8px;
  display: flex; flex-direction: column;
  min-height: 0;
}
.re-kanban__title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a82a0;
  margin-bottom: 8px;
  padding: 0 4px;
  display: flex; align-items: center; gap: 6px;
}
.re-kanban__title::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
}
.re-kanban__col--new .re-kanban__title::before { background: #5171f7; }
.re-kanban__col--prog .re-kanban__title::before { background: #ffbd2e; }
.re-kanban__col--won .re-kanban__title::before { background: #00a85a; }
.re-kanban__card {
  background: #fff;
  border: 1px solid #eef0f7;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(29, 34, 51, 0.06);
  line-height: 1.3;
  position: relative;
}
.re-kanban__card b { display: block; font-weight: 600; color: var(--he-color-text); margin-bottom: 2px; }
.re-kanban__card span { font-size: 10px; color: #7a82a0; }
.re-kanban__card--travel {
  animation: re-card-travel 9s ease-in-out infinite;
}
.re-kanban__card--travel-2 {
  animation: re-card-travel 9s ease-in-out -3s infinite;
}
@keyframes re-card-travel {
  0%, 12% { transform: translate(0, 0); opacity: 1; }
  18%, 38% { transform: translate(calc(100% + 24px), 0); opacity: 1; }
  44%, 64% { transform: translate(calc(200% + 48px), 0); opacity: 1; }
  70%, 100% { transform: translate(calc(200% + 48px), 0); opacity: 0; }
}
.re-kanban__total {
  margin-top: auto;
  padding: 8px 10px;
  background: rgba(81, 113, 247, 0.08);
  border-radius: 6px;
  font-size: 11px;
  display: flex; justify-content: space-between;
  font-weight: 500;
  color: var(--he-color-text);
}
.re-kanban__total b { color: var(--he-color-accent); }

/* ─── Viz 3 — ERP-склад ───────────────────────────────────────── */
.re-viz-erp { padding: 0; display: grid; grid-template-rows: 1fr 0.7fr; height: 100%; }
.re-erp__list {
  border-bottom: 1px solid var(--he-color-border, #e2e8f8);
  overflow: hidden;
}
.re-erp__row {
  display: grid;
  grid-template-columns: 50px 1fr 0.7fr 0.7fr 24px;
  font-size: 11px;
  padding: 8px 14px;
  border-bottom: 1px solid #f3f5fb;
  align-items: center;
}
.re-erp__row--head {
  background: #f3f5fb;
  color: #7a82a0;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.re-erp__sku { color: #7a82a0; font-variant-numeric: tabular-nums; }
.re-erp__name { font-weight: 500; color: var(--he-color-text); }
.re-erp__qty { font-variant-numeric: tabular-nums; text-align: right; }
.re-erp__qty--low { color: #e23b3b; font-weight: 600; }
.re-erp__qty--ok { color: #008e4d; }
.re-erp__alert {
  width: 12px; height: 12px;
  border-radius: 50%; margin-left: auto;
  background: #e2e8f8;
}
.re-erp__row--alert .re-erp__alert {
  background: #e23b3b;
  animation: re-erp-pulse 1.6s ease-out infinite;
}
@keyframes re-erp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 59, 59, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(226, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 59, 59, 0); }
}
.re-erp__chart {
  position: relative;
  padding: 14px 16px 0;
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}
.re-erp__chart-title {
  font-size: 11px; font-weight: 600;
  color: var(--he-color-text-secondary, #363f55);
  margin-bottom: 6px;
}
.re-erp__chart svg { width: 100%; height: calc(100% - 22px); display: block; }
.re-erp__chart-line {
  fill: none;
  stroke: #5171f7;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: re-draw-line 2.6s ease-out 0.4s forwards;
}
.re-show__panel.is-active .re-erp__chart-line { animation: re-draw-line 2.6s ease-out 0.4s forwards; }
.re-erp__chart-area { fill: url(#re-area-grad-erp); opacity: 0; animation: re-fade-in 1s ease-out 2.5s forwards; }
.re-erp__chart-warn {
  fill: #e23b3b;
  opacity: 0;
  animation: re-dot-appear 1s ease-out 2.8s forwards;
}

/* ─── Viz 1-bis — Финучёт (заменяет план-факт) ────────────────── */
.re-viz-fin { padding: 0; display: flex; flex-direction: column; height: 100%; }
.re-viz-fin__sub {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  font-size: 11px;
  background: #fafbff;
  border-bottom: 1px solid var(--he-color-border, #e2e8f8);
  color: var(--he-color-text-secondary, #363f55);
}
.re-viz-fin__sub b { color: var(--he-color-text); font-weight: 600; }
.re-viz-fin__table {
  flex: 1;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 0.7fr 0.9fr 0.9fr;
  align-content: start;
  font-size: 11.5px;
}
.re-viz-fin__cell {
  padding: 8px 12px;
  border-bottom: 1px solid #eef0f7;
  display: flex; align-items: center;
  font-variant-numeric: tabular-nums;
  color: var(--he-color-text);
}
.re-viz-fin__cell--head {
  background: #f3f5fb;
  color: #7a82a0;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom-color: #d4dced;
}
.re-viz-fin__cell--num { justify-content: flex-end; font-weight: 500; }
.re-viz-fin__cell--in { color: #008e4d; }
.re-viz-fin__cell--out { color: #e23b3b; }
.re-viz-fin__cell--total { background: #eef2ff; font-weight: 700; }
.re-viz-fin__cell--total-pos { background: #eef2ff; color: #008e4d; font-weight: 700; }
.re-viz-fin__tag {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}
.re-viz-fin__tag--in { background: rgba(0, 168, 90, 0.15); color: #008e4d; }
.re-viz-fin__tag--out { background: rgba(226, 59, 59, 0.15); color: #e23b3b; }
.re-viz-fin__row {
  display: contents;
  animation: re-fin-row-in 0.6s ease-out backwards;
}
.re-viz-fin__row > * { animation: re-fin-row-in 0.6s ease-out backwards; animation-delay: inherit; }
@keyframes re-fin-row-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.re-show__panel.is-active .re-viz-fin__row > * { animation: re-fin-row-in 0.6s ease-out backwards; }

/* ─── Phone-мокап с Telegram-ботом ─────────────────────────────── */
.re-show__viz--split {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
}
.re-show__viz--split .re-card__head { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .re-show__viz--split { grid-template-columns: 1fr; }
  .re-show__viz--split .re-phone { display: none; }
}
.re-phone {
  position: relative;
  background: linear-gradient(180deg, #f4f8ff 0%, #eef2ff 100%);
  padding: 22px 18px;
  border-right: 1px solid var(--he-color-border, #e2e8f8);
  display: flex; align-items: center; justify-content: center;
}
.re-phone__device {
  width: 188px; height: 320px;
  background: #1d2233;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 22px 40px -16px rgba(29, 34, 51, 0.5), inset 0 0 0 2px #2c3a52;
  position: relative;
}
.re-phone__device::before {
  content: "";
  position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 14px;
  background: #1d2233;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.re-phone__screen {
  width: 100%; height: 100%;
  background: #eef4f8;
  border-radius: 20px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.re-phone__statusbar {
  padding: 18px 14px 6px;
  display: flex; justify-content: space-between;
  font-size: 9px; color: #1d2233; font-weight: 600;
  background: #fff;
}
.re-phone__tg-head {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 8px;
  background: #fff;
  border-bottom: 1px solid #e2e8f8;
}
.re-phone__tg-back { color: #229ed9; font-size: 14px; }
.re-phone__tg-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #229ed9 0%, #2aabee 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
}
.re-phone__tg-info { display: flex; flex-direction: column; line-height: 1.1; }
.re-phone__tg-name { font-size: 11px; font-weight: 600; color: #1d2233; }
.re-phone__tg-status { font-size: 9px; color: #7a82a0; }
.re-phone__chat {
  flex: 1;
  padding: 8px 10px;
  display: flex; flex-direction: column;
  gap: 6px;
  background:
    linear-gradient(rgba(238, 244, 248, 0.85), rgba(238, 244, 248, 0.85)),
    radial-gradient(circle at 20% 30%, #dde7f0 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, #dde7f0 0%, transparent 50%),
    #eef4f8;
  overflow: hidden;
}
.re-phone__bubble {
  background: #fff;
  padding: 6px 10px;
  border-radius: 12px 12px 12px 4px;
  font-size: 9.5px;
  line-height: 1.4;
  color: #1d2233;
  max-width: 88%;
  box-shadow: 0 1px 3px rgba(29, 34, 51, 0.08);
  opacity: 0;
  transform: translateY(6px);
  animation: re-phone-msg 9s ease-out infinite;
  align-self: flex-start;
}
.re-phone__bubble--out {
  background: #cfe9c9;
  border-radius: 12px 12px 4px 12px;
  align-self: flex-end;
}
.re-phone__bubble b { color: #229ed9; }
.re-phone__bubble--1 { animation-delay: 0.4s; }
.re-phone__bubble--2 { animation-delay: 2.6s; }
.re-phone__bubble--3 { animation-delay: 4.8s; }
.re-phone__bubble--4 { animation-delay: 6.6s; }
@keyframes re-phone-msg {
  0% { opacity: 0; transform: translateY(6px); }
  4%, 95% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
.re-phone__indicator {
  position: absolute; top: -6px; right: -6px;
  background: #e23b3b;
  color: #fff;
  font-size: 9px; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 8px -2px rgba(226, 59, 59, 0.6);
  animation: re-erp-pulse 1.6s ease-out infinite;
  z-index: 3;
}

/* Сжатый kanban для split-layout */
.re-show__viz--split .re-viz-kanban {
  padding: 14px;
  font-size: 10px;
}
.re-show__viz--split .re-viz-kanban .re-kanban__card { font-size: 10px; padding: 6px 8px; }
.re-show__viz--split .re-viz-kanban .re-kanban__card b { font-size: 10px; }
.re-show__viz--split .re-viz-kanban .re-kanban__card span { font-size: 9px; }

/* ─── Viz 3-bis — Большой дашборд (заменяет ERP-склад) ─────────── */
.re-viz-bigdash {
  padding: 14px 16px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto 1fr;
  gap: 10px;
  height: 100%;
}
.re-bd-kpi {
  background: #fff;
  border: 1px solid var(--he-color-border, #e2e8f8);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex; flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.re-bd-kpi__label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a82a0;
  font-weight: 500;
}
.re-bd-kpi__value {
  font-size: 19px;
  font-weight: 700;
  color: var(--he-color-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.re-bd-kpi__delta {
  font-size: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 500;
}
.re-bd-kpi__delta--pos { color: #008e4d; }
.re-bd-kpi__delta--neg { color: #e23b3b; }
.re-bd-kpi__spark {
  position: absolute;
  right: 0; bottom: 0;
  width: 64px; height: 30px;
  opacity: 0.85;
}
.re-bd-kpi__spark svg { width: 100%; height: 100%; display: block; }
.re-bd-kpi__spark path {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: re-draw-line 1.6s ease-out forwards;
}
.re-show__panel.is-active .re-bd-kpi__spark path { animation: re-draw-line 1.6s ease-out forwards; }
.re-bd-kpi--rev .re-bd-kpi__spark path { stroke: #5171f7; }
.re-bd-kpi--mar .re-bd-kpi__spark path { stroke: #00a85a; }
.re-bd-kpi--ord .re-bd-kpi__spark path { stroke: #ea5699; }
.re-bd-kpi--stk .re-bd-kpi__spark path { stroke: #ffbd2e; }

.re-bd-bars {
  grid-column: 1 / span 2;
  background: #fff;
  border: 1px solid var(--he-color-border, #e2e8f8);
  border-radius: 12px;
  padding: 12px;
  display: flex; flex-direction: column;
  min-height: 0;
}
.re-bd-bars__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.re-bd-bars__title { font-size: 11px; font-weight: 600; color: var(--he-color-text); }
.re-bd-bars__sub { font-size: 10px; color: #7a82a0; }
.re-bd-bars__plot {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  padding-top: 4px;
}
.re-bd-bar {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.re-bd-bar__col {
  width: 100%;
  background: linear-gradient(180deg, #5171f7 0%, #817af9 100%);
  border-radius: 4px 4px 0 0;
  height: 0;
  animation: re-bd-bar-grow 1.6s cubic-bezier(.16,.84,.34,1) forwards;
  position: relative;
}
.re-bd-bar:nth-child(1) .re-bd-bar__col { --h: 42%; animation-delay: 0.1s; }
.re-bd-bar:nth-child(2) .re-bd-bar__col { --h: 58%; animation-delay: 0.2s; }
.re-bd-bar:nth-child(3) .re-bd-bar__col { --h: 38%; animation-delay: 0.3s; }
.re-bd-bar:nth-child(4) .re-bd-bar__col { --h: 72%; animation-delay: 0.4s; }
.re-bd-bar:nth-child(5) .re-bd-bar__col { --h: 88%; animation-delay: 0.5s; }
.re-bd-bar:nth-child(6) .re-bd-bar__col {
  --h: 100%; animation-delay: 0.6s;
  background: linear-gradient(180deg, #ea5699 0%, #ef89b6 100%);
}
.re-bd-bar:nth-child(7) .re-bd-bar__col { --h: 66%; animation-delay: 0.7s; }
@keyframes re-bd-bar-grow {
  from { height: 0; }
  to { height: var(--h, 60%); }
}
.re-bd-bar__label { font-size: 9px; color: #7a82a0; font-variant-numeric: tabular-nums; }
.re-show__panel.is-active .re-bd-bar__col { animation: re-bd-bar-grow 1.6s cubic-bezier(.16,.84,.34,1) forwards; }

.re-bd-donut {
  grid-column: 3 / span 2;
  background: #fff;
  border: 1px solid var(--he-color-border, #e2e8f8);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}
.re-bd-donut__chart {
  position: relative;
  aspect-ratio: 1;
  max-height: 140px;
  margin: 0 auto;
}
.re-bd-donut__chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.re-bd-donut__center {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  pointer-events: none;
}
.re-bd-donut__center b {
  font-size: 18px; font-weight: 700;
  background: linear-gradient(95deg, #5171f7 0%, #ea5699 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.re-bd-donut__center span {
  font-size: 9px; color: #7a82a0;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-top: 2px;
}
.re-bd-donut__seg {
  fill: none;
  stroke-width: 14;
  stroke-linecap: butt;
  transform-origin: center;
  stroke-dasharray: 0 360;
  animation: re-bd-donut-fill 1.4s cubic-bezier(.16,.84,.34,1) forwards;
}
.re-show__panel.is-active .re-bd-donut__seg { animation: re-bd-donut-fill 1.4s cubic-bezier(.16,.84,.34,1) forwards; }
@keyframes re-bd-donut-fill {
  from { stroke-dasharray: 0 360; }
  to { stroke-dasharray: var(--seg, 90) 360; }
}
.re-bd-donut__legend {
  display: flex; flex-direction: column;
  gap: 6px;
  font-size: 10px;
}
.re-bd-donut__item {
  display: flex; align-items: center; gap: 8px;
  color: var(--he-color-text);
  line-height: 1.2;
}
.re-bd-donut__dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.re-bd-donut__item b { font-weight: 600; margin-left: auto; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .re-viz-bigdash {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
  }
  .re-bd-bars, .re-bd-donut { grid-column: 1 / -1; }
  .re-bd-donut { grid-template-columns: 130px 1fr; }
}

/* ──────────────────────────────────────────────────────────────────
   11. Mini-таблицы в карточках кейсов
   ────────────────────────────────────────────────────────────────── */
.re-cases { padding: 60px 0 72px; background: #f7faff; }
.re-cases__head { text-align: center; margin-bottom: 36px; }
.re-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 959px) { .re-cases__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .re-cases__grid { grid-template-columns: 1fr; } }
.re-case {
  background: #fff;
  border: 1px solid var(--he-color-border, #e2e8f8);
  border-radius: var(--he-radius-lg, 16px);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.re-case:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(81, 113, 247, 0.3); }
.re-case__viz {
  height: 130px;                      /* было 180 — визуал теперь не доминирует над текстом */
  background: #fafbff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--he-color-border, #e2e8f8);
  filter: saturate(0.45) brightness(1.05); /* единый пастельный тон для всех 6 кейсов */
  opacity: 0.95;
}
.re-case__viz::after {                /* мягкий vignette сверху — текст «дышит» от viz */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 24px;
  background: linear-gradient(180deg, transparent 0%, #fff 100%);
  pointer-events: none;
}
@media (max-width: 600px) { .re-case__viz { height: 110px; } }
.re-case__body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.re-case__tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--he-color-accent, #5171f7);
  margin-bottom: 8px;
}
.re-case__title { font-size: 16px; font-weight: 600; margin: 0 0 8px; line-height: 1.3; }
.re-case__res { font-size: 13px; color: var(--he-color-text-secondary, #363f55); line-height: 1.5; margin: 0; }
.re-case__metric {
  display: inline-flex; align-items: baseline; gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--he-color-border, #e2e8f8);
  font-size: 12px;
  color: var(--he-color-text-secondary, #363f55);
}
.re-case__metric b {
  font-size: 18px; font-weight: 700;
  background: linear-gradient(95deg, #5171f7 0%, #ea5699 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Case 1: табель/охрана — права доступа */
.re-cv-roles { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr 1fr 1fr; }
.re-cv-roles__lane {
  display: flex; align-items: center;
  padding: 0 14px; gap: 8px;
  border-bottom: 1px solid var(--he-color-border, #e2e8f8);
  font-size: 11px;
  position: relative; overflow: hidden;
}
.re-cv-roles__lane:last-child { border-bottom: 0; }
.re-cv-roles__user {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--he-color-border, #e2e8f8);
  padding: 3px 8px; border-radius: 999px;
  font-weight: 500;
}
.re-cv-roles__lock {
  width: 14px; height: 14px;
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.re-cv-roles__lock--allow { background: rgba(0, 168, 90, 0.15); color: #008e4d; }
.re-cv-roles__lock--deny { background: rgba(226, 59, 59, 0.15); color: #e23b3b; }
.re-cv-roles__line {
  flex: 1; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(81, 113, 247, 0.25) 50%, transparent 100%);
  background-size: 60% 100%; background-repeat: no-repeat;
  animation: re-flow 3s linear infinite;
}
@keyframes re-flow { from { background-position: -60% 0; } to { background-position: 160% 0; } }

/* Case 2: Консоль.Про — API-pipeline */
.re-cv-pipe { position: absolute; inset: 0; padding: 20px; display: flex; align-items: center; justify-content: space-between; }
.re-cv-pipe__node {
  width: 64px; height: 64px;
  background: #fff; border: 2px solid var(--he-color-border, #e2e8f8);
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; text-align: center;
  color: var(--he-color-text);
  position: relative; z-index: 2;
}
.re-cv-pipe__node svg { width: 22px; height: 22px; margin-bottom: 2px; }
.re-cv-pipe__node--sheets { color: #00a85a; }
.re-cv-pipe__node--api { color: #5171f7; }
.re-cv-pipe__node--konsol { color: #ea5699; }
.re-cv-pipe__rail {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--he-color-border) 0%, var(--he-color-accent) 50%, var(--he-color-border) 100%);
  z-index: 1; margin: 0 80px;
  overflow: hidden;
}
.re-cv-pipe__pkt {
  position: absolute; top: -2px; width: 8px; height: 6px;
  background: var(--he-color-accent);
  border-radius: 2px;
  animation: re-pkt-travel 2.4s linear infinite;
}
.re-cv-pipe__pkt--2 { animation-delay: 0.8s; background: #ea5699; }
.re-cv-pipe__pkt--3 { animation-delay: 1.6s; background: #00a85a; }
@keyframes re-pkt-travel {
  0% { left: -10px; }
  100% { left: 100%; }
}

/* Case 3: автопарк — календарь занятости */
.re-cv-cal { position: absolute; inset: 0; padding: 12px; display: grid; grid-template-rows: auto repeat(3, 1fr); gap: 4px; }
.re-cv-cal__days { display: grid; grid-template-columns: 56px repeat(14, 1fr); gap: 2px; font-size: 9px; color: #7a82a0; }
.re-cv-cal__d { text-align: center; padding-top: 2px; }
.re-cv-cal__car { display: grid; grid-template-columns: 56px repeat(14, 1fr); gap: 2px; align-items: center; font-size: 10px; }
.re-cv-cal__name { font-weight: 500; padding-left: 4px; color: var(--he-color-text); }
.re-cv-cal__slot { background: #f2f4fb; border-radius: 2px; height: 100%; min-height: 22px; position: relative; overflow: hidden; }
.re-cv-cal__slot--used { background: linear-gradient(135deg, #5171f7 0%, #817af9 100%); animation: re-slot-appear 0.5s ease-out backwards; }
.re-cv-cal__slot--used-pink { background: linear-gradient(135deg, #ea5699 0%, #ef89b6 100%); animation: re-slot-appear 0.5s ease-out backwards; }
.re-cv-cal__slot--used-green { background: linear-gradient(135deg, #00a85a 0%, #2bd187 100%); animation: re-slot-appear 0.5s ease-out backwards; }
@keyframes re-slot-appear { from { opacity: 0; transform: scaleX(0); transform-origin: left; } to { opacity: 1; transform: scaleX(1); } }

/* ─── Case 4: 3D-печать — сетка статусов принтеров ───────────── */
.re-cv-printers {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 4px;
  padding: 14px;
}
.re-cv-printers__cell {
  border-radius: 3px;
  background: #f2f4fb;
  position: relative;
  animation: re-printer-status 4s ease-in-out infinite;
}
.re-cv-printers__cell::after {
  content: ""; position: absolute; inset: 30% 30%;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.5;
}
@keyframes re-printer-status {
  0%, 30% { background: rgba(81, 113, 247, 0.25); color: #5171f7; }
  35%, 65% { background: rgba(255, 189, 46, 0.3); color: #ffbd2e; }
  70%, 100% { background: rgba(0, 168, 90, 0.3); color: #00a85a; }
}
.re-cv-printers__cell:nth-child(3n) { animation-delay: -1s; }
.re-cv-printers__cell:nth-child(4n) { animation-delay: -2s; }
.re-cv-printers__cell:nth-child(5n) { animation-delay: -3s; }
.re-cv-printers__cell:nth-child(7n) { animation-delay: -0.5s; }

/* ─── Case 5: склад с резервами ──────────────────────────────── */
.re-cv-stock { position: absolute; inset: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.re-cv-stock__row {
  display: grid;
  grid-template-columns: 1fr 60px 60px 18px;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  padding: 5px 0;
  border-bottom: 1px solid #eef0f7;
}
.re-cv-stock__row:last-child { border-bottom: 0; }
.re-cv-stock__row--head { font-size: 9px; color: #7a82a0; text-transform: uppercase; letter-spacing: 0.04em; border-bottom-color: #d4dced; font-weight: 500; }
.re-cv-stock__name { color: var(--he-color-text); font-weight: 500; }
.re-cv-stock__bar {
  height: 12px; border-radius: 3px;
  background: linear-gradient(90deg, #f2f4fb 0%, #f2f4fb 50%, transparent 100%);
  background-size: 200% 100%;
  position: relative;
  overflow: hidden;
}
.re-cv-stock__bar::after {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #5171f7 0%, #817af9 100%);
  border-radius: 3px;
  animation: re-stock-fill 2.4s ease-out infinite;
}
.re-cv-stock__bar--res::after {
  background: linear-gradient(90deg, #ea5699 0%, #ef89b6 100%);
  animation-delay: 0.4s;
}
@keyframes re-stock-fill {
  0% { width: 0; }
  60% { width: var(--w, 70%); }
  100% { width: var(--w, 70%); }
}
.re-cv-stock__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00a85a;
}
.re-cv-stock__dot--low { background: #e23b3b; animation: re-erp-pulse 1.6s ease-out infinite; }

/* ─── Case 6: детский центр — расписание ─────────────────────── */
.re-cv-schedule { position: absolute; inset: 0; padding: 12px; display: grid; grid-template-columns: 50px repeat(5, 1fr); grid-template-rows: auto repeat(4, 1fr); gap: 3px; }
.re-cv-schedule__h { font-size: 9px; color: #7a82a0; padding: 2px 0; text-align: center; }
.re-cv-schedule__time { font-size: 9px; color: #7a82a0; display: flex; align-items: center; padding-left: 4px; }
.re-cv-schedule__slot {
  border-radius: 4px;
  background: #f2f4fb;
  font-size: 9px;
  padding: 3px 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 500;
  animation: re-slot-appear 0.5s ease-out backwards;
}
.re-cv-schedule__slot--ballet { background: linear-gradient(135deg, #ea5699 0%, #ef89b6 100%); }
.re-cv-schedule__slot--engl { background: linear-gradient(135deg, #5171f7 0%, #817af9 100%); }
.re-cv-schedule__slot--art { background: linear-gradient(135deg, #00a85a 0%, #2bd187 100%); }
.re-cv-schedule__slot--math { background: linear-gradient(135deg, #ffbd2e 0%, #ffd06b 100%); color: #1d2233; }

/* ──────────────────────────────────────────────────────────────────
   12. Сравнительная таблица: Мы vs Фрилансер vs Коробка
   ────────────────────────────────────────────────────────────────── */
.re-compare { padding: 72px 0; background: #fff; }
.re-compare__head { text-align: center; margin-bottom: 36px; }
.re-compare__wrap {
  max-width: 980px; margin: 0 auto;
  border-radius: 24px;
  background: linear-gradient(135deg, #f7faff 0%, #fff 100%);
  border: 1px solid var(--he-color-border, #e2e8f8);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(29, 34, 51, 0.14);
}
.re-compare__table {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  font-size: 14px;
}
.re-compare__cell {
  padding: 18px 20px;
  border-bottom: 1px solid var(--he-color-border, #e2e8f8);
  display: flex; align-items: center;
  gap: 10px;
  color: var(--he-color-text);
}
.re-compare__cell--head {
  font-size: 13px; font-weight: 600;
  background: #f7faff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--he-color-text-secondary);
  padding: 14px 20px;
  border-bottom: 2px solid var(--he-color-border);
}
.re-compare__cell--head-us {
  background: linear-gradient(135deg, #5171f7 0%, #817af9 100%);
  color: #fff;
}
.re-compare__cell--us {
  background: rgba(81, 113, 247, 0.04);
  font-weight: 600;
  color: var(--he-color-text);
}
.re-compare__row {
  display: contents;
}
.re-compare__row.is-visible .re-compare__cell {
  opacity: 1; transform: translateX(0);
}
.re-compare__cell--criterion {
  font-weight: 500;
}
.re-compare__ico {
  display: inline-flex; width: 20px; height: 20px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.re-compare__ico--yes { background: rgba(0, 168, 90, 0.15); color: #008e4d; }
.re-compare__ico--no { background: rgba(226, 59, 59, 0.15); color: #e23b3b; }
.re-compare__ico--so { background: rgba(255, 189, 46, 0.2); color: #c87a00; }

.re-compare__row .re-compare__cell {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .55s ease, transform .55s ease;
}
.re-compare__row .re-compare__cell:nth-child(2) { transition-delay: 0.08s; }
.re-compare__row .re-compare__cell:nth-child(3) { transition-delay: 0.16s; }
.re-compare__row .re-compare__cell:nth-child(4) { transition-delay: 0.24s; }

.re-compare__foot {
  padding: 24px 20px;
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
  text-align: center;
}
.re-compare__foot p { margin: 0 0 14px; font-size: 14px; color: var(--he-color-text-secondary); }

@media (max-width: 760px) {
  .re-compare__table { grid-template-columns: 1fr 1fr; font-size: 12px; }
  .re-compare__cell { padding: 12px 14px; }
  .re-compare__cell:nth-child(4n+1) { grid-column: 1 / -1; background: #f3f5fb; font-weight: 600; padding: 10px 14px; border-bottom: 0; }
  .re-compare__cell--head-us { grid-column: auto; }
}

/* ──────────────────────────────────────────────────────────────────
   13. Скрытие дублирующих Tilda-секций
   ────────────────────────────────────────────────────────────────── */
body.has-re-hero #rec1111351976,
body.has-re-hero #rec1111351986,
body.has-re-hero #rec1111390231,
body.has-re-hero #rec1111351996,
body.has-re-hero #rec1111352006,
body.has-re-hero #rec1111352011,
body.has-re-hero #rec1111352016,
body.has-re-hero #rec1116926441,
body.has-re-hero #rec1116929936,
body.has-re-hero #rec1111352061,
body.has-re-hero #rec1111352066 {
  display: none !important;
}

/* ──────────────────────────────────────────────────────────────────
   14. Alt CTA и плашка срочности в hero
   ────────────────────────────────────────────────────────────────── */
.re-hero__alt {
  margin-top: 12px;
  font-size: 13px;
  color: var(--he-color-text-secondary, #363f55);
}
.re-hero__alt a {
  color: var(--he-color-accent, #5171f7);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  font-weight: 500;
}
.re-hero__alt a:hover { color: var(--he-color-button, #817af9); }

.re-hero__slots {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  margin-left: 10px;
  padding: 8px 14px;
  border-radius: var(--he-radius-pill, 999px);
  background: rgba(234, 86, 153, 0.08);
  color: #c43578;
  font-size: 13px; font-weight: 500;
}
.re-hero__slots::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #ea5699;
  animation: re-pulse-dot 1.6s infinite;
}
@media (max-width: 480px) {
  .re-hero__slots { margin-left: 0; margin-top: 10px; display: flex; }
}

/* ──────────────────────────────────────────────────────────────────
   16. Отзывы (после кейсов)
   ────────────────────────────────────────────────────────────────── */
.re-reviews { padding: 72px 0; background: #fff; }
.re-reviews__head { text-align: center; margin-bottom: 36px; }
.re-reviews__head .re-sub { margin-top: 10px; font-size: 14px; }
.re-reviews__source {
  color: var(--he-color-accent, #5171f7);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
}
.re-reviews__source:hover { opacity: 0.8; }
.re-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 859px) { .re-reviews__grid { grid-template-columns: 1fr; } }

.re-review {
  background: linear-gradient(180deg, #f7faff 0%, #fff 100%);
  border: 1px solid var(--he-color-border, #e2e8f8);
  border-radius: var(--he-radius-lg, 16px);
  padding: 26px 22px 22px;
  position: relative;
}
.re-review__quote {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--he-color-text, #1d2233);
  margin: 0 0 22px;
}
.re-review__quote::before {
  content: "\201C";
  font-size: 56px;
  line-height: 0.2;
  vertical-align: -30px;
  color: var(--he-color-accent, #5171f7);
  margin-right: 4px;
  font-family: Georgia, serif;
}
.re-review__author {
  display: flex; align-items: center; gap: 14px;
}
.re-review__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.re-review__avatar svg { width: 100%; height: 100%; display: block; }
.re-review__avatar--text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.4px;
  font-family: var(--he-font, "Open Sans"), sans-serif;
  text-transform: uppercase;
  line-height: 1;
}
.re-review__avatar--1 { background: linear-gradient(135deg, #5171f7, #817af9); color: #fff; }
.re-review__avatar--2 { background: linear-gradient(135deg, #ea5699, #ef89b6); color: #fff; }
.re-review__avatar--3 { background: linear-gradient(135deg, #00a85a, #2bd187); color: #fff; }
.re-review__avatar--4 { background: linear-gradient(135deg, #ffbd2e, #ffd06b); color: #1d2233; }
.re-review__avatar--5 { background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; }
.re-review__avatar--6 { background: linear-gradient(135deg, #7b54e2, #9e7ef7); color: #fff; }
.re-review__name { font-size: 14px; font-weight: 600; color: var(--he-color-text); display: block; }
.re-review__pos { font-size: 12px; color: var(--he-color-text-secondary); }
.re-review__metric {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 168, 90, 0.12);
  color: #008e4d;
  padding: 4px 10px;
  border-radius: var(--he-radius-pill, 999px);
}

/* ──────────────────────────────────────────────────────────────────
   17. Compare: мобильный layout — карточками
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .re-compare__table {
    display: flex;
    flex-direction: column;
    grid-template-columns: none !important;
  }
  .re-compare__table > .re-compare__cell {
    /* шапки таблицы скрываем на мобиле — вместо них подписи в карточках */
    display: none;
  }
  .re-compare__row {
    display: block !important;
    background: #fff;
    border: 1px solid var(--he-color-border);
    border-radius: var(--he-radius-lg, 16px);
    margin: 0 14px 12px;
    padding: 14px 16px;
    transform: none !important;
    opacity: 1 !important;
  }
  .re-compare__row .re-compare__cell {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 8px 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 13px;
  }
  .re-compare__row .re-compare__cell--criterion {
    font-weight: 700;
    font-size: 15px;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--he-color-border) !important;
    margin-bottom: 8px;
    color: var(--he-color-text);
  }
  .re-compare__row .re-compare__cell--us::before {
    content: "HelpExcel:";
    color: var(--he-color-accent);
    font-weight: 600;
    margin-right: 8px;
    min-width: 86px;
  }
  .re-compare__row .re-compare__cell:nth-child(3)::before {
    content: "Фрилансер:";
    color: var(--he-color-text-secondary);
    margin-right: 8px;
    min-width: 86px;
  }
  .re-compare__row .re-compare__cell:nth-child(4)::before {
    content: "1С / Bitrix:";
    color: var(--he-color-text-secondary);
    margin-right: 8px;
    min-width: 86px;
  }
}

/* ──────────────────────────────────────────────────────────────────
   18. Кастомная форма заявки (заменяет старую Tilda-форму)
   ────────────────────────────────────────────────────────────────── */
.re-form { padding: 72px 0; background: linear-gradient(180deg, #fff 0%, #f7faff 100%); }
.re-form__wrap {
  max-width: 720px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--he-color-border, #e2e8f8);
  border-radius: 24px;
  box-shadow: 0 30px 60px -25px rgba(81, 113, 247, 0.25);
  padding: 36px 32px;
}
@media (max-width: 600px) { .re-form__wrap { padding: 24px 18px; border-radius: 18px; } }
.re-form__head { text-align: center; margin-bottom: 24px; }
.re-form__head h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; margin: 8px 0 10px; }
.re-form__head p { font-size: 15px; color: var(--he-color-text-secondary, #363f55); margin: 0; }

.re-form__field { margin-bottom: 14px; }
.re-form__field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--he-color-text-secondary, #363f55);
  margin-bottom: 6px;
}
.re-form__req { color: #e63950; margin-left: 2px; }
.re-form__opt { color: var(--he-color-text-secondary, #8a93a8); font-weight: 400; font-size: 12px; margin-left: 4px; }
.re-form__input:invalid:not(:placeholder-shown) { border-color: #e63950; }
.re-form__input,
.re-form__textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--he-color-border-input, #d4dced);
  border-radius: var(--he-radius-md, 10px);
  font-size: 15px;
  font-family: inherit;
  color: var(--he-color-text);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}
.re-form__textarea { resize: vertical; min-height: 90px; }
.re-form__input:focus,
.re-form__textarea:focus {
  outline: none;
  border-color: var(--he-color-button, #817af9);
  box-shadow: 0 0 0 3px rgba(129, 122, 249, 0.15);
}
.re-form__channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 480px) { .re-form__channels { grid-template-columns: 1fr; } }
.re-form__channel {
  position: relative;
  cursor: pointer;
}
.re-form__channel input { position: absolute; opacity: 0; }
.re-form__channel-card {
  border: 1.5px solid var(--he-color-border, #e2e8f8);
  border-radius: var(--he-radius-md, 10px);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: all .2s ease;
}
.re-form__channel input:checked + .re-form__channel-card {
  border-color: var(--he-color-button, #817af9);
  background: rgba(129, 122, 249, 0.06);
}
.re-form__channel-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.re-form__channel-icon--tg { background: #229ed9; color: #fff; }
.re-form__channel-icon--em { background: var(--he-color-bg-light, #f2f4fb); color: var(--he-color-text); }
.re-form__channel-icon svg { width: 18px; height: 18px; }
.re-form__channel-info { display: flex; flex-direction: column; line-height: 1.2; }
.re-form__channel-info b { font-size: 14px; font-weight: 600; color: var(--he-color-text); }
.re-form__channel-info span { font-size: 12px; color: var(--he-color-text-secondary); }

.re-form__submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(309deg, #ea5699 0%, #ef89b6 100%);
  border: 0;
  border-radius: var(--he-radius-pill, 999px);
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 22px -8px rgba(234, 86, 153, 0.55);
  transition: transform .15s ease, box-shadow .2s ease;
  margin-top: 8px;
}
.re-form__submit:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(234, 86, 153, 0.7); }
.re-form__submit:disabled { opacity: 0.5; cursor: not-allowed; }
.re-form__legal {
  font-size: 11px;
  color: var(--he-color-text-secondary);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}
.re-form__legal a { color: var(--he-color-accent); text-decoration: none; }
.re-form__success {
  display: none;
  background: rgba(0, 168, 90, 0.08);
  border: 1.5px solid rgba(0, 168, 90, 0.3);
  border-radius: var(--he-radius-md, 10px);
  padding: 18px 20px;
  color: #006d3a;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
}
.re-form__wrap.is-sent .re-form__success { display: block; }
.re-form__wrap.is-sent .re-form__form { display: none; }

/* ──────────────────────────────────────────────────────────────────
   2026-05-21: ad traffic conversion pack
   ────────────────────────────────────────────────────────────────── */
.re-btn {
  min-height: 52px;
  padding: 14px 26px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}
.re-btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, #315df6 0%, #6b57f5 48%, #d94c93 100%);
  text-shadow: 0 1px 1px rgba(13, 20, 42, 0.18);
}
.re-btn--ghost {
  min-height: 50px;
}
.re-hero__fit,
.re-form__fit,
.re-calc__capture {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(81, 113, 247, 0.2);
  border-radius: 12px;
  background: rgba(81, 113, 247, 0.06);
  color: var(--he-color-text-secondary, #363f55);
  font-size: 14px;
  line-height: 1.45;
}
.re-hero__fit b,
.re-form__fit b { color: var(--he-color-text, #1d2233); }
.re-calc__capture {
  margin-top: 18px;
  background: rgba(0, 168, 90, 0.07);
  border-color: rgba(0, 168, 90, 0.18);
}
.re-case {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.re-case:hover {
  border-color: rgba(81, 113, 247, 0.38);
}
.re-case__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--he-color-accent, #5171f7);
  font-size: 14px;
  font-weight: 700;
}
.re-case-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.re-case-modal.is-open { display: flex; }
.re-case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 23, 42, 0.58);
  backdrop-filter: blur(8px);
}
.re-case-modal__panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(820px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid rgba(226, 232, 248, 0.95);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.32);
}
.re-case-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f2f4fb;
  color: var(--he-color-text, #1d2233);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}
.re-case-modal__grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.94fr) 1fr;
  gap: 0;
}
.re-case-modal__visual {
  min-height: 520px;
  padding: 34px;
  background: linear-gradient(135deg, #f6f8ff 0%, #eef3ff 58%, #fff5fb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.re-case-modal__copy {
  padding: 42px 42px 36px;
}
.re-case-modal__tag {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--he-color-accent, #5171f7);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.re-case-modal__copy h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}
.re-case-modal__lead {
  margin: 0 0 22px;
  color: var(--he-color-text-secondary, #363f55);
  font-size: 16px;
  line-height: 1.55;
}
.re-case-modal__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}
.re-case-modal__cols b {
  display: block;
  margin-bottom: 8px;
}
.re-case-modal__cols ul {
  margin: 0;
  padding-left: 18px;
  color: var(--he-color-text-secondary, #363f55);
  font-size: 14px;
  line-height: 1.5;
}
.re-case-modal__cols li { margin-bottom: 7px; }
.re-case-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.re-detail-window {
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid #dce5fb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(44, 57, 102, 0.18);
}
.re-detail-window__top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf1fb;
  color: #7a8298;
  font-size: 12px;
  font-weight: 700;
}
.re-detail-window__top span:not(:last-child) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e66d7d;
}
.re-detail-window__top span:nth-child(2) { background: #e9c15d; }
.re-detail-window__top span:nth-child(3) { background: #68c88c; }
.re-detail-window__title { margin-left: auto; }
.re-detail-sheet {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.8fr);
  padding: 14px;
  font-size: 12px;
}
.re-detail-sheet div {
  min-height: 32px;
  padding: 8px;
  border-right: 1px solid #edf1fb;
  border-bottom: 1px solid #edf1fb;
  color: #363f55;
}
.re-detail-sheet div:nth-child(4n) { border-right: 0; }
.re-detail-sheet .is-head {
  color: #8c94a8;
  font-weight: 800;
  text-transform: uppercase;
}
.re-detail-sheet .is-good {
  color: #168653;
  font-weight: 800;
}
.re-detail-sheet .is-warn {
  color: #c45b7f;
  font-weight: 800;
}
.re-detail-sheet .is-live {
  animation: re-detail-glow 1.8s ease-in-out infinite;
}
.re-detail-flow {
  display: grid;
  grid-template-columns: 1fr 54px 1fr 54px 1fr;
  align-items: center;
  gap: 10px;
  padding: 28px;
}
.re-detail-flow__node {
  min-height: 92px;
  border: 1px solid #e5eaf8;
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--he-color-accent, #5171f7);
  font-weight: 800;
  text-align: center;
}
.re-detail-flow__line {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6aa57b, #817af9, #c06a93);
  background-size: 220% 100%;
  animation: re-flow 1.7s linear infinite;
}
.re-detail-log {
  margin: 0 18px 18px;
  padding: 12px;
  border-radius: 12px;
  background: #f5f7fc;
  color: #5e667a;
  font-size: 12px;
  line-height: 1.5;
}
.re-detail-calendar {
  display: grid;
  grid-template-columns: 70px repeat(7, 1fr);
  gap: 6px;
  padding: 18px;
  font-size: 11px;
}
.re-detail-calendar span {
  min-height: 28px;
  border-radius: 8px;
  background: #f1f4fb;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.re-detail-calendar .is-name {
  justify-content: start;
  padding-left: 8px;
  color: #363f55;
  background: transparent;
}
.re-detail-calendar .is-booked {
  color: #fff;
  background: #817af9;
  animation: re-detail-pop 2.2s ease-in-out infinite;
}
.re-detail-calendar .is-green { background: #80b992; }
.re-detail-calendar .is-pink { background: #c07a9d; }
.re-form__channel-icon--wa {
  background: #25d366;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.re-form__submit {
  min-height: 54px;
  color: #fff;
  font-weight: 800;
}
@keyframes re-detail-glow {
  0%, 100% { background: rgba(81, 113, 247, 0.06); }
  50% { background: rgba(234, 86, 153, 0.14); }
}
@keyframes re-flow {
  to { background-position: -220% 0; }
}
@keyframes re-detail-pop {
  0%, 100% { transform: scale(1); opacity: 0.86; }
  50% { transform: scale(1.04); opacity: 1; }
}
@media (max-width: 820px) {
  .re-case-modal { padding: 12px; }
  .re-case-modal__grid { grid-template-columns: 1fr; }
  .re-case-modal__visual { min-height: 320px; padding: 20px; }
  .re-case-modal__copy { padding: 30px 22px 24px; }
  .re-case-modal__cols { grid-template-columns: 1fr; }
  .re-detail-flow { grid-template-columns: 1fr; }
  .re-detail-flow__line { height: 28px; width: 3px; justify-self: center; }
}

/* ──────────────────────────────────────────────────────────────────
   19. Exit-intent popup + lead-magnet
   ────────────────────────────────────────────────────────────────── */
.re-exit {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(29, 34, 51, 0.6);
  z-index: 10000;
  padding: 16px;
  opacity: 0;
  transition: opacity .25s ease;
}
.re-exit.is-open { display: flex; opacity: 1; }
.re-exit__card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 460px;
  position: relative;
  text-align: center;
  transform: scale(0.95);
  transition: transform .25s ease;
  box-shadow: 0 30px 60px -25px rgba(29, 34, 51, 0.5);
}
.re-exit.is-open .re-exit__card { transform: scale(1); }
.re-exit__close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--he-color-bg-light, #f2f4fb);
  color: var(--he-color-text-secondary);
  border: 0;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.re-exit__close:hover { background: var(--he-color-border); }
.re-exit__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #5171f7, #ea5699);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 30px;
}
.re-exit h3 { font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.re-exit p { font-size: 14px; color: var(--he-color-text-secondary); margin: 0 0 18px; line-height: 1.5; }
.re-exit__input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--he-color-border-input);
  border-radius: var(--he-radius-md, 10px);
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.re-exit__submit {
  width: 100%;
  padding: 14px;
  font-size: 15px; font-weight: 500;
  color: #fff;
  background: linear-gradient(309deg, #ea5699 0%, #ef89b6 100%);
  border: 0;
  border-radius: var(--he-radius-pill, 999px);
  cursor: pointer;
  font-family: inherit;
}
.re-exit__legal { font-size: 11px; color: var(--he-color-text-secondary); margin-top: 8px; }

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .re-card, .re-bot__msg, .re-dash__line, .re-msgr__btn::after, .re-sheet__cell--formula-glow {
    animation: none !important;
  }
  .re-reveal { opacity: 1; transform: none; transition: none; }
}
