/* check-chz.css — публичная проверка кода маркировки (/check_chz).
   Вёрстка перенесена из макета целиком и приведена к нашим именам (chk-*) и
   токенам design-base: макет нёс СВОЮ копию дизайн-системы, и второй экземпляр
   в проде немедленно разъехался бы с первым. Шрифт системный: Inter в макете
   был подставным вместо SF Pro и в продукт не едет. */

/* =====================================================================
   MarketFox — Colors, Type & Tokens
   ---------------------------------------------------------------------
   System matches what's in product today: Apple iOS palette + iOS
   typographic scale + iOS-style radii/shadows. Treat this file as the
   single source of truth for tokens — every other component reads from
   these custom properties.
   ===================================================================== */

/* SF Pro is the intended product font.
   We ship Inter as a free, near-equivalent substitute for prototyping.
   Drop SF Pro .woff2 files into fonts/ to swap in production.  */
/* cyrillic-ext */

/* cyrillic */

/* greek-ext */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek-ext */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek-ext */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek-ext */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek-ext */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */





/* =====================================================================
   Element defaults
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-800);
  font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Semantic type — h1 = Large Title, h2 = Title 1, etc. */
h1, .t-large-title {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin: 0;
}
h2, .t-title-1 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  margin: 0;
}
h3, .t-title-2 {
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}
.t-headline {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--gray-900);
}
.t-body {
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  color: var(--gray-800);
}
.t-callout {
  font-size: 14px;
  line-height: 19px;
  font-weight: 400;
}
.t-subhead {
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
}
.t-footnote {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--gray-600);
}
.t-caption {
  font-size: 11px;
  line-height: 13px;
  color: var(--gray-600);
}

