/* Agent coordination demo — русская страница neuro-os (.nos-page) */

.nos-page .nos-ticker:hover .nos-ticker__track,
.nos-page .nos-ticker:focus-within .nos-ticker__track {
  animation-play-state: paused;
}

.nos-page .nos-phase-panel__p {
  line-height: 1.72;
}

@media (prefers-reduced-motion: reduce) {
  .nos-page .neuro-flow-edge {
    animation: none !important;
  }
}

@keyframes nos-neuro-edge-pulse {
  50% {
    opacity: 0.88;
    box-shadow: 0 0 20px rgba(var(--pa-brand-rgb), 0.35);
  }
}

.nos-page section.nos-agent-flow-neuro {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.nos-page .neuro-flow-shell {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

@media (max-width: 880px) {
  .nos-page .neuro-flow-shell {
    grid-template-columns: 1fr;
  }

  .nos-page .neuro-flow-visual {
    order: 1;
  }

  .nos-page .neuro-flow-side {
    order: 2;
  }
}

.nos-page .neuro-flow-visual {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse 130% 80% at 50% -10%, rgba(var(--pa-brand-rgb), 0.12), transparent 55%),
    linear-gradient(180deg, rgba(20, 20, 22, 0.95) 0%, rgba(8, 8, 10, 0.98) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.nos-page .neuro-flow-vtrack {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.65rem 1.15rem 1.85rem;
}

.nos-page .neuro-flow-node {
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(228, 228, 231, 0.88);
  text-align: center;
  transition:
    opacity 0.26s ease,
    border-color 0.26s ease,
    color 0.26s ease,
    transform 0.26s ease;
}

.nos-page .neuro-flow-node small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.nos-page .neuro-flow-node--you {
  background: linear-gradient(145deg, rgba(var(--pa-brand-rgb), 0.08), rgba(12, 12, 14, 0.9));
}

.nos-page .neuro-flow-node--ceo {
  background: rgba(var(--pa-brand-rgb), 0.1);
}

.nos-page .neuro-flow-node--ic {
  min-width: 7.75rem;
}

.nos-page .neuro-flow-node--task {
  max-width: 15rem;
  font-weight: 500;
}

.nos-page #neuroAgentFlowRoot .neuro-flow-node {
  opacity: 0.46;
}

.nos-page #neuroAgentFlowRoot[data-nf-active="0"] .neuro-flow-node--you,
.nos-page #neuroAgentFlowRoot[data-nf-active="0"] .neuro-flow-node--ceo {
  opacity: 1;
  border-color: rgba(var(--pa-brand-rgb), 0.42);
  color: var(--fg);
}

.nos-page #neuroAgentFlowRoot[data-nf-active="1"] .neuro-flow-node[data-nf-node="ceo"],
.nos-page #neuroAgentFlowRoot[data-nf-active="1"] .neuro-flow-node[data-nf-node="pm"] {
  opacity: 1;
  border-color: rgba(var(--pa-brand-rgb), 0.45);
  color: var(--fg);
}

.nos-page #neuroAgentFlowRoot[data-nf-active="2"] .neuro-flow-node[data-nf-node="pm"],
.nos-page #neuroAgentFlowRoot[data-nf-active="2"] .neuro-flow-node[data-nf-node="eng"],
.nos-page #neuroAgentFlowRoot[data-nf-active="2"] .neuro-flow-node[data-nf-node="task"] {
  opacity: 1;
  border-color: rgba(var(--pa-brand-rgb), 0.45);
  color: var(--fg);
}

.nos-page #neuroAgentFlowRoot[data-nf-active="3"] .neuro-flow-node[data-nf-node="you"],
.nos-page #neuroAgentFlowRoot[data-nf-active="3"] .neuro-flow-node[data-nf-node="ceo"],
.nos-page #neuroAgentFlowRoot[data-nf-active="3"] .neuro-flow-node[data-nf-node="eng"] {
  opacity: 1;
  border-color: rgba(var(--pa-brand-rgb), 0.5);
  color: var(--fg);
}

.nos-page .neuro-flow-edge {
  width: 3px;
  height: 1.85rem;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(var(--pa-brand-rgb), 0.4), rgba(var(--pa-brand-rgb), 0.08));
  opacity: 0.35;
}

.nos-page .neuro-flow-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  width: min(340px, 100%);
  justify-items: center;
}

.nos-page .neuro-flow-split--roles {
  margin-top: 0.65rem;
}

.nos-page #neuroAgentFlowRoot .neuro-flow-edge {
  opacity: 0.2;
}

.nos-page #neuroAgentFlowRoot[data-nf-active="0"] .nf-e01 {
  opacity: 1;
  animation: nos-neuro-edge-pulse 2.2s ease-in-out infinite;
}

