/* Витрина: схемы из карты сайта (С1.1-С7.3) и подробные страницы. Подключается после vitrina.css, токены оттуда. */

/* ---------- общее ---------- */
.tolko-holding, .tolko-malaya { transition: opacity var(--d-fade) ease; }
[data-dlya="holding"] .tolko-malaya, [data-dlya="malaya"] .tolko-holding { display: none; }
.zaglushka { color: var(--ink-3); font-style: italic; }
.melko { margin-top: 16px; font-size: var(--t-small); color: var(--ink-2); max-width: 62em; }
.podpis-krupno { margin-top: 24px; font-family: var(--f-display); font-size: clamp(19px, 1rem + .5vw, 24px); font-weight: 620; letter-spacing: -.015em; line-height: 1.25; max-width: 30em; }
.nobr { white-space: nowrap; }
.skhema { margin-top: clamp(40px, 6vw, 72px); }
.poyasn + .vybor { margin-top: 28px; }
.ekran__dalee { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 5vw, 56px); }
.z-pod { font-family: var(--f-display); font-size: clamp(24px, 1.1rem + 1.2vw, 34px); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.blok + .blok { margin-top: clamp(56px, 8vw, 96px); }
.spisok { display: grid; gap: 10px; margin-top: 20px; max-width: 46em; }
.spisok li { position: relative; padding-left: 22px; color: var(--ink-2); }
.spisok li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 2px; border-radius: 1px; background: var(--ink-3); }

/* роль на схемах: цвет не нужен, роль видна по линии и по подписи */
.rol--model { border-style: dashed !important; border-width: 1.5px !important; }
.rol--kod { border-style: solid; }
.rol--chelovek { border: 2px solid var(--ink) !important; }
.rol-metka { display: inline-block; margin-bottom: 6px; font-size: var(--t-label); font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }

/* метки пути */
.metka { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--t-label); font-weight: 600; line-height: 1.3; }
.metka--a { color: var(--blue); background: var(--blue-soft); }
.metka--b { color: var(--green); background: var(--green-soft); }
.metka--net { color: var(--ink-2); background: var(--bg-alt); }
.ekran--alt .metka--net { background: var(--bg); }

/* ---------- подробная страница ---------- */
.kroshki { margin-bottom: 20px; font-size: var(--t-small); color: var(--ink-2); }
.kroshki a { color: var(--ink-2); text-underline-offset: 3px; }
.ekran--stranica { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 9vw, 120px); }
.oglavlenie { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.oglavlenie a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { .oglavlenie a:hover { color: var(--ink); border-color: var(--ink-3); } }
.dalshe { display: grid; gap: 12px; margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 768px) { .dalshe { grid-template-columns: 1fr 1fr; gap: 16px; } }
.dalshe a { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-kartochka); background: var(--surface); text-decoration: none; transition: border-color var(--d-fade) ease, transform var(--d-press) var(--ease-out); }
.dalshe a:active { transform: scale(.985); }
@media (hover: hover) { .dalshe a:hover { border-color: var(--ink-3); } }
.dalshe small { font-size: var(--t-small); color: var(--ink-2); }
.dalshe b { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 650; letter-spacing: -.015em; }

