/* ==========================================================================
   REDIT — service.css
   Стили для страниц услуг (/services/*). Подключается ВМЕСТЕ с home.css:
   секции, карточки ЦА, таймлайн, FAQ и финальный CTA переиспользуются оттуда.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Хлебные крошки
   -------------------------------------------------------------------------- */

.svc-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted, #9b9d9f);
  margin-bottom: 13px;
}
.svc-crumbs a {
  color: var(--muted, #9b9d9f);
  text-decoration: none;
  transition: color 0.15s ease;
}
.svc-crumbs a:hover { color: #fff; }
.svc-crumbs__sep { opacity: 0.45; }
.svc-crumbs__here { color: var(--text, #f5f7fa); }

/* --------------------------------------------------------------------------
   Hero услуги
   -------------------------------------------------------------------------- */

.svc-hero {
  position: relative;
  padding: clamp(24px, 4vw, 46px) 0 clamp(18px, 2.6vw, 32px);
  overflow: hidden;
}
.svc-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.svc-hero__bg::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  left: -140px; top: -180px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  background: radial-gradient(circle, rgba(233,4,8,0.16), transparent 70%);
}
.svc-hero__inner { position: relative; z-index: 1; max-width: 860px; }
.svc-hero__col { min-width: 0; }

/* Hero с интерактивным виджетом: текст слева, виджет «машина продаж» справа */
.svc-hero__inner--with-widget {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 430px);
  align-items: start;
  gap: clamp(26px, 4vw, 56px);
  max-width: 100%;
}
/* Правую колонку опускаем — машина встаёт ниже уровня заголовка */
.svc-hero__inner--with-widget .svc-hero__widget {
  margin-top: clamp(70px, 9vw, 130px);
}
.svc-hero__widget {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.4vw, 28px);
}
/* Интеграция виджета в hero: чуть приподнимаем карточку, чтобы читалась как
   отдельная панель (тень + слегка заметнее граница + капельку светлее фон). */
.svc-hero__widget .redit-machine {
  --rm-card: #17171e;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 30px 66px -28px rgba(0, 0, 0, 0.85),
    0 0 40px -12px rgba(233, 4, 8, 0.16);
}
@media (max-width: 900px) {
  .svc-hero__inner--with-widget {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .svc-hero__inner--with-widget .svc-hero__widget {
    margin-top: 0;
    align-items: flex-start;
  }
}

/* 3D-иконка услуги: левитирует справа от заголовка hero.
   Текст НЕ затекает под иконку: модификатор --with-icon даёт заголовку
   и подзаголовку правый отступ размером с иконку + зазор. */
.svc-hero__icon {
  position: absolute;
  right: 0;
  top: clamp(52px, 6vw, 84px);
  width: clamp(110px, 13vw, 170px);
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 26px 48px rgba(0, 0, 0, 0.55)) drop-shadow(0 8px 32px rgba(233, 4, 8, 0.28));
  animation: svc-icon-float 6s ease-in-out infinite;
  z-index: 0;
}

@media (min-width: 901px) {
  .svc-hero__inner--with-icon .svc-hero__title,
  .svc-hero__inner--with-icon .svc-hero__sub {
    padding-right: clamp(150px, 17vw, 215px);
  }
}

@keyframes svc-icon-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}

