/* ============================================================
   TAQDIMOT — dizayn tizimi

   Panel bilan BIR XIL tilda gapiradi: o'sha navy/ko'k palitra,
   o'sha perimetr-skaner belgisi. Taqdimot va mahsulot bir-biriga
   begona ko'rinmasligi kerak.

   Animatsiya qoidasi: har bir harakat NARSA TUSHUNTIRISHI shart.
   Bezak uchun harakat yo'q. Kaskad qatorlari haqiqiy `every_n`
   qiymatlarida yuradi; quti chizilishi haqiqiy aniqlash koordinatasi.
   ============================================================ */

:root {
  --bg:       #050b15;
  --bg-2:     #08111f;
  --panel:    #0d1829;
  --panel-2:  #111f36;
  --line:     #1a2942;
  --line-2:   #24374f;

  --ink:      #eaf1fb;
  --ink-2:    #a9bcd6;
  --muted:    #6d829f;
  --dim:      #4d6180;

  --acc:      #58a8ff;   /* belgi halqasi — asosiy urg'u */
  --acc-2:    #8ac6ff;
  --acc-deep: #1f6fd0;

  --ok:       #35c46a;
  --warn:     #ffb02e;
  --dang:     #ff5f5f;
  --crit:     #ff3b3b;

  --r:   14px;
  --r-l: 22px;

  --ease:   cubic-bezier(.22,.8,.36,1);
  --ease-s: cubic-bezier(.34,1.4,.64,1);

  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}

/* Harakatni kamaytirish so'ralgan bo'lsa — hamma narsa darhol ko'rinadi.
   Bu majburiy: taqdimot animatsiyasiz ham TO'LIQ o'qilishi kerak. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   BO'LIM KARKASI
   ============================================================ */

.sec {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 8vh, 110px) clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.sec > .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }
.sec--auto { min-height: 0; }

/* Har bo'limning o'z yorug'lik markazi — ko'z qayerga qarashini biladi */
.sec::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 18% 0%, rgba(88,168,255,.10), transparent 60%);
  pointer-events: none;
}
.sec--warm::before { background: radial-gradient(120% 70% at 82% 0%, rgba(255,176,46,.09), transparent 60%); }
.sec--dang::before { background: radial-gradient(120% 70% at 50% 0%, rgba(255,95,95,.10), transparent 62%); }
.sec--flat::before { background: none; }

.sec--alt { background: var(--bg-2); }

/* ============================================================
   TIPOGRAFIYA
   ============================================================ */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 2.2px;
  color: var(--acc); text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--acc), transparent);
}
.eyebrow--warn { color: var(--warn); }
.eyebrow--warn::before { background: linear-gradient(90deg, var(--warn), transparent); }
.eyebrow--dang { color: var(--dang); }
.eyebrow--dang::before { background: linear-gradient(90deg, var(--dang), transparent); }

h2.t {
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 820; letter-spacing: -.02em; line-height: 1.08;
  margin-bottom: 16px;
}
h3.t3 {
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 760; letter-spacing: -.01em; line-height: 1.2;
  margin-bottom: 10px;
}
.lead {
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--ink-2); max-width: 74ch;
}
.lead b, .lead strong { color: var(--ink); font-weight: 700; }
.small { font-size: 13px; color: var(--muted); }
.tiny  { font-size: 11.5px; color: var(--dim); }

.acc { color: var(--acc); }
.mono {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   OCHILISH ANIMATSIYASI (IntersectionObserver .on qo'yadi)
   ============================================================ */

.rv {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .7s var(--ease),
    transform .7s var(--ease);
}
.rv.on { opacity: 1; transform: none; }

/* Ketma-ket ochilish — ro'yxatlar bittalab kiradi */
.rv[data-d="1"] { transition-delay: .08s; }
.rv[data-d="2"] { transition-delay: .16s; }
.rv[data-d="3"] { transition-delay: .24s; }
.rv[data-d="4"] { transition-delay: .32s; }
.rv[data-d="5"] { transition-delay: .40s; }
.rv[data-d="6"] { transition-delay: .48s; }
.rv[data-d="7"] { transition-delay: .56s; }
.rv[data-d="8"] { transition-delay: .64s; }

.rv--l  { transform: translateX(-34px); }
.rv--r  { transform: translateX(34px); }
.rv--sc { transform: scale(.94); }
.rv--l.on, .rv--r.on, .rv--sc.on { transform: none; }

/* ============================================================
   NAVIGATSIYA — o'ng chekkadagi nuqtalar + yuqoridagi progress
   ============================================================ */

.prog {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--acc-deep), var(--acc));
  z-index: 90; transition: width .12s linear;
}

