/* =========================================================
   TESTING — дополнения к стилям для анимации v2
   ========================================================= */

/* метки компонентов на лабораторном столе */
.tag {
  position: absolute; left: 0; top: 0;
  width: clamp(150px, 13vw, 214px);
  opacity: 0; pointer-events: none; will-change: transform, opacity;
  padding-bottom: 34px;
}
.tag::before {
  content: ""; position: absolute; left: 50%; bottom: 7px; width: 1px; height: 26px;
  background: linear-gradient(to top, var(--accent), rgba(243, 146, 0, 0));
}
.tag::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(243, 146, 0, .22);
}
.tag.down { padding: 34px 0 0; }
.tag.down::before { bottom: auto; top: 7px; background: linear-gradient(to bottom, var(--accent), rgba(243, 146, 0, 0)); }
.tag.down::after { bottom: auto; top: 0; }
.tag-box {
  background: rgba(12, 13, 15, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px 11px;
}
.tag .co-title { font-size: clamp(14px, 1.15vw, 17px); margin: 3px 0 3px; }
.tag .co-tests { font-size: 12.5px; }
.tag .co-gost { margin-top: 7px; font-size: 10px; padding: 3px 7px; }

.tag.compact .co-tests { display: none; }
.tag-mn { display: none; font-family: var(--f-mono); font-size: 10px; color: var(--accent); }
@media (max-height: 800px) and (min-width: 821px) {
  .tag .co-gost { display: none; }
}
@media (max-width: 820px) {
  .tag { width: max-content; max-width: 46vw; padding-bottom: 20px; }
  .tag.down { padding: 18px 0 0; }
  .tag::before { height: 12px; }
  .tag-box { display: flex; align-items: baseline; gap: 6px; padding: 5px 9px; border-radius: 8px; }
  .tag .co-num { display: none; }
  .tag .tag-mn { display: inline; }
  .tag .co-title, .tag .co-tests, .tag .co-gost { display: none; }
  .tag-box { padding: 3px 8px; border-radius: 999px; }
  .tag .tag-mn { font-size: 11px; }
  .tag.compact .co-title { display: block; font-size: 12px; margin: 0; white-space: nowrap; }
}

.tag.badge { padding: 0; }
.tag.badge::before, .tag.badge::after { display: none; }
.tag.badge .tag-box { background: rgba(12, 13, 15, .82); border-color: rgba(243, 146, 0, .55); }

/* легенда компонентов (только телефон) */
.tag-legend { display: none; }
@media (max-width: 820px) {
  .tag-legend {
    position: absolute; left: var(--pad); right: var(--pad); bottom: 62px; z-index: 4;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; opacity: 0; pointer-events: none;
    padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2);
    background: rgba(12, 13, 15, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-size: 12px; line-height: 1.3;
  }
  .tag-legend span { display: flex; gap: 6px; }
  .tag-legend b { font-family: var(--f-mono); font-weight: 500; color: var(--accent); font-size: 10.5px; }
}

/* заголовок стадии «срез» — наверху, чтобы не закрывать стол */
@media (min-width: 821px) {
  .s2 { justify-content: flex-start; padding-top: clamp(90px, 13vh, 130px); width: min(30vw, 420px); }
}