/* ---------- С1.1 «три полосы» ---------- */
.polosy { display: grid; gap: 12px; }
.polosy__vhod { padding: 14px 16px; border-radius: var(--r-plashka); background: var(--bg-alt); font-size: 15px; }
.ekran--alt .polosy__vhod { background: var(--bg); }
.polosy__vhod small { display: block; font-size: var(--t-label); font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.polosy__dorozhka { display: none; }
.polosy__shag { position: relative; padding: 14px 16px 14px 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-plashka); font-size: 15px; line-height: 1.35; }
.polosy__shag::before { content: attr(data-n); position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); font-size: 13px; font-weight: 650; background: var(--bg); }
@media (min-width: 900px) {
  .polosy { grid-template-columns: 120px repeat(5, minmax(0, 1fr)); grid-template-rows: auto repeat(3, minmax(88px, auto)); gap: 10px 12px; align-items: center; }
  .polosy__vhod { grid-column: 2 / 4; grid-row: 1; }
  .polosy__dorozhka { display: block; grid-column: 1 / -1; align-self: stretch; padding: 0 0 0 0; border-top: 1px solid var(--line); font-size: var(--t-small); font-weight: 600; color: var(--ink-2); padding-top: 10px; }
  .polosy__dorozhka--1 { grid-row: 2; } .polosy__dorozhka--2 { grid-row: 3; } .polosy__dorozhka--3 { grid-row: 4; }
  .polosy__shag { padding: 12px 14px 12px 46px; font-size: 14.5px; z-index: 1; }
  .polosy__shag::before { left: 12px; top: 11px; }
  .polosy__shag .rol-metka { display: none; }
  .polosy__shag[data-n="1"] { grid-column: 2; grid-row: 2; }
  .polosy__shag[data-n="2"] { grid-column: 3; grid-row: 3; }
  .polosy__shag[data-n="3"] { grid-column: 4; grid-row: 3; }
  .polosy__shag[data-n="4"] { grid-column: 5; grid-row: 4; }
  .polosy__shag[data-n="5"] { grid-column: 6; grid-row: 4; }
}

/* ---------- карта функций: метка пути по выбору читателя ---------- */
.karta__otdel { position: relative; }
.karta__otdel .metka { margin-top: 14px; }
.karta__otdel--net { grid-column: 1 / -1; }
[data-dlya="holding"] .karta__otdel[data-put~="a"] { border-color: var(--blue); }
[data-dlya="malaya"] .karta__otdel[data-put~="b"] { border-color: var(--green); }
.karta__put { display: none; }
[data-dlya="holding"] .karta__otdel[data-put~="a"] .karta__put--a,
[data-dlya="malaya"] .karta__otdel[data-put~="b"] .karta__put--b { display: inline-flex; }

