/* ============================================================
   ASIA PHARM GROUP — dizayn-tizim
   Konsepsiya: "Tinch ishonch" — iliq neytral minimalizm,
   bitta grotesk shrift (400/500), bitta chuqur yashil aksent.
   ============================================================ */

/* ---------- Shrift: Golos Text (kirill + lotin, variable 400-600) ---------- */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/golos-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/golos-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* ---------- Signatura shrift: JetBrains Mono (o'lchov registri — raqam/indeks/birlik) ---------- */
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../assets/fonts/jbmono-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2070-209F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../assets/fonts/jbmono-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../assets/fonts/jbmono-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2070-209F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../assets/fonts/jbmono-cyrillic-500.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Tokenlar ---------- */
:root {
  color-scheme: light;      /* forma-поля OS dark mode'да o'qилadigan qolsin */
  --bg: #e8e6e1;            /* iliq kulrang-qum sahifa foni */
  --paper: #f3f1ec;         /* och sirt — kartalar, bo'limlar */
  --white: #fbfaf8;         /* faqat forma kartalari */
  --ink: #1b1e1c;           /* yumshoq qora (yashil tusli) */
  --ink-2: rgba(27, 30, 28, 0.68);
  --ink-3: #5b5e5c;         /* ≈4.6:1 paper ustida — AA kichik matn uchun */
  --green: #162954;         /* brend navy — asosiy interaktiv rang */
  --green-deep: #162954;    /* brend to'q fon — qorong'i bo'limlar va futer */
  --brand-green: #00ba4b;   /* brend yashili — logo va to'q fon aksentlari */
  --green-ink: #00732e;     /* och fonda matn uchun quyuqroq yashil — AA ≈4.5:1 */
  --header-h: 4.25rem;      /* sarlavha balandligi — sticky/anchor offsetlari uchun */
  --sand: #c8b69a;          /* iliq qum — to'q fondagi matn urg'usi */
  --cream: rgba(244, 242, 238, 0.92);
  --cream-2: rgba(244, 242, 238, 0.66);
  --cream-3: rgba(244, 242, 238, 0.52);
  --line: rgba(27, 30, 28, 0.16);
  --line-dash: rgba(27, 30, 28, 0.3);
  --line-soft: rgba(27, 30, 28, 0.1);    /* karta ramkalari */
  --line-strong: rgba(27, 30, 28, 0.45);  /* forma chiziqlari */
  --shadow-lift: 0 16px 38px -24px rgba(22, 41, 84, 0.5); /* hover-ko'tarilish soyasi */
  --line-light: rgba(244, 242, 238, 0.18);
  --line-light-dash: rgba(244, 242, 238, 0.32);
  --r-s: 5px;
  --r-m: 10px;
  --gutter: clamp(20px, 3.4vw, 52px);
  /* Masofa shkalasi: 8px asos — 0.5 / 1 / 1.5 / 2 / 2.5 / 3 / 4 / 6 rem */
  --section: clamp(6rem, 10vw, 9rem);
  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
  --dur: 0.45s;
  /* «Рецептура» elevatsiya tokenlari */
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --navy: var(--green);          /* alias: --green hozir navy #162954 ni saqlaydi */
  --vault: #162954;              /* deep dark ground */
  --lumen: #00ba4b;              /* luminous green — FAQAT nur (glow/1px/in-view) */
  --hairline-cool: #c3cbda;      /* steel mist — data-layer salqin hairline */
  --tick: rgba(22, 41, 84, 0.34);/* reticle burchak tiklari */
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
html:focus-within { scroll-behavior: smooth; }
/* iOS Safari: birorta element toshib ketsa ham sahifa yon tomonga surilmasin
   (clip — scroll-konteyner yaratmaydi, sticky buzilmaydi) */
html, body { overflow-x: clip; }
body {
  font-family: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 0.5vw + 9px, 19px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.006em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, a, span, li, dt, dd { overflow-wrap: break-word; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--brand-green); color: #ffffff; }
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7em 1.3em;
  border-radius: 100em;
  font-size: 0.88rem;
  font-weight: 500;
  transform: translateY(-300%);
}
.skip-link:focus-visible { transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.section--dark :focus-visible, .hero :focus-visible, .footer :focus-visible, .mobile-menu :focus-visible {
  outline-color: var(--sand);
}
[id] { scroll-margin-top: calc(var(--header-h) + 0.5rem); }

/* ---------- Tipografika ---------- */
/* lead-matn boshidagi yashil nuqta (eyebrow nuqtasi bilan bir xil), qatorlar osma tekislanadi */
.dot-lead { position: relative; padding-left: calc(7px + 0.6em); }
.dot-lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
  flex: none;
}
.section--dark .eyebrow, .on-dark .eyebrow, .eyebrow.on-dark { color: var(--sand); }
.eyebrow + * { margin-top: 1rem; }

.h-display {
  font-size: clamp(2.7rem, 7.2vw, 6.6rem);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.h-1 {
  font-size: clamp(2.3rem, 5.4vw, 4.7rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h-2 {
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-3 {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.h-4 { font-size: 1.08rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.txt-lg { font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.45; letter-spacing: -0.015em; }
.txt { font-size: 1em; line-height: 1.55; }
.txt-sm { font-size: 0.86rem; line-height: 1.5; }
.muted { color: var(--ink-2); }
.muted-3 { color: var(--ink-3); }
.section--dark .muted, .on-dark .muted { color: var(--cream-2); }
.accent-i { font-style: normal; font-weight: 500; color: var(--brand-green); }
.measure-s { max-width: 30ch; }
.measure-m { max-width: 44ch; }
.measure-l { max-width: 62ch; }
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.7rem, 5.2vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ---------- Layout ---------- */
.container { padding-inline: var(--gutter); max-width: 1760px; margin-inline: auto; }
.section { padding-block: var(--section); }
.section--flush { padding-block: 0; }
/* qorong'i/paper vstavka: burchak radiusi + 8px chetlar (inline stil o'rniga) */
.section--inset { border-radius: var(--r-m); margin-inline: 8px; }
.txt-cream { color: var(--cream-2); }
.section--dark {
  background: var(--green-deep);
  color: var(--cream);
}
.section--paper { background: var(--paper); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}
/* grid ichida section-head pastki bo'shliq bermasin (yon ustun balandligini oshirmasin) */
.grid-2 > .section-head { margin-bottom: 0; }

/* hairline qoidalar */
.rule { border: 0; border-top: 1px solid var(--line); }
.rule--dash { border-top-style: dashed; border-top-color: var(--line-dash); }
.section--dark .rule { border-top-color: var(--line-light); }
.section--dark .rule--dash { border-top-color: var(--line-light-dash); }

/* ---------- Tugmalar: pill + aylana disk ---------- */
.btn {
  border: 1px solid transparent; /* ramkali variantlar bilan balandlik teng */
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding: 5px 5px 5px 22px;
  border-radius: 100em;
  background: var(--brand-green);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-disc {
  width: 2.4em; height: 2.4em;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}
.btn-disc { position: relative; }
.btn-disc svg { width: 0.95em; height: 0.95em; transition: transform 0.38s var(--ease); }
/* Phosphor glif-strelkalar — svg bilan bir xil xatti-harakat */
.btn-disc .ph { display: inline-block; font-size: 0.95em; line-height: 1; transition: transform 0.38s var(--ease); }
.btn:hover .btn-disc .ph { transform: translateX(250%); }
.btn-disc .ph.arr-2 { position: absolute; inset: 0; width: 1em; height: 1em; margin: auto; transform: translateX(-250%); }
.btn:hover .btn-disc .ph.arr-2 { transform: translateX(0); }
.btn:hover .btn-disc svg { transform: translateX(250%); }
.btn-disc .arr-2 { position: absolute; inset: 0; margin: auto; transform: translateX(-250%); }
.btn:hover .btn-disc .arr-2 { transform: translateX(0); }
.btn--green { background: var(--green); }
.btn--green .btn-disc { color: var(--green); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light .btn-disc { background: var(--brand-green); color: #fff; }
.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid var(--line-dash);
}
.btn--ghost .btn-disc { background: var(--brand-green); color: #fff; }
.section--dark .btn--ghost, .on-dark .btn--ghost { border-color: var(--line-light-dash); }
.section--dark .btn--ghost .btn-disc, .on-dark .btn--ghost .btn-disc { background: var(--paper); color: var(--ink); }
.btn--glass {
  background: rgba(244, 242, 238, 0.13);
  -webkit-backdrop-filter: blur(10px); /* header ichida — scroll narxini kamaytiramiz */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 242, 238, 0.16);
  color: var(--cream);
}
.btn--glass .btn-disc { background: var(--paper); color: var(--ink); }
.btn:hover { opacity: 0.92; }

/* matnli havola */
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line-dash);
  padding-bottom: 0.22em;
  transition: opacity var(--dur) var(--ease);
}
.link-line:hover { opacity: 0.6; }
/* ko'rinishni o'zgartirmasdan tap-zonani ~44px'ga kengaytirish (WCAG 2.5.8) */
.link-line { position: relative; }
.link-line::after { content: ""; position: absolute; inset: -12px -10px; }
.link-line svg { width: 0.8em; height: 0.8em; }
.link-line .ph { font-size: 0.85em; -webkit-text-stroke: 0.5px currentColor; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem var(--gutter);
}
.header--glass {
  background: rgba(22, 41, 84, 0.42);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); /* 18px scrollda qimmat edi */
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom-color: rgba(244, 242, 238, 0.12);
}
.header--solid {
  background: rgba(232, 230, 225, 0.72);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); /* 20px scrollda qimmat edi */
  backdrop-filter: blur(12px) saturate(1.3);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.header--solid .btn--glass {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
}
.header--solid .btn--glass .btn-disc { background: var(--paper); color: var(--ink); }
.header--light { color: var(--cream); }
.logo { display: inline-flex; align-items: center; }
/* yangi keng wordmark (aspect ~6:1) — desktop kengligi ~120px */
.logo-img { height: clamp(1rem, 1.45vw, 1.25rem); width: auto; }
.header--light .logo-img--color { display: none; }
.header--solid .logo-img--white { display: none; }
.mobile-menu .logo-img--color { display: none; }
.footer-logo { height: clamp(16px, 1.8vw, 20px); width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-size: 0.88rem;
  font-weight: 500;
}
.nav a {
  padding: 0.3em 0.2em;
  opacity: 0.85;
  transition: opacity var(--dur) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"], .nav a.is-active { opacity: 1; }
.nav a[aria-current="page"], .nav a.is-active { border-bottom: 2px solid var(--brand-green); }
.nav-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}
.header-right { display: flex; align-items: center; gap: 1.1rem; }
.menu-toggle {
  display: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Mobil menyu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--green-deep);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 0.75rem var(--gutter) 2.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(2rem, 8vh, 4.5rem);
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.4em; }
.mobile-menu nav a {
  font-size: clamp(2.2rem, 9vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu nav a:hover { color: var(--sand); }
.mobile-menu-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--cream-2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--cream);
  background: #162954;
  overflow: hidden;
  border-radius: 0 0 var(--r-m) var(--r-m);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.02);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.85;
  will-change: transform;
}
.hero-blob--sand {
  width: 64vw; height: 64vw;
  right: -18vw; top: -26vw;
  background: radial-gradient(circle at 35% 40%, rgba(200, 182, 154, 0.55), rgba(200, 182, 154, 0) 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.hero-blob--green {
  width: 58vw; height: 58vw;
  left: -16vw; bottom: -22vw;
  background: radial-gradient(circle at 60% 45%, rgba(46, 93, 72, 0.85), rgba(46, 93, 72, 0) 68%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.hero-blob--glow {
  width: 36vw; height: 36vw;
  left: 28vw; top: 6vw;
  background: radial-gradient(circle, rgba(244, 242, 238, 0.1), rgba(244, 242, 238, 0) 70%);
  animation: drift-a 38s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6vw, 5vw, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(5vw, -4vw, 0) scale(0.95); }
}
.grain { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; mix-blend-mode: overlay; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(19, 37, 29, 0.6), rgba(19, 37, 29, 0.28) 45%, rgba(19, 37, 29, 0.78));
}
.hero-in {
  position: relative;
  z-index: 2;
  padding: 7.5rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vh, 4.5rem);
}
.hero .h-display { font-size: clamp(2.3rem, 5.5vw, 4.8rem); }
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px dashed var(--line-light-dash);
  padding-top: 1.5rem;
}
.hero-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hero-sub {
  max-width: 52ch;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
/* hero'da tugmalar chapda, matn sathida (hero-foot flex-end'ini bekor qiladi) */
.hero-foot > .hero-cta { align-self: flex-start; }
/* o'ng ustun (matn + teglar) dashed chiziq oxiriga — o'ngga tekislanadi (desktop) */
@media (min-width: 861px) {
  /* matn olib tashlangan bo'lsa ham hero-foot eski balandligini saqlaydi (mijoz talabi) */
  .hero-sub { align-items: flex-end; text-align: right; justify-content: flex-start; min-height: 7.3rem; }
}


/* chiplar */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.62em 1.1em;
  border-radius: 100em;
  border: 1px dashed var(--line-dash);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.on-dark .chip, .section--dark .chip, .hero .chip { border-color: var(--line-light-dash); color: var(--cream); }
.chip.is-active, .chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero .chip:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Statistika lentasi ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stats--6 { grid-template-columns: repeat(3, 1fr); row-gap: 2.4rem; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.mini-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mini-grid--3 .mini:nth-child(3n+1) { border-left: 0; padding-left: 0; }
/* stats--6: har qator boshidagi katakda chap chiziq bo'lmasin (2-qator ham) */
@media (min-width: 561px) { .stats--6:not(.stats--boxed) .stat:nth-child(3n+1) { border-left: 0; padding-left: 0; } }
.mission-media { margin-top: clamp(2.2rem, 4.5vw, 3.5rem); border-radius: var(--r-m); overflow: hidden; aspect-ratio: 16 / 6; background: var(--green-deep); }
.mission-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) { .mission-media { aspect-ratio: 16 / 9; } }
.stat {
  padding: 0.5rem 1.5rem 0.75rem 1.5rem;
  border-left: 1px dashed var(--line-dash);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
/* raqamlar — «Шесть терапевтических направлений» uslubidagi yaxlit dashed grid:
   umumiy hairline chiziqlar, radius yo'q, oraliq yo'q, hoverда faqat fon */
.stats--boxed {
  gap: 0;
  border: 1px dashed var(--line-dash);
  border-radius: var(--r-m);
  overflow: hidden;
}
/* media-breakpointlardagi .stats row-gap (1.8rem/1.4rem) boxed gridni ochib,
   chiziqlarni uzib qo'yardi — boxed har doim oraliqsiz (0,2,0 spetsifiklik) */
.stats.stats--boxed { gap: 0; }
.stats--boxed .stat {
  border: 1px solid transparent;
  border-right: 1px dashed var(--line-dash);
  border-bottom: 1px dashed var(--line-dash);
  margin: 0 -1px -1px 0;
  background-clip: padding-box;
  padding: 1.75rem 1.75rem 2rem;
  transition: background var(--dur) var(--ease);
}
.stats--boxed .stat:hover { background-color: var(--paper); }
.stats--boxed .stat .num { font-size: clamp(2.4rem, 4.2vw, 3.9rem); white-space: nowrap; }
.section--dark .stats--boxed { border-color: var(--line-light-dash); }
.section--dark .stats--boxed .stat {
  border-right-color: var(--line-light-dash);
  border-bottom-color: var(--line-light-dash);
  /* umumiy .section--dark .stat qoidasi shaffof chap/tepa chiziqlarni bo'yamasin */
  border-left-color: transparent;
  border-top-color: transparent;
}
.section--dark .stats--boxed .stat:hover { background-color: rgba(244, 242, 238, 0.05); }
.stat .num sup { font-size: 0.4em; letter-spacing: 0; vertical-align: super; font-weight: 500; color: var(--green-ink); }
.stat-label { font-size: 0.86rem; color: var(--ink-2); line-height: 1.45; }
.section--dark .stat { border-color: var(--line-light-dash); }
.section--dark .stat .num sup { color: var(--brand-green); }
.section--dark .stat-label { color: var(--cream-2); }

/* ---------- Yo'nalishlar (editorial qatorlar) ---------- */
.dir-row {
  display: grid;
  grid-template-columns: 3.4rem 3.2rem 1fr minmax(28ch, 36ch) 4rem;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px dashed var(--line-dash);
  transition: opacity var(--dur) var(--ease);
}
.dir-ico {
  width: 3.1rem; height: 3.1rem;
  flex: none;
  border: 1px dashed var(--line-dash);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
/* 1.5rem ≈ ph 1.7rem bilan optik teng (ph glifi em-kvadratning ~87%i) */
.dir-ico svg { width: 1.5rem; height: 1.5rem; }
.dir-row:hover .dir-ico, .dir-row:focus-visible .dir-ico { border-color: var(--brand-green); color: var(--brand-green); border-style: solid; }
.dir-num { font-size: 0.86rem; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dir-title { font-size: clamp(1.7rem, 3.2vw, 2.8rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.dir-desc { font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
.dir-arrow {
  width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--line-dash);
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: end;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.dir-arrow svg { width: 0.85rem; height: 0.85rem; }
.dir-row:hover .dir-arrow, .dir-row:focus-visible .dir-arrow { background: var(--brand-green); border-color: var(--brand-green); color: #ffffff; transform: rotate(-45deg); }

/* ---------- Kategoriya katakchalari ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px dashed var(--line-dash);
  border-radius: var(--r-m);
  overflow: hidden;
}
/* fokus halqasi radiusli ramka ichida qirqilmasin */
.cat-cell:focus-visible { outline-offset: -3px; }
.cat-cell {
  border: 1px solid transparent;
  border-right: 1px dashed var(--line-dash);
  border-bottom: 1px dashed var(--line-dash);
  margin: 0 -1px -1px 0;
  background-clip: padding-box;
  padding: 2rem 1.75rem 2.25rem;
  min-height: 16.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: background var(--dur) var(--ease);
}
.cat-cell:hover { background-color: var(--paper); }
.cat-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.cat-ico {
  width: 2.9rem; height: 2.9rem;
  border: 1px dashed var(--line-dash);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  margin-top: 0.3rem;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cat-ico svg { width: 1.4rem; height: 1.4rem; }
.cat-ico .ph { font-size: 1.4rem; }
.cat-cell .cell-arrow {
  position: absolute;
  bottom: 1.4rem; right: 1.5rem;
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  color: var(--green);
}
.cat-cell:hover .cell-arrow, .cat-cell:focus-visible .cell-arrow { opacity: 1; transform: none; }
.cat-cell:hover .cat-ico { border-color: var(--brand-green); color: var(--brand-green); border-style: solid; }
.cat-cell .h-3 { margin-top: auto; }
.cat-points { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.88rem; color: var(--ink-2); }
.cat-points li { display: flex; gap: 0.6em; align-items: baseline; }
.cat-points li::before { content: "·"; color: var(--green-ink); font-weight: 600; }

/* ---------- Mahsulot kartalari ---------- */
.product-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px -16px rgba(22, 41, 84, 0.10); /* rest-holatda juda yengil tarqaluvchi soya */
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product-card:hover { border-color: var(--line-dash); box-shadow: 0 14px 34px -18px rgba(22, 41, 84, 0.30); }
.product-img {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: grid;
  place-items: center;
  border-bottom: 1px dashed var(--line-dash);
  position: relative;
  overflow: hidden;
}
.product-img img {
  /* grid auto-qatorida height:100% ishlamaydi (rasm konteynerdan oshib, overflow qirqadi) —
     absolute joylash contain'ni kafolatlaydi; padding yo'q — surat ramkani to'liq egallaydi */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* contain 1px oq tirqish qoldiradi (997px rasm + kasr-piksel) — cover to'liq to'ldiradi */
  transition: transform 0.55s var(--ease);
}
.product-card:hover .product-img img { transform: scale(1.045); }
/* placeholder («Фото скоро») — foto emas: nafas maydonisiz, ramkani to'liq qoplaydi */
.product-img img[src*="_placeholder"],
.pd-main-img[src*="_placeholder"],
.pd-thumb img[src*="_placeholder"] { padding: 0; object-fit: cover; }
.product-body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-cat { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-ink); }
.product-name { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.product-desc { font-size: 0.84rem; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-form {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.76rem;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  /* soya uchun joy: overflow kartalar box-shadow'ini kesmasin (Products kartalari bilan
     bir xil ko'rinsin); negative margin layout ritmini o'zgartirmaydi */
  padding: 24px 0 44px;
  margin: -24px 0 -44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}
.marquee.is-ready .marquee-track { animation: marquee 48s linear infinite; }
/* ikkinchi qator — chapdan o'ngga (teskari yo'nalish) */
.marquee--reverse.is-ready .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee .product-card { width: clamp(230px, 19vw, 290px); flex: none; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Brendlar ---------- */
.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.brand-chip {
  padding: 1em 1.7em;
  border: 1px dashed var(--line-dash);
  border-radius: 100em;
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.brand-chip:hover { background: var(--ink); color: var(--paper); }
.section--dark .brand-chip { border-color: var(--line-light-dash); }
.section--dark .brand-chip:hover { background: var(--paper); color: var(--ink); }
.brand-chip em { font-style: italic; font-weight: 400; opacity: 0.6; font-size: 0.7em; margin-left: 0.6em; letter-spacing: 0; }

/* ---------- Timeline ---------- */
.timeline {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}
.timeline:focus-visible { outline: 2px solid var(--sand); outline-offset: 6px; }
.timeline::-webkit-scrollbar { display: none; }
.timeline.is-dragging { cursor: grabbing; user-select: none; }
/* yillar — katalog uslubidagi ketma-ket qo'shilgan katakchalar.
   MUHIM: tepa/past chiziqlar KATAKLARNING O'ZIDA (konteynerда emas) — 
   scrollbar joy olsa ham chiziq katakka yopishgan qoladi, ochilmaydi */
.tl-item {
  flex: none;
  width: clamp(250px, 26vw, 350px);
  padding: 2rem 1.75rem 2.25rem;
  border-top: 1px dashed var(--line-light-dash);
  border-bottom: 1px dashed var(--line-light-dash);
  border-left: 1px dashed var(--line-light-dash);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 15rem;
}
.tl-item:last-child { border-right: 1px dashed var(--line-light-dash); }
.tl-year {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--brand-green);
}
.tl-item h3 { font-size: 1.05rem; font-weight: 500; line-height: 1.25; }
.tl-item p { font-size: 0.88rem; color: var(--cream-2); line-height: 1.5; }

/* ---------- Akkordeon ---------- */
.acc-item { border-top: 1px dashed var(--line-dash); }
.acc-item:last-child { border-bottom: 1px dashed var(--line-dash); }
.acc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.7rem 0.2rem;
  text-align: left;
}
.acc-head > span:first-child { display: flex; flex-direction: column; gap: 0.35rem; }
.acc-title { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.015em; }
.acc-meta { font-size: 0.8rem; color: var(--ink-3); }
.acc-icon {
  width: 2.4rem; height: 2.4rem;
  flex: none;
  border: 1px solid var(--line-dash);
  border-radius: 50%;
  position: relative;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.85rem; height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-head:hover .acc-icon { border-color: var(--ink); }
.acc-item.is-open .acc-icon { background: var(--green); border-color: var(--green); color: var(--paper); }
.acc-item.is-open .acc-icon::after { transform: rotate(0deg); }
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body-in { overflow: hidden; }
.acc-content { padding: 0.4rem 0.2rem 2.2rem; max-width: 70ch; display: flex; flex-direction: column; gap: 1.1rem; }
.acc-content h5, .acc-content .acc-subhead { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.acc-content ul { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.94rem; color: var(--ink-2); }
.acc-content ul li { display: flex; gap: 0.6em; }
.acc-content ul li::before { content: "—"; color: var(--green); flex: none; }

/* ---------- Formalar ---------- */
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.65em 0.1em;
  border-radius: 0;
  outline: none;
  transition: border-color var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
/* xato holati: foydalanuvchi tegingandan keyin bo'sh/noto'g'ri maydon */
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-bottom-color: #b3261e; }
.check input:user-invalid { border-color: #b3261e; }
.field textarea { resize: none; min-height: 6.5em; }
.field input::placeholder, .field textarea::placeholder, .search-wrap input::placeholder { color: var(--ink-3); opacity: 1; }
/* placeholder tanlangunicha select matni xira — to'ldirilganday ko'rinmasin */
.field select:invalid { color: var(--ink-3); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.5em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%231b1e1c' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1em center;
}
.check {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--ink-2);
  cursor: pointer;
  /* butun qator bosiladigan + qulay tap balandligi */
  padding-block: 0.3rem;
}
.check input {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  margin-top: 0;
  flex: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.check input:checked { background: var(--brand-green); border-color: var(--brand-green); }
.check input:checked::before { content: "\e182"; font-family: "Phosphor"; color: var(--paper); font-size: 0.72em; line-height: 1; }
.form-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* qidiruv / filtr paneli */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: nowrap; /* chiplar + qidiruv doim bitta qatorda */
  padding: 1.2rem 0;
  border-top: 1px dashed var(--line-dash);
  border-bottom: 1px dashed var(--line-dash);
  position: sticky;
  top: var(--header-h);
  background: var(--bg);
  z-index: 20;
}
.filter-chips { display: flex; gap: 0.45rem; flex-wrap: nowrap; flex: 1; min-width: 0; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.2rem;
  -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent);
  mask-image: linear-gradient(90deg, #000 94%, transparent); }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-bar .chip { border-color: var(--line-dash); color: inherit; }
.filter-bar .chip:not(.is-active):hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-bar .chip.is-active { background: var(--green); border-color: var(--green); color: var(--paper); }

/* ---- каталог по брендам (бренд + тип БАД/RX + Uzum) ---- */
.filter-right { margin-left: auto; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.filter-right .search-wrap { margin-left: 0; }
.type-toggle { display: inline-flex; border: 1px solid var(--line-dash); border-radius: 999px; padding: 3px; gap: 2px; }
.type-btn { border: 0; background: transparent; font: inherit; font-size: 0.84rem; padding: 0.35em 0.95em; border-radius: 999px; cursor: pointer; color: var(--ink-2); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.type-btn:hover { color: var(--ink); }
.type-btn.is-active { background: var(--ink); color: var(--paper); }
.product-img--ph { background: var(--bc, var(--green)); border-bottom: 0; }
.product-img--ph .pc-mono { font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.9); }
.pc-tags { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.pc-brand { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-ink); }
.pc-type { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.18em 0.55em; border-radius: 999px; line-height: 1; }
.pc-type--bad { background: rgba(46, 94, 58, 0.12); color: var(--green-ink); }
.pc-type--rx { background: rgba(22, 41, 84, 0.1); color: var(--green); }
.pc-type--med { background: rgba(31, 77, 74, 0.12); color: #1f4d4a; }
.pc-uzum { margin-top: auto; padding-top: 0.75rem; font-size: 0.82rem; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 0.35em; align-self: flex-start; transition: color var(--dur) var(--ease); }
.pc-uzum svg { width: 0.78em; height: 0.78em; }
.pc-uzum:hover { color: var(--green-ink); }
.pc-soon { margin-top: auto; padding-top: 0.75rem; font-size: 0.78rem; color: var(--ink-3); }

/* ---- галерея товара (несколько фото: стрелки/точки/свайп + лайтбокс) ---- */
.pc-gallery { position: relative; aspect-ratio: 1 / 1; background: var(--paper); overflow: hidden; border-bottom: 1px dashed var(--line-dash); }
.pc-slides { display: flex; height: 100%; transition: transform 0.4s var(--ease); }
.pc-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; padding: 0; margin: 0; border: 0; background: none; }
.pc-slide.pc-zoom { cursor: zoom-in; }
.pc-slide img { width: 100%; height: 100%; object-fit: cover; }
.pc-ph { background: var(--bc, var(--green)); }
.pc-ph .pc-mono { font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.9); }
.pc-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity var(--dur) var(--ease); box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.25); padding: 0; }
.pc-arr svg { width: 1rem; height: 1rem; }
.pc-arr--prev { left: 0.5rem; }
.pc-arr--next { right: 0.5rem; transform: translateY(-50%) rotate(180deg); }
.pc-gallery:hover .pc-arr, .pc-arr:focus-visible { opacity: 1; }
.pc-dots { position: absolute; bottom: 0.55rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.32rem; }
.pc-dot { width: 0.42rem; height: 0.42rem; border-radius: 50%; border: 0; background: rgba(27, 30, 28, 0.32); cursor: pointer; padding: 0; transition: background var(--dur) var(--ease); }
.pc-dot:hover { background: rgba(27, 30, 28, 0.55); }
.pc-dot.is-on { background: var(--ink); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 12, 20, 0.93); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.lb-fig img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: var(--r-s); background: #fff; }
.lb-cap { color: rgba(255, 255, 255, 0.7); font-size: 0.86rem; letter-spacing: 0.04em; }
.lb-close { position: absolute; top: 1.2rem; right: 1.5rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background var(--dur) var(--ease); }
.lb-close:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox :focus-visible { outline-color: var(--sand); }
.lb-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0;;
  transition: background var(--dur) var(--ease);
}
.lb-arr:hover { background: rgba(255, 255, 255, 0.2); }
.lb-arr svg { width: 1.4rem; height: 1.4rem; }
.lb-arr .ph { font-size: 1.4rem; line-height: 1; }
.lb-close .ph { font-size: 1.15rem; line-height: 1; }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; transform: translateY(-50%) rotate(180deg); }
.search-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6em;
  border: 1px dashed var(--line-dash);
  border-radius: 100em;
  padding: 0.55em 1.2em;
  min-width: clamp(200px, 22vw, 300px);
  transition: border-color var(--dur) var(--ease);
}
.search-wrap:focus-within { border-color: var(--ink); border-style: solid; }
.search-wrap svg { width: 0.9em; height: 0.9em; opacity: 0.5; flex: none; }
.search-wrap .ph { font-size: 0.9em; opacity: 0.5; flex: none; }
.search-wrap input { background: none; border: 0; outline: none; width: 100%; font-size: 0.9rem; }
.result-count { font-size: 0.84rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--r-m);
  background: var(--green-deep);
  color: var(--cream);
  padding: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}
.cta-band .hero-blob--sand { opacity: 0.55; }
.cta-band > *:not(.hero-blob) { position: relative; z-index: 2; }

/* ---------- Futer ---------- */
.footer {
  background: var(--green-deep);
  color: var(--cream);
  margin-top: var(--section);
  border-radius: var(--r-m) var(--r-m) 0 0;
  overflow: hidden;
}
/* qoida: ikkita rangli vstavka ketma-ket kelsa orasi 8px shov */
.section--inset + .section--inset { margin-top: 8px; }
.section--inset + .section--flush > .cta-band { margin-top: 8px; }
/* ...va sahifa rangli vstavka (inset yoki CTA) bilan tugasa, futergacha ham 8px */
main:has(> .section--inset:last-child) + .footer,
main:has(> section:last-child .cta-band) + .footer { margin-top: 8px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.3fr;
  gap: 3rem 2.5rem;
  padding: clamp(3.5rem, 6vw, 5rem) var(--gutter) 3rem;
}
.footer-h { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.92rem; }
.footer-col a { opacity: 0.78; transition: opacity var(--dur) var(--ease); }
/* tap-zona ≥30px, vizual qadam o'zgarmaydi (padding+manfiy margin) */
.footer-col a { display: inline-block; padding-block: 0.4rem; margin-block: -0.4rem; }
.footer-col a:hover { opacity: 1; }
.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.footer-brand p { font-size: 0.9rem; color: var(--cream-2); max-width: 30ch; }
.news-form { display: flex; gap: 0.5rem; width: 100%; }
.news-input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line-light-dash);
  border-radius: 100em;
  padding: 0.75em 1.3em;
  color: var(--cream);
  outline: none;
  font-size: 0.88rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.news-input::placeholder { color: var(--cream-3); }
.news-input:focus { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.news-btn {
  width: 3em; height: 3em;
  flex: none;
  border: 1px solid var(--line-light-dash);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.news-btn:hover { background: var(--paper); color: var(--ink); }
.news-btn svg { width: 0.9em; height: 0.9em; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem var(--gutter);
  border-top: 1px dashed var(--line-light-dash);
  font-size: 0.8rem;
  color: var(--cream-3);
}

/* ---------- Reveal animatsiyalari (faqat JS yoqilganda yashirinadi) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--blur {
  filter: blur(10px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.js .reveal--blur.is-in { filter: blur(0); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.86rem;
  padding: 0.85em 1.5em;
  border-radius: 100em;
  z-index: 200;
  transition: transform 0.5s var(--ease);
  max-width: min(92vw, 40ch);
  text-align: center;
}
.toast.is-show { transform: translate(-50%, 0); }

/* ---------- Vizual kartalar ---------- */
.gdp-badge {
  width: clamp(9.5rem, 13vw, 12.5rem);
  height: auto;
  display: block;
  margin-top: 2.5rem;
}
.gdp-badge text { font-family: inherit; }
.gdp-spin {
  transform-origin: 60px 60px;
  animation: gdp-spin 42s linear infinite;
}
@keyframes gdp-spin { to { transform: rotate(360deg); } }

/* ---------- Kontakt qatorlari ---------- */
.info-list { display: flex; flex-direction: column; }
.info-row {
  padding: 1.25rem 0.1rem;
  border-top: 1px dashed var(--line-dash);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.info-row:last-child { border-bottom: 1px dashed var(--line-dash); }
.info-label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.info-value { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; letter-spacing: -0.01em; }
.info-value a { transition: opacity var(--dur) var(--ease); }
.info-value a:hover { opacity: 0.6; }
.ico-ext {
  font-size: 0.66em;
  display: inline-block;
  margin-left: 0.3em;
  vertical-align: 0.08em;
}

/* ---------- Yordamchilar ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.grid-2--tight { gap: 1.1rem; }
.split-sticky { position: sticky; top: 7rem; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.panel {
  border-radius: var(--r-m);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.panel--sand { background: var(--sand); border-color: transparent; }
.panel--green { background: var(--green-deep); color: var(--cream); border-color: transparent; }

/* ---------- Ichki sahifa geroyi ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  /* gorizontal gutter'ni ichkaridagi .container beradi — qo'shilib ketmasin */
  padding: clamp(8.5rem, 14vw, 12rem) 0 clamp(3rem, 5vw, 4.5rem);
  background: var(--green-deep);
  color: var(--cream);
  border-radius: 0 0 var(--r-m) var(--r-m);
  overflow: hidden;
}
/* — Particles hero foni (particles.js, self-hosted) —
   ID (#particles-js) `.page-hero > *` (position:relative;z-index:2) ni yengadi (specificity) — */
#particles-js.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(to top right, #0c1730, #162954, #1f3d7d);
}
#particles-js.hero-particles canvas {
  display: block;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  right: -16vw; top: -24vw;
  background: radial-gradient(circle at 40% 45%, rgba(36, 64, 124, 0.7), rgba(36, 64, 124, 0) 65%);
  filter: blur(80px);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 2; }
/* min 2.5rem: mobda h1 sahifa CTA-sarlavhasidan (h-1) kichik bo'lib qolmasin */
.page-hero .h-display { font-size: clamp(2.5rem, 4.6vw, 4rem); white-space: nowrap; }
/* 880px: kattalashtirilgan min-shrift (2.5rem) tor oraliqda h1'ni kesib qo'ymasin */
@media (max-width: 880px) { .page-hero .h-display { white-space: normal; } }
@media (max-width: 560px) {
  /* qattiq <br> tor kartada rvaniy qatorlar beradi — tabiiy va muvozanatli ko'chirish */
  .feat-card h3 br { display: none; }
  .feat-card h3 { text-wrap: balance; }
}
.page-hero-lead { max-width: 56ch; margin-top: 1.5rem; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.5; letter-spacing: -0.015em; color: var(--cream-2); }
/* katalog banner: brend Instagram havolasi — lead jumlasining davomi, oxirida arrow */
.page-hero-lead--wide { max-width: 80ch; }
.hero-lead-insta { display: inline-block; color: inherit; font: inherit; font-weight: inherit; letter-spacing: inherit; text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; transition: border-color .18s ease; }
.hero-lead-insta i { font-size: .85em; margin-left: .12em; vertical-align: -.02em; }
.hero-lead-insta:hover { border-bottom-color: currentColor; }
.hero-lead-sep { opacity: .5; margin: 0 .12em; }

/* ---------- Xlebnye kroshki ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  font-size: 0.82rem;
  color: var(--cream-2);
  margin-bottom: 1.5rem;
}
/* bosish maydonini kengaytirish (vizual o'zgarishsiz) */
.breadcrumbs a { padding: 0.45em 0.15em; margin: -0.45em -0.15em; transition: color var(--dur) var(--ease); }
.breadcrumbs a:hover { color: var(--cream); }
.breadcrumbs span[aria-current] { color: var(--cream); }
.breadcrumbs .sep { opacity: 0.5; }
@media (max-width: 640px) {
  /* uzun maqola sarlavhasi kroshkada bir qatorga qisqaradi (h1 baribir pastda to'liq) */
  .breadcrumbs span[aria-current] { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.breadcrumbs--ink { color: var(--ink-3); }
.breadcrumbs--ink a:hover { color: var(--ink); }
.breadcrumbs--ink span[aria-current] { color: var(--ink-2); }

/* ---------- Jamoa ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px dashed var(--line-dash);
  border-radius: var(--r-m);
  overflow: hidden;
}
.team-card {
  border: 1px solid transparent;
  border-right: 1px dashed var(--line-dash);
  border-bottom: 1px dashed var(--line-dash);
  margin: 0 -1px -1px 0;
  background-clip: padding-box;
  padding: 1.9rem 1.75rem 2.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.team-avatar {
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
/* foto-avatar: dumaloq portret, hoverда yashil halqa */
.team-photo {
  width: 4.6rem; height: 4.6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-soft);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.team-card:hover .team-photo { border-color: var(--brand-green); transform: scale(1.04); }
/* foto o'rniga bosh-harf avatar (foto kelguncha) — navy doira, cream harflar */
.team-ini {
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--cream);
  font-weight: 600; font-size: 1.5rem; letter-spacing: 0.02em;
  border-color: transparent; user-select: none;
}
.team-card:hover .team-ini { border-color: var(--brand-green); }
/* «Здесь можете быть вы» — приглашение в команду (ссылка на вакансии) */
.team-card--join { text-decoration: none; color: inherit; cursor: pointer; }
.team-ini--join { background: transparent; color: var(--ink-3); border: 2px dashed var(--line-dash); }
.team-ini--join .ph { font-size: 1.6rem; }
.team-card--join h3 { color: var(--ink-2); }
.team-card--join .team-role { color: var(--green-ink); display: inline-flex; align-items: center; gap: .3em; }
.team-card--join:hover .team-ini--join { border-color: var(--brand-green); color: var(--green-ink); }
.team-card--join:hover h3 { color: var(--ink); }
.team-card h3 { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.team-role { font-size: 0.88rem; color: var(--ink-2); margin-top: -0.6rem; }

/* ---------- Mahsulot kartasi sahifasi ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.pd-media { position: sticky; top: 6.5rem; }
.pd-gallery { display: flex; flex-direction: column; gap: 0.7rem; }
.pd-main {
  display: block; width: 100%; padding: 0;
  background: #fff;
  border: 1px solid var(--line-dash); /* line-soft placeholder/sahifa foni bilan qo'shilib ketadi */
  border-radius: var(--r-m);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color var(--dur) var(--ease);
}
.pd-main:hover { border-color: var(--line-strong); }
.pd-main-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pd-thumb {
  width: 4.4rem; height: 4.4rem; padding: 0; flex: none;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  overflow: hidden; cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* original qirqilmasin: cover→contain, blend'siz (foto-qoida bilan bir xil) */
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; background: #fff; display: block; }
.pd-thumb:hover { border-color: var(--line-dash); }
.pd-thumb.is-on { border-color: var(--green-ink); box-shadow: inset 0 0 0 1px var(--green-ink); }
.pd-info { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 0.5rem; }
.pd-info .h-1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.pd-cat { font-size: 0.76rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-ink); }
.spec-list {
  display: flex; flex-direction: column;
  border: 1px dashed var(--line-dash);
  border-radius: var(--r-m);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(0.9rem, 2.4vw, 1.5rem);
  border-top: 1px dashed var(--line-dash);
  font-size: 0.94rem;
}
.spec-row:first-child { border-top: 0; }
.spec-row dt { color: var(--ink-3); }
.spec-row dd { font-weight: 500; text-align: right; }
.spec-row dd, .compo-row dd { font-variant-numeric: tabular-nums; }
.pd-note { font-size: 0.84rem; color: var(--ink-3); line-height: 1.5; max-width: 52ch; }

/* слоган товара — акцентная строка под названием */
.pd-slogan {
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--green-ink);
  padding-left: 1rem;
  border-left: 3px solid var(--green-ink);
  margin: -0.4rem 0 0.2rem;
}

/* ---------- Подробная инфо о товаре: состав, применение, показания ---------- */
/* mahsulot sahifasi: yuqori blok bilan detallar orasi yaqinroq */
.pd-top-section { padding-bottom: calc(var(--section) * 0.45); }
.pd-details .container { display: flex; flex-direction: column; gap: 1.25rem; }
.pd-details-grid {
  /* masonry: kartalar ustunlarga zich taxlanadi (Показания qisqa bo'lsa ham bo'sh joy yo'q) */
  columns: 2;
  column-gap: 1.25rem;
}
.pd-details-grid .pd-block { break-inside: avoid; margin-bottom: 1.25rem; }
.pd-block {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.pd-block-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.pd-block-title::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 2.4rem; height: 2px; background: var(--green-ink);
}
/* состав — пары «компонент — количество» */
.compo-list { display: flex; flex-direction: column; }
.compo-row {
  display: flex; justify-content: space-between; gap: 1.25rem;
  padding: 0.72rem 0.1rem; font-size: 0.94rem; line-height: 1.4;
  border-top: 1px dashed var(--line-dash);
}
.compo-row:first-child { border-top: 0; }
.compo-row dt { color: var(--ink-2, var(--ink-3)); }
.compo-row dd { font-weight: 500; text-align: right; color: var(--green-ink); }
.compo-row--plain dt { color: var(--ink-3); }
/* показания — маркированный список с зелёными галочками */
.pokaz-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.pokaz-list li {
  position: relative; padding-left: 1.75rem;
  font-size: 0.94rem; line-height: 1.5; color: var(--ink-2, var(--ink-3));
}
.pokaz-list li::before {
  content: "\e182"; font-family: "Phosphor";
  position: absolute; left: 0; top: 0.15rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--green-ink);
  color: var(--paper);
  font-size: 0.68rem;
  display: grid; place-items: center; line-height: 1;
}
/* способ применения — метка + значение */
.apply-list { display: grid; gap: 0.1rem; }
.apply-row {
  display: grid; grid-template-columns: 190px 1fr; gap: 1.25rem;
  padding: 0.9rem 0.1rem; border-top: 1px dashed var(--line-dash);
  font-size: 0.94rem; line-height: 1.5;
}
.apply-row:first-child { border-top: 0; }
.apply-row dt { color: var(--ink-3); }
.apply-row dd { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) {
  .pd-details-grid { columns: 1; }
  .apply-row { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ---------- Yangiliklar ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.news-card:hover { border-color: var(--line-dash); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.news-card-img {
  aspect-ratio: 16 / 10;
  background: var(--green-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand);
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-img--ph svg { width: 2.4rem; height: 2.4rem; opacity: 0.6; }
.news-card-img--ph .ph { font-size: 2.4rem; opacity: 0.6; }
.news-card-body { padding: 1.25rem 1.3rem 1.45rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 0.7rem; font-size: 0.76rem; }
.news-tag { font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-ink); }
.news-date { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news-card h3 { font-size: 1.18rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .news-excerpt { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* maqola sahifasi (prose) */
.article { max-width: 70ch; margin-inline: auto; }
.article-cover {
  border: 1px solid var(--line-dash);
  border-radius: var(--r-m);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: var(--paper, #f6f4ef);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: calc(var(--r-m) - 1px); }
.article-body { font-size: 1.08rem; line-height: 1.65; color: var(--ink); }
.article-body p { margin-bottom: 1.2rem; }
.article-body h2, .article-body h3 { font-weight: 500; letter-spacing: -0.015em; margin: 2rem 0 0.8rem; }
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.2rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.article-body ul li { list-style: none; position: relative; padding-left: 1rem; }
.article-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--brand-green); }
.article-body ol { list-style: decimal; }
.article-body li > p { margin: 0; }
.article-body a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.article-body img { border-radius: var(--r-s); margin: 1.2rem 0; max-width: 100%; height: auto; display: block; }
.article-body strong { font-weight: 600; }
.article-body em { font-style: italic; }
.article-body h1 { font-size: 1.85rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin: 2.2rem 0 0.9rem; }
.article-body mark { background: #fff1a8; padding: 0 0.15em; border-radius: 2px; }
.article-body blockquote { margin: 1.4rem 0; padding: 0.2rem 0 0.2rem 1.2rem; border-left: 3px solid var(--brand-green); color: var(--ink-3); font-style: italic; }
.article-body code { background: rgba(22, 41, 84, 0.07); padding: 0.1em 0.4em; border-radius: 4px; font-family: var(--mono); font-size: 0.9em; }
.article-body pre { background: var(--green-deep); color: var(--cream); padding: 1rem 1.2rem; border-radius: var(--r-s); overflow-x: auto; margin: 1.4rem 0; }
.article-body pre code { background: none; padding: 0; color: inherit; font-size: 0.92em; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---------- Mini-setka (usloviya / rekvizity) ---------- */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px dashed var(--line-dash);
}
.mini {
  padding: 1.5rem 1.4rem 1.6rem 0;
  border-left: 1px dashed var(--line-dash);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mini:first-child { border-left: 0; padding-left: 0; }
.mini-label { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.mini-value { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.mini-note { font-size: 0.86rem; color: var(--ink-2); }
/* Реквизиты: to'liq yopiq slitniy dashed-panjara (katalog oilasi — «Мы в цифрах» kabi) */
.mini-grid--framed {
  border: 1px dashed var(--line-dash);
  border-radius: var(--r-m);
  overflow: hidden;
}
.mini-grid--framed .mini,
.mini-grid--framed .mini:first-child {
  border: 1px solid transparent;
  border-right: 1px dashed var(--line-dash);
  border-bottom: 1px dashed var(--line-dash);
  margin: 0 -1px -1px 0;
  background-clip: padding-box;
  padding: 1.75rem 1.75rem 2rem;
}
.section--dark .mini-grid { border-color: var(--line-light-dash); }
.section--dark .mini { border-color: var(--line-light-dash); }

/* ---------- Bo'sh holat (katalog) ---------- */
.empty-state {
  grid-column: 1 / -1;
  padding: clamp(3rem, 8vw, 6rem) 1rem;
  text-align: center;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.empty-state svg { width: 2.4rem; height: 2.4rem; opacity: 0.4; }
.empty-state .ph { font-size: 2.4rem; opacity: 0.4; }

/* ---------- Moslashuvchanlik ---------- */
@media (max-width: 1100px) {
  .header .btn--glass { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 1.8rem; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .dir-row { grid-template-columns: 2.8rem 3rem 1fr 3.4rem; }
  .dir-desc { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 0.32em; font-size: 0.82rem; }
}
/* ===== Mobil moslashuv (real qurilma feedback, 2026-07-11) ===== */
@media (max-width: 640px) {
  /* hero teg-chiplar mobilda ko'rsatilmaydi */
  .hero-tags { display: none; }
  /* ichki sahifa banner sarlavhasi 2 qatorga sig'sin (barcha sahifalar) */
  .page-hero .h-display { font-size: clamp(1.9rem, 8.2vw, 2.45rem); }
  /* majburiy <br> uzilishlari mobilda o'chadi — matn kenglikni tabiiy to'ldiradi */
  .stat-label br, .h-3 br { display: none; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .br-wide { display: none; }
  .field input, .field textarea, .field select, .search-wrap input { font-size: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .split-sticky { position: static; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  /* mobil: filtr paneli yopishmasin (9 chip ekranning yarmini egallaydi) */
  .filter-bar { position: static; }
  /* chiplar bir qatorda gorizontal skroll bilan */
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; width: 100%; padding-bottom: 0.2rem;
    /* o'ng chekka fade — davomi borligini bildiradi (chip yarim kesilib «buzuq» ko'rinmasin) */
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
    mask-image: linear-gradient(90deg, #000 92%, transparent); }
  .filter-chips::-webkit-scrollbar { display: none; }
  .search-wrap { margin-left: 0; width: 100%; }
  .product-detail { grid-template-columns: 1fr; }
  .pd-media { position: static; max-width: 28rem; margin-inline: auto; }
  .pd-details-grid { columns: 1; }
}
@media (max-width: 560px) {
  /* minmax(0,1fr): uzun so'z ustunlarni notekis qilib yubormasin */
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 1.4rem; }
  /* boxed-variant slitniy grid: row-gap chiziqlarni uzib qo'ymasin */
  .stats--boxed { row-gap: 0; }
  /* mobda katak paddingi ixcham (spetsifiklik: baza .stats--boxed .stat qoidasidan ustun) */
  .stats--boxed .stat { padding: 1.4rem 0.8rem 1.6rem; }
  /* yorliq har <br>-yarmi bitta qatorga sig'sin (2 qator jami) — tor katakka mos shrift */
  .stats--boxed .stat-label { font-size: 0.8rem; }
  .stat { padding-left: 1.1rem; padding-right: 0.7rem; }
  /* jamoa kartalari mobda ixcham (desktop paddinglar ortiqcha joy qoldiradi) */
  .team-card { padding: 1.3rem 1.25rem 1.5rem; gap: 0.7rem; }
  /* toq qolgan oxirgi ishlab chiqaruvchi plitkasi qatorni to'ldiradi */
  .mfr-grid .mfr-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* trust-kartalar media zonasi mobda yarim bo'sh navy bo'lib cho'zilmasin
     (.trust-card bilan — bazadagi keyinroq turgan qoidalardan ustun bo'lishi uchun) */
  .trust-card .trust-img { aspect-ratio: 16 / 8; }
  .trust-card .trust-img .ph { font-size: 2.6rem; }
  .trust-card .trust-img svg { width: 2.6rem; height: 2.6rem; }
  /* «3 000» kabi bosh raqamlar tor katakka bir qatorda sig'sin */
  .stats--boxed .stat .num { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
  .stats:not(.stats--boxed) .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats:not(.stats--boxed) .stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .stats--boxed .stat:last-child:nth-child(odd) { grid-column: 1 / -1; text-align: center; }
  /* hero lead: desktop <br> mobilda majburiy g'alati 3 qator yasaydi — tabiiy o'ralsin */
  .hero .dot-lead br { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-cell { min-height: 0; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .product-body { padding: 0.85rem 0.9rem 1rem; }
  .spec-row { flex-direction: column; gap: 0.2rem; }
  .spec-row dd { text-align: left; }
  .mini-grid { grid-template-columns: 1fr; }
  .mini, .mini:first-child { border-left: 0; padding-left: 0; border-top: 1px dashed var(--line-dash); padding-top: 1.1rem; }
  .mini-grid--framed .mini, .mini-grid--framed .mini:first-child { border: 1px solid transparent; border-right: 1px dashed var(--line-dash); border-bottom: 1px dashed var(--line-dash); margin: 0 -1px -1px 0; padding: 1.4rem 1.25rem 1.6rem; }
  .footer-main { grid-template-columns: 1fr; gap: 2.2rem; }
  .team-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .article-cover { aspect-ratio: 3 / 2; max-height: 48vh; }
  .hero-foot { padding-top: 1.2rem; }
  .dir-row { grid-template-columns: 2.2rem 2.7rem minmax(0, 1fr) 2.9rem; gap: 0.9rem; padding: 1.9rem 0; }
  /* «Производство» kabi uzun yagona so'z katakka sig'may overflow bermasin */
  .dir-title { hyphens: auto; -webkit-hyphens: auto; }
  .dir-ico { width: 2.6rem; height: 2.6rem; }
  .dir-ico svg { width: 1.5rem; height: 1.5rem; }
}

@media (max-width: 400px) {
  /* juda tor ekran (iPhone mini/SE): stat yorlig'i baribir 2 qatorda qolsin */
  .stats--boxed .stat-label { font-size: 0.75rem; }
}
@media (max-width: 430px) {
  /* tor ekranda (iPhone 390-430px ham) uzun so'zlar («фармацевтической») bo'g'in bo'yicha defis bilan ko'chsin */
  .hero .h-display { hyphens: auto; -webkit-hyphens: auto; }
}

/* ---------- Harakatni kamaytirish ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}

/* ============================================================
   FAZA 1 — yangi komponentlar (CSS contract, spec §4)
   Flat editorial tizim saqlanadi: nozik box-shadow + hover-lift,
   --brand-green aksent. Mavjud tokenlar va idiomalar bilan.
   ============================================================ */

/* ---------- Qadriyatlar / «О компании» — feat (ikona + sarlavha + matn) ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feat-grid--3 { grid-template-columns: repeat(3, 1fr); }

.feat-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  padding: 1.6rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feat-card:hover {
  border-color: var(--line-dash);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.feat-ico {
  width: 2.9rem; height: 2.9rem;
  border: 1px dashed var(--line-dash);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  flex: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.feat-ico svg { width: 1.35rem; height: 1.35rem; }
.feat-card:hover .feat-ico { border-color: var(--brand-green); border-style: solid; color: var(--brand-green); }
.feat-card h3 { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.feat-card p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.section--dark .feat-card { background: rgba(244, 242, 238, 0.04); border-color: var(--line-light); }
.section--dark .feat-card:hover { border-color: var(--line-light-dash); box-shadow: none; }
.section--dark .feat-ico { border-color: var(--line-light-dash); color: var(--cream); }
.section--dark .feat-card:hover .feat-ico { border-color: var(--brand-green); color: var(--brand-green); }
.section--dark .feat-card p { color: var(--cream-2); }

/* ---------- 5 Ценностей — value (ikona + sarlavha + matn; 3→2→1) ---------- */
/* Ценности — katalog uslubidagi yaxlit dashed grid: 3×2 */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px dashed var(--line-dash);
  border-radius: var(--r-m);
  overflow: hidden;
}
.value-card {
  background: transparent;
  border: 1px solid transparent;
  border-right: 1px dashed var(--line-dash);
  border-bottom: 1px dashed var(--line-dash);
  margin: 0 -1px -1px 0;
  background-clip: padding-box;
  padding: 2rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: background var(--dur) var(--ease);
}
.value-card:hover { background-color: var(--paper); }
/* xira tartib raqami — o'ng yuqori burchak */
.value-num {
  position: absolute;
  top: 1.4rem; right: 1.5rem;
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: rgba(22, 41, 84, 0.16);
  font-variant-numeric: tabular-nums;
  transition: color var(--dur) var(--ease);
}
.value-card:hover .value-num { color: var(--brand-green); }
@media (max-width: 1100px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
}
.value-ico {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  display: grid;
  place-items: center;
  flex: none;
  transition: background var(--dur) var(--ease);
}
.value-ico svg { width: 1.4rem; height: 1.4rem; }
.value-card:hover .value-ico { background: var(--brand-green); }
.value-card h3 { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.value-card p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- 4 Департамента — dept (raqam /01-/04, link-line бейдж; 2→1) ---------- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.dept-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  padding: 1.9rem 1.85rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.dept-card:hover {
  border-color: var(--line-dash);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.dept-num {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.dept-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.dept-card p { font-size: 0.94rem; color: var(--ink-2); line-height: 1.5; }
.dept-badge {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-dash);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green-ink);
}
.dept-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
  flex: none;
}
.dept-badge svg { width: 0.85em; height: 0.85em; flex: none; }
.section--dark .dept-card { background: rgba(244, 242, 238, 0.04); border-color: var(--line-light); }
.section--dark .dept-card:hover { border-color: var(--line-light-dash); box-shadow: none; }
.section--dark .dept-card p { color: var(--cream-2); }
.section--dark .dept-num { color: var(--cream-3); }
.section--dark .dept-badge { color: var(--sand); border-color: var(--line-light-dash); }

/* ---------- Доверие и репутация — trust (foto-slot + label-tag; 4→2→1) ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.trust-card:hover {
  border-color: var(--line-dash);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
/* foto-slot: rasm yo'q bo'lsa to'q fon + markazlashgan monogramma/ikona */
.trust-img {
  aspect-ratio: 16 / 11;
  background: var(--green-deep);
  color: var(--sand);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.trust-img img { width: 100%; height: 100%; object-fit: cover; }
.trust-img svg { width: 2.2rem; height: 2.2rem; opacity: 0.7; }
.trust-img .trust-mono {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cream-2);
}
.trust-body { padding: 1.25rem 1.3rem 1.45rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.trust-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-ink);
}
.trust-card h3 { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.trust-card p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- Наши бренды — brand (monogramma + tavsif + link-line; 3→2→1) ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.brand-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.brand-card:hover {
  border-color: var(--line-dash);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
/* верх карточки — светлая область 100px (фон логотипа = белый, под цветные лого) */
.brand-card-img {
  height: 100px;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.brand-card-img img { width: auto; max-width: 88%; height: auto; max-height: 92px; object-fit: contain; }
.brand-card-mono { font-size: 1.85rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.brand-card-body { padding: 1.25rem 1.3rem 1.45rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.brand-card-cat { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-ink); }
.brand-card-body h2, .brand-card-body h3 { font-size: 1.18rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.brand-card-desc { font-size: 0.86rem; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brand-card-more { margin-top: auto; padding-top: 0.8rem; font-size: 0.86rem; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 0.4em; transition: color var(--dur) var(--ease); }
.brand-card-more svg { width: 0.8em; height: 0.8em; }
.brand-card:hover .brand-card-more { color: var(--green-ink); }
.brand-card--soon { opacity: 0.92; }
.brand-card--soon .brand-logo { background: rgba(27, 30, 28, 0.08); color: var(--ink-3); }
.brand-soon-tag {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Сертификаты — cert (rasm contain oq fon + label; 4→3→2) ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.cert-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cert-card:hover {
  border-color: var(--line-dash);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
/* sertifikat bosilganda lightbox ochiladi (cert-lightbox.js) */
.cert-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
/* barcha sertifikatlar YAGONA o'lchamda: 3/4 konteyner + contain */
.cert-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  /* paddingsiz + oq fon: hujjat karta chetigacha to'liq turadi, contain hech narsani qirqmaydi */
  background: var(--white);
  border-bottom: 1px dashed var(--line-dash);
}
.cert-label {
  margin-top: auto;
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}

/* ---------- Callout — alohida eslatma-karta (GSP/GDP omborlar va h.k.) ---------- */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  /* yumaloq kartalar oilasi: oq fon + yumshoq solid ramka (form-card/aud-card kabi) */
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  background: var(--white);
  padding: 1.6rem 1.7rem;
}
.callout-ico {
  width: 2.9rem; height: 2.9rem;
  flex: none;
  border: 1px dashed var(--line-dash);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
}
.callout-ico svg { width: 1.35rem; height: 1.35rem; }
.callout-ico .ph { font-size: 1.35rem; }
.callout-ico .ph { font-size: 1.5rem; }
.callout-title { font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 0.3rem; }
.callout p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; max-width: 72ch; }

/* ---------- Xalqaro ishlab chiqaruvchilar — slitniy dashed-panjara (katalog oilasi) ---------- */
.mfr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px dashed var(--line-dash);
  border-radius: var(--r-m);
  overflow: hidden;
}
.mfr-cell {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  border: 1px solid transparent;
  border-right: 1px dashed var(--line-dash);
  border-bottom: 1px dashed var(--line-dash);
  margin: 0 -1px -1px 0;
  background-clip: padding-box;
  padding: 2rem 1.75rem 2.25rem;
  transition: background var(--dur) var(--ease);
}
.mfr-cell:hover { background-color: var(--paper); }
.mfr-mono {
  width: 3rem; height: 3rem;
  flex: none;
  border: 1px dashed var(--line-dash);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--green);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), border-style var(--dur) var(--ease);
}
.mfr-cell:hover .mfr-mono { border-color: var(--brand-green); border-style: solid; color: var(--brand-green); }
.mfr-name {
  display: block;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.mfr-desc { margin-top: 0.45rem; font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }


/* ---------- Аудитории — aud (Для аптек/клиник/дистрибьюторов) ---------- */
.aud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.aud-card {
  /* value-num absolute raqami karta ichida tursin (aks holda faqat hover-transform paytida ko'rinadi) */
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  padding: 1.85rem 1.7rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.aud-card:hover {
  border-color: var(--line-dash);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.aud-card h3 { font-size: 1.18rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.aud-card p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.aud-points { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.88rem; color: var(--ink-2); }
.aud-points li { display: flex; gap: 0.6em; align-items: baseline; }
.aud-points li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-green); flex: none; transform: translateY(0.5em); }

/* ---------- Faza 1 komponentlari — moslashuvchanlik (1100 / 860 / 560) ---------- */
@media (max-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .aud-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .feat-grid, .feat-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feat-grid, .feat-grid--3 { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Mono o'lchov registri (signatura) · «banka» obyekti · disiplinli motion
   ============================================================ */

/* — Mono o'lchov registri (signatura) — */
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.dir-num, .dept-num, .tl-year, .cat-cell-top, .news-date, .result-count,
.eyebrow.is-data, .data-line { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cat-cell-top { letter-spacing: 0.02em; }

/* — Stat raqam superscript mono — */
.stat .num sup { font-family: var(--mono); color: var(--green-ink); }
.section--dark .stat .num sup { color: var(--lumen); }

/* — Lumen disiplin: lumen FAQAT nur (matn emas) — dark'da nuqta yonadi — */
.section--dark .dept-badge::before { background: var(--lumen); box-shadow: 0 0 6px rgba(0, 186, 75, 0.5); }

/* — Bitta «banka» obyekti (Производство) — 3D vitamin/kapsula, yashil yadro yonadi — */
.apg-jar {
  position: relative; width: min(260px, 64vw); aspect-ratio: 3 / 4; margin-inline: auto;
  display: grid; place-items: center;
}
.apg-jar .jar-body {
  position: absolute; inset: 0; border-radius: 26% 26% 30% 30% / 14% 14% 18% 18%;
  background: linear-gradient(150deg, #1f3d7d 0%, var(--vault) 55%, #0c1730 100%);
  border: 1px solid rgba(244, 242, 238, 0.1);
  box-shadow: inset 0 2px 0 rgba(244, 242, 238, 0.12), inset 0 -30px 50px -30px #000, 0 40px 80px -40px rgba(8, 12, 24, 0.9);
  overflow: hidden;
}
.apg-jar .jar-lid {
  position: absolute; top: -4%; left: 24%; right: 24%; height: 14%; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #274687, var(--navy)); border: 1px solid rgba(244, 242, 238, 0.12);
  box-shadow: inset 0 2px 0 rgba(244, 242, 238, 0.16);
}
.apg-jar .jar-core {
  position: absolute; left: 50%; top: 58%; width: 56%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(0, 186, 75, 0.85), rgba(0, 186, 75, 0.4) 55%, transparent 72%);
  filter: blur(2px); opacity: 0.28; transition: opacity 1.1s var(--ease);
}
.apg-jar.is-in .jar-core { opacity: 1; }
.apg-jar .jar-shine {
  position: absolute; top: 8%; left: 14%; width: 22%; height: 64%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(244, 242, 238, 0.22), transparent 70%); filter: blur(3px);
}
.apg-jar .jar-mono {
  position: absolute; bottom: 12%; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--cream-2);
}
.apg-jar.is-in .jar-mono { color: var(--lumen); }

/* — CTA band: iliq sand-blob o'rniga intizomli lumen glow — */
.cta-band .hero-blob--sand { background: radial-gradient(circle at 42% 36%, rgba(0, 186, 75, 0.16), rgba(0, 186, 75, 0) 62%); opacity: 0.85; }

/* — Phosphor ikon glyphlarini konteynerlarда o'lchamlash (qo'lда chizilgan SVG o'rniga) — */
.feat-ico .ph, .value-ico .ph, .cat-ico .ph, .dir-ico .ph, .trust-img .ph { line-height: 1; display: inline-flex; }
.feat-ico .ph { font-size: 1.5rem; }
.value-ico .ph { font-size: 1.4rem; }
.cat-ico .ph { font-size: 1.55rem; }
.dir-ico .ph { font-size: 1.7rem; }
.trust-img .ph { font-size: 2.1rem; opacity: 0.85; }

/* — Spacing-audit: systemik tuzatishlar — */
/* eyebrow margin-top'i flex-gap'li konteynerда qo'shilib ketmasin (ritm bir xil) */
.cta-band .eyebrow + *, .hero-sub .eyebrow + * { margin-top: 0; }
/* statistika birinchi ustuni gutter'ga tekislansin (.mini kabi) */
.stats:not(.stats--boxed) .stat:first-child { border-left: 0; padding-left: 0; }

/* — Полный аудит: touch-target (>=44px) + responsive полировка — */
.menu-toggle { min-height: 44px; padding: 0.5em 0.4em; align-items: center; opacity: 0.85; transition: opacity var(--dur) var(--ease); }
.menu-toggle:hover { opacity: 1; }
/* faqat interaktiv chiplar 44px (dekorativ hero-teglar shishmasin) */
a.chip, button.chip { min-height: 44px; }
.btn { min-height: 44px; }
/* faqat planshet oralig'ida 2 ustun — ≤860px'da yuqoridagi 1fr qoidasi kuchda qoladi */
@media (min-width: 861px) and (max-width: 1100px) { .aud-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cert-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .mfr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mfr-grid { grid-template-columns: 1fr; } .mfr-cell { padding: 1.4rem 1.25rem 1.6rem; } }

/* — Полный аудит: color-scheme (форма-поля в OS dark mode читаемы) + печать — */
@media print {
  .header, .menu-toggle, .hero-blob, .grain, .marquee, video, .reveal-cursor { display: none !important; }
  .hero, .page-hero, .section--dark, .footer, .cta-band, .cta-band * { background: #fff !important; color: #1b1e1c !important; }
  .section { padding: 1.2rem 0 !important; }
  a { text-decoration: underline; }
  * { box-shadow: none !important; -webkit-print-color-adjust: economy; print-color-adjust: economy; }
}

/* — Jamoa galereyasi (Карьера, real korporativ fotolar) — */
/* jamoa kollaji: birinchi surat 2×2 katta, qolganлари atrofida */
.team-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.6rem, 1.2vw, 1rem); }
.team-gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-m); display: block; }
.team-gallery img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 760px) { .team-gallery { grid-template-columns: repeat(2, 1fr); } .team-gallery img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; } }
@media (max-width: 460px) { .team-gallery { grid-template-columns: 1fr; } .team-gallery img:first-child { grid-column: auto; } }

/* — Instagram grid (О нас, @asiapharm_group) — */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.4rem, 0.8vw, 0.7rem); }
.ig-cell { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-s); background: var(--green-deep); }
.ig-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur) var(--ease); }
.ig-cell:hover img { transform: scale(1.05); }
.ig-cell .ig-ico { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; background: rgba(22, 41, 84, 0.45); transition: opacity var(--dur) var(--ease); }
.ig-cell:hover .ig-ico, .ig-cell:focus-visible .ig-ico { opacity: 1; }
.ig-ico .ph { font-size: 1.65rem; }
@media (max-width: 860px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Vakansiya faktlari (accordion ichida) — boxed ---------- */
.acc-content .mini-grid {
  border-top: 0;
  gap: 0.8rem;
  /* nechta fakt bo'lsa shuncha ustun — bo'sh trek qolmaydi; torда pastga tushadi */
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.acc-content .mini-grid .mini,
.acc-content .mini-grid .mini:first-child {
  border: 1px dashed var(--line-dash);
  border-radius: var(--r-s);
  padding: 0.95rem 1.1rem 1rem;
}
@media (max-width: 560px) {
  .acc-content .mini-grid .mini, .acc-content .mini-grid .mini:first-child { border-top: 1px dashed var(--line-dash); padding-top: 0.95rem; }
}

/* ---------- Xizmat bloklari raqami — dashed chip (/01…/04) ---------- */

/* Xizmat bo'limlarida pokaz-list biroz kattaroq */
/* tavsif 1 yoki 2 qator bo'lsin — checklistlar to'rt katakda bir sathdan boshlanadi */
.svc-cell > p { min-height: 2.9em; }
@media (max-width: 860px) { .svc-cell > p { min-height: 0; } }
.svc-points { gap: 0.85rem; }
.svc-points li { font-size: 1rem; }

/* ---------- Maqola sahifasi polish ---------- */
.article-meta { margin-bottom: 1.1rem; flex-wrap: wrap; }
.article-meta .news-tag {
  font-size: 0.64rem;
  padding: 0.5em 1.05em;
  letter-spacing: 0.1em;
  border: 1px dashed var(--line-dash);
  border-radius: 100em;
}
.article-lead {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  padding-left: 1rem;
  border-left: 3px solid var(--brand-green);
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 62ch;
}

/* — Instagram mozaikasi: 1 katta (2×2) + 4 kichik — */
.ig-grid--mosaic { grid-template-columns: repeat(4, 1fr); }
.ig-grid--mosaic .ig-cell:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 860px) {
  .ig-grid--mosaic { grid-template-columns: repeat(2, 1fr); }
  .ig-grid--mosaic .ig-cell:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
}


/* — Vakansiyalar: 2 ustun karta ko'rinishida — */
#vacancies-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
}
#vacancies-list > p, #vacancies-list > noscript { grid-column: 1 / -1; }
/* tekis uslub, 2 ustun — dashed ramka to'rt tomondan yopiq */
#vacancies-list .acc-item,
#vacancies-list .acc-item:last-child {
  border: 1px dashed var(--line-dash);
  border-radius: var(--r-m);
  padding: 0 1.5rem;
}
@media (max-width: 860px) {
  #vacancies-list { grid-template-columns: 1fr; }
}

/* — Footer imzo havolasi — */
.footer-legal a { color: inherit; transition: color var(--dur) var(--ease); }
.footer-legal a:hover { color: var(--cream); }

/* — Xizmatlar 2×2 — katalog uslubidagi yaxlit dashed grid — */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px dashed var(--line-dash);
  border-radius: var(--r-m);
  overflow: hidden;
}
.svc-cell {
  border: 1px solid transparent;
  border-right: 1px dashed var(--line-dash);
  border-bottom: 1px dashed var(--line-dash);
  margin: 0 -1px -1px 0;
  background-clip: padding-box;
  padding: 2rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: background var(--dur) var(--ease);
}
.svc-cell:hover { background-color: var(--paper); }
.svc-cell .txt-sm { max-width: 52ch; }
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ===================== «Наши бренды» — interaktiv vitrina (index) ===================== */
.sw-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

/* Chap: tipografik brend-ro'yxati (tabs) */
.sw-list {
  border: 1px dashed var(--line-dash);
  border-radius: var(--r-m);
  overflow: hidden;
}
.sw-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  margin: 0;
  padding: 0.68rem 1.1rem 0.72rem 1.1rem;
  margin-bottom: -1px;
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--line-dash);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.sw-row:focus-visible { outline: 2px solid var(--green-ink); outline-offset: -2px; }
.sw-name {
  position: relative;
  padding-left: 1.05em;
  font-size: clamp(1.5rem, 1.7vw, 1.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: rgba(27, 30, 28, 0.5);
  transition: color var(--dur) var(--ease);
}
.sw-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-green);
  transform: translateY(-50%) scale(0);
  transition: transform 0.35s var(--ease);
}
.sw-cnt {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  transition: color var(--dur) var(--ease);
}
.sw-row:hover .sw-name { color: rgba(27, 30, 28, 0.62); }
.sw-row.is-on .sw-name { color: var(--ink); }
.sw-row.is-on .sw-name::before { transform: translateY(-50%) scale(1); }
.sw-row.is-on .sw-cnt { color: var(--green-ink); }

/* O'ng: yopishqoq ko'rgazma paneli */
.sw-stage { position: sticky; top: calc(var(--header-h) + 1.25rem); }

.sw-progress {
  height: 2px;
  border-radius: 1px;
  background: var(--line-soft);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: opacity var(--dur) var(--ease);
}
.sw-progress i {
  display: block;
  height: 100%;
  background: var(--brand-green);
  transform: scaleX(0);
  transform-origin: left;
}
.sw-progress i.run { animation: swProg 5s linear infinite; }
.sw-grid.sw-kb-focus .sw-progress i.run { animation-play-state: paused; }
.sw-progress.is-off { opacity: 0; }
@keyframes swProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.sw-pane { display: none; }
.sw-pane.is-on { display: block; }
.sw-pane.sw-anim { animation: swIn 0.5s var(--ease); }
@keyframes swIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Navy plashka — logo foni rasm foni bilan bir xil (#162954), logotip «suzadi» */
.sw-plaque {
  position: relative;
  background: #fff; /* rangli brend logolari oq fonли — karta ham oq, logolar bilan qo'shilib ketadi */
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  padding: 1.1rem 1.25rem 1.5rem;
  overflow: hidden;
}
.sw-plaque::after {
  content: "";
  position: absolute;
  right: 14px; bottom: 14px;
  width: 12px; height: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 3px 0;
}
.sw-plaque-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.sw-plaque-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sw-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lumen);
  box-shadow: 0 0 10px rgba(0, 186, 75, 0.6);
  animation: swPulse 2.4s ease-in-out infinite;
}
@keyframes swPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.sw-plaque-body {
  min-height: clamp(160px, 15.5vw, 224px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sw-plaque-sub {
  margin-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sw-plaque-body img { width: auto; max-width: 88%; height: auto; max-height: clamp(104px, 11vw, 168px); object-fit: contain; }
.sw-wordmark {
  color: var(--ink);
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sw-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 1.3rem 1.4rem 1.4rem;
  border: 1px dashed var(--line-dash);
  border-radius: var(--r-m);
  margin: 8px 0 1.5rem;
}
.sw-specs > div:first-child { padding-right: 1.4rem; }
.sw-specs > div + div { border-left: 1px dashed var(--line-dash); padding-left: 1.4rem; }
/* Instagram ustuni bor brendlarda 3 ustun */
.sw-specs--3 { grid-template-columns: 1fr 1fr 1.15fr; }
.sw-specs--3 > div:not(:first-child) { padding-right: 1.2rem; }
.sw-specs dd a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); transition: color var(--dur) var(--ease); }
.sw-specs dd a:hover { color: var(--green-ink); text-decoration-color: currentColor; }
.sw-specs dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.55rem;
}
.sw-specs dd { margin: 0; font-size: 0.98rem; line-height: 1.4; }

@media (max-width: 880px) {
  .sw-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .sw-stage { position: static; }
}
/* grid bolalari min-content tufayli ota konteynerdan keng bo'lib ketmasin (iOS gorizontal siljish) */
.sw-grid > *, .sw-pane, .sw-specs > div { min-width: 0; }
.sw-specs dd { overflow-wrap: anywhere; }


@media (prefers-reduced-motion: reduce) {
  .sw-progress { display: none; }
  .sw-pane.sw-anim { animation: none; }
  .sw-live { animation: none; }
  .sw-name, .sw-name::before, .sw-cnt { transition: none; }
}

/* ===================== «Новости» — mozaika (naloJENNIY matn) ===================== */
.mosaic-wrap { --mo-gap: 10px; }

/* panjara */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 15rem;
  grid-auto-flow: dense;
  gap: var(--mo-gap);
}
.mosaic > .empty-state { grid-column: 1 / -1; }

/* katak = havola-ustidagi rasm */
.mo-cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-m);
  background: var(--green-deep);
  display: block;
  isolation: isolate;
  color: var(--cream);
  grid-column: span 1;
  grid-row: span 1;
  transition: box-shadow var(--dur) var(--ease);
}
.mo-cell:hover { box-shadow: var(--shadow-lift); }
.mo-cell--hero { grid-column: span 2; grid-row: span 2; }
.mo-cell--wide { grid-column: span 2; grid-row: span 1; }
.mo-cell--tall { grid-column: span 1; grid-row: span 2; }

/* rasmsiz yangilik uchun navy fon */
.mo-cell--noimg { background: linear-gradient(155deg, #162954 0%, #0c1730 100%); }

/* rasm — edge-to-edge, hover'da zoom */
.mo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.01);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: saturate(0.92);
}
.mo-cell:hover .mo-img { transform: scale(1.07); filter: saturate(1) contrast(1.02); }

/* gradient-overlay */
.mo-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(10, 16, 32, 0.92) 0%, rgba(10, 16, 32, 0.72) 26%,
    rgba(10, 16, 32, 0.28) 52%, rgba(10, 16, 32, 0.06) 74%, rgba(10, 16, 32, 0.20) 100%);
  transition: background var(--dur) var(--ease);
}
.mo-cell:hover .mo-scrim {
  background: linear-gradient(to top,
    rgba(9, 12, 24, 0.95) 0%, rgba(9, 12, 24, 0.78) 30%,
    rgba(9, 12, 24, 0.36) 58%, rgba(9, 12, 24, 0.14) 80%, rgba(9, 12, 24, 0.28) 100%);
}
/* yashil nur — faqat hover */
.mo-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 80% at 50% -10%, rgba(0, 186, 75, 0.16), rgba(0, 186, 75, 0) 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.mo-cell:hover::after { opacity: 1; }

/* naloJENNIY matn */
.mo-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.25rem;
}
.mo-cell--hero .mo-body { padding: 1.75rem 1.9rem 1.85rem; gap: 0.85rem; }

.mo-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.05rem 1.2rem;
}
.mo-cell--hero .mo-top { padding: 1.6rem 1.9rem; }

.mo-tag {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.42em 0.85em;
  border: 1px solid rgba(244, 242, 238, 0.28);
  border-radius: 100em;
  background: rgba(10, 16, 32, 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.mo-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lumen);
  flex: none;
  box-shadow: 0 0 8px rgba(0, 186, 75, 0.9);
}
.mo-cell:hover .mo-tag { background: rgba(0, 115, 46, 0.55); border-color: rgba(0, 186, 75, 0.6); }

.mo-arrow {
  width: 2.2rem; height: 2.2rem;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(244, 242, 238, 0.35);
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transform: translate(6px, -6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.mo-arrow .ph { font-size: 0.95rem; }
.mo-cell:hover .mo-arrow, .mo-cell:focus-visible .mo-arrow {
  opacity: 1; transform: none;
  background: var(--brand-green); border-color: var(--brand-green);
}

.mo-date {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(244, 242, 238, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.mo-date::before { content: ""; width: 14px; height: 1px; background: var(--sand); flex: none; }

.mo-title {
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.14;
  color: #fff;
  text-shadow: 0 1px 24px rgba(8, 12, 24, 0.55);
  transition: transform var(--dur) var(--ease);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mo-cell:hover .mo-title, .mo-cell:focus-visible .mo-title { transform: translateY(-2px); }
.mo-cell            .mo-title { font-size: 1.02rem; -webkit-line-clamp: 3; }
.mo-cell--wide      .mo-title { font-size: 1.35rem; -webkit-line-clamp: 2; }
.mo-cell--tall      .mo-title { font-size: 1.18rem; -webkit-line-clamp: 4; }
.mo-cell--hero      .mo-title { font-size: clamp(1.7rem, 2.6vw, 2.5rem); -webkit-line-clamp: 4; letter-spacing: -0.025em; line-height: 1.06; }

.mo-excerpt {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(244, 242, 238, 0.86);
  max-width: 46ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: max-height 0.5s var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease), margin var(--dur) var(--ease);
}
.mo-cell--hero .mo-excerpt { max-height: 4em; opacity: 1; transform: none; }
.mo-cell--wide:hover .mo-excerpt,
.mo-cell--wide:focus-within .mo-excerpt { max-height: 4em; opacity: 1; transform: none; margin-top: 0.15rem; }

.mo-fresh {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #eafff2;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 0.95em;
  border-radius: 100em;
  background: rgba(0, 115, 46, 0.55);
  border: 1px solid rgba(0, 186, 75, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.mo-fresh::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lumen);
  box-shadow: 0 0 8px rgba(0, 186, 75, 0.95);
  flex: none;
}

.mo-cell.is-hidden { display: none; }
.mo-cell:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

@media (max-width: 1000px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 13.5rem; }
  .mo-cell--hero { grid-column: span 2; grid-row: span 2; }
  .mo-cell--wide { grid-column: span 2; grid-row: span 1; }
  .mo-cell--tall { grid-column: span 1; grid-row: span 2; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 12rem; }
  .mo-cell, .mo-cell--hero, .mo-cell--wide, .mo-cell--tall { grid-column: span 1; }
  .mo-cell--hero { grid-row: span 2; }
  .mo-cell--tall, .mo-cell--wide { grid-row: span 1; }
  .mo-cell .mo-excerpt, .mo-cell--wide .mo-excerpt { display: none; }
  .mo-cell--hero .mo-excerpt { display: -webkit-box; }
}
@media (prefers-reduced-motion: reduce) {
  .mo-img, .mo-scrim, .mo-title, .mo-arrow, .mo-excerpt, .mo-cell { transition: none !important; }
  .mo-cell:hover .mo-img { transform: scale(1.01); }
}

/* ===================== Новости: qidiruv + maqola sayqallari ===================== */
/* maqola: sarlavha muvozanatli sinsin */
.article h1 { text-wrap: balance; }
/* meta qatori: teg + sana + copy (o'ngda), tor ekranda o'raladi */
.article-meta { flex-wrap: wrap; row-gap: 0.55rem; }

/* «Скопировать ссылку» */
.article-copy {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: none;
  border: 1px dashed var(--line-dash);
  border-radius: 100em;
  padding: 0.5em 1.05em;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.article-copy:hover { color: var(--green-ink); border-color: var(--green-ink); }
.article-copy.is-done { color: var(--green-ink); border-color: var(--green-ink); border-style: solid; }
/* check glifi mono 500 matn vazniga mos (anav strelkalari kabi) */
.article-copy .ph { font-size: 0.95em; -webkit-text-stroke: 0.55px currentColor; }

/* oldingi/keyingi maqola navigatsiyasi */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px dashed var(--line-dash);
  border-radius: var(--r-m);
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 2.8rem);
}
.anav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1.4rem 1.25rem;
  text-decoration: none;
  color: inherit;
  border-left: 1px dashed var(--line-dash);
  transition: background-color var(--dur) var(--ease);
}
.anav:first-child { border-left: 0; }
a.anav:hover { background-color: var(--paper); }
.anav--next { text-align: right; align-items: flex-end; }
.anav-l {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color var(--dur) var(--ease);
}
a.anav:hover .anav-l { color: var(--green-ink); }
.anav-t {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-nav--single { grid-template-columns: 1fr; }
.anav-l { display: inline-flex; align-items: center; gap: 0.5em; }
.anav-ico { font-size: 0.95em; flex: none; -webkit-text-stroke: 0.5px currentColor; }
@media (max-width: 560px) {
  .article-nav { grid-template-columns: 1fr; }
  .anav { border-left: 0; border-top: 1px dashed var(--line-dash); }
  .anav:first-child { border-top: 0; }
  .article-copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .article-copy, .anav, .anav-l { transition: none; }
}

/* maqola sarlavhasi — displey emas, maqola o'lchami (gigant .h-1 dan kichraytirilgan) */
.article .h-1 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1.18; }
/* meta qatori ostida nozik dashed ajratkich — meta va sarlavha tartibli bo'linadi */
.article-meta { padding-bottom: 1rem; border-bottom: 1px dashed var(--line-dash); margin-bottom: clamp(1.3rem, 2.5vw, 1.8rem); }

/* callout mobil: ikon + sarlavha bir qatorda, tavsif pastda to'liq kenglikda
   (fayl oxirida — .callout bazaviy flex qoidasidan keyin kelishi shart) */
@media (max-width: 640px) {
  .callout { display: block; }
  .callout-ico { float: left; margin-right: 1rem; }
  .callout .callout-title { min-height: 2.9rem; display: flex; align-items: center; margin-bottom: 0; }
  .callout > div > p:not(.callout-title) { clear: left; padding-top: 0.9rem; }
}

/* sw-specs mobil: 2 teng ustun + Instagram to'liq qator
   (fayl oxirida — bazaviy 3-ustun qoidasi keyin kelib yengmasligi uchun) */
@media (max-width: 560px) {
  .sw-specs--3 { grid-template-columns: 1fr 1fr; }
  .sw-specs--3 > div:nth-child(2) { padding-right: 0; }
  .sw-specs--3 > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-right: 0; margin-top: 0.95rem; border-top: 1px dashed var(--line-dash); padding-top: 0.95rem; }
}
