/* sdelano.html - раздел 7 «Что я уже собрал сам». Подключается после skhemy.css.
   Цвета, шрифты, радиусы и движение - только токены из vitrina.css. */

/* ---------- иконки строк (контур в духе lucide) ---------- */
.ik { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ссылки внутри текста страницы ---------- */
.rabota-k dd a:not(.knopka), .zametka a, .stend__vvod a {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--ink-3); text-underline-offset: 3px;
}
@media (hover: hover) {
  .rabota-k dd a:not(.knopka):hover, .zametka a:hover, .stend__vvod a:hover { text-decoration-color: currentColor; }
}

/* =========================================================
   С7.2 «Карточки доказательств»: одна форма у трёх работ.
   Строки: что это / что умеет / что не доказано / ссылка.
   7.1 - во всю ширину (у неё втрое больше «что умеет»),
   7.2 и 7.3 рядом, строки выровнены сеткой (subgrid),
   поэтому красные строки «не доказано» стоят на одной высоте.
   ========================================================= */
.raboty { display: grid; gap: 12px; margin-top: clamp(48px, 7vw, 88px); }

.rabota-k {
  --s7-kol: 168px; /* колонка подписей строк в широкой карточке */
  display: flex; flex-direction: column;
  container-type: inline-size;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-kartochka);
  overflow: hidden;
}
.rabota-k__z {
  padding: 22px 20px 18px;
  font-family: var(--f-display); font-size: var(--t-h3); font-weight: 650;
  letter-spacing: -.015em; line-height: 1.15; color: var(--ink);
  text-wrap: balance;
}
.stroki { margin: 0; }
.stroka {
  display: grid; gap: 8px;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
}
.stroka dt {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--t-small); font-weight: 600; line-height: 1.3; color: var(--ink-2);
}
.stroka dt .ik { color: var(--ink-3); }
.stroka dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.stroka dd p + p { margin-top: 10px; }

/* красный маркер: строка «что не доказано» */
.stroka--net { background: var(--red-soft); box-shadow: inset 3px 0 0 var(--red); }
.stroka--net dt, .stroka--net dt .ik { color: var(--red); }
.stroka--net dd { color: var(--ink); }

/* список «что умеет» */
.umeet li { position: relative; padding-left: 20px; break-inside: avoid; }
.umeet li + li { margin-top: 8px; }
.umeet li::before {
  content: ""; position: absolute; left: 2px; top: calc(.775em - 1px);
  width: 8px; height: 2px; border-radius: 1px; background: var(--ink-3);
}

/* «ссылка»: кнопка и строка под ней */
.rabota-k__deystvie { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; }
.rabota-k__deystvie small { font-size: var(--t-small); color: var(--ink-2); }