/* ---------- С1.3 «развилка» (и С5.3 «навык под присмотром») ---------- */
.razvilka { display: grid; justify-items: center; }
.razvilka__vopros {
  position: relative; max-width: 30em; padding: 22px 48px; text-align: center;
  background: var(--surface); font-family: var(--f-display); font-weight: 620; font-size: clamp(17px, 1rem + .3vw, 20px); line-height: 1.3;
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 24px 100%, 0 50%);
}
.razvilka__ramka { position: relative; padding: 1.5px; background: var(--ink); clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 24px 100%, 0 50%); }
.razvilka__vetki { position: relative; display: grid; gap: 28px; width: 100%; margin-top: 28px; }
.razvilka__vetka { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 22px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-kartochka); transition: border-color var(--d-fade) ease, opacity var(--d-fade) ease; }
.razvilka__otvet { font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.razvilka__vetka b { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 650; letter-spacing: -.015em; line-height: 1.15; }
.razvilka__vetka--a b { color: var(--blue); } .razvilka__vetka--b b { color: var(--green); }
[data-dlya="holding"] .razvilka--put .razvilka__vetka--a { border-color: var(--blue); }
[data-dlya="malaya"] .razvilka--put .razvilka__vetka--b { border-color: var(--green); }
.razvilka__vetka .ssylka { min-height: 40px; }
.razvilka__oba { margin-top: 20px; font-size: var(--t-small); color: var(--ink-2); text-align: center; max-width: 36em; }
@media (min-width: 768px) {
  .razvilka__vetki { grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; padding-top: 0; }
  .razvilka__vetki::before { content: ""; position: absolute; left: 25%; right: 25%; top: -24px; height: 24px; border: 1.5px solid var(--ink-3); border-bottom: 0; border-radius: 12px 12px 0 0; }
  .razvilka__vetki::after { content: ""; position: absolute; left: 50%; top: -48px; width: 1.5px; height: 24px; background: var(--ink-3); }
}
@media (max-width: 767px) {
  .razvilka__vetka::before { content: ""; position: absolute; left: 50%; top: -28px; width: 1.5px; height: 28px; background: var(--ink-3); }
}

/* ---------- С2.1 «контур» подробно ---------- */
.kontur-a { position: relative; padding: 44px 20px 24px; }
.kontur-a__setka { display: grid; gap: 12px; }
.kontur-a__istochniki { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kontur-a__istochniki .plashka { padding: 10px 12px; font-size: 14px; }
.kontur-a__hab { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.kontur-a__hab small { color: var(--bg); opacity: .78; }
.kontur-a__zhurnal { grid-column: 1 / -1; }
.kontur-a__strelka { font-size: var(--t-label); font-weight: 600; color: var(--ink-3); text-align: center; }
.kontur-a__naruzhu { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: var(--t-small); font-weight: 600; color: var(--red); }
.kontur-a__naruzhu s { color: var(--ink-3); text-decoration-color: var(--red); text-decoration-thickness: 2px; font-weight: 500; }
@media (min-width: 900px) {
  .kontur-a { padding: 60px 40px 36px; }
  .kontur-a__setka { grid-template-columns: 0.9fr 1.2fr 1.1fr 0.9fr; grid-template-rows: auto auto auto; column-gap: 32px; row-gap: 16px; align-items: center; }
  .kontur-a__istochniki { grid-column: 1; grid-row: 1 / 3; grid-template-columns: 1fr; }
  .kontur-a__hab { grid-column: 2; grid-row: 1 / 3; }
  .kontur-a__model { grid-column: 3; grid-row: 1; }
  .kontur-a__baza { grid-column: 3; grid-row: 2; }
  .kontur-a__kod { grid-column: 4; grid-row: 1; }
  .kontur-a__chelovek { grid-column: 4; grid-row: 2; }
  .kontur-a__zhurnal { grid-row: 3; }
  .kontur-a__strelka { display: none; }
  .kontur-a__naruzhu { justify-content: flex-end; }
}

/* ---------- таблицы (С2.2, С3.1, С4.2, С6.2) ---------- */
.tablica { width: 100%; border-collapse: collapse; font-size: 15px; }
.tablica th, .tablica td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--line); }
.tablica thead th { border-top: 0; font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.tablica tbody th { font-weight: 600; }
.tablica__chestno { background: var(--bg-alt); }
.ekran--alt .tablica__chestno { background: var(--bg); }
.tablica .pusto { color: var(--ink-3); font-style: italic; background: repeating-linear-gradient(135deg, transparent 0 8px, var(--bg-alt) 8px 9px); }
.tablica-podpis { margin-top: 12px; font-size: var(--t-small); color: var(--ink-2); }
@media (max-width: 767px) {
  .tablica, .tablica tbody, .tablica tr, .tablica th, .tablica td { display: block; }
  .tablica thead { display: none; }
  .tablica tr { padding: 14px 0; border-top: 1px solid var(--line); }
  .tablica th, .tablica td { padding: 4px 0; border: 0; }
  .tablica td[data-z]::before { content: attr(data-z); display: block; font-size: var(--t-label); font-weight: 600; color: var(--ink-3); }
  .tablica__chestno { padding-inline: 12px !important; border-radius: var(--r-plashka); }
  .tablica .pusto { padding: 6px 10px; border-radius: 8px; margin-top: 4px; }
}
.znak { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.znak::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.znak--da::before { background: var(--green); }
.znak--net::before { border: 2px solid var(--ink-3); background: linear-gradient(135deg, transparent 45%, var(--ink-3) 45% 55%, transparent 55%); }
.znak--kontur::before { border: 2px solid var(--blue); background: linear-gradient(90deg, var(--blue) 50%, transparent 50%); }

/* ---------- С2.3 «шаги с неделями» ---------- */
.nedeli { position: relative; display: grid; gap: 0; }
.nedeli__tochka { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 0 0 26px 40px; }
.nedeli__tochka::before { content: ""; position: absolute; left: 6px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--ink); }
.nedeli__tochka:not(:last-of-type)::after { content: ""; position: absolute; left: 12.5px; top: 22px; bottom: 0; width: 1.5px; background: var(--ink-3); }
.nedeli__ned { font-size: var(--t-label); font-weight: 600; color: var(--ink-3); }
.nedeli__tochka b { font-size: 17px; }
.nedeli__tochka small { font-size: var(--t-small); color: var(--ink-2); }
.nedeli__ib { order: 0; margin: 0 0 22px 40px; padding: 8px 12px; border-left: 3px solid var(--red); background: var(--red-soft); font-size: var(--t-small); font-weight: 600; color: var(--red); }
@media (max-width: 899px) { .nedeli__ib { order: 3; } .nedeli__tochka:nth-of-type(1) { order: 1; } .nedeli__tochka:nth-of-type(2) { order: 2; } .nedeli__tochka:nth-of-type(n+3) { order: 4; } }
@media (min-width: 900px) {
  .nedeli { grid-template-columns: repeat(6, 1fr); grid-template-rows: auto auto; column-gap: 16px; padding-top: 52px; }
  .nedeli__tochka { grid-row: 2; padding: 34px 0 0; }
  .nedeli__tochka::before { left: 0; top: 0; }
  .nedeli__tochka:not(:last-of-type)::after { left: 18px; right: -16px; top: 7px; bottom: auto; width: auto; height: 1.5px; }
  .nedeli__ned { position: absolute; top: -26px; left: 0; }
  .nedeli__ib { grid-row: 1; grid-column: 2 / 5; margin: 0 0 30px; padding: 6px 12px 10px; border: 2px solid var(--red); border-bottom: 0; border-radius: 10px 10px 0 0; background: none; }
}

/* ---------- С2.4 «кто что делает» ---------- */
.ktochto { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.ktochto__z { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 650; padding-bottom: 6px; }
.ktochto__k { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-plashka); font-size: 15px; }
.ktochto__vmeste { grid-column: 1 / -1; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: var(--r-plashka); font-size: 15px; font-weight: 500; text-align: center; }
.ktochto__vladelec { grid-column: 1 / -1; justify-self: start; margin-top: 8px; padding: 12px 16px; border: 1px dashed var(--ink-3); border-radius: var(--r-plashka); font-size: var(--t-small); }

/* ---------- С3.2 «команда агентов» ---------- */
.komanda__zakazchik { display: flex; flex-direction: column; gap: 4px; max-width: 26em; margin: 0 auto 36px; padding: 16px 20px; border: 2px solid var(--ink); border-radius: var(--r-plashka); background: var(--surface); text-align: center; position: relative; }
.komanda__zakazchik::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 36px; background: var(--ink-3); }
.komanda__zakazchik small { font-size: var(--t-small); color: var(--ink-2); }
.komanda .cikl { margin-top: 0; }
.komanda .cikl__shag--kritika { border-color: var(--red); }

/* ---------- С3.3 и С6.3 «дорожки по времени» ---------- */
.dorozhki { display: grid; gap: 16px; }
.dorozhki__shkala { display: none; }
.dorozhka { padding: 18px; border-radius: var(--r-kartochka); background: var(--surface); border: 1.5px solid var(--line); transition: opacity var(--d-fade) ease, border-color var(--d-fade) ease; }
.dorozhka__z { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; }
.dorozhka__z::before { content: ""; width: 22px; height: 6px; border-radius: 3px; background: currentColor; }
.dorozhka--holding .dorozhka__z { color: var(--blue); } .dorozhka--malaya .dorozhka__z { color: var(--green); }
.dorozhka__kletki { display: grid; gap: 10px; margin-top: 14px; }
.dorozhka__kletka { padding: 10px 12px; border-radius: 10px; background: var(--bg-alt); font-size: 14.5px; line-height: 1.35; }
.ekran--alt .dorozhka__kletka { background: var(--bg); }
.dorozhka__kletka small { display: block; font-size: var(--t-label); font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.dorozhka__flag { border-left: 3px solid var(--red); color: var(--red); font-weight: 600; }
[data-dlya="holding"] .dorozhka--holding { border-color: var(--blue); }
[data-dlya="malaya"] .dorozhka--malaya { border-color: var(--green); }
[data-dlya="holding"] .dorozhka--malaya, [data-dlya="malaya"] .dorozhka--holding { opacity: .55; }
@media (min-width: 900px) {
  .dorozhki__shkala { display: grid; grid-template-columns: 170px repeat(var(--kol), 1fr); gap: 12px; padding: 0 18px 8px; border-bottom: 2px solid var(--ink); font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
  .dorozhka { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: start; }
  .dorozhka__kletki { grid-template-columns: repeat(var(--kol), 1fr); margin-top: 0; }
  .dorozhka__kletka small { display: none; }
  .dorozhka__kletka--vsya { grid-column: 1 / -1; }
}

/* ---------- С4.1 «светофор данных» ---------- */
.svetofor { display: grid; gap: 12px; }
.svetofor__ryad { display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--r-kartochka); background: var(--surface); border: 1px solid var(--line); }
.svetofor__chto { position: relative; padding-left: 24px; }
.svetofor__chto::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; }
.svetofor__ryad--otkr .svetofor__chto::before { background: var(--green); }
.svetofor__ryad--tayna .svetofor__chto::before { background: var(--ink-3); }
.svetofor__ryad--pd .svetofor__chto::before { background: var(--red); }
.svetofor__chto b { display: block; font-size: 16.5px; }
.svetofor__chto small { display: block; margin-top: 2px; font-size: var(--t-small); color: var(--ink-2); }
.svetofor__kuda { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kuda { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 500; }
.kuda--lyuboy { border-color: var(--green); color: var(--green); }
.kuda--svoya { border-color: var(--blue); color: var(--blue); }
.kuda--rus { border-color: var(--ink-3); }
.kuda--slabo { border-style: dashed; }
.kuda--zapret { border-color: var(--red); color: var(--ink-3); }
.kuda--zapret s { text-decoration-color: var(--red); text-decoration-thickness: 2px; white-space: nowrap; }
.kuda--zapret em { font-style: normal; color: var(--red); font-size: var(--t-label); font-weight: 600; }
@media (min-width: 900px) {
  .svetofor__ryad { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.4fr); align-items: center; }
  .svetofor__ryad::after { content: ""; grid-column: 2; grid-row: 1; height: 1.5px; background: var(--ink-3); }
  .svetofor__kuda { grid-column: 3; grid-row: 1; }
}

/* ---------- С4.3 «маршрут данных - одна страница» ---------- */
.blank { display: grid; gap: 20px; align-items: center; }
.blank__list { padding: 24px 24px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 6px 6px 0 var(--bg-alt); counter-reset: bl; }
.ekran--alt .blank__list { box-shadow: 6px 6px 0 var(--line); }
.blank__list li { counter-increment: bl; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.blank__list li::before { content: counter(bl); font-weight: 650; color: var(--ink-3); min-width: 1.2em; }
.blank__podpisi { display: flex; flex-wrap: wrap; gap: 10px; }
.blank__podpisi span { display: grid; place-items: center; min-width: 112px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); font-size: 14px; font-weight: 600; }
.blank__itog { justify-self: start; padding: 12px 18px; border-radius: var(--r-plashka); background: var(--ink); color: var(--bg); font-weight: 600; }
@media (min-width: 900px) { .blank { grid-template-columns: 1.4fr auto auto; gap: 32px; } .blank__podpisi { flex-direction: column; } }

/* ---------- С5.1 «петля»: подпись в центре и пример ---------- */
.petlya__itog { margin-top: 28px; font-family: var(--f-display); font-size: clamp(20px, 1rem + .8vw, 28px); font-weight: 650; letter-spacing: -.02em; text-align: center; }
.cikl__shag--razbor { border: 1.5px solid var(--red); }
.cikl__shag--razbor b { color: var(--red); }
.primer { margin-top: 32px; padding: 20px 22px; border-radius: var(--r-kartochka); border: 1px dashed var(--ink-3); max-width: 44em; }
.primer p + p { margin-top: 8px; }
.primer small { display: block; margin-top: 10px; font-size: var(--t-small); color: var(--ink-2); }

/* ---------- С5.2 «отладка и замер» ---------- */
.stopki { display: grid; gap: 24px; align-items: end; }
.stopka { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.stopka__pisma { position: relative; width: 150px; height: 104px; }
.stopka__pisma span { position: absolute; inset: 0; border: 1.5px solid var(--ink-3); border-radius: 6px; background: var(--surface); }
.stopka__pisma span:nth-child(1) { transform: translate(-12px, 12px); }
.stopka__pisma span:nth-child(2) { transform: translate(-6px, 6px); }
.stopka__pisma span:nth-child(3)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; border-bottom: 1.5px solid var(--ink-3); clip-path: polygon(0 0, 50% 100%, 100% 0); background: var(--line); }
.stopka--malaya .stopka__pisma { width: 120px; height: 84px; }
.stopka b { font-size: 16px; }
.stopka small { font-size: var(--t-small); color: var(--ink-2); }
.stena { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); font-size: var(--t-small); font-weight: 600; }
.stena::before, .stena::after { content: ""; flex: 1; height: 4px; border-radius: 2px; background: var(--ink); }
.stena svg { flex: none; }
@media (min-width: 768px) {
  .stopki { grid-template-columns: 1fr 120px 1fr; }
  .stena { flex-direction: column; align-self: stretch; }
  .stena::before, .stena::after { width: 4px; height: auto; flex: 1; }
}

