/* Алгоритм работы интерактива — только body.page--service */
body.page--service .workflow {
  --wf-text: #f4f8ff;
  --wf-muted: #a8bbd9;
  --wf-border: rgba(154, 196, 255, 0.14);
  --wf-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --wf-radius-xl: 28px;
  --wf-radius-lg: 22px;
  --wf-container: 1280px;
  --wf-blue-1: #1f78ff;
  --wf-blue-2: #62c2ff;
  --wf-card: linear-gradient(180deg, rgba(13, 18, 29, 0.92), rgba(9, 13, 22, 0.72));
  --progress: 10;
  position: relative;
  isolation: isolate;
  padding: 108px 24px;
  overflow: clip;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wf-text);
}

body.page--service .workflow * {
  box-sizing: border-box;
}

body.page--service .workflow::before {
  content: "";
  position: absolute;
  inset: -14% -8% auto;
  height: 420px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(30% 34% at 18% 34%, rgba(31, 120, 255, 0.18), transparent 72%),
    radial-gradient(26% 26% at 84% 26%, rgba(85, 181, 255, 0.14), transparent 74%),
    radial-gradient(22% 24% at 55% 12%, rgba(99, 133, 255, 0.1), transparent 72%);
  filter: blur(54px);
  opacity: 0.85;
  animation: workflow-block-glow 18s ease-in-out infinite alternate;
}

body.page--service .workflow__container {
  position: relative;
  z-index: 1;
  width: min(100%, var(--wf-container));
  margin: 0 auto;
}

body.page--service .workflow__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 42px;
}

body.page--service .workflow__eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(154, 196, 255, 0.18);
  background: linear-gradient(135deg, rgba(10, 18, 34, 0.82), rgba(10, 18, 34, 0.46));
  color: #e7f2ff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(19, 72, 170, 0.16);
  overflow: hidden;
  isolation: isolate;
}

body.page--service .workflow__eyebrow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(96, 192, 255, 0.22) 20%,
    rgba(31, 120, 255, 0.4) 50%,
    rgba(96, 192, 255, 0.22) 80%,
    transparent 100%
  );
  transform: translateX(-72%);
  animation: workflow-block-sweep 3.8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

body.page--service .workflow__eyebrow::after {
  content: "";
  position: absolute;
  inset: auto 14px 0 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 194, 255, 0.45), transparent);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

body.page--service .workflow__eyebrow-dot,
body.page--service .workflow__eyebrow-text {
  position: relative;
  z-index: 1;
}

body.page--service .workflow__eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #72c8ff, #277bff);
  box-shadow: 0 0 0 6px rgba(50, 128, 255, 0.08), 0 0 18px rgba(82, 170, 255, 0.95);
  animation: workflow-block-pulse 1.9s ease-in-out infinite;
}

body.page--service .workflow__title {
  margin: 0;
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 900;
  text-transform: uppercase;
  max-width: 15ch;
  text-wrap: balance;
}

body.page--service .workflow__title-accent {
  color: #79caff;
  text-shadow: 0 0 22px rgba(98, 194, 255, 0.18);
}

body.page--service .workflow__subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--wf-muted);
  font-size: 16px;
  line-height: 1.6;
}

body.page--service .workflow__layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: stretch;
}

body.page--service .workflow__steps {
  position: relative;
  display: grid;
  gap: 18px;
}

body.page--service .workflow__steps::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 34px;
  bottom: 34px;
  width: 2px;
  background: linear-gradient(180deg, rgba(114, 200, 255, 0.08), rgba(114, 200, 255, 0.24), rgba(114, 200, 255, 0.08));
  border-radius: 999px;
}

body.page--service .workflow__steps::after {
  content: "";
  position: absolute;
  left: 26px;
  top: calc(var(--progress, 10) * 1%);
  width: 2px;
  height: 82px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(98, 194, 255, 0), rgba(98, 194, 255, 0.95), rgba(31, 120, 255, 0));
  box-shadow: 0 0 18px rgba(98, 194, 255, 0.45);
  border-radius: 999px;
  transition: top 0.45s ease;
  pointer-events: none;
  z-index: 0;
}