/* низ карточки: заметка для своего читателя и раскрывашка для ИТ */
.rabota-k__niz {
  display: grid; align-content: start; gap: 10px;
  padding: 14px 20px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.zametka { padding-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.zametka .metka { display: flex; width: max-content; max-width: 100%; margin-bottom: 8px; }

.dlya-it summary {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding-right: 8px;
  font-size: var(--t-small); font-weight: 600; color: var(--ink-2);
  cursor: pointer; list-style: none; border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.dlya-it summary::-webkit-details-marker { display: none; }
.dlya-it summary .ik { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.dlya-it[open] summary .ik { transform: rotate(180deg); }
@media (hover: hover) { .dlya-it summary:hover { color: var(--ink); } }
.dlya-it p { padding: 0 0 8px 24px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 46em; }
@media (prefers-reduced-motion: no-preference) {
  .dlya-it[open] p { animation: s7-raskryt 220ms var(--ease-out); }
}
@keyframes s7-raskryt { from { opacity: 0; transform: translateY(-4px); } }

/* широкая карточка: подпись строки слева, текст справа */
@container (min-width: 520px) {
  .rabota-k__z { padding: 28px 28px 22px; }
  .stroka { grid-template-columns: var(--s7-kol) minmax(0, 1fr); column-gap: 20px; padding: 18px 28px 20px; }
  .stroka dt { align-self: start; padding-top: 2px; }
  .stroka dd > p, .rabota-k__deystvie { max-width: 46em; }
  .rabota-k__niz { padding: 12px 28px 14px calc(28px + var(--s7-kol) + 20px); }
  .zametka { max-width: 46em; }
  .dlya-it summary { margin-left: -24px; }
  .dlya-it p { padding-left: 0; }
}
@container (min-width: 880px) {
  .umeet--dve { columns: 2; column-gap: 44px; }
  .umeet--dve li + li { margin-top: 0; }
  .umeet--dve li { margin-bottom: 10px; }
  .umeet--dve li:last-child { margin-bottom: 0; }
}

@media (min-width: 900px) {
  .raboty { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 0; }
  .rabota-k--stend { grid-column: 1 / -1; margin-bottom: 16px; }
  .rabota-k:not(.rabota-k--stend) { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; }
  .rabota-k:not(.rabota-k--stend) .stroki { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
}

/* =========================================================
   «Как устроен стенд»: ввод для своего читателя
   ========================================================= */
.stend__vybor { margin-top: 28px; }
.stend__vvod { margin-top: 4px; }
.stend__vvod .tekst { margin-top: 14px; max-width: 46em; }

/* =========================================================
   С7.1 «Поток стенда».
   Телефон и планшет: вертикальная лента, роль подписана в блоке,
   ответвление «сомнения - сразу человеку» - скобкой справа.
   От 1100 px: три дорожки (нейросеть / программа / человек),
   блоки слева направо, связи - одна svg в единицах сетки.
   ========================================================= */
.lenta__setka {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  row-gap: 28px;
  max-width: 640px;
}
.lenta__dor, .lenta__linii, .lenta__snoska { display: none; }

.lenta__bloki {
  grid-column: 1; grid-row: 1 / span 8;
  display: grid; grid-template-rows: subgrid;
}
.lenta__blok {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-plashka);
  font-size: 15px; line-height: 1.3; color: var(--ink);
}
.lenta__blok b { font-weight: 650; }
.lenta__blok small { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.lenta__blok .rol-metka { margin-bottom: 2px; }
.lenta__blok.rol--model { border-color: var(--ink-3); }
.lenta__mob {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: var(--t-label) !important;
}
/* связь сверху вниз и наконечник */
.lenta__blok + .lenta__blok::before {
  content: ""; position: absolute; left: 50%; bottom: 100%;
  width: 1.5px; height: 29px; margin-left: -.75px; margin-bottom: 1px;
  background: var(--ink-3);
}
.lenta__blok + .lenta__blok::after {
  content: ""; position: absolute; left: 50%; top: -8px; margin-left: -5px;
  border-top: 7px solid var(--ink-3); border-inline: 5px solid transparent;
}

/* ответвление: скобка от «Программа» к «Менеджер» */
.lenta__vetka {
  position: relative;
  grid-column: 2; grid-row: 5 / 7;
  display: flex; align-items: center;
  margin: 24px 0 -52px; padding-left: 26px;
  font-size: var(--t-label); font-weight: 600; line-height: 1.3; color: var(--ink-2);
}
.lenta__vetka::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 16px;
  border: 1.5px dashed var(--ink-3); border-left: 0; border-radius: 0 10px 10px 0;
}
.lenta__vetka::after {
  content: ""; position: absolute; left: 0; bottom: -4.25px;
  border-right: 7px solid var(--ink-3); border-block: 5px solid transparent;
}

.lenta__zhurnal {
  grid-column: 1 / -1; grid-row: 9;
  padding: 11px 16px;
  border: 1px dashed var(--ink-3); border-radius: var(--r-plashka);
  font-size: var(--t-small); font-weight: 600; text-align: center; color: var(--ink-2);
}
.lenta figcaption { margin-top: 20px; }

@media (min-width: 1100px) {
  .lenta__setka {
    position: relative; max-width: none;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: auto repeat(3, minmax(120px, 1fr)) auto;
    column-gap: 0; row-gap: 0;
  }

  /* дорожки */
  .lenta__dor {
    display: flex; align-items: center; gap: 8px; align-self: stretch;
    grid-column: 1 / -1;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    font-size: var(--t-label); font-weight: 600; letter-spacing: .02em; line-height: 1; color: var(--ink-3);
    align-items: flex-start;
  }
  .lenta__dor::before { content: ""; flex: none; width: 18px; height: 11px; margin-top: 0; border-radius: 3px; border: 1px solid var(--ink-3); background: var(--surface); }
  .lenta__dor--model { grid-row: 2; }
  .lenta__dor--model::before { border: 1.5px dashed var(--ink-3); }
  .lenta__dor--kod { grid-row: 3; }
  .lenta__dor--chelovek { grid-row: 4; border-bottom: 1px solid var(--line); }
  .lenta__dor--chelovek::before { border: 2px solid var(--ink); }

  /* связи: viewBox 80 x 30, столбец = 10, дорожка = 10; блоки закрывают линию, видна она только в промежутках */
  .lenta__linii { display: block; position: relative; grid-column: 1 / -1; grid-row: 2 / 5; }
  .lenta__linii svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .lenta__linii path { fill: none; stroke: var(--ink-3); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
  .lenta__linii .lenta__vetka-put { stroke-dasharray: 5 4; }

  .lenta__bloki {
    grid-column: 1 / -1; grid-row: 2 / 5;
    grid-template-columns: subgrid; grid-template-rows: subgrid;
  }
  .lenta__blok {
    grid-column: var(--k);
    margin: 28px 8px;
    padding: 10px 12px 11px;
    font-size: 14.5px;
    justify-content: center;
  }
  .lenta__blok small { font-size: 13px; }
  .lenta__blok.rol--model { grid-row: 1; }
  .lenta__blok.rol--kod { grid-row: 2; }
  .lenta__blok.rol--chelovek { grid-row: 3; }
  /* роль видна по дорожке; для чтения с экрана подпись остаётся */
  .lenta__blok .rol-metka { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lenta__mob { display: none; }

  /* наконечник слева: в каждый блок поток входит слева, по центру дорожки */
  .lenta__blok + .lenta__blok::before {
    left: -8px; top: 50%; bottom: auto;
    width: 0; height: 0; margin: -5px 0 0;
    background: none;
    border-left: 7px solid var(--ink-3); border-block: 5px solid transparent;
  }
  .lenta__blok + .lenta__blok::after { content: none; }

  /* сноски «мелко»: над «Модель» и под «Программа» */
  .lenta__snoska {
    display: block; position: relative;
    font-size: var(--t-label); line-height: 1.45; color: var(--ink-2);
  }
  .lenta__snoska--model { grid-row: 1; grid-column: 4 / 8; align-self: end; padding: 0 8px 16px; max-width: 36em; }
  .lenta__snoska--model::after {
    content: ""; position: absolute; left: 12.5%; top: calc(100% - 8px);
    width: 1px; height: 36px; background: var(--ink-3);
  }
  .lenta__snoska--kod {
    grid-row: 4; grid-column: 2 / 6; align-self: start;
    padding: 10px calc(12.5% + 14px) 0 8px;
    text-align: right;
  }

  .lenta__vetka {
    grid-row: 4; grid-column: 5 / 7;
    align-self: center;
    margin: 0; padding: 0 8px 0 calc(25% + 12px);
    translate: 0 -15px;
    display: block;
  }
  .lenta__vetka::before, .lenta__vetka::after { content: none; }

  .lenta__zhurnal { grid-row: 5; margin-top: 16px; }
}

/* поток проявляется слева направо один раз - показывает направление */
@media (prefers-reduced-motion: no-preference) {
  .js .lenta.poyav .lenta__blok { opacity: 0; transition: opacity 420ms var(--ease-out); transition-delay: calc(120ms + var(--k) * 55ms); }
  .js .lenta.poyav.vidno .lenta__blok { opacity: 1; }
}

/* =========================================================
   С7.3 «Скриншоты стенда»: рамки с подписями.
   Телефон и планшет - прокрутка вбок с доводкой, от 1100 px - по три в ряд.
   ========================================================= */
.snimki { margin-top: clamp(64px, 9vw, 112px); }
.kadry-okno {
  margin: 24px calc(-1 * var(--pole)) 0;
  padding: 4px var(--pole) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pole);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.kadry-okno::-webkit-scrollbar { display: none; }
.kadry-okno:focus-visible { outline-offset: -2px; border-radius: var(--r-plashka); }
.kadry {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(84vw, 340px);
  gap: 14px; width: max-content;
}
.kadry li { scroll-snap-align: start; }
.kadr {
  display: flex; flex-direction: column;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line); border-radius: var(--r-plashka);
  background: var(--surface);
  overflow: hidden;
}
.kadr__n {
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-label); font-weight: 600; letter-spacing: .02em; line-height: 1.3; color: var(--ink-3);
}
.kadr__ekran {
  flex: 1; display: grid; place-items: center;
  padding: 12px 16px;
  background: repeating-linear-gradient(135deg, transparent 0 14px, var(--bg-alt) 14px 15px);
  font-family: var(--f-display); font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25;
  text-align: center; text-wrap: balance; color: var(--ink-2);
}
.kadry figcaption { margin-top: 10px; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

@media (min-width: 1100px) {
  .kadry-okno { margin-inline: 0; padding-inline: 0; overflow: visible; }
  .kadry { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); width: auto; gap: 28px 20px; }
}

/* =========================================================
   «Куда дальше»: заголовок ссылки сверху, пояснение под ним
   ========================================================= */
.dalshe--s7 small { max-width: 30em; }
.ekran--final .ekran__dalee + .melko { margin-top: 12px; }

/* Снимки стенда: превью в рамке, по клику - полный кадр */
.kadr__ssylka { flex: 1; display: block; min-height: 0; overflow: hidden; background: #fff; }
.kadr__ssylka img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .3s ease; }
.kadr__ssylka:hover img { transform: scale(1.03); }
.kadr__ssylka:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .kadr__ssylka img { transition: none; } .kadr__ssylka:hover img { transform: none; } }

/* Подпись «тестовые данные» в углу снимка стенда (просьба куратора 17.11.2026) */
.kadr__n { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kadr__test { font-weight: 500; letter-spacing: 0; color: var(--ink-3); white-space: nowrap; }