.nos-page #neuroAgentFlowRoot[data-nf-active="1"] .nf-e02a,
.nos-page #neuroAgentFlowRoot[data-nf-active="1"] .nf-e02b {
  opacity: 0.92;
}

.nos-page #neuroAgentFlowRoot[data-nf-active="2"] .nf-e3 {
  opacity: 1;
  animation: nos-neuro-edge-pulse 2.2s ease-in-out infinite;
}

.nos-page #neuroAgentFlowRoot[data-nf-active="2"] .nf-e02a,
.nos-page #neuroAgentFlowRoot[data-nf-active="2"] .nf-e02b {
  opacity: 0.55;
}

.nos-page #neuroAgentFlowRoot[data-nf-active="3"] .nf-e01 {
  opacity: 0.75;
}

.nos-page #neuroAgentFlowRoot[data-nf-active="3"] .nf-e3 {
  opacity: 0.55;
}

.nos-page .neuro-flow-step-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.nos-page .neuro-flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.nos-page .neuro-flow-step {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.14s ease;
}

.nos-page .neuro-flow-step:hover {
  color: rgba(228, 228, 231, 0.95);
  border-color: rgba(var(--pa-brand-rgb), 0.35);
}

.nos-page .neuro-flow-step.is-active {
  color: var(--fg);
  border-color: rgba(var(--pa-brand-rgb), 0.45);
  background: rgba(var(--pa-brand-rgb), 0.12);
}

.nos-page .neuro-flow-step:focus-visible {
  outline: 2px solid var(--pa-brand-light);
  outline-offset: 2px;
}

.nos-page .neuro-flow-transcripts {
  min-height: 11.5rem;
}

.nos-page .neuro-flow-quote {
  margin: 0;
  padding: 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.nos-page .neuro-msg-from,
.nos-page .neuro-msg-to {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
  background: rgba(var(--pa-brand-rgb), 0.15);
  color: color-mix(in srgb, var(--pa-brand-light) 42%, var(--muted));
}

.nos-page .neuro-msg-to {
  margin-left: 0.15rem;
  background: rgba(var(--pa-brand-rgb), 0.07);
}

.nos-page .neuro-flow-quote blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.nos-page .neuro-flow-quote blockquote p {
  margin: 0;
  padding-top: 0.25rem;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--fg);
}

.nos-page .neuro-flow-quote figcaption {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  line-height: 1.52;
  color: var(--muted);
}

.nos-page .neuro-agent-lab__footnote {
  margin-top: 1.65rem;
  font-size: 0.88rem;
  line-height: 1.56;
  max-width: 44rem;
  color: rgba(161, 161, 170, 0.95);
}

/* Средний CTA: после блока «Что это даёт на практике» */
.nos-page .nos-section--mid-cta {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(var(--pa-brand-rgb), 0.045);
}
.nos-page .nos-mid-cta__sub {
  max-width: 40rem;
}
.nos-page .nos-mid-cta__sub a {
  color: var(--pa-brand-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nos-page .nos-mid-cta__sub a:hover {
  color: var(--pa-brand-tint);
}
.nos-page .nos-mid-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

/* Светлая тема Enterprise (html[data-pa-theme="day"] — boot из neuro-os/index.html) */
html[data-pa-theme="day"] .nos-page .neuro-flow-visual {
  border-color: rgba(9, 9, 11, 0.12);
  background:
    radial-gradient(ellipse 130% 80% at 50% -10%, rgba(var(--pa-brand-rgb), 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
html[data-pa-theme="day"] .nos-page .neuro-flow-node {
  border-color: rgba(9, 9, 11, 0.12);
  background: rgba(255, 255, 255, 0.97);
  color: var(--fg);
}
html[data-pa-theme="day"] .nos-page .neuro-flow-node small {
  color: var(--muted);
}
html[data-pa-theme="day"] .nos-page .neuro-flow-node--you {
  background: linear-gradient(145deg, rgba(var(--pa-brand-rgb), 0.1), #ffffff);
}
html[data-pa-theme="day"] .nos-page .neuro-flow-node--ceo {
  background: rgba(var(--pa-brand-rgb), 0.08);
}
html[data-pa-theme="day"] .nos-page .neuro-flow-step {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
}
html[data-pa-theme="day"] .nos-page .neuro-flow-step:hover {
  color: var(--fg);
}
html[data-pa-theme="day"] .nos-page .neuro-flow-step.is-active {
  background: rgba(var(--pa-brand-rgb), 0.1);
  color: var(--fg);
}
html[data-pa-theme="day"] .nos-page .neuro-flow-quote {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.98);
}
html[data-pa-theme="day"] .nos-page .neuro-flow-quote figcaption {
  border-top-color: var(--line);
}
html[data-pa-theme="day"] .nos-page .neuro-agent-lab__footnote {
  color: var(--muted);
}
