/* Третья страница «Наш подход»: решение человека между автоматическими этапами. */
.human-value p + p { margin-top: 12px; }
.human-demo [hidden] { display: none !important; }
.human-flow { margin: 24px 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px; }
.human-node { position: relative; min-width: 0; border: 1px solid #82bfba; border-radius: 9px; background: #edf8f6; padding: 12px; transition: background-color 180ms,border-color 180ms; }
.human-node strong { display: block; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.human-node p { margin: 8px 0 0; font-size: 11px; line-height: 1.55; color: var(--color-text-secondary); }
.human-node:not(:last-child)::after { content: ''; position: absolute; left: calc(100% + 1px); top: calc(50% - 1px); height: 2px; width: 14px; background: #72a5a0; }
.human-node:not(:last-child)::before { content: ''; position: absolute; left: calc(100% + 12px); top: calc(50% - 6px); width: 8px; height: 12px; background: #72a5a0; clip-path: polygon(0 0,100% 50%,0 100%); }
.human-node.is-active { border-color: var(--color-blue); background: #d9e6ff; box-shadow: 0 0 0 3px #3568f52e; }
.human-node.is-active::before,.human-node.is-active::after { background: var(--color-blue); }
.human-node.is-done { border-color: #009b93; background: #d6f0e9; }
.human-node.is-done strong { padding-right: 10px; }
.human-node.is-done strong::after { content: '✓'; color: var(--color-teal); position: absolute; top: 5px; right: 7px; }
.human-node.is-exception,.human-node.is-human.is-active { border-color: #d59b3d; background: #fff0da; box-shadow: none; }
.human-node__activity { display: none; position: absolute; left: 7px; right: 7px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--color-blue); transform-origin: left; }
.human-node.is-active .human-node__activity { display: block; animation: human-progress 1400ms linear both; }
.human-demo[data-state="needs_human"] .human-node__activity { display: none; }
.human-demo[data-state="paused"] .human-node__activity { animation-play-state: paused; }
@keyframes human-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.human-workspace { margin-top: 26px; }
.human-decision { border: 1px solid #d59b3d; background: #fffaf0; border-radius: 12px; padding: 18px; }
.human-owner { color: #805712; font-size: 11px; line-height: 1.6; display: block; }
.human-decision h4 { margin: 12px 0; font-size: 16px; line-height: 1.5; color: var(--color-text); text-transform: none; letter-spacing: 0; }
.human-reason,.human-missing { margin: 12px 0; font-size: 12px; line-height: 1.7; color: var(--color-text-secondary); }
.human-authority { margin: 12px 0; padding-left: 10px; border-left: 2px solid #d59b3d; font-size: 11px; line-height: 1.7; color: #805712; }
.human-reason-input { display: grid; gap: 6px; font-size: 12px; color: var(--color-text-secondary); margin: 16px 0; }
.human-reason-input textarea { width: 100%; min-height: 70px; resize: vertical; border: 1px solid #cba869; border-radius: 7px; padding: 10px; font: inherit; color: var(--color-text); background: white; }
.human-reason-input small { font-size: 10px; line-height: 1.6; }
.human-choices { display: grid; gap: 10px; margin-top: 18px; }
.human-choices button { width: 100%; text-align: left; border: 1px solid #b9a473; border-radius: 8px; padding: 12px 14px; background: white; color: #674b1b; font: inherit; font-size: 12px; line-height: 1.6; font-weight: 650; cursor: pointer; }
.human-choices button:enabled:hover { border-color: var(--color-teal); background: #edf8f6; }
.human-choices button:disabled { opacity: .55; cursor: default; }
.human-choices button[aria-pressed="true"] { border-color: #009b93; background: #d6f0e9; color: #135d52; opacity: 1; }
.human-decision textarea:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 3px; }
.human-validation { font-size: 12px; line-height: 1.6; color: #a13722; }
.human-selection { font-size: 12px; line-height: 1.7; color: var(--color-teal); margin: 16px 0 0; overflow-wrap: anywhere; }
.human-demo .automation-result.is-prepared { border-color: #78a5cb; background: #e9f2ff; color: #214b73; }
.human-principle { display: grid; gap: 14px; }
.human-principle > div { border: 1px solid var(--color-line-teal); background: #fff; border-radius: 10px; padding: 20px 24px; }
.human-principle strong { color: var(--color-teal); font-size: 15px; }
.human-principle p { font-size: 14px; line-height: 1.7; color: var(--color-text-secondary); margin: 8px 0 0; }
.human-static > details { margin: 20px 0; font-size: 14px; line-height: 1.7; }
.human-static summary { color: var(--color-teal); font-weight: 700; cursor: pointer; }
@media (max-width: 1100px) {
 .human-flow { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .human-node { padding: 10px 14px; }
 .human-node strong { font-size: 13px; }
 .human-node p { margin-top: 4px; }
 .human-node:not(:last-child)::after { left: calc(50% - 1px); top: calc(100% + 1px); width: 2px; height: 16px; }
 .human-node:not(:last-child)::before { left: calc(50% - 6px); top: calc(100% + 14px); width: 12px; height: 8px; clip-path: polygon(0 0,100% 0,50% 100%); }
}
@media (max-width: 680px) { .human-decision { padding: 15px; } }
@media (prefers-reduced-motion: reduce) { .human-node { transition: none; } .human-node.is-active .human-node__activity { animation: none; } }