/* ---------- С6.1: очередь перед узким местом и легенда ---------- */
.gorlo__ochered { position: absolute; right: 8px; top: 50%; translate: 0 -50%; display: grid; grid-template-columns: repeat(3, 7px); gap: 4px; }
.gorlo__ochered i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.gorlo__legenda { display: none; margin-top: 64px; font-size: var(--t-small); color: var(--ink-2); counter-reset: lg; }
.gorlo__legenda li { counter-increment: lg; }
.gorlo__legenda li::before { content: counter(lg) " - "; font-weight: 600; }
.gorlo__legenda li.uzkoe { color: var(--ink); font-weight: 600; }
@media (max-width: 559px) { .gorlo__legenda { display: grid; gap: 4px; } }
.gorlo-podpis { margin-top: 72px; }
@media (max-width: 559px) { .gorlo-podpis { margin-top: 20px; } }

/* ---------- С6.2 «было / стало»: эталон сбоку ---------- */
.bylo { display: grid; gap: 16px; }
.bylo__etalon { align-self: start; padding: 14px 16px; border-left: 3px solid var(--ink); background: var(--surface); border-radius: 0 var(--r-plashka) var(--r-plashka) 0; font-size: var(--t-small); }
.bylo__etalon b { display: block; font-size: 15px; margin-bottom: 2px; }
@media (min-width: 900px) { .bylo { grid-template-columns: 1fr 240px; gap: 32px; } }