body.page--service .workflow__step {
  position: relative;
  z-index: 1;
  min-height: 172px;
  padding: 24px 22px 22px 78px;
  border-radius: var(--wf-radius-lg);
  background: var(--wf-card);
  border: 1px solid rgba(154, 196, 255, 0.12);
  box-shadow: var(--wf-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    background 0.32s ease,
    opacity 0.32s ease,
    filter 0.32s ease;
  overflow: hidden;
  transform-origin: center;
  cursor: pointer;
}

body.page--service .workflow__step::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 120, 255, 0.12) 0%, rgba(31, 120, 255, 0.04) 42%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

body.page--service .workflow__step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(98, 194, 255, 0.1), transparent 35%, transparent 70%, rgba(31, 120, 255, 0.08));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

body.page--service .workflow__step:hover {
  transform: translateY(-6px);
  border-color: rgba(154, 196, 255, 0.24);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(16, 23, 37, 0.96), rgba(10, 16, 28, 0.82));
}

body.page--service .workflow__step:hover::after,
body.page--service .workflow__step.is-active::after {
  opacity: 1;
}

body.page--service .workflow__steps.is-paused .workflow__step:not(.is-active):not(:hover) {
  opacity: 0.58;
  filter: saturate(0.8);
  transform: scale(0.985);
}

body.page--service .workflow__steps:not(.is-paused) .workflow__step:not(.is-active) {
  opacity: 0.74;
  filter: saturate(0.88);
  transform: scale(0.992);
}

body.page--service .workflow__step.is-active {
  border-color: rgba(114, 200, 255, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 25px rgba(80, 160, 255, 0.22);
  background: linear-gradient(180deg, rgba(18, 28, 45, 0.96), rgba(10, 16, 28, 0.9));
  opacity: 1;
  filter: saturate(1);
  transform: translateY(-8px) scale(1.015);
}

body.page--service .workflow__number {
  position: absolute;
  left: 22px;
  top: 22px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, var(--wf-blue-1), #276cff);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(31, 120, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  flex: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  z-index: 1;
}

body.page--service .workflow__step.is-active .workflow__number {
  box-shadow: 0 0 25px rgba(80, 160, 255, 0.6), 0 14px 30px rgba(31, 120, 255, 0.4);
  transform: scale(1.08);
}

body.page--service .workflow__step-title,
body.page--service .workflow__text,
body.page--service .workflow__micro,
body.page--service .workflow__icon {
  position: relative;
  z-index: 1;
}

body.page--service .workflow__top {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  min-height: 40px;
}

body.page--service .workflow__step-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 15ch;
}

body.page--service .workflow__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(154, 196, 255, 0.12);
  display: inline-grid;
  place-items: center;
  color: #ff8a34;
  flex: none;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

body.page--service .workflow__step.is-active .workflow__icon,
body.page--service .workflow__step:hover .workflow__icon {
  transform: scale(1.05);
  border-color: rgba(154, 196, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

body.page--service .workflow__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.page--service .workflow__text {
  margin: 0;
  color: #c5d5ec;
  font-size: 17px;
  line-height: 1.58;
  max-width: 48ch;
}

body.page--service .workflow__micro {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(8, 15, 27, 0.46);
  border: 1px solid rgba(154, 196, 255, 0.1);
  color: #d7eaff;
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
  backdrop-filter: blur(10px);
  transition: background 0.28s ease, border-color 0.28s ease;
}

body.page--service .workflow__step.is-active .workflow__micro {
  border-color: rgba(154, 196, 255, 0.2);
  background: rgba(12, 22, 38, 0.62);
}

body.page--service .workflow__micro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #72c8ff, #277bff);
  box-shadow: 0 0 10px rgba(82, 170, 255, 0.8);
}

body.page--service .workflow__preview {
  position: relative;
  min-height: 772px;
  border-radius: var(--wf-radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 18, 29, 0.92), rgba(9, 13, 22, 0.72));
  border: 1px solid rgba(154, 196, 255, 0.12);
  box-shadow: var(--wf-shadow);
  isolation: isolate;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.18s ease-out;
}

body.page--service .workflow__preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120px 120px at var(--mx, 50%) var(--my, 50%), rgba(98, 194, 255, 0.2), transparent 65%),
    linear-gradient(135deg, rgba(98, 194, 255, 0.1), transparent 35%, transparent 65%, rgba(31, 120, 255, 0.1));
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.page--service .workflow__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 17, 0.06) 0%, rgba(5, 9, 17, 0.18) 48%, rgba(5, 9, 17, 0.62) 100%);
  pointer-events: none;
  z-index: 1;
}

