/* «Тендерный блок» — свои блоки поверх _kit/v1 (тема Softjet). Анимация — tenders.js и @keyframes ниже.
   Анимируются только transform / translate / opacity. Параллакс — свойство `translate` (его пишет JS), а появление
   и «парение» — `transform`, поэтому они не мешают друг другу. Без JS, при prefers-reduced-motion и в браузере
   под автоматом (tools/shots.sh) всё стоит в конечном виде. Пути — относительные, кроме /_kit/ и /forms/. */

:root {
  --t-notice: #97daff;   /* извещение */
  --t-tz: #8fb1ff;       /* ТЗ */
  --t-contract: #c3a6ff; /* проект контракта */
  --t-smeta: #7ee0b0;    /* смета */
  --t-nmck: #ffcf6e;     /* НМЦК */
  --t-red: #ff7a59;
  --t-yellow: #ffcf6e;
  --t-green: #7ee0b0;
  --t-hl: rgba(91, 141, 255, .32);
  --t-card: #353535;
  --t-paper: #f3f4f6;
  --t-ink: #2f2f2f;
  --t-accent: #e84513;   /* красный бренда — как на картинках */
  --t-ease: cubic-bezier(.2, .75, .25, 1);
  --t-pop: cubic-bezier(.3, 1.6, .5, 1);
}

.tb-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
img { max-width: 100%; }

/* ---------- первый экран ---------- */
.tb-hero-wrap { overflow: clip; }
.tb-hero { display: grid; gap: 32px clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 1024px) { .tb-hero { grid-template-columns: 1fr 1.08fr; } }
.tb-eyebrow { margin: 0; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.tb-hero h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(42px, 5.6vw, 76px); line-height: .93; margin: 12px 0 18px; }
.tb-hero h1 em { font-style: normal; color: var(--mint); }
.tb-lead { font-size: clamp(16px, 1.5vw, 18px); color: var(--text-2); margin: 0 0 24px; max-width: 58ch; }
.tb-hero .kit-btns--pair { grid-template-columns: 1.45fr 1fr; max-width: 620px; }
@media (max-width: 400px) { .tb-hero .kit-btns--pair { grid-template-columns: 1fr; } }

/* текст первого экрана выезжает при загрузке (только CSS — работает и до tenders.js) */
@keyframes tb-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.tb-js .tb-in { animation: tb-rise .9s var(--t-ease) both; animation-delay: calc(var(--d, 0) * 1ms); }

/* иллюстрация + сцена поверх неё: слои с параллаксом */
.tb-art { position: relative; padding-top: 40%; min-width: 0; }
@media (min-width: 1024px) { .tb-art { padding-top: 30%; } }
.tb-layer { will-change: translate; }
.tb-art__bg { position: absolute; top: 0; right: 0; width: 100%; aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden;
  background: #eceef1; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.tb-art__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tb-art__sweep { position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%);
  transform: translateX(-110%); }
.tb-anim .tb-art__sweep { animation: tb-sweep 7s ease-in-out 1.6s infinite; }
@keyframes tb-sweep { 0% { transform: translateX(-110%); } 35%, 100% { transform: translateX(110%); } }
.tb-art__glow { position: absolute; left: -10%; right: -10%; top: 25%; bottom: -10%; pointer-events: none; z-index: 0;
  background: radial-gradient(40% 45% at 30% 60%, rgba(91, 141, 255, .35), transparent 70%),
              radial-gradient(30% 35% at 85% 40%, rgba(232, 69, 19, .22), transparent 70%); }