/* ---------- С7.1 «поток стенда» ---------- */
.potok { display: grid; gap: 10px; counter-reset: pt; }
.potok li { counter-increment: pt; position: relative; padding: 12px 14px 12px 46px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-plashka); font-size: 14.5px; line-height: 1.35; }
.potok li::before { content: counter(pt); position: absolute; left: 12px; top: 11px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-size: 12.5px; font-weight: 650; background: var(--bg); }
.potok li small { display: block; margin-top: 3px; font-size: var(--t-label); color: var(--ink-2); }
.potok__zhurnal { margin-top: 10px; padding: 10px 14px; border: 1px dashed var(--ink-3); border-radius: var(--r-plashka); font-size: var(--t-small); text-align: center; color: var(--ink-2); }
.legenda-rol { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; font-size: var(--t-small); color: var(--ink-2); }
.legenda-rol span { display: inline-flex; align-items: center; gap: 8px; }
.legenda-rol span::before { content: ""; width: 22px; height: 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); }
.legenda-rol .l-model::before { border: 1.5px dashed var(--ink-3); }
.legenda-rol .l-chelovek::before { border: 2px solid var(--ink); }
@media (min-width: 900px) { .potok { grid-template-columns: repeat(4, 1fr); } }

/* ---------- С7.3 «скриншоты»: лента с прокруткой вбок ---------- */
.skriny { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 420px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; overscroll-behavior-x: contain; }
.skriny figure { scroll-snap-align: start; }
.skriny__kadr { display: grid; place-items: center; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--r-plashka); background: repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--bg-alt) 14px 15px); color: var(--ink-3); font-size: var(--t-small); font-weight: 600; }
.skriny figcaption { margin-top: 8px; font-size: var(--t-small); color: var(--ink-2); }

