/* ── Карта-поток: из рабочего процесса — в продуктовую систему ── */

.pflow {
  display: grid;
  grid-template-columns: 210px 64px 1fr 64px 210px;
  align-items: center;
}

.pflow__gate {
  background: #F7FAFC;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 18px 16px;
}

.pflow__gate-kicker {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #E63756;
  margin-bottom: 2px;
}

.pflow__gate-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #1A202C;
  margin-bottom: 14px;
}

.pflow__gate-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pflow__chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14.5px;
  color: #4A5568;
  font-weight: 600;
}

.pflow__chip svg {
  flex: 0 0 auto;
}

.pflow__pipe {
  position: relative;
  height: 3px;
  background: #f0d4da;
  border-radius: 2px;
}

.pflow__pipe::after {
  content: "\25B8";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: #E63756;
  font-size: 14px;
}

.pflow__pipe .pflow__dot {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E63756;
  transform: translateY(-50%);
  animation: pflow-run 2.4s linear infinite;
}

.pflow__pipe .pflow__dot:nth-child(2) { animation-delay: .8s; }
.pflow__pipe .pflow__dot:nth-child(3) { animation-delay: 1.6s; }

@keyframes pflow-run {
  0%   { left: -4px; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% - 3px); opacity: 0; }
}

.pflow__vpipe {
  display: none;
}

.pflow__core-zone {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pflow__modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pflow__module {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #EAEAEA;
  border-radius: 14px;
  padding: 13px 14px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #1A202C;
  animation: pflow-glow 7.2s ease-in-out infinite;
}

.pflow__module svg {
  flex: 0 0 auto;
}

.pflow__module:nth-child(1) { animation-delay: 0s; }
.pflow__module:nth-child(2) { animation-delay: 1.2s; }
.pflow__module:nth-child(3) { animation-delay: 2.4s; }
.pflow__module:nth-child(4) { animation-delay: 3.6s; }
.pflow__module:nth-child(5) { animation-delay: 4.8s; }
.pflow__module:nth-child(6) { animation-delay: 6s; }

@keyframes pflow-glow {
  0%, 12%, 100% { border-color: #EAEAEA; background: #fff; box-shadow: none; }
  5% { border-color: #E63756; background: #fff8f9; box-shadow: 0 4px 18px rgba(230, 55, 86, .14); }
}

.pflow__core {
  margin: 2px auto;
  background: #fdeaee;
  border: 2px solid #E63756;
  border-radius: 18px;
  padding: 16px 34px;
  text-align: center;
  animation: pflow-pulse 2.4s ease-in-out infinite;
}

.pflow__core-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid #E63756;
  border-radius: 9px;
  color: #E63756;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  background: #fff;
  margin-bottom: 8px;
}

.pflow__core-kicker {
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #E63756;
  margin-bottom: 2px;
}

.pflow__core-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #1A202C;
}

.pflow__core-sub {
  font-size: 12.5px;
  color: #718096;
  margin-top: 3px;
}

@keyframes pflow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 55, 86, .28); }
  50% { box-shadow: 0 0 0 14px rgba(230, 55, 86, 0); }
}

@media (max-width: 860px) {
  .pflow {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .pflow__pipe {
    display: none;
  }

  .pflow__vpipe {
    display: block;
    position: relative;
    width: 3px;
    height: 46px;
    background: #f0d4da;
    border-radius: 2px;
    margin: 6px auto;
  }

  .pflow__vpipe::after {
    content: "\25BE";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: #E63756;
    font-size: 14px;
  }

  .pflow__vpipe .pflow__dot {
    position: absolute;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #E63756;
    transform: translateX(-50%);
    animation: pflow-vrun 1.8s linear infinite;
  }

  .pflow__vpipe .pflow__dot:nth-child(2) { animation-delay: .9s; }

  @keyframes pflow-vrun {
    0%   { top: -4px; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: calc(100% - 3px); opacity: 0; }
  }

  .pflow__gate-items {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pflow__chip {
    flex: 1 1 calc(50% - 8px);
    font-size: 13.5px;
    padding: 9px 11px;
  }

  .pflow__modules {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .pflow__module {
    font-size: 13.5px;
    padding: 11px 12px;
    border-radius: 12px;
  }

  .pflow__core {
    padding: 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pflow__pipe .pflow__dot,
  .pflow__vpipe .pflow__dot,
  .pflow__module,
  .pflow__core {
    animation: none;
  }
}