.tb-anim .tb-art__glow { animation: tb-breathe 6s ease-in-out infinite; }
@keyframes tb-breathe { 0%, 100% { opacity: .65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

.tb-art__float { position: absolute; z-index: 4; pointer-events: none; }
.tb-art__float img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); }
.tb-art__float--docs { width: 26%; top: 2%; right: 2%; }
@media (min-width: 1024px) { .tb-art__float--docs { width: 28%; top: 5%; right: -3%; } }
.tb-anim .tb-art__float--docs img { animation: tb-drop 1s var(--t-ease) .7s both, tb-float 7s ease-in-out 1.7s infinite; }
@keyframes tb-drop { from { opacity: 0; transform: translate(30px, -40px) rotate(14deg) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes tb-float { 0%, 100% { transform: none; } 50% { transform: translateY(-12px) rotate(-3deg); } }

.tb-chip { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border-radius: 100px; background: rgba(30, 30, 30, .88); border: 1px solid var(--line-strong); font-size: 12px; color: var(--text-2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35); pointer-events: none; white-space: nowrap; }
.tb-chip b { font-size: 10px; padding: 4px 6px; border-radius: 6px; background: var(--t-notice); color: #102030; }
.tb-chip--a { left: 3%; top: 3%; }
.tb-chip--b { right: 0; bottom: 6%; } .tb-chip--b b { background: var(--t-smeta); }
.tb-anim .tb-chip--a { animation: tb-rise .8s var(--t-ease) 1s both, tb-float 6s ease-in-out 2s infinite; }
.tb-anim .tb-chip--b { animation: tb-rise .8s var(--t-ease) 1.3s both, tb-float 8s ease-in-out 2.3s infinite reverse; }
@media (max-width: 1023px) { .tb-chip--b { display: none; } }

/* ---------- сцена-конвейер ---------- */
.tb-stage { position: relative; z-index: 3; height: 480px; background: linear-gradient(180deg, #363636, #2b2b2b);
  border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 12px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5); isolation: isolate; }
@media (min-width: 560px) { .tb-stage { height: 500px; padding: 18px 20px 14px; width: 86%; } }
@media (min-width: 1024px) { .tb-stage { width: 84%; margin-left: -4%; } }
.tb-anim .tb-stage { animation: tb-rise 1s var(--t-ease) .35s both; }
.tb-stage::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 70%; z-index: -1;
  background: radial-gradient(closest-side, rgba(91, 141, 255, .22), transparent); pointer-events: none; }
/* подсветка рамки при смене сцены */
.tb-stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 1.5px rgba(91, 141, 255, .8), inset 0 0 40px rgba(91, 141, 255, .25); transition: opacity .9s ease; }
.tb-stage.is-flash::after { opacity: 1; transition: opacity .15s ease; }

.tb-strip { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin: 0 0 14px; }
.tb-strip__line { position: absolute; left: 8.3%; right: 8.3%; top: 14px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.tb-strip__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--sky), var(--mint));
  transform-origin: left center; transform: scaleX(1); transition: transform .9s var(--t-ease); border-radius: 2px; }
.tb-st { position: relative; display: grid; justify-items: center; gap: 5px; border: 0; background: none; padding: 0;
  cursor: pointer; color: var(--muted); font: 600 11px/1.1 var(--font-text); min-width: 0; }
.tb-st b { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #2a2a2a;
  border: 1.5px solid var(--line-strong); color: var(--text-2); font: 700 15px/1 var(--font-display);
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, transform .35s ease; }
.tb-st span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 560px) { .tb-st { font-size: 12px; } }
.tb-st.is-done b { background: #2b3550; border-color: var(--mint); color: var(--sky); }
.tb-st.is-cur b { background: var(--mint); border-color: var(--mint); color: #fff; transform: scale(1.12); }
.tb-st.is-cur { color: var(--text); }
.tb-st b::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; pointer-events: none; }
.tb-anim .tb-st.is-cur b::after { animation: tb-ping 1.8s ease-out infinite; }
@keyframes tb-ping { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }

.tb-scenes { position: absolute; left: 14px; right: 14px; top: 70px; bottom: 34px; }
@media (min-width: 560px) { .tb-scenes { left: 20px; right: 20px; top: 76px; bottom: 36px; } }
.tb-scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.tb-scene.is-on { opacity: 1; visibility: visible; transition: opacity .45s ease .1s, visibility 0s; }
.tb-js:not(.tb-ready) .tb-scene { visibility: hidden; }
.tb-stage__note { position: absolute; left: 14px; right: 14px; bottom: 10px; margin: 0; font-size: 11px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; overflow: hidden; }
@media (min-width: 560px) { .tb-stage__note { left: 20px; right: 20px; font-size: 12px; } }
.tb-stage__note b { color: var(--text-2); font-weight: 600; }
.tb-pause { border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; padding: 0; text-decoration: underline;
  text-underline-offset: 2px; }
.tb-static .tb-pause { display: none; }

/* анимации внутри сцены идут только при .is-play; без него элементы мгновенно в начальной позиции */
.tb-a { opacity: 0; transform: translateY(12px); }
.is-play .tb-a { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s var(--t-ease);
  transition-delay: calc(var(--d, 0) * 1ms); }
.tb-scene > * { min-width: 0; max-width: 100%; }

/* сцена 1 — письмо */
.tb-mail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tb-mail__bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tb-mail__row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px;
  border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 13px; color: var(--muted); min-width: 0; }