/* Section label — used widely (ОСНОВНАЯ ИНФОРМАЦИЯ, НАПРАВЛЕНИЕ…) */
.t-section-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* Brand accent — used for the company name beneath page H1 */
.t-page-brand {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

code, kbd, pre { font-family: var(--font-mono); font-size: 13px; }


html, body {
  margin: 0;
  padding: 0;
  background: #fff;
}

body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Reusable token labels under swatches */
.lbl {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  line-height: 14px;
  color: var(--gray-800);
}
.lbl .name { font-family: var(--font-mono); }
.lbl .meta { color: var(--gray-600); font-family: var(--font-mono); }

.row { display: flex; gap: 16px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.swatch {
  width: 64px; height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(11,18,32,.06);
}
.swatch.chk-legend-item { width: 96px; height: 72px; }
.swatch.sm { width: 48px; height: 36px; }

body{padding:28px;background:var(--gray-50);font-family:-apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;gap:0}
a{color:var(--color-primary)}a:hover{color:#0069DB}

.note b{color:var(--gray-900);font-weight:600}
/* 1120px — как у остальных публичных страниц (.ofx-wrap в offer.css) */
.chk-page{max-width:1120px;margin:0 auto;background:#fff;border:1px solid var(--gray-100);border-radius:var(--radius-xl);padding:40px 44px 44px}
.chk-h1{font:800 32px/38px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--gray-900);letter-spacing:-.02em}
.chk-lead{font:400 16px/24px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--gray-600);margin-top:10px;max-width:620px;text-wrap:pretty}

.chk-form{background:var(--gray-50);border:1px solid var(--gray-100);border-radius:var(--radius-lg);padding:20px;margin-top:24px}
.chk-label{font:600 11px/14px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--gray-600);margin-bottom:8px}
.chk-input{width:100%;box-sizing:border-box;resize:none;border:1px solid var(--gray-200);border-radius:var(--radius-md);background:#fff;padding:13px 14px;font:400 14px/20px var(--font-mono);color:var(--gray-900);min-height:56px;outline:none;transition:border-color .15s,box-shadow .15s}
.chk-input::placeholder{color:var(--gray-500)}
.chk-input:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--tint-primary-soft)}
.chk-hint{font:400 13px/18px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--gray-600);margin-top:8px}
.chk-actions{display:flex;align-items:center;gap:12px;margin-top:14px}
.chk-btn{border:0;cursor:pointer;font:600 15px/1 -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;border-radius:var(--radius-md);padding:13px 22px;background:var(--color-primary);color:#fff;transition:background .15s;display:inline-flex;align-items:center;gap:9px}
.chk-btn:hover{background:#0069DB}
.chk-btn[disabled]{opacity:.6;cursor:default}
.chk-spin{width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:sp .7s linear infinite;display:none}
.chk-btn.busy .chk-spin{display:block}
@keyframes sp{to{transform:rotate(360deg)}}
.chk-btn.chk-btn-scan{background:var(--gray-50);color:var(--gray-900);gap:8px}
.chk-btn.chk-btn-scan:hover{background:var(--gray-100)}
.chk-btn.chk-btn-scan svg{width:18px;height:18px}
.chk-samples{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font:400 13px/18px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--gray-500)}
.chk-smp{border:1px solid var(--gray-200);background:#fff;border-radius:var(--radius-pill);padding:6px 11px;font:500 12px/16px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--gray-600);cursor:pointer;transition:border-color .15s,color .15s}
.chk-smp:hover{border-color:var(--gray-300);color:var(--gray-900)}

/* result */
.chk-result{display:none;margin-top:16px;border:1px solid var(--gray-100);border-radius:var(--radius-lg);overflow:hidden;animation:in .28s cubic-bezier(.16,.84,.32,1)}
.chk-result.on{display:block}
@keyframes in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.chk-head{display:flex;align-items:center;gap:12px;padding:16px 20px}
.chk-result.ok .chk-head{background:var(--tint-success-soft)}
.chk-result.off .chk-head{background:var(--gray-100)}
.chk-result.warn .chk-head{background:var(--tint-warning-soft)}
.chk-result.bad .chk-head{background:var(--tint-danger-soft)}
.chk-dot{width:9px;height:9px;border-radius:var(--radius-pill);flex:0 0 auto}
.chk-result.ok .chk-dot{background:var(--color-success)}
.chk-result.off .chk-dot{background:var(--gray-400)}
.chk-result.warn .chk-dot{background:var(--color-warning)}
.chk-result.bad .chk-dot{background:var(--color-danger)}
.chk-status{font:700 17px/22px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;letter-spacing:-.01em}
.chk-result.ok .chk-status{color:#1B7A37}.chk-result.off .chk-status{color:var(--gray-800)}.chk-result.warn .chk-status{color:#9A5B00}.chk-result.bad .chk-status{color:#C22A22}
.chk-body{padding:16px 20px 18px;background:#fff}
.chk-note{font:400 15px/22px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--gray-800);max-width:600px;text-wrap:pretty}
.chk-rows{margin-top:6px}
.chk-row{display:flex;gap:16px;padding:9px 0;border-bottom:1px solid var(--gray-100);font:400 14px/20px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif}
.chk-row:first-child{border-top:1px solid var(--gray-100);margin-top:8px}
.chk-row:last-child{border-bottom:0}
.chk-row .chk-key{flex:0 0 150px;color:var(--gray-500)}
.chk-row .chk-val{color:var(--gray-900);min-width:0;text-wrap:pretty}
.chk-viz{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:14px;padding:12px 16px;background:var(--gray-50);border:1px solid var(--gray-100);border-radius:var(--radius-md)}
/* Подпись над значением, а не рядом: в макете внутри сегмента стояли блочные
   элементы, и стиль полагался на это. Со строчными подпись слипалась со
   значением в одну строку («Код товара02900902536004»). */
.chk-seg{display:flex;flex-direction:column;gap:2px;min-width:0}
.chk-seg .chk-seg-key{font:600 9.5px/13px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;letter-spacing:.07em;text-transform:uppercase;color:var(--gray-500)}
.chk-seg .chk-seg-val{font:400 14px/20px var(--font-mono);color:var(--gray-900);font-variant-numeric:tabular-nums;word-break:break-all}
.chk-seg.chk-dim .chk-seg-val{color:var(--gray-500)}
.chk-tl{margin-top:14px;padding-top:14px;border-top:1px solid var(--gray-100);display:grid;gap:9px}
.chk-tle{display:flex;gap:10px;align-items:baseline;font:400 14px/19px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--gray-600)}
.chk-tle .chk-td{width:7px;height:7px;border-radius:var(--radius-pill);background:var(--gray-300);flex:0 0 auto;position:relative;top:-1px}
.chk-tle b{color:var(--gray-900);font-weight:600}
.chk-tle .chk-tdt{font:400 12px/16px var(--font-mono);color:var(--gray-500)}
.chk-result.ok .chk-tle:last-child .chk-td{background:var(--color-success)}
.chk-result.off .chk-tle:last-child .chk-td{background:var(--gray-600)}
.chk-result.warn .chk-tle:last-child .chk-td{background:var(--color-warning)}
.chk-promo-line{display:flex;align-items:center;gap:8px;margin-top:14px;font:400 13px/18px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--gray-600)}
.chk-promo-line a{font-weight:600;text-decoration:none}
.chk-again{border:0;background:none;font:600 14px/1 -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--color-primary);cursor:pointer;padding:10px 0 0;margin-top:12px;border-top:1px solid var(--gray-100);width:100%;text-align:left;display:block}

/* legend */
.chk-h2{font:700 20px/26px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--gray-900);letter-spacing:-.01em;margin:34px 0 4px}
.chk-legend{margin-top:10px;border:1px solid var(--gray-100);border-radius:var(--radius-lg);overflow:hidden}
.chk-legend-item{display:flex;gap:14px;padding:14px 18px;border-bottom:1px solid var(--gray-100);align-items:flex-start}
.chk-legend-item:last-child{border-bottom:0}
.chk-legend-item .chk-dot{margin-top:7px}
.chk-legend-item .chk-dot.ok{background:var(--color-success)}.chk-legend-item .chk-dot.off{background:var(--gray-400)}.chk-legend-item .chk-dot.warn{background:var(--color-warning)}.chk-legend-item .chk-dot.bad{background:var(--color-danger)}
.chk-legend-item b{font:600 15px/21px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--gray-900);display:block}
.chk-legend-item p{font:400 14px/20px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--gray-600);margin:2px 0 0;max-width:560px;text-wrap:pretty}