.dots {
  position: fixed; right: clamp(10px, 1.6vw, 22px); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 11px;
  z-index: 80;
}
.dots a {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-2); border: 0; padding: 0; cursor: pointer;
  display: block; position: relative;
  transition: background .25s var(--ease), transform .25s var(--ease-s);
}
.dots a:hover { background: var(--dim); transform: scale(1.3); }
.dots a.on { background: var(--acc); transform: scale(1.35); }
.dots a span {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%) translateX(6px);
  white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .4px;
  color: var(--ink-2); background: var(--panel);
  border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.dots a:hover span { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (max-width: 900px) { .dots { display: none; } }

/* ============================================================
   BELGI (perimetr skaneri) — chiziladigan animatsiya
   ============================================================ */

.mark { display: block; overflow: visible; }
.mark .ring   { stroke: var(--acc);   fill: none; stroke-linecap: round; }
.mark .ring2  { stroke: var(--acc-2); fill: none; stroke-linecap: round; opacity: .8; }
.mark .beam   { stroke: var(--acc-2); fill: none; stroke-linecap: round; }
.mark .dot    { fill: var(--acc); }

/* Chizilish: uzunlik JS da o'lchanadi va --len ga yoziladi */
.mark--draw .ring,
.mark--draw .ring2,
.mark--draw .beam {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
}
.mark--draw.go .ring  { animation: draw 1.5s var(--ease) forwards; }
.mark--draw.go .ring2 { animation: draw 1.2s var(--ease) .35s forwards; }
.mark--draw.go .beam  { animation: draw .55s var(--ease) 1.15s forwards; }
.mark--draw .dot      { opacity: 0; }
.mark--draw.go .dot   { animation: pop .6s var(--ease-s) 1.0s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop  { 0% { opacity: 0; transform: scale(.2); } 100% { opacity: 1; transform: scale(1); } }
.mark--draw .dot { transform-origin: 52px 52px; }

/* Aniqlangan obyekt pulsi — tizim "tirik" ekanini bildiradi */
.pulse { transform-origin: 52px 52px; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse {
  0%, 72%, 100% { opacity: 0; transform: scale(.55); }
  18%           { opacity: .55; transform: scale(1); }
  55%           { opacity: 0; transform: scale(2.1); }
}

/* ============================================================
   HERO
   ============================================================ */

.hero { text-align: center; align-items: center; padding-bottom: clamp(78px, 11vh, 130px); }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }

.hero-mark { margin-bottom: clamp(18px, 3vh, 32px); }

.hero h1 {
  font-size: clamp(27px, 4.4vw, 54px);
  font-weight: 840; letter-spacing: -.03em; line-height: 1.06;
  max-width: 22ch; margin-bottom: 18px;
}
.hero .lead { font-size: clamp(14px, 1.45vw, 18px); max-width: 62ch; margin-inline: auto; }

.hero-facts {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(26px, 4vh, 44px);
}
.hero-facts div { text-align: center; }
.hero-facts .n {
  font-size: clamp(23px, 2.9vw, 34px); font-weight: 830;
  letter-spacing: -.02em; line-height: 1;
}
.hero-facts .l { font-size: 11.5px; color: var(--muted); letter-spacing: 1.1px; margin-top: 7px; text-transform: uppercase; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 10.5px; letter-spacing: 1.6px; color: var(--dim); text-transform: uppercase;
}
.scroll-hint i {
  width: 1px; height: 26px; display: block;
  background: linear-gradient(180deg, var(--dim), transparent);
  animation: hint 2s var(--ease) infinite;
}
@keyframes hint { 0%,100% { opacity: .25; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   KARTALAR / SETKA
   ============================================================ */

.grid { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(16px, 2vw, 24px);
  position: relative;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card .k {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 12px;
}
.card .big {
  font-size: clamp(24px, 3vw, 36px); font-weight: 830;
  letter-spacing: -.02em; line-height: 1; margin-bottom: 8px;
}
.card p { font-size: 13.5px; color: var(--ink-2); }

/* Manba yorlig'i — har raqam qayerdan kelganini ko'rsatadi */
.src {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 10.5px; color: var(--dim);
  border-top: 1px solid var(--line); padding-top: 9px; width: 100%;
}
.src::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ok); flex: 0 0 auto;
}

/* ============================================================
   O'LCHANGAN RAQAM (count-up)
   ============================================================ */

.num { font-variant-numeric: tabular-nums; }

/* ============================================================
   PIPELINE — kamera dan jarimagacha
   ============================================================ */

.pipe {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 30px;
}
@media (max-width: 900px) { .pipe { grid-template-columns: 1fr; } }

.pipe-step {
  position: relative;
  padding: 22px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}
.pipe-step:first-child { border-radius: var(--r) 0 0 var(--r); }
.pipe-step:last-child  { border-radius: 0 var(--r) var(--r) 0; }
.pipe-step + .pipe-step { border-left: 0; }
@media (max-width: 900px) {
  .pipe-step, .pipe-step:first-child, .pipe-step:last-child { border-radius: var(--r); }
  .pipe-step + .pipe-step { border-left: 1px solid var(--line); border-top: 0; }
}

.pipe-step .ic { color: var(--acc); margin-bottom: 12px; display: inline-block; }
.pipe-step .nm { font-size: 14px; font-weight: 760; margin-bottom: 5px; }
.pipe-step .ds { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.pipe-step .no {
  position: absolute; top: 10px; left: 12px;
  font-size: 10px; font-weight: 800; color: var(--dim); letter-spacing: 1px;
}

/* Odam qaror qiladigan qadam — vizual jihatdan AJRALIB turadi */
.pipe-step--human { background: var(--panel-2); border-color: var(--acc-deep); }
.pipe-step--human .ic { color: var(--acc-2); }

/* Oqim nuqtasi — ma'lumot qanday yurishini ko'rsatadi */
.pipe-flow {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; pointer-events: none; overflow: hidden;
}
.pipe-flow i {
  position: absolute; top: -2px; left: -6%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 12px 3px rgba(88,168,255,.6);
}
.pipe.on .pipe-flow i { animation: flow 3.4s var(--ease) infinite; }
.pipe.on .pipe-flow i:nth-child(2) { animation-delay: 1.15s; }
.pipe.on .pipe-flow i:nth-child(3) { animation-delay: 2.3s; }
@keyframes flow {
  0%   { left: -2%;  opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 101%; opacity: 0; }
}
@media (max-width: 900px) { .pipe-flow { display: none; } }

/* ============================================================
   KASKAD — modellar har xil tezlikda yuradi (haqiqiy every_n)
   ============================================================ */

.lanes { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.lane {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr minmax(96px, auto);
  gap: 16px; align-items: center;
}
@media (max-width: 760px) { .lane { grid-template-columns: 1fr; gap: 7px; } }

.lane-nm { font-size: 13.5px; font-weight: 720; }
.lane-nm em { display: block; font-style: normal; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }

.lane-track {
  position: relative; height: 34px; border-radius: 9px;
  background: var(--panel); border: 1px solid var(--line);
  overflow: hidden;
}
/* Kadr panjarasi — 30 ta kadr ko'rinadi */
.lane-track .tick {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--line);
}
.lane-track .hit {
  position: absolute; top: 5px; bottom: 5px; width: 6px;
  border-radius: 3px; background: var(--acc);
  opacity: 0; transform: scaleY(.3);
  transition: opacity .18s ease, transform .18s var(--ease-s);
}
.lane-track .hit.lit { opacity: 1; transform: scaleY(1); }
.lane--ppe  .hit.lit { background: var(--warn); }
.lane--fire .hit.lit { background: var(--dang); }

.lane-ms { font-size: 13px; font-weight: 780; text-align: right; }
.lane-ms em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 400; }

/* ============================================================
   QAMROV SETKASI — 74 talab
   ============================================================ */

.cov {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(26px, 1fr));
  gap: 6px; margin-top: 24px;
}
.cov i {
  aspect-ratio: 1; border-radius: 5px; display: block;
  background: var(--line); position: relative;
  transform: scale(.2); opacity: 0;
  transition: transform .45s var(--ease-s), opacity .45s var(--ease), background .3s var(--ease);
}
.cov.on i { transform: scale(1); opacity: 1; }
.cov i.a { background: var(--ok); }
.cov i.b { background: var(--acc); }
.cov i.c { background: var(--warn); }
.cov i.d { background: var(--line-2); }
.cov i[data-off="1"] { opacity: .34; }

.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: block; }

/* ============================================================
   DALIL: HAQIQIY KADRLAR — quti chiziladi
   ============================================================ */

.frames { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 26px; }

.frame {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); overflow: hidden;
}
.frame figure { position: relative; margin: 0; background: #000; aspect-ratio: 16/9; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Aniqlash qutisi — chiziqlar burchakdan o'sadi */
.frame .box {
  position: absolute; border: 2px solid var(--acc);
  border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.5);
  opacity: 0; transform: scale(.9);
  transition: opacity .45s var(--ease), transform .45s var(--ease-s);
}
.frame.on .box { opacity: 1; transform: none; }
.frame .box.warn { border-color: var(--warn); }
.frame .box.dang { border-color: var(--dang); }
.frame .box b {
  position: absolute; top: -21px; left: -2px;
  font-size: 10px; font-weight: 800; letter-spacing: .4px;
  background: var(--acc); color: #04101f; padding: 2px 6px; border-radius: 4px 4px 0 0;
  white-space: nowrap;
}
.frame .box.warn b { background: var(--warn); }
.frame .box.dang b { background: var(--dang); color: #fff; }

.frame figcaption { padding: 14px 16px 16px; }
.frame .fc-t { font-size: 13.5px; font-weight: 740; margin-bottom: 5px; }
.frame .fc-d { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.frame .fc-n { font-size: 11px; color: var(--dim); margin-top: 8px; font-style: italic; }

/* ============================================================
   HAQIQIY FOTOSURATLAR (erkin litsenziya)
   ============================================================ */

.photo {
  position: relative; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--tall { aspect-ratio: 3/4; }
.photo--wide { aspect-ratio: 16/9; }
.photo--sq   { aspect-ratio: 1; }

/* Rasm ustidagi matn o'qilishi uchun pastdan qorayish */
.photo .ov {
  position: absolute; inset: auto 0 0 0; padding: 44px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(5,11,21,.94) 72%);
}
.photo .ov b { display: block; font-size: 13.5px; font-weight: 760; }
.photo .ov span { display: block; font-size: 11.5px; color: var(--ink-2); margin-top: 3px; }

/* Litsenziya — HAR rasmda ko'rinadi, yashirilmaydi */
.photo .lic {
  position: absolute; top: 8px; right: 8px;
  font-size: 9.5px; letter-spacing: .3px;
  background: rgba(5,11,21,.78); color: var(--muted);
  border: 1px solid var(--line); border-radius: 5px;
  padding: 3px 7px; backdrop-filter: blur(6px);
}

/* Ken Burns — sekin yaqinlashuv, faqat ko'rinib turganda */
.photo img { transition: transform 9s linear; }
.photo.on img { transform: scale(1.07); }

/* ============================================================
   SKRINSHOT KO'RSATISH
   ============================================================ */

.shot {
  border: 1px solid var(--line-2); border-radius: var(--r);
  overflow: hidden; background: var(--panel);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.85);
}
.shot img { width: 100%; display: block; }
.shot-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 13px; background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.shot-bar span { margin-left: 8px; font-size: 11px; color: var(--muted); }

/* ============================================================
   HALOLLIK BO'LIMI — ATAYIN sokin. Bezak yo'q.
   Kuchi shundaki, u boshqa bo'limlarga o'xshamaydi.
   ============================================================ */

.honest { border-left: 2px solid var(--dang); padding-left: clamp(16px, 2.4vw, 30px); }
.honest-list { display: flex; flex-direction: column; gap: 2px; margin-top: 24px; }
.honest-row {
  display: grid; grid-template-columns: 1fr minmax(200px, 1.15fr);
  gap: clamp(14px, 2.4vw, 34px);
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .honest-row { grid-template-columns: 1fr; gap: 6px; } }
.honest-row .q { font-size: 14.5px; font-weight: 700; }
.honest-row .a { font-size: 13px; color: var(--ink-2); }
.honest-row .a em { font-style: normal; color: var(--muted); display: block; margin-top: 5px; font-size: 12px; }

/* ============================================================
   JADVAL
   ============================================================ */

.tbl { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 13px; }
.tbl th {
  text-align: left; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted); font-weight: 800; padding: 0 14px 10px 0; border-bottom: 1px solid var(--line-2);
}
.tbl td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.tbl td:first-child { color: var(--ink); font-weight: 660; }
.tbl .r { text-align: right; }
.tbl .good { color: var(--ok); font-weight: 760; }
.tbl .bad  { color: var(--dang); font-weight: 760; }

