/* Локальный прототип раздела «Наш подход». Все правила ограничены страницей подхода. */
.approach-page .process-hero h1 { max-width: 900px; }
.approach-page .process-layout { gap: 56px; }
.approach-page .process-prose { max-width: 850px; }
.approach-page .approach-motto { margin: 24px 0; color: var(--color-teal); font-size: 18px; font-weight: 750; }
.approach-principle { border: 1px solid var(--color-line-teal); border-radius: 14px; background: var(--color-teal-soft); padding: 24px 28px; margin: 28px 0 0; }
.approach-principle small { display: block; margin-bottom: 10px; color: var(--color-teal); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.approach-principle p { color: var(--color-text); margin: 0; font-size: 18px; line-height: 1.65; }
.approach-types { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.approach-type { background: white; border: 1px solid var(--color-line); border-radius: 14px; padding: 24px; }
.approach-type h3 { font-size: 18px; line-height: 1.35; margin: 0 0 14px; }
.approach-type p { margin: 0; color: var(--color-text-secondary); font-size: 14px; line-height: 1.8; }
.approach-demo { border: 1px solid var(--color-line-teal); border-radius: 16px; background: white; padding: 20px; }
.approach-demo [hidden] { display: none !important; }
.approach-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; padding: 0 0 14px; }
.approach-toolbar label { display: grid; gap: 6px; font-size: 12px; color: var(--color-text-secondary); min-width: 0; }
.approach-toolbar select { border: 1px solid var(--color-line-teal); border-radius: 7px; background: white; color: var(--color-text); font: inherit; font-size: 13px; padding: 10px; max-width: 100%; }
.approach-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.approach-buttons button { font: inherit; font-size: 12px; font-weight: 700; padding: 10px 13px; border: 1px solid var(--color-line-teal); border-radius: 7px; background: white; color: var(--color-teal); cursor: pointer; }
.approach-buttons button[data-start] { background: var(--color-teal); border-color: var(--color-teal); color: white; }
.approach-buttons button:disabled { opacity: .4; cursor: default; }
.approach-demo :is(button,select,summary):focus-visible { outline: 3px solid var(--color-blue); outline-offset: 3px; }
.approach-scenario-intro { margin: 0 0 15px; font-size: 13px; line-height: 1.7; color: var(--color-text-secondary); }
.approach-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 14px 0; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.approach-counts span { font-size: 12px; color: var(--color-text-secondary); }
.approach-counts strong { margin-left: 5px; color: var(--color-teal); font-size: 18px; font-variant-numeric: tabular-nums; }
.approach-comparison { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; margin-top: 18px; align-items: start; }
.approach-column { min-width: 0; }
.approach-column h3 { font-size: 13px; margin: 0 0 12px; color: var(--color-teal); text-transform: uppercase; letter-spacing: .04em; }
.approach-route { margin: 0; padding: 0; list-style: none; display: grid; gap: 28px; }
.approach-step { position: relative; border: 1px solid #82bfba; border-radius: 8px; padding: 12px 14px; background: #edf8f6; font-size: 12px; line-height: 1.45; min-width: 0; overflow-wrap: anywhere; transition: background-color 180ms, border-color 180ms, opacity 180ms; }
.approach-step__title { display: block; font-weight: 650; padding-right: 14px; }
.approach-step:not(:last-child)::after { content: ''; position: absolute; left: calc(50% - 1px); top: calc(100% + 2px); width: 2px; height: 20px; background: #72a5a0; }
.approach-step:not(:last-child)::before { content: ''; position: absolute; left: calc(50% - 6px); top: calc(100% + 17px); width: 12px; height: 8px; background: #72a5a0; clip-path: polygon(0 0,100% 0,50% 100%); }
.approach-step.is-kept { border-color: #009b93; background: #d6f0e9; box-shadow: 0 3px 8px #008d8510; }
.approach-step.is-control { border-color: #6594d6; background: #deebff; }
.approach-step.is-removed { border-color: #cf998c; background: #f9eae5; }
.approach-step.is-removed .approach-step__title { text-decoration: line-through; text-decoration-color: var(--color-manual); }
.approach-step.is-pending { opacity: .7; }
.approach-step.is-active { opacity: 1; background: #d9e6ff; border-color: var(--color-blue); box-shadow: 0 0 0 3px #3568f52e; }
.approach-step__activity { display: none; position: absolute; bottom: 3px; left: 8px; right: 8px; height: 3px; border-radius: 3px; background: var(--color-blue); transform-origin: left; }
.approach-step.is-active .approach-step__activity { display: block; animation: approach-progress 2200ms linear both; }
.approach-demo[data-phase="after"] .approach-step.is-active .approach-step__activity { animation-duration: 450ms; }
.approach-demo[data-state="paused"] .approach-step__activity { animation-play-state: paused; }
.approach-step.is-done .approach-step__title::after { content: '✓'; position: absolute; right: 10px; top: 10px; color: var(--color-teal); font-weight: 800; }
@keyframes approach-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.approach-step.is-active::before, .approach-step.is-active::after { background: var(--color-blue); }
.approach-step.is-done::before, .approach-step.is-done::after { background: var(--color-teal); }
.approach-step small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--color-text-secondary); }
.approach-placeholder { border: 1px dashed var(--color-line-teal); border-radius: 9px; padding: 24px 18px; font-size: 13px; line-height: 1.7; color: var(--color-text-secondary); margin: 0; }
.approach-empty { border: 1px solid var(--color-line-teal); border-radius: 10px; background: var(--color-teal-soft); padding: 24px 18px; }
.approach-empty strong { color: var(--color-teal); font-size: 20px; display: block; }
.approach-empty p { color: var(--color-text-secondary); font-size: 13px; line-height: 1.7; margin-bottom: 0; }
.approach-status { margin: 18px 0 0; padding: 14px 16px; background: var(--color-surface-soft); border: 1px solid var(--color-line); border-radius: 9px; font-size: 13px; line-height: 1.65; }
.approach-status strong { color: var(--color-teal); font-size: 11px; display: block; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.approach-status p { margin: 0; }
.approach-preserved { margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: var(--color-teal); }
.approach-condition { margin: 20px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.75; }
.approach-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 11px; color: var(--color-text-secondary); margin: 16px 0; }
.approach-legend span { display: inline-flex; align-items: center; gap: 6px; }
.approach-legend i { width: 8px; height: 8px; background: #b9d9d5; border-radius: 50%; }
.approach-legend .is-control i { background: #7298d3; }
.approach-legend .is-removed i { background: var(--color-manual); }
.approach-static details { margin-bottom: 18px; border-bottom: 1px solid var(--color-line); padding-bottom: 18px; }
.approach-static summary { cursor: pointer; font-weight: 700; margin-bottom: 16px; }
.approach-checks { border: 1px solid var(--color-line); border-radius: 14px; background: white; overflow: hidden; }
.approach-checks article { padding: 20px 24px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 25px; }
.approach-checks article + article { border-top: 1px solid var(--color-line); }
.approach-checks h3 { font-size: 15px; line-height: 1.6; margin: 0; }
.approach-checks p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.75; margin: 0; }
.approach-method { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.approach-method li { display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 14px; font-size: 15px; line-height: 1.8; color: var(--color-text-secondary); }
.approach-method li::before { content: '—'; color: var(--color-teal); font-weight: 800; }
.approach-method strong { color: var(--color-text); }
.approach-metrics { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; background: white; }
.approach-metrics th { font-size: 12px; color: var(--color-text-secondary); background: var(--color-surface-soft); text-align: left; }
.approach-metrics th, .approach-metrics td { padding: 16px 18px; border-bottom: 1px solid var(--color-line); vertical-align: top; overflow-wrap: anywhere; }
.approach-metrics tr:last-child td { border-bottom: 0; }
.approach-metrics td:first-child { font-weight: 650; width: 27%; }
.approach-metrics td:nth-child(2) { color: var(--color-teal); width: 31%; }
.approach-table { border: 1px solid var(--color-line); border-radius: 14px; overflow: hidden; }
.approach-next { border-left: 3px solid var(--color-teal); margin-top: 24px; padding: 8px 0 8px 22px; font-size: 17px; font-weight: 650; line-height: 1.7; color: var(--color-teal); }
@media (max-width: 1050px) { .approach-page .process-layout { gap: 32px; } }
@media (max-width: 900px) { .approach-page .process-layout { gap: 32px; } }
@media (max-width: 680px) {
 .approach-types, .approach-comparison { grid-template-columns: minmax(0,1fr); }
 .approach-type { padding: 20px; }
 .approach-principle { padding: 20px; }
 .approach-principle p { font-size: 16px; }
 .approach-demo { padding: 16px; }
 .approach-toolbar { align-items: stretch; }
 .approach-toolbar label { width: 100%; }
 .approach-buttons { width: 100%; }
 .approach-buttons button { flex: 1; padding-inline: 8px; }
 .approach-checks article { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 18px; }
 .approach-table { border: 0; border-radius: 0; background: transparent; }
 .approach-metrics, .approach-metrics tbody, .approach-metrics tr, .approach-metrics td { display: block; width: 100%; }
 .approach-metrics thead { display: none; }
 .approach-metrics tr { border: 1px solid var(--color-line); border-radius: 10px; margin-bottom: 14px; padding: 14px 16px; }
 .approach-metrics td { border: 0; padding: 3px 0; width: 100% !important; }
 .approach-metrics td:nth-child(2)::before { content: attr(data-label) ': '; color: var(--color-text-secondary); }
 .approach-metrics td:last-child::before { content: attr(data-label) ': '; color: var(--color-text-secondary); }
}
@media (prefers-reduced-motion: reduce) { .approach-step { transition: none; } .approach-step.is-active .approach-step__activity { animation: none; } }

.approach-mobile-toc { display: none; }
@media (max-width: 900px) {
 .approach-page .process-toc { display: none; }
 .approach-mobile-toc { display: block; margin-bottom: 30px; border: 1px solid var(--color-line); border-radius: 10px; background: white; padding: 12px 16px; }
 .approach-mobile-toc summary { color: var(--color-teal); font-size: 12px; font-weight: 700; cursor: pointer; }
 .approach-mobile-toc summary:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 4px; }
 .approach-mobile-toc ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
 .approach-mobile-toc a { color: var(--color-text-secondary); font-size: 13px; }
}

.approach-toolbar { position: sticky; top: 0; z-index: 3; background: white; padding-top: 8px; }
.approach-step details { margin-top: 5px; }
.approach-step summary { font-size: 11px; color: var(--color-text-secondary); cursor: pointer; }
.approach-step details p { margin: 8px 0 0; font-size: 12px; line-height: 1.65; color: var(--color-text); }