@media (max-width: 900px) {
  .svc-hero__icon {
    position: static;
    display: block;
    width: 86px;
    margin-bottom: 14px;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-hero__icon { animation: none; }
}
.svc-hero__title {
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 8px 0 12px;
}
.svc-hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--muted, #9b9d9f);
  max-width: 680px;
  margin: 0 0 16px;
}
/* Акцентная фраза внутри подзаголовка — красный маркер-подсветка (не сливается) */
.svc-hero__sub-em {
  color: #fff;
  font-weight: 600;
  padding: 0.08em 0.3em;
  border-radius: 5px;
  background: rgba(233, 4, 8, 0.30);
  box-shadow: inset 0 0 0 1px rgba(255, 60, 64, 0.42);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

/* Красный акцент внутри H1 (выделенная строка оффера) */
.svc-hero__accent {
  display: block;
  margin-bottom: 6px;
  color: var(--red, #e90408);
}
/* Та же анимация акцента, что на главной (accent-shimmer) — красный градиент
   «переливается» по тексту — + неоновая подсветка через drop-shadow. */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .svc-hero__accent {
    background: linear-gradient(
      100deg,
      var(--red, #e90408) 0%,
      var(--red, #e90408) 36%,
      #ff8a8d 44%,
      #ffffff 50%,
      #ff8a8d 56%,
      var(--red-bright, #ff1a1f) 64%,
      var(--red, #e90408) 74%,
      var(--red, #e90408) 100%
    );
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: svc-accent-bolt 4.5s cubic-bezier(0.45, 0, 0.15, 1) 0.2s forwards;
    filter:
      drop-shadow(0 0 5px rgba(233, 4, 8, 0.28))
      drop-shadow(0 0 14px rgba(233, 4, 8, 0.16));
  }
}
/* «Удар молнии» + бегущий градиент: яркая бело-красная полоса быстро проходит
   по тексту (вспышка), затем пауза — и снова. */
@keyframes svc-accent-bolt {
  0%, 12%  { background-position: 135% 0; }
  42%      { background-position: -55% 0; }
  100%     { background-position: -55% 0; }
}

.svc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.svc-fact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 7px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 13px;
  background: rgba(255,255,255,0.03);
  font-size: 14px;
  font-weight: 500;
  color: var(--text, #f5f7fa);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.svc-fact:hover {
  border-color: rgba(255, 60, 64, 0.34) !important;
  background: rgba(233, 4, 8, 0.06) !important;
  transform: scale(1.035) !important;
  box-shadow: 0 0 18px -4px rgba(233, 4, 8, 0.5) !important;
}
/* Брендовый бейдж под иконкой: тёмный глянцевый сквиркл + красный символ
   + мягкое красное свечение — перекликается с большой иконкой услуги в hero. */
.svc-fact__ico {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 9px;
  color: var(--red-bright, #ff1a1f);
  background: radial-gradient(125% 125% at 30% 18%, #26262b 0%, #0d0d0f 100%);
  border: 1px solid rgba(255, 64, 68, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 14px rgba(233, 4, 8, 0.25);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.svc-fact:hover .svc-fact__ico {
  border-color: rgba(255, 64, 68, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 20px rgba(233, 4, 8, 0.45) !important;
  transform: scale(1) !important;
}

/* --------------------------------------------------------------------------
   Авто-подсветка чипов «бегущей волной»: пока курсор не на группе, чипы
   подсвечиваются по очереди (фаза сдвинута через --si). При наведении на
   группу анимация выключается — горит только тот чип, на котором курсор
   (через обычный :hover выше). Возврат — плавный, за счёт transition.
   -------------------------------------------------------------------------- */
.svc-fact {
  animation: svc-fact-cycle 8s ease-in-out infinite;
  animation-delay: calc(var(--si, 0) * 1.6s);
}
.svc-fact__ico {
  animation: svc-fact-ico-cycle 8s ease-in-out infinite;
  animation-delay: calc(var(--si, 0) * 1.6s);
}
/* Наведение на группу: ставим волну на ПАУЗУ (не сбрасываем) — после ухода
   курсора она продолжится с той же точки, а не с первого чипа. */
.svc-facts:hover .svc-fact,
.svc-facts:hover .svc-fact__ico {
  animation-play-state: paused;
}
/* Ненаведённые чипы гасим до базы поверх замороженного кадра — чтобы
   подсвечивался только тот, на который навели. */
.svc-facts:hover .svc-fact:not(:hover) {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  transform: scale(1) !important;
  box-shadow: 0 0 0 0 rgba(233, 4, 8, 0) !important;
}
.svc-facts:hover .svc-fact:not(:hover) .svc-fact__ico {
  border-color: rgba(255, 64, 68, 0.3) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 14px rgba(233, 4, 8, 0.25) !important;
  transform: scale(1) !important;
}
/* Плавная «дышащая» подсветка с мягким одиночным пиком + небольшое свечение */
@keyframes svc-fact-cycle {
  0%, 20%, 100% {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(233, 4, 8, 0);
  }
  10% {
    border-color: rgba(255, 60, 64, 0.4);
    background: rgba(233, 4, 8, 0.06);
    transform: scale(1.035);
    box-shadow: 0 0 18px -4px rgba(233, 4, 8, 0.5);
  }
}
@keyframes svc-fact-ico-cycle {
  0%, 20%, 100% {
    border-color: rgba(255, 64, 68, 0.3);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 4px 14px rgba(233, 4, 8, 0.25);
    transform: scale(1);
  }
  10% {
    border-color: rgba(255, 64, 68, 0.62);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 6px 22px rgba(233, 4, 8, 0.55);
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .svc-fact,
  .svc-fact__ico { animation: none; }
}

.svc-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Премиальная подсветка главной hero-кнопки услуги — статичная, усиливается по состоянию.
   Без вечного пульса; плавность смены даёт базовый transition .btn по box-shadow. */
.svc-hero__cta-row .btn--primary {
  box-shadow:
    0 12px 40px rgba(233, 4, 8, 0.35),
    0 0 18px -2px rgba(255, 26, 31, 0.5),
    0 0 40px -8px rgba(233, 4, 8, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.svc-hero__cta-row .btn--primary:hover,
.svc-hero__cta-row .btn--primary:focus-visible {
  box-shadow:
    0 14px 46px rgba(233, 4, 8, 0.46),
    0 0 26px 0 rgba(255, 26, 31, 0.7),
    0 0 60px -6px rgba(233, 4, 8, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
@media (prefers-reduced-motion: reduce) {
  .svc-hero__accent { animation: none; }
}

/* Блок цифр в hero услуги — центрированный, с иконками и анимацией */
.svc-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(22px, 4vw, 52px);
  margin: clamp(28px, 4vw, 42px) auto 0;
  padding-top: clamp(22px, 3vw, 30px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
@media (max-width: 620px) {
  .svc-stats { gap: 26px 32px; }
}

.svc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

/* Иконка над цифрой: красный бокс + плавающая анимация + пульс-кольцо */
.svc-stat__ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 15px;
  background: rgba(233, 4, 8, 0.12);
  color: var(--red, #e90408);
  box-shadow: inset 0 1px 0 rgba(255, 230, 232, 0.08);
  animation: svc-stat-float 4.2s ease-in-out infinite;
  animation-delay: calc(var(--si, 0) * 0.4s);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
}
.svc-stat__ico::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1px solid rgba(233, 4, 8, 0.45);
  opacity: 0;
  animation: svc-stat-ring 2.8s ease-out infinite;
  animation-delay: calc(var(--si, 0) * 0.4s);
  pointer-events: none;
}
.svc-stat:hover .svc-stat__ico {
  transform: scale(1.12) translateY(-2px);
  background: rgba(233, 4, 8, 0.2);
  box-shadow: 0 0 26px -6px rgba(233, 4, 8, 0.6), inset 0 1px 0 rgba(255, 230, 232, 0.1);
}
.svc-stat:hover .svc-stat__ico svg { transform: scale(1.08) rotate(-5deg); }
.svc-stat__ico svg { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes svc-stat-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes svc-stat-ring {
  0%        { transform: scale(1);    opacity: 0.55; }
  70%, 100% { transform: scale(1.4);  opacity: 0; }
}

.svc-stat__num {
  display: block;
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 8px 28px rgba(233, 4, 8, 0.4);
}
.svc-stat__num--accent { color: var(--red-bright, #ff1a1f); }
.svc-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted, #9b9d9f);
  max-width: 16ch;
}

@media (prefers-reduced-motion: reduce) {
  .svc-stat__ico { animation: none; }
  .svc-stat__ico::after { animation: none; display: none; }
}

/* --- Полоса цифр под hero (отдельная секция, не внутри hero) --- */
.svc-stats-band {
  padding: clamp(26px, 4vw, 44px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   Ключевые цифры в рамке-контейнере (полоса под hero).
   Скруглённый прямоугольник с тонкой обводкой + вертикальные разделители
   между показателями. Числа — брендовым красным, метки — приглушённый капс.
   -------------------------------------------------------------------------- */
/* Полоса цифр живёт ВНУТРИ hero — на фоне авроры, поверх неё (z-index).
   Так первый экран и цифры читаются единой зоной, без «острова». */
.svc-hero__stats {
  position: relative;
  z-index: 1;
  margin-top: clamp(26px, 4.4vw, 50px);
}
.svc-stats-frame {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006)),
    radial-gradient(120% 140% at 50% -20%, rgba(233, 4, 8, 0.07), transparent 60%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 60px -30px rgba(0, 0, 0, 0.7);
}
.svc-stats-frame__item {
  position: relative;
  text-align: center;
  padding: clamp(20px, 3vw, 34px) clamp(10px, 1.8vw, 22px);
}
/* вертикальные разделители между показателями */
.svc-stats-frame__item + .svc-stats-frame__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}
.svc-stats-frame__num {
  display: block;
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.3vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: linear-gradient(180deg, #ff3a3f 0%, #e90408 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e90408; /* фоллбэк, если clip не поддержан */
  filter: drop-shadow(0 6px 20px rgba(233, 4, 8, 0.35));
}
.svc-stats-frame__label {
  display: block;
  margin: 12px auto 0;
  max-width: 22ch;
  min-height: 2.9em; /* резерв под 2 строки — ячейки одной высоты, числа на одном уровне */
  font-size: clamp(10.5px, 0.95vw, 12.5px);
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted, #9b9d9f);
}
@media (max-width: 760px) {
  .svc-stats-frame { grid-template-columns: repeat(2, 1fr); }
  .svc-stats-frame__item:nth-child(odd)::before { content: none; }
  .svc-stats-frame__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
}
@media (max-width: 440px) {
  .svc-stats-frame { grid-template-columns: 1fr; }
  .svc-stats-frame__item::before { content: none; }
  .svc-stats-frame__item + .svc-stats-frame__item { border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .svc-stats-frame__num { font-size: 30px; }
}

/* --------------------------------------------------------------------------
   Ритм длинной сервисной страницы — «паузы» между секциями.
   Весь контентный поток обёрнут в .svc-sections, где каждый ребёнок — это
   .home-section. Чередуем еле заметную банд-подложку (длинный стек перестаёт
   читаться монотонно) и ставим короткую затухающую линию на каждом стыке —
   она маскирует границу банда, поэтому смена фона выглядит намеренной.
   -------------------------------------------------------------------------- */
.svc-sections > .home-section {
  position: relative;
}
.svc-sections > .home-section:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}
.svc-sections > .home-section + .home-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(72px, 15vw, 140px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(233, 4, 8, 0.42), transparent);
}
/* маленький ромб-«искра» по центру стыка — фокус-точка вместо голой линии */
.svc-sections > .home-section + .home-section::after {
  content: "";
  position: absolute;
  top: -2.5px;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(233, 4, 8, 0.6);
  box-shadow: 0 0 9px 1px rgba(233, 4, 8, 0.35);
}

/* --- Цифры в виде карточек с круговыми диаграммами --- */
.svc-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 auto;
  max-width: 880px;
}
@media (max-width: 760px) { .svc-stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .svc-stat-cards { grid-template-columns: 1fr; } }

.svc-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 14px 20px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 230, 232, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.svc-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 4, 8, 0.35);
  box-shadow: 0 18px 44px -20px rgba(233, 4, 8, 0.45), inset 0 1px 0 rgba(255, 230, 232, 0.08);
}

.svc-stat-card__donut {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 20px rgba(233, 4, 8, 0.22));
}
.svc-stat-card__donut svg { display: block; width: 100%; height: 100%; }

/* Статичная шкала: дуга начинается сверху (12 часов), без вращения.
   На загрузке плавно «прорисовывается» от 0 до своего значения. */
.svc-stat-card__ring {
  transform-box: view-box;
  transform-origin: 50px 50px;
  transform: rotate(-90deg);
}
.svc-stat-card__ring circle {
  animation: svc-donut-draw 1.1s cubic-bezier(0.33, 1, 0.68, 1) both;
  animation-delay: calc(var(--si, 0) * 0.12s);
}
@keyframes svc-donut-draw {
  from { stroke-dasharray: 0 263.9; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-stat-card__ring circle { animation: none; }
}

.svc-stat-card__ico {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-bright, #ff1a1f);
}

.svc-stat-card__num {
  display: block;
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 8px 28px rgba(233, 4, 8, 0.4);
  white-space: nowrap;
}
.svc-stat-card__label {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted, #9b9d9f);
  max-width: 17ch;
}

@media (prefers-reduced-motion: reduce) {
  .svc-stat-card__ring { animation: none; transform: rotate(-90deg); }
}

/* --------------------------------------------------------------------------
   «Что вы получаете» — карточки с номерами
   -------------------------------------------------------------------------- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .benefits-grid { grid-template-columns: 1fr; } }

.benefit-card {
  padding: 24px 22px;
  background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.benefit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(233,4,8,0.3);
}
.benefit-card__num {
  display: block;
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--red, #e90408);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

/* Иконка-бейдж в карточках (преимущества / шаги) — тёмный сквиркл + красный символ */
.svc-card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--red-bright, #ff1a1f);
  background: radial-gradient(125% 125% at 30% 18%, #26262b 0%, #0d0d0f 100%);
  border: 1px solid rgba(255, 64, 68, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 14px rgba(233, 4, 8, 0.22);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease;
}
.svc-card-ico svg { width: 22px; height: 22px; }
.benefit-card:hover .svc-card-ico {
  transform: scale(1.08) rotate(-4deg);
  border-color: rgba(255, 64, 68, 0.5);
}
/* В шаге процесса — бейдж в правом верхнем углу, номер-последовательность остаётся слева */
.step-card__ico {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  margin-bottom: 0;
}
.step-card__ico svg { width: 20px; height: 20px; }

/* ===== «Узнали себя?» — компактная диагностическая сетка 3×3 (9 болей в один экран) ===== */
.pain-section { padding: clamp(32px, 4.4vw, 54px) 0; }
.pain-section__head { margin-bottom: clamp(16px, 2.2vw, 26px); }
.pain-section__title { font-size: clamp(24px, 3vw, 34px); }

.pain-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
@media (max-width: 1000px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pain-grid { grid-template-columns: 1fr; } }

.pain-card {
  position: relative;
  overflow: hidden;
  padding: 16px 17px 17px 21px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 4, 8, 0.5);
  background: linear-gradient(165deg, rgba(255, 56, 60, 0.07), rgba(255, 255, 255, 0.012));
  box-shadow:
    0 22px 46px -24px rgba(233, 4, 8, 0.62),
    0 0 26px -12px rgba(233, 4, 8, 0.5);
}
/* левый «нерв» — красная вертикаль: разгорается и распрямляется на ховер */
.pain-card::before {
  content: "";
  position: absolute;
  left: 0; top: 13px; bottom: 13px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #ff2b30, #8c0203);
  opacity: 0.5;
  transform: scaleY(0.62);
  transform-origin: top;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.pain-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
  box-shadow: 0 0 14px rgba(233, 4, 8, 0.65);
}
/* красный отблеск в углу — разгорается на ховер */
.pain-card::after {
  content: "";
  position: absolute;
  top: -48px; right: -48px;
  width: 112px; height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 4, 8, 0.45), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.pain-card:hover::after { opacity: 1; }
/* индекс-«симптом» — нумерация даёт ритм и сканируемость, ломает баннерную слепоту */
.pain-card__no {
  position: absolute;
  top: 13px; right: 15px;
  font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.17);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  pointer-events: none;
}
.pain-card:hover .pain-card__no {
  color: var(--red-bright, #ff1a1f);
  text-shadow: 0 0 12px rgba(233, 4, 8, 0.55);
}

.pain-card__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
  padding-right: 26px;
}
.pain-card__ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--red-bright, #ff1a1f);
  background: radial-gradient(125% 125% at 30% 18%, #26262b 0%, #0d0d0f 100%);
  border: 1px solid rgba(255, 64, 68, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(233, 4, 8, 0.22);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.pain-card__ico svg { width: 19px; height: 19px; }
.pain-card:hover .pain-card__ico {
  transform: scale(1.12) rotate(-6deg);
  border-color: rgba(255, 64, 68, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px rgba(233, 4, 8, 0.55);
}
.pain-card__title {
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 15.5px);
  line-height: 1.26;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}
.pain-card__text {
  font-size: clamp(11.5px, 0.95vw, 12.75px);
  line-height: 1.5;
  color: var(--muted, #9b9d9f);
  margin: 0;
}

/* Каскадное «сканирование»: карточки выезжают снизу по диагонали (.reveal + main.js) */
.pain-grid.reveal { opacity: 1; transform: none; }
.pain-grid.reveal .pain-card { opacity: 0; }
.pain-grid.reveal[data-visible='true'] .pain-card {
  animation: pain-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes pain-rise {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* Красная «сканлиния» проходит сверху вниз один раз при появлении.
   Едет через transform (НЕ top): дорожка во всю высоту, линия+гало нарисованы
   градиентом, горизонтальный фейд — маской. Никакой layout-анимации/reflow. */
.pain-grid.reveal[data-visible='true']::before {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  top: 0;
  height: 100%;
  z-index: 3;
  background: linear-gradient(180deg,
    rgba(233, 4, 8, 0) 0,
    rgba(233, 4, 8, 0.40) 6px,
    rgba(255, 90, 95, 0.95) 10px,
    rgba(233, 4, 8, 0.40) 14px,
    rgba(233, 4, 8, 0) 20px);
  -webkit-mask: linear-gradient(90deg, transparent, #000, transparent);
          mask: linear-gradient(90deg, transparent, #000, transparent);
  transform: translateY(-10px);
  animation: pain-scan 1.15s ease-out 0.1s 1 both;
  pointer-events: none;
}
@keyframes pain-scan {
  0%   { transform: translateY(-10px);             opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(calc(100% + 10px)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pain-grid.reveal .pain-card { opacity: 1; }
  .pain-grid.reveal[data-visible='true'] .pain-card { animation: none; }
  .pain-grid.reveal[data-visible='true']::before { display: none; }
}

/* ===== «Кто мы» — команда + УТП/преимущества ===== */
/* Хост для фона «слова как фактура»: дрейфующие строки за контентом */
.team-section { position: relative; overflow: hidden; isolation: isolate; }
.team-section > .wrap { position: relative; z-index: 2; }
.team-layout {
  display: grid;
  gap: clamp(24px, 3.2vw, 40px);
}
/* Сотрудники */
.team-people {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}
@media (max-width: 920px) { .team-people { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .team-people { grid-template-columns: repeat(2, 1fr); } }
.team-person { margin: 0; text-align: center; }
.team-person__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: radial-gradient(125% 120% at 50% 16%, #232327 0%, #0d0d0f 100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.team-person:hover .team-person__photo {
  transform: translateY(-5px);
  border-color: rgba(233, 4, 8, 0.45);
  box-shadow: 0 22px 44px -26px rgba(233, 4, 8, 0.6);
}
.team-person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-person__mono {
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: 0.02em;
  color: #fff;
}
.team-person__photo--mono svg { width: 40%; height: 40%; color: rgba(255, 255, 255, 0.3); }
/* красная точка-«онлайн», загорается на ховер */
.team-person__photo::after {
  content: "";
  position: absolute;
  left: 11px;
  bottom: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff1a1f;
  box-shadow: 0 0 10px rgba(233, 4, 8, 0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.team-person:hover .team-person__photo::after { opacity: 1; }
.team-person__cap { display: block; margin-top: 11px; }
.team-person__name { display: block; font-weight: 600; font-size: 14px; color: #fff; letter-spacing: -0.01em; }
.team-person__role { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--muted, #9b9d9f); }

/* УТП / преимущества */
.team-usp {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
@media (max-width: 860px) { .team-usp { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-usp { grid-template-columns: 1fr; } }
.team-usp__item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.team-usp__item:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 4, 8, 0.4);
  background: linear-gradient(165deg, rgba(255, 56, 60, 0.06), rgba(255, 255, 255, 0.012));
}
.team-usp__ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red-bright, #ff1a1f);
  background: radial-gradient(125% 125% at 30% 18%, #26262b 0%, #0d0d0f 100%);
  border: 1px solid rgba(255, 64, 68, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.team-usp__ico svg { width: 18px; height: 18px; }
.team-usp__title {
  display: block;
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  color: #fff;
}
.team-usp__text {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted, #9b9d9f);
}

.benefit-card__title {
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 8px;
}
.benefit-card__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted, #9b9d9f);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Карточки ЦА на страницах услуг — текстовый вариант
   -------------------------------------------------------------------------- */

.aud-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #9b9d9f);
  margin: 0 0 18px;
}

/* --------------------------------------------------------------------------
   Тарифы
   -------------------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  position: relative;
}
.price-card--featured {
  border-color: rgba(233,4,8,0.45);
  background: linear-gradient(165deg, rgba(233,4,8,0.10), rgba(255,255,255,0.02));
}
.price-card__flag {
  position: absolute;
  top: -12px;
  left: 24px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--red, #e90408);
  color: #fff;
}
.price-card__name {
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  margin: 0 0 6px;
}
.price-card__who {
  font-size: 13px;
  color: var(--muted, #9b9d9f);
  margin: 0 0 18px;
  min-height: 2.6em;
}
.price-card__meta {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: grid;
  gap: 8px;
}
.price-card__meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.price-card__meta .lbl { color: var(--muted, #9b9d9f); }
.price-card__meta .val { color: #fff; font-weight: 600; text-align: right; }

.price-card__features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.price-card__features li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text, #f5f7fa);
  padding-left: 22px;
  position: relative;
}
.price-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red, #e90408);
  font-weight: 700;
  font-size: 13px;
}
.price-card__cta { margin-top: auto; width: 100%; text-align: center; }

.pricing-note {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted, #9b9d9f);
}

/* --------------------------------------------------------------------------
   «Почему нам доверяют» — равномерная сетка 2x3 (карточки .diff-card)
   -------------------------------------------------------------------------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .trust-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Выбор ниши (хаб): крупные карточки-ссылки на нишевые страницы
   -------------------------------------------------------------------------- */

.niche-pages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 760px) { .niche-pages-grid { grid-template-columns: 1fr; } }

.niche-page-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 26px 22px;
  background: linear-gradient(160deg, rgba(233,4,8,0.08), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.niche-page-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233,4,8,0.45);
  box-shadow: 0 22px 52px -22px rgba(233,4,8,0.45);
}
.niche-page-card__tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--red, #e90408);
}
.niche-page-card__title {
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  color: #fff;
}
.niche-page-card__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted, #9b9d9f);
  flex-grow: 1;
}
.niche-page-card__go {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red, #e90408);
  transition: transform 0.25s ease;
}
.niche-page-card:hover .niche-page-card__go { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   Результаты по нишам (B2B / B2C / Инфобизнес)
   -------------------------------------------------------------------------- */

.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .niche-grid { grid-template-columns: 1fr; } }

.niche-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.niche-card:hover {
  transform: translateY(-3px);
  border-color: rgba(233,4,8,0.35);
}
.niche-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.niche-card__tag {
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.01em;
}
.niche-card__caption {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red, #e90408);
  white-space: nowrap;
}
.niche-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted, #9b9d9f);
  margin: 0 0 18px;
  flex-grow: 1;
}
.niche-card__metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.niche-metric {
  text-align: center;
  padding: 12px 6px;
  border-radius: 12px;
  background: rgba(233,4,8,0.06);
}
.niche-metric__val {
  display: block;
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1;
  color: var(--red-bright, #ff1a1f);
  text-shadow: 0 6px 22px rgba(233,4,8,0.4);
}
.niche-metric__lbl {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted, #9b9d9f);
}

/* --------------------------------------------------------------------------
   Похожие услуги (cross-sell)
   -------------------------------------------------------------------------- */

.related-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 860px) { .related-strip { grid-template-columns: 1fr; } }

.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(233,4,8,0.35);
}
.related-card__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 4px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.related-card:hover .related-card__icon {
  transform: scale(1.12) rotate(-4deg);
}
.related-card__title {
  font-family: var(--font-head, 'Montserrat'), system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.related-card__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #9b9d9f);
}
.related-card__go {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red, #e90408);
}