/* "oldin → keyin" o'qi */
.arrow { color: var(--dim); margin: 0 7px; }

/* ============================================================
   YORLIQLAR
   ============================================================ */

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 720; letter-spacing: .3px;
  padding: 4px 10px; border-radius: 100px;
  border: 1px solid var(--line-2); color: var(--ink-2); background: var(--panel);
}
.tag--ok   { color: var(--ok);   border-color: rgba(53,196,106,.32); background: rgba(53,196,106,.08); }
.tag--warn { color: var(--warn); border-color: rgba(255,176,46,.32); background: rgba(255,176,46,.08); }
.tag--dang { color: var(--dang); border-color: rgba(255,95,95,.32);  background: rgba(255,95,95,.08); }
.tag--acc  { color: var(--acc);  border-color: rgba(88,168,255,.32); background: rgba(88,168,255,.08); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ============================================================
   YAKUN
   ============================================================ */

.end { text-align: center; align-items: center; }
.end .wrap { display: flex; flex-direction: column; align-items: center; }
.end h2 { max-width: 20ch; }

/* ============================================================
   NAZORAT SETKASI — haqiqiy fotosurat + qoida holati
   Rasm chapda, javob o'ngda: ko'z avval sahnani, keyin javobni oladi.
   ============================================================ */

.nz-grid {
  display: grid; gap: clamp(14px, 1.8vw, 22px);
  grid-template-columns: repeat(2, 1fr);
  margin-top: 30px;
}
@media (max-width: 900px) { .nz-grid { grid-template-columns: 1fr; } }

.nz {
  display: grid; grid-template-columns: minmax(150px, 40%) 1fr;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.nz:hover { border-color: var(--line-2); transform: translateY(-3px); }
@media (max-width: 520px) { .nz { grid-template-columns: 1fr; } }

.nz .photo { border: 0; border-radius: 0; height: 100%; aspect-ratio: auto; min-height: 168px; }
.nz-body { padding: 16px 18px 18px; display: flex; flex-direction: column; }
.nz-k {
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 8px;
}
.nz-t { font-size: 16px; font-weight: 780; letter-spacing: -.01em; margin-bottom: 7px; }
.nz-p { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.nz-body .tag { margin-top: 12px; align-self: flex-start; }

/* ============================================================
   KADR YORLIG'I — qoida kodi va ishonch, surat ustida
   ============================================================ */

.fr-badge {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  background: rgba(5,11,21,.82); color: var(--acc);
  border: 1px solid rgba(88,168,255,.34); border-radius: 6px;
  padding: 3px 8px; backdrop-filter: blur(6px);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.fr-badge.warn { color: var(--warn); border-color: rgba(255,176,46,.34); }
.fr-badge.dang { color: var(--dang); border-color: rgba(255,95,95,.4); }

/* Kadr suratlari kesilmasin — aniqlash qutisi kadr chekkasida bo'lishi mumkin */
.frame figure { aspect-ratio: 4/3; }
.frame img { object-fit: contain; background: #05080e; }

/* ============================================================
   SKRINSHOTLAR RO'YXATI
   ============================================================ */

.shots { display: grid; gap: clamp(16px, 2.2vw, 26px); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; } }
/* Birinchi skrinshot — butun kenglikda: bosh sahifa eng muhimi */
.shots > .shot:first-child { grid-column: 1 / -1; }

.shot-cap {
  padding: 12px 15px 14px; font-size: 12.5px; color: var(--ink-2);
  border-top: 1px solid var(--line); line-height: 1.5;
}

/* ============================================================
   HALOLLIK QATORIDAGI JIDDIYLIK NUQTASI
   ============================================================ */

.hj {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 9px; vertical-align: 1px; flex: 0 0 auto;
}

/* ============================================================
   MANBA HAVOLASI (statistika kartalarida)
   ============================================================ */

a.src--a { text-decoration: none; color: var(--dim); transition: color .2s var(--ease); }
a.src--a:hover { color: var(--acc); }
a.src--a::before { background: var(--acc); }

/* Kadr panjarasi ko'rinsin — kaskad qatorlarida kadr chegaralari
   juda xira edi, qadam farqi bilinmasdi */
.lane-track .tick { background: #22344f; }

/* Kadrlar 3 ustunda — 4 ustunda aniqlash qutisi juda kichik chiqardi */
.frames { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .frames { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .frames { grid-template-columns: 1fr; } }

/* Litsenziya yorlig'i suratning PASTIGA — yuqorida sarlavha bilan
   to'qnashardi va ikki qatorga bo'linib ketardi */
.photo .lic {
  top: auto; bottom: 7px; right: auto; left: 7px;
  max-width: calc(100% - 14px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
   TEKSHIRUV NATIJASI — halollik bo'limining yakuni
   ============================================================ */

.verif {
  display: grid; grid-template-columns: minmax(190px, 250px) 1fr;
  gap: clamp(18px, 3vw, 40px); align-items: start;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-2);
}
@media (max-width: 820px) { .verif { grid-template-columns: 1fr; } }

.verif-n { display: flex; flex-direction: column; gap: 14px; }
.vn { display: flex; align-items: baseline; gap: 11px; }
.vn .num { font-size: 30px; font-weight: 830; letter-spacing: -.02em; line-height: 1; }
.vn em { font-style: normal; font-size: 12px; color: var(--muted); }

.verif-t p { font-size: 13.5px; color: var(--ink-2); }
.verif-l { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.verif-l li {
  font-size: 12.5px; color: var(--ink-2); padding-left: 16px; position: relative; line-height: 1.5;
}
.verif-l li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--dang);
}
.verif-l b { color: var(--ink); font-weight: 700; }

/* Statistika raqami — uzun bo'lsa ham KESILMAYDI, faqat kichrayadi */
.num-stat {
  font-size: clamp(21px, 2.5vw, 31px);
  white-space: nowrap; color: var(--dang);
}

/* ============================================================
   CHOP ETISH / PDF

   QAROR: PDF ekrandagi TO'Q dizaynni saqlaydi, oq qog'ozga
   aylantirilmaydi. Sabab — bu marketing hujjati va u asosan
   ekranda ko'riladi; oq fonga o'tkazilsa to'q panel skrinshotlari
   va aniqlash kadrlari begona dog' bo'lib qolardi.

   Har bo'lim yangi sahifadan boshlanadi — natija slayd taxlamiga
   o'xshaydi, uzluksiz uzun varaqqa emas.
   ============================================================ */

@media print {
  html, body { background: var(--bg); color: var(--ink); }

  /* Ekran boshqaruvlari qog'ozda ma'nosiz */
  .dots, .prog, .scroll-hint { display: none !important; }

  /* HAR BO'LIM YANGI SAHIFADAN.
     Uzluksiz oqim sinab ko'rildi va yomon chiqdi: sarlavha sahifa
     oxirida qolib, kartochkalari keyingi sahifaga o'tardi. Bo'lim
     yangi sahifadan boshlansa, sarlavha ustida to'liq varaq bo'ladi
     va bunday uzilish umuman bo'lmaydi. */
  .sec {
    min-height: 0;
    padding: 22px 30px 26px;
    border-bottom: 0;
    break-before: page;
    break-inside: auto;
  }
  .hero { break-before: auto; padding: 100px 30px 80px; }

  /* Animatsiya yakuniy holatida qotadi — aks holda sahifa BO'SH chiqadi */
  .rv, .cov, .frame, .photo, .pipe, .mark--draw { opacity: 1 !important; transform: none !important; }
  .cov i { opacity: 1 !important; transform: none !important; }
  .cov i[data-off="1"] { opacity: .34 !important; }
  .mark--draw .ring, .mark--draw .ring2, .mark--draw .beam {
    stroke-dasharray: none !important; stroke-dashoffset: 0 !important;
  }
  .mark--draw .dot { opacity: 1 !important; }
  .pulse { display: none; }
  .photo img { transform: none !important; }

  /* Kartochka sahifa chegarasida ikkiga bo'linmasin */
  .card, .frame, .nz, .shot, .pipe-step, .lane { break-inside: avoid; }
  .grid, .frames, .nz-grid, .shots { break-inside: auto; }

  a { color: inherit; text-decoration: none; }

  /* --- A4 GA SIG'DIRISH ---
     Ekran o'lchamlari (1440x900) A4 yotiq varag'idan (1123x794 px)
     baland. Quyida tipografiya va rasm o'lchamlari zichlashtiriladi,
     shunda bo'lim sarlavhasi bilan birinchi qatori BIR sahifaga tushadi. */
  h2.t   { font-size: 26px; margin-bottom: 10px; }
  h3.t3  { font-size: 15px; margin-bottom: 6px; }
  .lead  { font-size: 12.5px; max-width: 96ch; }
  .eyebrow { font-size: 10px; margin-bottom: 10px; }
  .hero h1 { font-size: 38px; max-width: 24ch; }
  .hero .lead { font-size: 13px; }
  .hero-facts .n { font-size: 25px; }
  .card .big { font-size: 21px; margin-bottom: 5px; }
  .card p, .nz-p, .fc-d, .tbl td { font-size: 11px; }
  .card .k, .nz-k { font-size: 9.5px; margin-bottom: 7px; }
  .grid, .frames, .nz-grid, .shots { gap: 10px; }
  .card { padding: 12px 14px; }
  .src { font-size: 9px; padding-top: 6px; margin-top: 8px; }

  /* Kadrlar: 9 tasi 6+3 bo'lib ikki sahifaga bo'linadi */
  .frame figure { aspect-ratio: 16/9; }
  .frames > .frame:nth-child(6) { break-after: page; }
  .frame figcaption { padding: 9px 11px 11px; }
  .fc-t { font-size: 12px; margin-bottom: 3px; }
  .fr-badge { font-size: 9px; padding: 2px 6px; }

  /* Skrinshotlar: PDF da hammasi IKKI USTUN.
     Ekranda birinchisi butun kenglikda edi va u sarlavha bilan bitta
     sahifaga sig'masdi — sarlavha yolg'iz qolardi. */
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shots > .shot:first-child { grid-column: auto; }
  /* 6 ta skrinshot 2 + 4 bo'lib aniq taqsimlanadi */
  .shots > .shot:nth-child(2) { break-after: page; }
  /* Rasm balandligi cheklanadi: 2 qator (4 ta karta) bir A4 varag'iga
     bir necha piksel bilan sig'masdi va oxirida BO'SH sahifa qolardi.
     Pastdan ~10% kesiladi — u yerda panelning holat lentasi, ma'lumot yo'q. */
  .shot img { max-height: 285px; object-fit: cover; object-position: top center; }
  .shot-bar { padding: 6px 10px; }
  .shot-bar i { width: 7px; height: 7px; }
  .shot-bar span { font-size: 9.5px; }
  .shot-cap { font-size: 10.5px; padding: 8px 11px 10px; }

  /* Nazorat: 8 kartochka 4+4 bo'lib teng taqsimlanadi */
  .nz-grid > .nz:nth-child(4) { break-after: page; }
  .nz .photo { min-height: 110px; }
  .nz-body { padding: 11px 13px 13px; }
  .nz-t { font-size: 14px; }
  .photo .lic { font-size: 8px; padding: 2px 5px; }
  .tag { font-size: 10px; padding: 3px 8px; }

  /* Kaskad va pipeline */
  .lane-track { height: 26px; }
  .pipe-step { padding: 14px 12px; }
  .pipe-step .ds { font-size: 10.5px; }
  .tbl { margin-top: 14px; }
  .tbl th { font-size: 9.5px; padding-bottom: 7px; }
  .tbl td { padding: 6px 10px 6px 0; }

  /* 74 nuqtali qamrov setkasi — qatorlar pastroq bo'lsa jadval sig'adi */
  .cov { grid-template-columns: repeat(auto-fill, minmax(21px, 1fr));
         gap: 5px; margin-top: 16px; }
  .legend { margin-top: 14px; gap: 14px; }
  .legend span { font-size: 11px; }
}