body.page--service .workflow__preview-track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.page--service .workflow__preview-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.55s ease, transform 0.65s ease;
  pointer-events: none;
}

body.page--service .workflow__preview-item.is-active {
  opacity: 1;
  transform: scale(1);
}

body.page--service .workflow__preview-item img,
body.page--service .workflow__preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page--service .workflow__preview-ui {
  position: absolute;
  inset: 24px 24px auto 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
}

body.page--service .workflow__preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(8, 13, 23, 0.42);
  border: 1px solid rgba(154, 196, 255, 0.12);
  backdrop-filter: blur(12px);
  color: #dcecff;
  font-size: 13px;
  font-weight: 700;
}

body.page--service .workflow__preview-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #72c8ff, #277bff);
  box-shadow: 0 0 12px rgba(82, 170, 255, 0.9);
}

body.page--service .workflow__preview-panel {
  width: min(440px, calc(100% - 12px));
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(8, 13, 23, 0.42);
  border: 1px solid rgba(154, 196, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

body.page--service .workflow__preview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8e9ff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

body.page--service .workflow__preview-title {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-transform: uppercase;
  max-width: 12ch;
}

body.page--service .workflow__preview-text {
  margin: 10px 0 0;
  color: #c5d5ec;
  font-size: 15px;
  line-height: 1.6;
  max-width: 42ch;
}

body.page--service .workflow__preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

body.page--service .workflow__preview-stat {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(154, 196, 255, 0.1);
  color: #e2eeff;
  font-size: 12px;
  font-weight: 700;
}

body.page--service .workflow__preview-overlay {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

body.page--service .workflow__mini-card {
  min-width: 92px;
  min-height: 72px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  background: rgba(8, 13, 23, 0.42);
  border: 1px solid rgba(154, 196, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

body.page--service .workflow__mini-card strong {
  display: block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.03em;
}

body.page--service .workflow__mini-card span {
  display: block;
  margin-top: 8px;
  color: #c5d5ec;
  font-size: 12px;
  line-height: 1.3;
}

body.page--service .workflow__mini-card--ghost {
  opacity: 0.78;
  transform: translateY(10px);
}

@keyframes workflow-block-glow {
  0% {
    transform: translate3d(-1.4%, 0, 0) scale(0.98);
  }
  100% {
    transform: translate3d(1.8%, -2%, 0) scale(1.04);
  }
}

@keyframes workflow-block-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.16);
    opacity: 0.82;
  }
}

@keyframes workflow-block-sweep {
  0% {
    transform: translateX(-72%);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  50% {
    transform: translateX(0%);
    opacity: 0.9;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translateX(72%);
    opacity: 0;
  }
}

@media (max-width: 1120px) {
  body.page--service .workflow__layout {
    grid-template-columns: 1fr;
  }
  body.page--service .workflow__preview {
    min-height: 620px;
  }
}

@media (max-width: 760px) {
  body.page--service .workflow {
    padding: 88px 18px;
  }
  body.page--service .workflow__layout {
    gap: 20px;
  }
  body.page--service .workflow__steps::before,
  body.page--service .workflow__steps::after {
    display: none;
  }
  body.page--service .workflow__step {
    min-height: 190px;
    padding: 22px 18px 18px 68px;
  }
  body.page--service .workflow__number {
    left: 16px;
    top: 18px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  body.page--service .workflow__title {
    font-size: clamp(34px, 10vw, 52px);
  }
  body.page--service .workflow__step-title {
    font-size: 21px;
  }
  body.page--service .workflow__text {
    font-size: 15px;
  }
  body.page--service .workflow__preview {
    min-height: 520px;
  }
  body.page--service .workflow__preview-ui {
    inset: 16px 16px auto 16px;
  }
  body.page--service .workflow__preview-panel {
    width: 100%;
  }
  body.page--service .workflow__preview-overlay {
    right: 16px;
    left: 16px;
    bottom: 16px;
    justify-content: flex-end;
  }
  body.page--service .workflow__mini-card {
    min-width: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page--service .workflow,
  body.page--service .workflow * {
    animation: none !important;
  }
  body.page--service .workflow .workflow__step,
  body.page--service .workflow .workflow__preview,
  body.page--service .workflow .workflow__preview-item,
  body.page--service .workflow .workflow__steps::after,
  body.page--service .workflow .workflow__mini-card {
    transition: none !important;
  }
}