/* ---------- С7.2 «карточки доказательств» ---------- */
.dokaz { display: grid; gap: 12px; }
@media (min-width: 768px) { .dokaz { grid-template-columns: 1fr 1fr; gap: 16px; } }
.dokaz__k { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-kartochka); }
.dokaz__k h3 { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 650; letter-spacing: -.015em; line-height: 1.15; }
.dokaz__k dl { display: grid; gap: 10px; margin: 0; }
.dokaz__k dt { font-size: var(--t-label); font-weight: 600; color: var(--ink-3); }
.dokaz__k dd { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.dokaz__k .ne-dokazano dt, .dokaz__k .ne-dokazano dd { color: var(--red); }
.dokaz__k .knopka { margin-top: auto; align-self: flex-start; }

/* ---------- раздел 8: вопрос читателю, обо мне ---------- */
.vopros { margin-top: clamp(48px, 7vw, 80px); padding: clamp(24px, 4vw, 40px); border-radius: var(--r-kartochka); background: var(--bg-alt); }
.vopros small { display: block; font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.vopros p { margin-top: 10px; font-family: var(--f-display); font-size: clamp(22px, 1rem + 1.4vw, 36px); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; max-width: 22em; }
.obo-mne { display: grid; gap: 24px; margin-top: clamp(56px, 8vw, 96px); }
@media (min-width: 900px) { .obo-mne { grid-template-columns: 1fr 1fr; gap: 64px; } }
.svyaz { display: grid; gap: 0; }
.svyaz li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.svyaz li span:first-child { color: var(--ink-2); }
@media (max-width: 559px) { .kontakty .knopka { width: 100%; } }

/* узкое место: на широком экране слова, на узком номера и легенда */
.gorlo__nomer { display: none; font-weight: 650; }
@media (max-width: 559px) { .gorlo__nomer { display: inline; } }

/* ---------- плашка «Для вашей ИБ, юриста и ИТ» на дорожке холдинга (тексты 00, 01) ---------- */
.pereshlite {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  max-width: 60em; margin-top: 28px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r-kartochka); background: var(--surface);
}
.pereshlite p { flex: 1 1 26em; margin: 0; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.pereshlite b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }
.pereshlite a { color: var(--blue); text-underline-offset: 3px; }
.pereshlite__kopiya { display: none; }
.js .pereshlite__kopiya { display: inline-flex; }

/* ссылка на стенд и код на первом экране */
.start__stend { display: flex; flex-wrap: wrap; column-gap: 20px; }
.ssylka--vtor { color: var(--ink-2); font-weight: 500; text-decoration-color: var(--line); }

/* С2.1: выход из контура только через замок */
.kontur-a__vyhod { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 16px; }
.kontur-a__zamok { display: flex; flex-direction: column; gap: 2px; max-width: 24em; margin: 0; border-color: var(--blue); border-width: 1.5px; }
.kontur-a__zamok small { font-size: var(--t-label); color: var(--ink-2); }
.kontur-a__vyhod .kontur-a__naruzhu { margin: 0; }
@media (min-width: 768px) { .kontur-a__vyhod { justify-content: flex-end; } }