.tb-mail__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tb-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #444; color: var(--text-2);
  font: 700 15px/1 var(--font-display); }
.tb-mail__new { position: relative; padding: 14px; border-radius: 14px; background: var(--t-card); border: 1px solid rgba(91, 141, 255, .5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); display: grid; gap: 6px; min-width: 0; }
.tb-mail__new.tb-a { transform: translateX(48px); }
.is-play .tb-mail__new.tb-a { transform: none; }
.tb-mail__from { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.tb-mail__from b { color: var(--text); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.tb-mail__from b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(91, 141, 255, .25); }
.tb-mail__subj { font-weight: 700; font-size: 15px; line-height: 1.3; }
.tb-mail__txt { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.tb-att { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 8px 12px 8px 8px; border-radius: 10px;
  background: #2b2b2b; border: 1px dashed var(--line-strong); font-size: 13px; font-weight: 600; justify-self: start; max-width: 100%; }
.tb-att small { color: var(--muted); font-weight: 400; }
.tb-att .tb-zipic { flex: none; }
.tb-att.tb-a { transform: scale(.85); }
.is-play .tb-att.tb-a { transform: none; }
.tb-zipic { width: 30px; height: 34px; border-radius: 6px; background: var(--t-nmck); color: #3a2a00; display: grid; place-items: center;
  font: 700 11px/1 var(--font-text); }
.tb-out { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(126, 224, 176, .12);
  border: 1px solid rgba(126, 224, 176, .4); font-size: 13px; color: var(--text); }
.tb-out i { font-style: normal; color: var(--t-green); font-weight: 700; }
.tb-out span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* сцена 2 — документы разлетаются по типам */
.tb-zip { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--t-card);
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; width: max-content; max-width: 100%; margin: 0 auto 12px; position: relative; z-index: 2; }
.tb-zip small { color: var(--muted); font-weight: 400; }
.is-play .tb-zip { animation: tb-shake .5s ease 1; }
@keyframes tb-shake { 0%, 100% { transform: none; } 25% { transform: rotate(-3deg) scale(1.04); } 60% { transform: rotate(2deg) scale(1.04); } }
.tb-docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tb-doc { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 13px; min-width: 0;
  opacity: 0; transform: translate(var(--fx, 0px), var(--fy, -60px)) scale(.35) rotate(var(--rot, -8deg)); }
.is-play .tb-doc { opacity: 1; transform: none;
  transition: transform .75s var(--t-ease), opacity .3s ease; transition-delay: calc(350ms + var(--i) * 170ms); }
.tb-doc__ic { width: 34px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: #444; font: 700 10px/1 var(--font-text);
  color: var(--text-2); }
.tb-doc__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.tb-tag { font-style: normal; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 100px; white-space: nowrap;
  color: #1d1d1d; background: var(--c, var(--sky)); }
.tb-doc .tb-tag { opacity: 0; transform: scale(.6); }
.is-play .tb-doc .tb-tag { opacity: 1; transform: none; transition: opacity .3s ease, transform .45s var(--t-pop);
  transition-delay: calc(1100ms + var(--i) * 170ms); }
.is-play .tb-doc { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.tb-more { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* сцена 3 — факты с цитатами */
.tb-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tb-fact { position: relative; padding: 9px 12px 9px 14px; border-radius: 12px; background: var(--t-card); border: 1px solid var(--line);
  display: grid; gap: 2px; min-width: 0; }
.tb-fact::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--c, var(--mint)); }
.tb-fact__k { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tb-fact__k cite { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--sky); white-space: nowrap; }
.tb-fact b { font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 26px; }
.tb-q { font-size: 12px; color: var(--text-2); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-q::before { content: "«"; } .tb-q::after { content: "»"; }
.tb-q mark { color: inherit; background: linear-gradient(var(--t-hl), var(--t-hl)) no-repeat 0 0 / 0% 100%; border-radius: 3px; padding: 0 1px; }
.is-play .tb-q mark { background-size: 100% 100%; transition: background-size .7s ease; transition-delay: calc(500ms + var(--i) * 420ms); }
.tb-fact--red { --c: var(--t-red); } .tb-fact--red b { color: #ffb19c; }
.tb-ok { position: absolute; right: 10px; top: 24px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--t-green); color: #10301f; font: 700 12px/1 var(--font-text); font-style: normal; opacity: 0; transform: scale(.4); }
.is-play .tb-ok { opacity: 1; transform: none; transition: opacity .25s ease, transform .4s var(--t-pop);
  transition-delay: calc(2300ms + var(--i) * 160ms); }

/* сцена 4 — расчёт и цена против НМЦК */
.tb-calc-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.tb-calc-h b { color: var(--text); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tb-calc-h span { white-space: nowrap; }
.tb-rows { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.tb-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); min-width: 0; }
.tb-rows li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.tb-rows li small { color: var(--muted); }
.tb-rows .is-total { margin-top: 6px; padding: 8px 10px; border: 0; border-radius: 10px; background: rgba(91, 141, 255, .16);
  font-weight: 700; font-size: 14px; }
.tb-rows .is-total > span:first-child { color: var(--text); }
.tb-rows .is-total .tb-num { color: var(--sky); }
.tb-rows li.tb-a { transform: translateX(-10px); }
.is-play .tb-rows li.tb-a { transform: none; }
.tb-bars { display: grid; gap: 8px; margin-top: 12px; }
.tb-bar { display: grid; gap: 4px; font-size: 12px; }
.tb-bar > div { display: flex; justify-content: space-between; gap: 8px; color: var(--text-2); min-width: 0; }
.tb-bar > div span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-bar > div b { color: var(--text); }
.tb-bar__track { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.tb-bar__track i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: #6b6b6b; transform-origin: left center; transform: scaleX(0); }
.tb-bar--our .tb-bar__track i { background: linear-gradient(90deg, var(--mint-deep), var(--sky)); }
.tb-static .tb-bar__track i, .tb-nojs .tb-bar__track i { transform: none; }
.is-play .tb-bar__track i { transform: none; transition: transform 1.1s var(--t-ease); transition-delay: calc(var(--d, 0) * 1ms); }
.tb-sheet { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.tb-sheet i { width: 18px; height: 18px; border-radius: 4px; background: #1fa463; flex: none;
  background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff); background-size: 10px 1.5px, 1.5px 10px;
  background-position: center, center; background-repeat: no-repeat; }
.tb-sheet b { color: var(--t-green); }

/* сцена 5 — поставщики: письмо улетает, ответ возвращается с ценой */
.tb-sup { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tb-sup li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px;
  border-radius: 12px; background: var(--t-card); border: 1px solid var(--line); font-size: 13px; overflow: hidden; min-width: 0; }
.tb-sup__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tb-sup__n small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.tb-sup__st { position: relative; display: grid; justify-items: end; flex: none; }
.tb-sup__st em { grid-area: 1 / 1; font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 100px; white-space: nowrap; }
.tb-sent { color: var(--muted); border: 1px dashed var(--line-strong); }
.tb-reply { color: #10301f; background: var(--t-green); opacity: 0; transform: scale(.5); }
.tb-sup--wait .tb-reply { background: rgba(255, 207, 110, .16); color: var(--t-yellow); border: 1px dashed rgba(255, 207, 110, .5); }
.tb-static .tb-sent, .tb-nojs .tb-sent { opacity: 0; }
.tb-static .tb-reply, .tb-nojs .tb-reply { opacity: 1; transform: none; }
.is-play .tb-sent { opacity: 0; transition: opacity .3s ease; transition-delay: calc(1500ms + var(--i) * 380ms); }
.is-play .tb-reply { opacity: 1; transform: none; transition: opacity .3s ease, transform .45s var(--t-pop);
  transition-delay: calc(1650ms + var(--i) * 380ms); }
.tb-plane { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.tb-plane::before { content: ""; position: absolute; left: 10px; top: 50%; width: 16px; height: 12px; margin-top: -6px; background: var(--sky);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%); }
.tb-anim .is-play .tb-plane { animation: tb-fly 1.1s ease-in-out both; animation-delay: calc(500ms + var(--i) * 380ms); }
@keyframes tb-fly { 0% { opacity: 0; transform: translateX(0); } 15%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(88%); } }
.tb-best { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(126, 224, 176, .1); border: 1px solid rgba(126, 224, 176, .35); font-size: 13px; color: var(--text-2); }
.tb-best span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-best b { color: var(--t-green); white-space: nowrap; }

/* сцена 6 — КП с эскизом и счёт для 1С */
.tb-out2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.tb-kp, .tb-inv { position: relative; background: var(--t-paper); color: var(--t-ink); border-radius: 10px; padding: 10px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .35); min-width: 0; }
.tb-kp.tb-a { transform: translateY(26px) rotate(-4deg); }
.tb-inv.tb-a { transform: translateY(26px) rotate(4deg); }
.is-play .tb-kp.tb-a, .is-play .tb-inv.tb-a { transform: none; }
.tb-kp__h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 6px; border-bottom: 2px solid var(--t-accent);
  padding-bottom: 4px; }
.tb-kp__h b { font: 700 18px/1 var(--font-display); letter-spacing: .03em; }
.tb-kp__h span { font-size: 10px; color: #6b6f76; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tb-sk { display: block; width: 100%; height: auto; color: #3a3d42; }
.tb-sk__dim { stroke: var(--t-accent); }
.tb-sk__wall { fill: #a3a8b0; }
.tb-sk__p { opacity: 0; }
.is-play .tb-sk__p { opacity: 1; transition: opacity .5s ease; transition-delay: calc(var(--d, 0) * 1ms); }
.tb-kp__cap { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: 10px; color: #6b6f76; }
.tb-kp__cap span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-ln { display: block; height: 6px; width: var(--w); border-radius: 3px; background: #d5d8dd; margin: 7px 0; }
.tb-inv__sum { display: flex; justify-content: space-between; gap: 6px; margin-top: 10px; padding-top: 6px; border-top: 1px solid #d5d8dd;
  font-size: 11px; color: #6b6f76; align-items: baseline; flex-wrap: wrap; }
.tb-inv__sum b { color: var(--t-ink); font-size: 13px; }
.tb-stamp { position: absolute; right: 8px; top: 44px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--t-accent);
  box-shadow: inset 0 0 0 3px var(--t-paper), inset 0 0 0 4px rgba(232, 69, 19, .6); opacity: 0; transform: scale(1.8) rotate(-30deg); }
.is-play .tb-stamp { opacity: .9; transform: rotate(-12deg); transition: opacity .2s ease, transform .4s var(--t-pop); transition-delay: 2000ms; }
.tb-static .tb-stamp, .tb-nojs .tb-stamp { opacity: .9; transform: rotate(-12deg); }
.tb-1c { margin-top: 8px; display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 100px;
  background: #dff5ea; color: #15603a; white-space: nowrap; }
.tb-checks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tb-checks li { font-size: 12px; padding: 5px 10px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
.tb-checks .ok { border-color: rgba(126, 224, 176, .5); color: var(--t-green); }
.tb-checks .ok::before { content: "✓ "; }
.tb-checks .soon { border-style: dashed; color: var(--muted); }

/* ---------- появление при прокрутке: сдвиг + масштаб ---------- */
.tb-js .tb-rv { opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .8s ease, transform .9s var(--t-ease);
  transition-delay: calc(var(--d, 0) * 1ms); }
.tb-js .tb-rv--l { transform: translateX(-48px) rotate(-3deg); }
.tb-js .tb-rv--r { transform: translateX(48px) rotate(3deg); }
.tb-js .tb-rv--zoom { transform: scale(.9); }
.tb-js .tb-rv.is-in { opacity: 1; transform: none; }
.tb-static .tb-rv { opacity: 1 !important; transform: none !important; }
/* браузер под автоматом (tools/shots.sh) — сразу конечный вид, см. tenders.js */
.tb-shot *, .tb-shot *::before, .tb-shot *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .tb-js .tb-in, .tb-anim .tb-stage, .tb-anim .tb-art__float--docs img, .tb-anim .tb-chip--a, .tb-anim .tb-chip--b { animation: none; }
}

/* ---------- как это работает: 6 шагов лентой ---------- */
.tb-sum { margin: -14px 0 32px; font-size: 16px; color: var(--text-2); }
.tb-sum b { font: 700 30px/1 var(--font-display); color: var(--text); margin-right: 2px; }
.tb-sum .tb-ok-c { color: var(--t-green); }
.tb-line { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.tb-line__rail { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); border-radius: 2px; }
.tb-line__fill { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(180deg, var(--sky), var(--mint));
  transform-origin: top center; transform: scaleY(var(--p, 1)); }
.tb-js .tb-line__fill { transform: scaleY(var(--p, 0)); }
.tb-s { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 92px; gap: 0 14px; align-items: start; }
.tb-s__n { grid-column: 1; grid-row: 1; position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-alt); border: 2px solid var(--line-strong); color: var(--muted); font: 700 20px/1 var(--font-display);
  transition: background-color .4s ease, border-color .4s ease, color .4s ease, transform .4s var(--t-pop); }
.tb-s.is-passed .tb-s__n { border-color: var(--mint); color: #fff; background: var(--mint-deep); transform: scale(1.08); }
.tb-s--soon.is-passed .tb-s__n { background: var(--bg-alt); color: var(--sky); border-style: dashed; transform: none; }
.tb-static .tb-s .tb-s__n, .tb-nojs .tb-s .tb-s__n { border-color: var(--mint); color: #fff; background: var(--mint-deep); }
.tb-static .tb-s--soon .tb-s__n, .tb-nojs .tb-s--soon .tb-s__n { background: var(--bg-alt); color: var(--sky); border-style: dashed; }
.tb-s__t { grid-column: 2; grid-row: 1; min-width: 0; }
.tb-s h3 { font: 700 clamp(24px, 2.2vw, 28px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; margin: 10px 0 6px; }
.tb-s p { margin: 0 0 10px; color: var(--text-2); font-size: 15px; }

/* картинка шага «собирается»: подложка → вырезка → ярлык */
.tb-pic { grid-column: 3; grid-row: 1; position: relative; height: 92px; transition: transform .4s var(--t-ease); }
.tb-pic__plate { position: absolute; inset: 0; border-radius: 16px; background: radial-gradient(circle at 50% 35%, #fdfdfe, #e3e6ea 75%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.tb-pic__px { position: absolute; inset: 8px; display: block; transition: scale .5s var(--t-ease); }
.tb-pic img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--t-ease); }
.tb-pic__chip { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px; background: #222; color: #fff; border: 1px solid rgba(232, 69, 19, .7); white-space: nowrap; display: none; }
.tb-s--soon .tb-pic__px { filter: grayscale(1); opacity: .55; }
.tb-s--soon .tb-pic__plate { background: transparent; border: 2px dashed var(--line-strong); box-shadow: none; }
.tb-s--soon .tb-pic__chip { border-color: var(--line-strong); color: var(--muted); }
.tb-js .tb-s .tb-pic__plate { opacity: 0; transform: scale(.8) rotate(-4deg); }
.tb-js .tb-s .tb-pic img { opacity: 0; transform: translateY(26px) scale(.82); }
.tb-js .tb-s .tb-pic__chip { opacity: 0; transform: translate(-50%, 10px); }
.tb-js .tb-s.is-in .tb-pic__plate { opacity: 1; transform: none; transition: opacity .6s ease, transform .8s var(--t-pop);
  transition-delay: calc(var(--d, 0) * 1ms + 150ms); }
.tb-js .tb-s.is-in .tb-pic img { opacity: 1; transform: none; transition: opacity .6s ease, transform .9s var(--t-ease);
  transition-delay: calc(var(--d, 0) * 1ms + 400ms); }
.tb-js .tb-s.is-in .tb-pic__chip { opacity: 1; transform: translate(-50%, 0); transition: opacity .4s ease, transform .5s var(--t-pop);
  transition-delay: calc(var(--d, 0) * 1ms + 800ms); }
.tb-static .tb-s .tb-pic__plate, .tb-static .tb-s .tb-pic img { opacity: 1; transform: none; }
.tb-static .tb-s .tb-pic__chip { opacity: 1; transform: translateX(-50%); }
@media (hover: hover) {
  .tb-s:hover .tb-pic { transform: translateY(-6px); }
  .tb-s:hover .tb-pic__px { scale: 1.07; }
}
@media (min-width: 560px) {
  .tb-s { grid-template-columns: 44px minmax(0, 1fr) 150px; gap: 0 20px; }
  .tb-pic { height: 130px; }
  .tb-pic__chip { display: block; }
}
/* широкий экран — одна горизонтальная лента */
@media (min-width: 1100px) {
  .tb-line { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
  .tb-line__rail { left: 22px; right: calc((100% - 110px) / 6 - 22px); top: 214px; bottom: auto; width: auto; height: 2px; }
  .tb-line__fill { background: linear-gradient(90deg, var(--sky), var(--mint)); transform-origin: left center; transform: scaleX(var(--p, 1)); }
  .tb-js .tb-line__fill { transform: scaleX(var(--p, 0)); }
  .tb-s { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tb-pic { grid-column: 1; grid-row: 1; height: 170px; margin-bottom: 22px; }
  .tb-s__n { grid-column: 1; grid-row: 2; }
  .tb-s__t { grid-column: 1; grid-row: 3; }
  .tb-s h3 { font-size: 24px; margin-top: 14px; }
  .tb-s p { font-size: 14px; }
}

.tb-badge { font-style: normal; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 100px;
  letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.tb-badge--ok { background: rgba(126, 224, 176, .14); color: var(--t-green); }
.tb-badge--ok::before { content: "●"; font-size: 9px; }
.tb-badge--soon { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); }

/* ---------- что получаете ---------- */
.tb-get { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1024px) { .tb-get { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
.tb-get__art { position: relative; width: 100%; max-width: min(420px, 82vw); aspect-ratio: 1 / .9; margin: 0 auto; }
@media (min-width: 1024px) { .tb-get__art { max-width: 480px; aspect-ratio: 1 / 1.05; } }
.tb-get__plate { position: absolute; inset: 10% 4% 4% 10%; border-radius: 28px; background: radial-gradient(circle at 40% 30%, #fdfdfe, #dfe3e8 75%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.tb-get__plate::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(35% 30% at 75% 70%, rgba(232, 69, 19, .16), transparent 70%); }
.tb-get__door { position: absolute; left: 10%; top: 0; height: 94%; aspect-ratio: 400 / 930; }
.tb-get__kp { position: absolute; right: 0; bottom: 6%; width: 64%; aspect-ratio: 640 / 475; }
.tb-pxw { display: block; width: 100%; height: 100%; }
.tb-get__art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .3)); }
.tb-cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .tb-cards { grid-template-columns: 1fr 1fr; } }
.tb-card { position: relative; transition: translate .35s var(--t-ease); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.tb-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1.5px var(--mint), 0 18px 40px rgba(47, 99, 230, .28); transition: opacity .35s ease; }
.tb-card h3 { font: 700 24px/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; margin: 14px 0 8px; }
.tb-card p { margin: 0; font-size: 15px; color: var(--text-2); }
.tb-card__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(232, 69, 19, .14);
  color: #ff8a5c; font: 700 22px/1 var(--font-text); transition: transform .4s var(--t-pop); }
.tb-js .tb-card { transition: opacity .8s ease, transform .9s var(--t-ease), translate .35s var(--t-ease);
  transition-delay: calc(var(--d, 0) * 1ms), calc(var(--d, 0) * 1ms), 0s; }
@media (hover: hover) {
  .tb-card:hover { translate: 0 -6px; }
  .tb-card:hover::after { opacity: 1; }
  .tb-card:hover .tb-card__ic { transform: rotate(-8deg) scale(1.12); }
}

/* ---------- FAQ и форма ---------- */
.tb-faq-wrap .kit-faq { max-width: 900px; }
.tb-cta-text { margin: 0 0 16px; color: #eef2ff; }
.tb-cta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #eef2ff; font-size: 15px; }
.tb-cta-list li::before { content: "→ "; color: var(--sky); font-weight: 700; }

@media (max-width: 380px) {
  .tb-fact b { font-size: 13px; }
  .tb-hero h1 { font-size: 40px; }
}