/* wb banner */
.chk-promo{margin-top:26px;border:1px solid var(--gray-100);border-radius:var(--radius-lg);padding:22px 24px;background:linear-gradient(135deg,var(--tint-primary-soft) 0%,#fff 55%)}
.chk-promo-title{font:700 18px/24px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--gray-900);letter-spacing:-.01em}
.chk-promo p{font:400 14px/21px -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;color:var(--gray-600);margin:8px 0 0;max-width:600px;text-wrap:pretty}
.chk-promo .chk-btn{margin-top:14px;padding:11px 18px;font-size:14px}
@media (max-width:640px){
  body{padding:12px}
  .chk-page{padding:22px 16px 26px;border-radius:var(--radius-lg)}
  .chk-h1{font-size:24px;line-height:29px}
  .chk-lead{font-size:15px;line-height:22px}
  .chk-form{padding:16px;margin-top:18px}
  .chk-actions{flex-direction:column;align-items:stretch;gap:10px}
  .chk-btn{justify-content:center;padding:14px 22px}
  .chk-samples{justify-content:flex-start}
  .chk-head{padding:14px 16px}
  .chk-status{font-size:16px;line-height:21px}
  .chk-body{padding:14px 16px 16px}
  .chk-row{flex-direction:column;gap:2px;padding:8px 0}
  .chk-row .chk-key{flex:none;font-size:12px;line-height:16px}
  .chk-viz{flex-direction:column;gap:10px;padding:12px 14px}
  .chk-h2{margin-top:28px}
  .chk-legend-item{padding:13px 14px}
  .chk-promo{padding:18px 16px}
  .chk-promo .chk-btn{width:100%;justify-content:center}
}

/* ---- сканер камерой (в макете его не было) ---- */
.chk-scanned{font-size:12px;color:var(--gray-500);margin:8px 0 0;
  font-family:var(--font-mono,ui-monospace,Menlo,monospace);word-break:break-all;line-height:1.4}
.chk-sign{margin:0 0 14px;padding:10px 12px;border-radius:var(--radius-lg);font-size:14px;font-weight:500}
.chk-sign.ok{background:var(--tint-success-soft);color:var(--color-success-deep,#1a7f37)}
.chk-sign.warn{background:var(--tint-warning-soft);color:var(--color-amber,#b45309)}

/* Полноэкранный оверлей: код ищут телефоном на весу, и любое поле зрения,
   кроме картинки с камерой, только мешает навестись. */
.chk-scanner{position:fixed;inset:0;z-index:100;background:#000;display:flex;flex-direction:column}
.chk-scanner[hidden]{display:none}
.chk-scanner-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;color:#fff}
.chk-scanner-title{font-size:15px;font-weight:600}
.chk-scanner-close{background:none;border:none;color:#fff;font-size:30px;line-height:1;cursor:pointer;padding:0 4px}
.chk-scanner-stage{position:relative;flex:1;overflow:hidden}
.chk-scanner-stage video{width:100%;height:100%;object-fit:cover;display:block}
/* Рамка-прицел: код мелкий, и без ориентира телефон держат слишком далеко. */
.chk-scanner-frame{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:min(62vw,260px);aspect-ratio:1;border:2px solid rgba(255,255,255,.9);
  border-radius:14px;box-shadow:0 0 0 100vmax rgba(0,0,0,.45)}
.chk-scanner-hint{margin:0;padding:16px 22px 26px;color:rgba(255,255,255,.85);font-size:14px;line-height:1.45;text-align:center}

/* ---- шапка и подвал страницы ---- */
/* Шапка без липкости и без разделителя: страница короткая, полоса под
   логотипом ничего не отделяет и только режет её пополам. */
.chk-top{background:transparent}
.chk-top-in{max-width:1120px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between}
.chk-logo{font-weight:700;font-size:18px;letter-spacing:-.02em;color:var(--gray-900);text-decoration:none}
.chk-logo span{color:var(--color-primary)}
.chk-back{font-size:14px;color:var(--color-primary);text-decoration:none;font-weight:500}
.chk-foot{padding:28px 0 8px;text-align:center;color:var(--gray-500);font-size:13px}
.chk-foot a{color:var(--gray-500);text-decoration:none;margin:0 8px}
.chk-foot a:hover{color:var(--gray-900)}

/* Пояснение вместо значения: это фраза, а не код, — моноширинный шрифт и
   разрыв по любому символу тут только мешают. */
.chk-seg.chk-note-seg .chk-seg-val{font:400 13px/18px -apple-system,system-ui,sans-serif;
  color:var(--gray-500);word-break:normal}
