/* Схема «Как я работаю» (lab2) — общие стили для /lab2/process/ и блока на главной. Логика и раскладка — board.js.
   Стиль lab2: Inter, стекло, без капса; AI — зелёный (--pb-ai). */
.pb { --pb-ai: #5FE39A; --pb-ai-rgb: 95, 227, 154; --pb-line: rgba(255,255,255,.1); --pb-muted: rgba(255,255,255,.52);
  --pb-house: cubic-bezier(.22,1,.36,1); position: relative; font-family: Inter, 'Inter Fallback', Arial, sans-serif; letter-spacing: -.01em; color: #fff;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pb::-webkit-scrollbar { display: none; }
.pb-sz { position: relative; overflow: hidden; }
.pb-cv { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* этап */
.pb-h { position: absolute; z-index: 2; width: 268px; height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 16px;
  border-radius: 14px; background: rgba(40,40,44,.94); border: 1px solid rgba(255,255,255,.12); font-size: 16px; font-weight: 600; white-space: nowrap; }
.pb-ic { margin-left: auto; width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); }
.pb-n { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 500; color: var(--pb-ai); opacity: 0; transition: opacity .4s; }
.pb-ai .pb-n { opacity: 1; }

/* список этапа: строки растут по тексту */
.pb-l { position: absolute; z-index: 2; width: 268px; border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.05); border: 1px solid var(--pb-line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.pb-d { padding: 16px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.pb-x { display: grid; }
.pb-x > * { grid-area: 1 / 1; transition: opacity .35s var(--pb-house); }   /* обе версии в одной ячейке: высота = большая из двух, схема не прыгает */
.pb-x .a { opacity: 0; }
.pb-ai .pb-x .a { opacity: 1; }
.pb-ai .pb-x .b { opacity: 0; }
.pb-d b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.pb-d .pb-x + .pb-x { margin-top: 8px; }
.pb-d span { font-size: 14px; line-height: 1.45; color: var(--pb-muted); }
.pb-d span.a { color: rgba(var(--pb-ai-rgb), .9); }
.pb-l ul { list-style: none; margin: 0; padding: 0; }
.pb-l li { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 16px; min-height: 46px; font-size: 15px; line-height: 1.35;
  border-top: 1px solid rgba(255,255,255,.06); transition: background .45s var(--pb-house); }
.pb-l li:first-child { border-top: 0; }
.pb-l li span { flex: 1; min-width: 0; }
.pb-l li i { flex: none; font-size: 16px; color: var(--pb-ai); opacity: 0; transform: scale(.6) rotate(-20deg); transition: opacity .35s, transform .5s var(--pb-house); }
.pb-ai .pb-l li[data-tip] { background: linear-gradient(90deg, rgba(var(--pb-ai-rgb), .13), rgba(var(--pb-ai-rgb), .03) 70%, transparent); cursor: help; }
.pb-ai .pb-l li[data-tip]::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--pb-ai); }
.pb-ai .pb-l li[data-tip] i { opacity: 1; transform: none; }

/* стрелки и подписи */
.pb-wires { position: absolute; left: 0; top: 0; z-index: 1; overflow: visible; }
.pb-wires path { fill: none; stroke: #5d5d63; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pb-wires path.soft { stroke: #45454b; stroke-dasharray: 4 5; }
.pb-lbl { position: absolute; z-index: 3; transform: translate(-50%, -50%); padding: 4px 11px; border-radius: 99px; background: #111113; border: 1px solid var(--pb-line);
  color: rgba(255,255,255,.62); font-size: 13px; white-space: nowrap; }

/* подсказка — общая (board.js TIP): стекло, как плашки сайта */
.pb-tipg { position: fixed; z-index: 90; width: 320px; padding: 14px 16px 15px; border-radius: 18px; color: rgba(255,255,255,.88);
  background: linear-gradient(140deg, rgba(70,70,78,.62), rgba(40,40,46,.58)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 50px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4);
  font: 400 15px/1.45 Inter, 'Inter Fallback', Arial, sans-serif; letter-spacing: -.01em;
  pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .3s cubic-bezier(.22,1,.36,1); }
.pb-tipg.on { opacity: 1; transform: none; }
.pb-tipg b { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #fff; }
.pb-tipg b i { color: #5FE39A; font-size: 15px; }

/* переключатель «Без AI / С AI» — как сегмент RU/EN в шапке */
.pb-sw { position: relative; display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.08); font: 500 15px/1 Inter, 'Inter Fallback', Arial, sans-serif; }
.pb-sw button { all: unset; position: relative; z-index: 1; cursor: pointer; width: 110px; height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; color: rgba(255,255,255,.55); transition: color .3s; }
.pb-sw button.on { color: #fff; }
.pb-sw.ai button.on { color: #04140b; }
.pb-sw .th { position: absolute; top: 4px; left: 4px; width: 110px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.18); transition: transform .5s cubic-bezier(.22,1,.36,1), background .4s; }
.pb-sw.ai .th { transform: translateX(110px); background: #5FE39A; }

/* полоса «где я на карте» — когда схема листается вбок (телефон) */
.pb-bar { position: relative; height: 4px; margin: 14px 20px 4px; border-radius: 4px; background: rgba(255,255,255,.1); }
.pb-bar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; background: rgba(255,255,255,.7); }
.pb-bar[hidden] { display: none; }
