/* PreTender — перенос макета Pencil (cleaningaite.pen, «PreTender · ПК / Телефон»).
   Размеры, цвета, скругления, тени и тексты — из выгрузки кода Pencil (html-css). Фоны-градиенты — картинки из той же выгрузки (img/).
   Отличие от макета одно: ширины гибкие вместо фиксированных 1440 / 390. */
:root {
  --ink: #0E1E33; --ink-2: #4F5F74; --ink-3: #A3AFBD;
  --hair: #0E1E3314; --tint: #0E1E330F; --tint-2: #0E1E3310;
  --accent: #1D5FE0; --red: #D92D3A; --amber: #9A5B00; --amber-ic: #E39B12; --amber-bar: #F0A21B; --green: #14783A; --green-ok: #22A35A;
  --glass: #FFFFFFA6; --glass-2: #FFFFFFB3; --field: #FFFFFFD9;
  --sh-lg: 0 18px 48px #16345A1F, inset 0 1px 1px #FFFFFFF2;
  --sh-md: 0 12px 36px #16345A1F, inset 0 1px 1px #FFFFFFF2;
  --sh-sm: 0 6px 18px #16345A1F, inset 0 1px 1px #FFFFFFF2;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #EEF4FB; min-height: 100vh; -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; border: 0; background: none; padding: 0; }
a { color: var(--accent); }
[hidden] { display: none !important; }
svg.lucide { flex: none; }
.spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

/* стекло: белый 65–70 % + размытие + тень + светлая кромка */
.glass { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid #FFFFFFCC; }
.panel { background: var(--glass-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 36px; box-shadow: var(--sh-lg); border: 1px solid #FFFFFFCC; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
/* голубые карточки — сетчатый градиент из макета, картинкой */
.blue { border-radius: 40px; border: 1px solid #FFFFFF99; background: #DCE9F8 url(/img/card-enter.webp) center / 100% 100% no-repeat; }
.blue--flow { background-image: url(/img/card-flow.webp); } .blue--check { background-image: url(/img/card-check.webp); }
.blue--cl { background-image: url(/img/card-checklist.webp); } .blue--verdict { background-image: url(/img/card-verdict.webp); } .blue--error { background-image: url(/img/card-error.webp); }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; padding: 16px 40px 0; }
.top__bar { height: 67px; border-radius: 34px; box-shadow: var(--sh-md); display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 26px; max-width: 1360px; margin: 0 auto; }
/* 29.11: логотип PreTender (SVG). На телефоне идёт ЗА прокруткой (Адиль: «физика от прокрутки, плавность как сейчас»):
   app.js догоняет положение прокрутки мягко (каждый кадр — часть пути) и ставит --kt (T едет под P), --ko (буквы), --kr (сдвиг «re»). ПК — всегда полный */
.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.logo__svg { height: 22px; width: auto; display: block; overflow: visible; }   /* ПК: 26 → 22 (Адиль, 29.11); телефон — ниже */
.logo .lg-t, .logo .lg-t2 { transform: translateX(calc(155.9px * (1 - var(--kt, 0)))); }
.logo .lg-re, .logo .lg-ender { opacity: var(--ko, 1); }
.logo .lg-re { transform: translateX(calc(-24px * var(--kr, 0))); }
.top__right { display: flex; gap: 8px; }
.hbtn { height: 43px; border-radius: 22px; padding: 0 16px; display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 500; color: var(--ink);
  background: var(--glass); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); box-shadow: var(--sh-sm); border: 1px solid #FFFFFFCC; position: relative; transition: transform .16s var(--ease-out); }
.hbtn:active { transform: scale(.97); }
.hbtn .badge { min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; padding: 0 5px; }
.hbtn .badge[data-zero] { display: none; }

/* ---------- страница ---------- */
.page { padding: 22px 64px 4px; display: flex; flex-direction: column; gap: 22px; max-width: 1440px; margin: 0 auto; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.head__t { display: flex; flex-direction: column; gap: 8px; }
.h1 { margin: 0; font-size: 44px; font-weight: 700; letter-spacing: -1.5px; line-height: 48px; }
.sub { margin: 0; font-size: 18px; line-height: 25px; color: var(--ink-2); }
.steps { height: 51px; border-radius: 26px; padding: 5px; gap: 2px; display: flex; flex: none; box-shadow: inset 0 1px 1px #FFFFFFF2; }
.step { height: 100%; border-radius: 21px; padding: 0 14px 0 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.step__n { width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; background: var(--tint); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.step--now { background: #fff; box-shadow: 0 3px 10px #0E1E3321; color: var(--ink); font-weight: 600; } .step--now .step__n { background: var(--ink); color: #fff; }
.step--done { color: var(--ink); }
.msteps { display: none; }
.work { display: flex; gap: 20px; align-items: stretch; }
.work__main { flex: 1; min-width: 0; }
.work__side { width: 440px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.work__side--400 { width: 400px; }
.foot { height: 52px; padding: 0 64px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); max-width: 1440px; margin: 0 auto; }

/* ---------- общие элементы ---------- */
.h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.264px; line-height: 24px; }
.muted { color: var(--ink-2); }
.t14 { font-size: 14px; line-height: 20px; } .t13 { font-size: 13px; }
.btn-dark { height: 56px; border-radius: 28px; padding: 0 22px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -0.2px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .16s var(--ease-out), background-color .16s; }
.btn-soft { height: 50px; border-radius: 25px; padding: 0 19px; background: var(--tint-2); color: var(--ink); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .16s var(--ease-out); }
.btn-white { height: 40px; border-radius: 20px; padding: 0 14px; background: #fff; box-shadow: 0 1px 3px #0E1E3314; font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn-text { height: 40px; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.btn-glass { height: 46px; border-radius: 23px; padding: 0 18px; font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; background: var(--glass); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); box-shadow: var(--sh-sm); border: 1px solid #FFFFFFCC; }
.btn-dark:active, .btn-soft:active, .btn-white:active, .btn-glass:active { transform: scale(.97); }
[disabled] { opacity: .45; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .btn-dark:hover { background: #1B2E48; } .btn-white:hover, .btn-glass:hover, .hbtn:hover { background: #fff; } .btn-text:hover { color: var(--ink); } }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; border-radius: 14px; padding: 0 11px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip--gray { height: 24px; border-radius: 12px; padding: 0 10px; font-size: 12px; background: var(--tint); color: var(--ink-2); }
.chip--amber { background: #F0A21B24; color: var(--amber); } .chip--red { background: #D92D3A14; color: var(--red); } .chip--green { background: #22A35A1F; color: var(--green); }
.chip--lg { height: 32px; border-radius: 16px; font-size: 14px; }
.field { display: flex; align-items: center; gap: 10px; height: 64px; border-radius: 20.48px; padding: 0 16px; background: var(--field); flex: 1; min-width: 0; }
.field input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 18px; color: var(--ink); }
.field input::placeholder { color: var(--ink-3); }
.field--error { box-shadow: inset 0 0 0 1.5px var(--red); }
.field:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.field-sm { height: 52px; border-radius: 16.64px; flex: none; } .field-sm input { font-size: 16px; }
.label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.err-text { color: var(--red); font-size: 14px; line-height: 20px; margin: 0; }

/* ---------- 1. Пусто ---------- */
.enter { padding: 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; height: 100%; }
.enter__top { display: flex; flex-direction: column; gap: 18px; }
.enter__title { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.768px; line-height: 35px; }
.enter__text { margin: 0; font-size: 17px; line-height: 25px; color: var(--ink-2); max-width: 620px; }
.enter__row { display: flex; gap: 12px; padding-top: 8px; }
.enter__row .btn-dark { height: 64px; border-radius: 32px; width: 220px; font-size: 17px; flex: none; }
.what__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.what { background: var(--glass); border-radius: 26px; padding: 22px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 18px 32px; margin-top: 14px; }
.what__item { display: flex; gap: 14px; }
.what__item b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.2px; margin-bottom: 3px; }
.what__item span { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.next { display: none; }
.sample__head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.sample__word { font-size: 34px; font-weight: 700; letter-spacing: -0.816px; line-height: 37px; color: var(--amber); }
.conf { display: flex; flex-direction: column; gap: 8px; }
.conf__num { display: flex; align-items: flex-end; gap: 8px; }
.conf__num b { font-size: 22px; font-weight: 700; letter-spacing: -0.264px; line-height: 22px; }
.conf__num span { font-size: 13px; font-weight: 500; line-height: 17px; color: var(--ink-2); }
.bar { height: 8px; border-radius: 4px; background: var(--hair); display: flex; gap: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; }
.bar .g { background: var(--green-ok); } .bar .r { background: var(--red); } .bar .a { background: var(--amber-bar); } .bar .n { background: #7BD49A; }
.list { background: var(--glass); border-radius: 20px; display: flex; flex-direction: column; }
.list__row { display: flex; align-items: center; gap: 10px; min-height: 47.5px; padding: 0 14px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--hair); }
.list__row:last-child { border-bottom: 0; }
.spacer { flex: 1; }
.mine { padding: 20px 24px; gap: 6px; }
.mine__t { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }

/* ---------- карточка конкурса ---------- */
.lot { background: var(--glass); border-radius: 24px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.lot__no { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.lot__name { font-size: 19px; font-weight: 600; letter-spacing: -0.3px; line-height: 25px; }
.lot__meta { display: flex; gap: 28px; }
.lot__meta > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lot__meta span { font-size: 12px; color: var(--ink-2); }
.lot__meta b { font-size: 14px; font-weight: 500; line-height: 19px; }
.lot__cust { flex: 1; } .lot__cust b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lot--side { border-radius: 20px; padding: 14px 16px; } .lot--side .lot__name { font-size: 16px; line-height: 21px; } .lot--side .lot__meta { flex-direction: column; gap: 6px; } .lot--side .lot__cust { display: none; }

/* ---------- 2. Разбор / проверка ---------- */
.flow { padding: 40px; display: flex; flex-direction: column; gap: 28px; height: 100%; }
.flow--check { padding: 36px; gap: 24px; }
.prog { display: flex; flex-direction: column; gap: 10px; }
.prog__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.prog__pct { font-size: 40px; font-weight: 700; letter-spacing: -1.36px; line-height: 44px; }
.flow--check .prog__pct { font-size: 48px; letter-spacing: -1.632px; line-height: 53px; }
.prog__left { font-size: 15px; font-weight: 500; color: var(--ink-2); text-align: right; }
.prog__bar { height: 10px; border-radius: 5px; background: var(--hair); overflow: hidden; }
.prog__bar i { display: block; height: 100%; border-radius: 5px; background: var(--accent); transition: width .5s var(--ease-out); }
.stages { display: flex; flex-direction: column; gap: 14px; }
.stage { display: flex; gap: 12px; }
.stage__t { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.stage__t b { font-size: 16px; font-weight: 500; letter-spacing: -0.15px; }
.stage__t span { font-size: 14px; line-height: 19px; color: var(--ink-2); }
.stage--now b { font-weight: 600; } .stage--wait b { color: var(--ink-2); }
.found__head { display: flex; align-items: center; justify-content: space-between; }
.found__upd { font-size: 13px; font-weight: 500; color: var(--accent); }
.found__row { display: flex; align-items: center; gap: 10px; min-height: 53.5px; padding: 0 16px; border-bottom: 1px solid var(--hair); font-size: 15px; font-weight: 500; }
.found__row:last-child { border-bottom: 0; }
.found__row .q { margin-left: auto; font-weight: 600; white-space: nowrap; }
.skel { background: #0E1E3312; border-radius: 6px; height: 12px; } .skel--dot { width: 18px; height: 18px; border-radius: 9px; flex: none; }
.cstages { display: flex; gap: 12px; }
.cstage { flex: 1; min-width: 0; background: var(--glass); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.cstage--now { background: #FFFFFFE6; }
.cstage__t { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; } .cstage--wait .cstage__t { color: var(--ink-2); }
.cstage span { font-size: 13px; color: var(--ink-2); }
.now { background: var(--glass); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; }
.now__row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--hair); }
.now__row:last-child { border-bottom: 0; } .now__row--cur { background: #1D5FE00F; }
.now__row b { display: block; font-size: 15px; font-weight: 500; } .now__row--cur b { font-weight: 600; } .now__row--wait b { color: var(--ink-2); }
.now__row span { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.side-card { padding: 24px; gap: 12px; border-radius: 32px; }
.linkbox { display: flex; align-items: center; gap: 8px; height: 48px; border-radius: 16px; padding: 0 6px 0 14px; background: var(--field); }
.linkbox span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }
.linkbox button { height: 36px; border-radius: 18px; padding: 0 14px; background: var(--tint-2); font-size: 13px; font-weight: 600; }
.firm { display: flex; align-items: center; gap: 12px; background: var(--glass); border-radius: 20px; padding: 14px 16px; }
.firm b { display: block; font-size: 15px; font-weight: 600; } .firm span { font-size: 13px; color: var(--ink-2); }

/* ---------- 3. Чек-лист ---------- */
.cl { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.drop { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-radius: 24px; background: #FFFFFF73; transition: background-color .16s; }
.drop--over { background: #1D5FE01A; }
.drop__t { display: flex; align-items: center; gap: 14px; min-width: 0; }
.drop__ic { width: 52px; height: 52px; border-radius: 26px; display: grid; place-items: center; flex: none; background: #FFFFFFCC; backdrop-filter: blur(8px); box-shadow: var(--sh-sm); border: 1px solid #FFFFFFCC; }
.drop__t b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.2px; margin-bottom: 3px; }
.drop__t span { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.drop__btns { display: flex; gap: 8px; flex: none; }
.pool { background: #F0A21B14; border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.pool__t { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.pool__d { font-size: 13px; line-height: 18px; color: var(--ink-2); margin: 0; }
.pool__files { display: flex; flex-wrap: wrap; gap: 8px; }
.pfile { display: inline-flex; align-items: center; gap: 8px; height: 44px; border-radius: 14px; padding: 0 6px 0 8px; background: #FFFFFFE6; font-size: 14px; font-weight: 500; max-width: 100%; }
.pfile em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfile span { font-size: 12px; font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.pfile button { width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; color: var(--ink-2); }
.grp { display: flex; flex-direction: column; gap: 8px; }
.grp__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 4px; }
.grp__name { display: flex; align-items: flex-end; gap: 8px; min-width: 0; flex-wrap: wrap; }
.grp__name b { font-size: 19px; font-weight: 700; letter-spacing: -0.228px; line-height: 21px; }
.grp__name span { font-size: 13px; line-height: 20px; color: var(--ink-2); }
.grp__cnt { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.rows { background: var(--glass); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 63.5px; border-bottom: 1px solid var(--hair); }
.row:last-child { border-bottom: 0; }
.row__main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.row__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row__t b { font-size: 15px; font-weight: 600; letter-spacing: -0.15px; }
.row__t span { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.row__btns { width: 216px; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.row--bad { background: #D92D3A0D; } .row--bad .row__t span { color: var(--red); font-weight: 500; } .row--bad .btn-text.r { color: var(--red); }
.row--cut { background: #F0A21B12; } .row--cut .row__t span { color: var(--amber); font-weight: 500; }
.row--up .row__t { gap: 4px; }
.minibar { height: 4px; border-radius: 2px; background: var(--hair); overflow: hidden; } .minibar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); transition: width .2s linear; }
.row--cut .minibar i { background: var(--amber-bar); }
.ready { padding: 24px; gap: 14px; border-radius: 32px; position: sticky; top: 100px; }
.ready__f { display: flex; flex-direction: column; gap: 6px; }
.miss { background: var(--glass-2); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.miss__t { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.2px; }
.miss span { font-size: 14px; line-height: 20px; color: var(--ink-2); padding-left: 26px; }
.stat { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 14px; font-weight: 500; }
.ready .btn-dark { width: 100%; }
.ready__note { font-size: 12px; line-height: 17px; color: var(--ink-2); margin: 0; }

/* ---------- 4. Отчёт ---------- */
.ract { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ract__l { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.ract__b { display: flex; gap: 8px; flex-wrap: wrap; }
.ract__b .btn-dark { height: 46px; border-radius: 23px; font-size: 14px; }
.sum { display: flex; gap: 20px; align-items: stretch; }
.verdict { flex: 1; min-width: 0; padding: 32px 36px; display: flex; align-items: center; gap: 32px; }
.verdict__l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.verdict__label { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.verdict__word { font-size: 72px; font-weight: 700; letter-spacing: -2.448px; line-height: 79px; }
.verdict--re .verdict__word { font-size: 64px; letter-spacing: -2.176px; line-height: 70px; }
.v-reject { color: var(--red); } .v-risk { color: var(--amber); } .v-ok { color: var(--green); }
.verdict__text { font-size: 16px; line-height: 23px; margin: 0; }
.vconf { width: 300px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.vconf b { font-size: 44px; font-weight: 700; letter-spacing: -1.496px; line-height: 44px; display: block; }
.vconf .muted { font-size: 15px; font-weight: 500; line-height: 20px; }
.vconf .bar { height: 10px; border-radius: 5px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.first { width: 440px; flex: none; }
.reason { display: flex; gap: 12px; font-size: 15px; font-weight: 500; line-height: 22px; }
.reason i { width: 28px; height: 28px; border-radius: 14px; background: #D92D3A14; color: var(--red); font-size: 13px; font-weight: 700; font-style: normal; display: grid; place-items: center; flex: none; }
.reason--amber i { background: #F0A21B24; color: var(--amber); }
.findings { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 8px; }
.pos { width: 340px; flex: none; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 100px; }
.pos__t { font-size: 20px; font-weight: 700; letter-spacing: -0.24px; line-height: 22px; }
.pos__list { background: var(--glass); border-radius: 24px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.pos__item { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 12px; border-radius: 18px; text-align: left; width: 100%; }
.pos__item--all { min-height: 46px; }
.pos__item.on { background: #fff; box-shadow: 0 2px 8px #0E1E331F; }
.pos__item .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pos__item .t b { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos__item--all .t b { font-weight: 600; }
.pos__item .t span { font-size: 12px; color: var(--ink-2); }
.pos__n { width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.pos__n--r { background: #D92D3A14; color: var(--red); } .pos__n--a { background: #F0A21B24; color: var(--amber); }
.pos__cnt { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fnd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sec { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.sec--gap { padding-top: 12px; }
.sec i { width: 12px; height: 12px; border-radius: 6px; flex: none; }
.sec b { font-size: 22px; font-weight: 700; letter-spacing: -0.264px; line-height: 24px; }
.sec span { font-size: 20px; font-weight: 600; color: var(--ink-3); }
.fc { background: #FFFFFFD1; border-radius: 24px; box-shadow: 0 6px 20px #16345A14; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.fc__head { display: flex; gap: 10px; align-items: flex-start; }
.fc__title { flex: 1; min-width: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.25px; line-height: 24px; }
.fc__pos { height: 26px; border-radius: 13px; padding: 0 10px; background: var(--tint); color: var(--ink-2); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; flex: none; }
.fc__rows { display: flex; flex-direction: column; gap: 8px; }
.fc__row { display: flex; gap: 12px; }
.fc__row > span { width: 150px; flex: none; font-size: 14px; font-weight: 500; color: var(--ink-2); padding-top: 1px; }
.fc__row > div { flex: 1; min-width: 0; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.fc__row--how > div { font-weight: 500; }
.fc__second { display: flex; gap: 10px; background: #1D5FE00F; border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 20px; }
.fc__act { display: flex; justify-content: flex-end; gap: 18px; }
.fc__act button { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.notes { background: #FFFFFF8C; border-radius: 20px; }
.notes summary { list-style: none; cursor: pointer; height: 58px; padding: 0 18px; display: flex; align-items: center; gap: 10px; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary i { width: 12px; height: 12px; border-radius: 6px; background: var(--ink-3); flex: none; }
.notes summary b { font-size: 16px; font-weight: 600; } .notes summary span { font-size: 14px; color: var(--ink-2); flex: 1; }
.notes[open] summary svg { transform: rotate(180deg); }
.notes__body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.empty-ok { display: flex; align-items: center; gap: 10px; background: var(--glass); border-radius: 20px; padding: 16px 18px; font-size: 15px; font-weight: 500; }
.cmp { width: 380px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.cmp__box { background: var(--glass); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.cmp__box > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.cmp__v { display: flex; align-items: center; gap: 10px; }
.cmp__v b { font-size: 40px; font-weight: 700; letter-spacing: -1.36px; line-height: 40px; }
.cmp__v .old { color: var(--ink-3); } .cmp__v small { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.fixed { background: var(--glass); border-radius: 22px; display: flex; flex-direction: column; }
.fixed__row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--hair); font-size: 15px; font-weight: 500; }
.fixed__row:last-child { border-bottom: 0; }

/* ---------- ошибки ---------- */
.errbox { padding: 48px; display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 440px; }
.errbox__m { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.errbox__ic { width: 64px; height: 64px; border-radius: 32px; display: grid; place-items: center; background: #F0A21B24; }
.errbox__ic--r { background: #D92D3A14; }
.errbox h2 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.816px; line-height: 37px; }
.errbox p { margin: 0; font-size: 17px; line-height: 25px; }
.errbox p.muted { font-size: 16px; line-height: 23px; }
.errbox__btns { display: flex; gap: 10px; padding-top: 6px; flex-wrap: wrap; }
.ctx-no { background: var(--glass); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ctx-no span { font-size: 12px; font-weight: 500; color: var(--ink-2); } .ctx-no b { font-size: 17px; font-weight: 600; }

/* ---------- окна ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.sheet__shade { position: absolute; inset: 0; background: #0E1E3333; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sheet__box { position: relative; width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 36px; padding: 28px; background: #FFFFFFE6; box-shadow: var(--sh-lg); display: flex; flex-direction: column; gap: 14px; animation: pop .22s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.sheet__box h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.6px; padding-right: 40px; }
.sheet__close { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; border-radius: 18px; background: var(--tint); display: grid; place-items: center; }
.seg { display: flex; padding: 4px; border-radius: 22px; background: var(--tint); gap: 4px; }
.seg button { flex: 1; height: 40px; border-radius: 18px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 3px 10px #0E1E3321; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags button { height: 36px; padding: 0 14px; border-radius: 18px; background: var(--tint); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tags button.on { background: #1D5FE01A; color: var(--accent); }
.ta { width: 100%; min-height: 110px; border-radius: 18px; border: 0; background: var(--field); box-shadow: inset 0 0 0 1px var(--hair); padding: 14px 16px; font-size: 16px; resize: vertical; outline: 0; }
.hist { display: flex; flex-direction: column; background: var(--glass); border-radius: 20px; }
.hist a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); }
.hist a:last-child { border-bottom: 0; }
.hist b { display: block; font-size: 15px; font-weight: 600; } .hist small { font-size: 13px; color: var(--ink-2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 22px; font-size: 14px; font-weight: 500; }

/* ---------- узкий ПК / планшет: колонки друг под другом ---------- */
@media (max-width: 1180px) {
  .page { padding: 22px 32px 4px; } .top { padding: 16px 24px 0; } .foot { padding: 0 32px; }
  .work, .sum, .findings { flex-direction: column; }
  .work__side, .work__side--400, .first, .pos, .cmp { width: 100%; position: static; }
  .ready { position: static; }
  .head { flex-direction: column; align-items: flex-start; }
}
/* ---------- телефон: рамки «PreTender · Телефон» (390) ---------- */
@media (max-width: 640px) {
  body::before { background-image: url(/img/bg-phone.webp); }
  .blue--enter { background-image: url(/img/card-enter-phone.webp); }
  .top { padding: 0 16px; }   /* без подложки — так задумано (Адиль, 29.11): при прокрутке остаётся только знак PT */
  .logo__svg { height: 21px; }   /* телефон: 24 → 21 (Адиль, 29.11) */
  .top__bar { height: 60px; padding: 0; background: none; box-shadow: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hbtn { width: 40px; height: 40px; border-radius: 20px; padding: 0; justify-content: center; }
  .hbtn .lbl { display: none; }
  .hbtn .badge { position: absolute; top: -3px; right: -3px; }
  .page { padding: 4px 16px 8px; gap: 16px; }
  .foot { padding: 0 16px; height: 56px; }
  .steps { display: none; }
  .msteps { display: flex; flex-direction: column; gap: 8px; width: 100%; }
  .msteps__t { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--ink-2); }
  .msteps__t b { font-weight: 600; color: var(--ink); }
  .msteps__bars { display: flex; gap: 4px; } .msteps__bars i { flex: 1; height: 4px; border-radius: 2px; background: #0E1E331A; } .msteps__bars i.on { background: var(--ink); }
  .head { gap: 16px; flex-direction: column-reverse; align-items: stretch; }
  .h1 { font-size: 30px; letter-spacing: -0.72px; line-height: 33px; }
  .sub { font-size: 15px; line-height: 21px; }
  .blue { border-radius: 32px; }
  .enter { padding: 20px; gap: 14px; }
  .enter__top { gap: 14px; }
  .enter__title { font-size: 22px; letter-spacing: -0.264px; line-height: 24px; }
  .enter__text { font-size: 14px; line-height: 20px; }
  .enter__row { flex-direction: column; padding-top: 0; }
  .field { height: 56px; border-radius: 17.92px; flex: none; } .field input { font-size: 16px; }
  .enter__row .btn-dark { width: 100%; height: 54px; border-radius: 27px; font-size: 16px; }
  .what-wrap { display: none; }
  .next { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
  .next div { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
  .next i { width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); background: #FFFFFFB3; box-shadow: 0 3px 10px #16345A1F, inset 0 1px 1px #FFFFFFF2; flex: none; }
  .panel { border-radius: 28px; padding: 20px; }
  .sample__head { font-size: 13px; }
  .sample__word { font-size: 24px; letter-spacing: -0.576px; line-height: 26px; }
  .sample .list, .sample .chip--amber, .sample .spacer, .mine-wrap { display: none; }
  .lot__meta { flex-wrap: wrap; gap: 10px 20px; } .lot__cust { flex-basis: 100%; }
  .flow, .flow--check, .cl, .errbox { padding: 20px; }
  .errbox { min-height: 0; }
  .prog__pct, .flow--check .prog__pct { font-size: 34px; line-height: 38px; }
  .cstages { flex-direction: column; }
  .drop { flex-direction: column; align-items: stretch; } .drop__btns .btn-white { flex: 1; }
  .row { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
  .row__btns { width: 100%; justify-content: flex-end; }
  .grp__name b { font-size: 17px; }
  .verdict { flex-direction: column; align-items: stretch; padding: 22px; gap: 18px; }
  .verdict__word, .verdict--re .verdict__word { font-size: 34px; letter-spacing: -0.816px; line-height: 37px; }
  .vconf { width: 100%; } .vconf b { font-size: 24px; line-height: 24px; letter-spacing: -0.576px; }
  .fc { padding: 16px; } .fc__head { flex-direction: column; }
  .fc__row { flex-direction: column; gap: 2px; } .fc__row > span { width: auto; }
  .ract__b { width: 100%; } .ract__b > * { flex: 1; justify-content: center; }
  .errbox h2 { font-size: 26px; line-height: 30px; }
  .sheet { place-items: end center; padding: 8px; } .sheet__box { border-radius: 28px; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { body { background: #fff; } .top, .foot, .ract__b, .fc__act, .pos, #sheet, .steps { display: none !important; } .findings, .sum { flex-direction: column; } .panel, .fc, .glass { box-shadow: none; backdrop-filter: none; } }

a.btn-soft, a.btn-dark { text-decoration: none; }
@media (min-width: 1181px) { .sample { min-height: 509px; } .mine { min-height: 104px; } }
/* правки по сверке с макетом (чек-лист) */
.drop { outline: 1.5px solid #1D5FE04D; outline-offset: -1.5px; }
.row--auto { background: #0E1E3308; } .row--auto .row__t b { color: var(--ink-2); }
.autochip { align-self: flex-start; display: inline-flex; align-items: center; height: 20px; border-radius: 10px; padding: 0 8px; background: var(--tint); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.step--done .step__n { background: none; }
/* то, что есть только на ПК или только на телефоне в макете */
.ph { display: none; }
@media (max-width: 640px) {
  .pc { display: none; } .ph { display: initial; } br.ph { display: inline; } div.ph { display: block; }
  .sub:has(> .pc:only-child) { display: none; }
  .sample .chip--gray { display: none; } .sample .chip--amber { display: inline-flex; }
  .sample { gap: 12px; }
}

/* ---------- движение (21.11, отзыв Адиля: «резко на телефоне»; правила animate: transform/opacity, --ease-out, < 300 мс) ---------- */
/* нажатие кнопки — отклик, 120 мс */
.btn-dark, .btn-soft, .btn-white, .btn-glass, .btn-text, .icbtn, .sheet__close, .pfile button { transition: transform 120ms var(--ease-out), background-color 160ms ease, opacity 160ms ease; }
.btn-dark:active, .btn-soft:active, .btn-white:active, .btn-glass:active, .btn-text:active, .icbtn:active, .sheet__close:active { transform: scale(0.97); }
/* окна: открытие и закрытие на переходах (прерываются без рывка), выход тем же путём, что вход */
.sheet__box { animation: none; transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out); }
.sheet__shade { transition: opacity 200ms var(--ease-out); }
.sheet[data-state="closed"] .sheet__box { opacity: 0; transform: translateY(16px) scale(0.98); }
.sheet[data-state="closed"] .sheet__shade { opacity: 0; }
/* всплывающее сообщение — снизу, уходит вниз */
.toast { transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
.toast[data-state="closed"] { opacity: 0; transform: translateX(-50%) translateY(12px); pointer-events: none; }
/* 21.11: переключатель языка «Рус / Қаз» — как в макете Адиля (таза): светлая дорожка, активный — белая «таблетка» с тенью */
.lang { display: inline-flex; align-items: stretch; height: 44px; width: 108px; padding: 3px; border-radius: 22px; background: #0E1E3312; flex-shrink: 0; }
.lang button { flex: 1 1 0; border: 0; background: none; border-radius: 19px; font: 500 14px/1 var(--font); color: var(--ink-2); cursor: pointer; transition: background-color .2s var(--ease-out), color .2s, box-shadow .2s; }
.lang button.on { background: #FFFFFFF2; color: var(--ink); font-weight: 600; box-shadow: 0 3px 10px #0E1E3326, inset 0 1px 1px #fff; }
.lang button:active { transform: scale(.97); }
@media (max-width: 640px) { .lang { height: 40px; width: 96px; } .lang button { font-size: 13px; } }
/* 21.11 (Адиль): сводка «разложили по строкам» после загрузки разом и подсветка пустых строк */
.sorted { background: #22A35A12; border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.sorted--miss { background: #F0A21B14; }
.sorted__t { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.sorted p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.sorted .btn-white { align-self: flex-start; }
.row--miss { background: #F0A21B0D; } .row--miss .row__t b::after { content: ' · нет файла'; font-weight: 500; color: var(--amber); }
.row--flash { animation: rowFlash 1.2s var(--ease-out); }
@keyframes rowFlash { 0%, 30% { background: #F0A21B38; } 100% { background: #F0A21B0D; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* кнопки в рамке ошибки — рядом, одной высоты и ширины */
.errbox__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 540px; }
.errbox__btns > button, .errbox__btns > .btn-soft { width: 100%; height: 54px; border-radius: 27px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
.errbox__btns > button:only-child { grid-column: 1 / -1; max-width: 270px; }
@media (max-width: 640px) { .errbox__btns { grid-template-columns: 1fr; max-width: none; } .errbox__btns > button:only-child { max-width: none; } }

/* 21.11 (Адиль, iPhone): фон обрывался внизу — Safari на iPhone не поддерживает background-attachment: fixed. Фон — отдельный неподвижный слой */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #EEF4FB url(/img/bg-pc.webp) center / cover no-repeat; pointer-events: none; }
@media (max-width: 640px) { body::before { background-image: url(/img/bg-phone.webp); } }
