/* =====================================================================
   Yangi dizayn (Figma: "Bosh sahifa 2.0" 2527:4912, 1920px).
   Kulranglar — sof neytral (Primitives → neutral/*, ko'k tussiz).
   Setka: 337px chet / 1246px kontent. Fon — sof qora.
   Bu fayl bosh sahifa (index.html) va loyihalar sahifasi (projects.html) uchun.
   Loyiha batafsil sahifasi (project.html) hali eski style.css'da.
   ===================================================================== */

/* ---------- Shriftlar ----------
   Bepul (OFL), Google Fonts'dan: sarlavhalar — Roboto Flex (tor, "condensed" = kenglik 75%),
   matn — Onest. Avvalgi TT Hoves / TT Interfaces / GT America (Trial) ishlatilmaydi. */

:root {
  /* Figma: Tokens → Dark (19 ta, nomi va qiymati Figmadagidek; o'ngda — Primitives'dagi manbasi) */
  --bg-canvas: #000000;            /* bg/canvas → neutral/1000 */
  --bg-surface: #101010;           /* bg/surface → neutral/900 */
  --bg-surface-subtle: #232323;    /* bg/surface-subtle → neutral/800 */
  --bg-surface-hover: #353535;     /* bg/surface-hover → neutral/700 */
  --text-primary: #ffffff;         /* text/primary → neutral/0 */
  --text-secondary: #989898;       /* text/secondary → neutral/400 */
  --text-muted: #6f6f6f;           /* text/muted → neutral/450 */
  --text-on-brand: #ffffff;        /* text/on-brand → neutral/0 */
  --brand-primary: #4338ca;        /* brand/primary → indigo/700 */
  --brand-primary-hover: #4f46e5;  /* brand/primary-hover → indigo/600 */
  --brand-primary-active: #6366f1; /* brand/primary-active → indigo/500 */
  --brand-accent-text: #818cf8;    /* brand/accent-text → indigo/400 */
  --brand-subtle-bg: #1e1b4b;      /* brand/subtle-bg → indigo/950 */
  --border-subtle: #232323;        /* border/subtle → neutral/800 */
  --border-strong: #353535;        /* border/strong → neutral/700 */
  --border-focus: #818cf8;         /* border/focus → indigo/400 */
  --status-success: #10b981;       /* status/success → emerald/500 */
  --status-warning: #f59e0b;       /* status/warning → amber/500 */
  --status-error: #f43f5e;         /* status/error → rose/500 */

  --font-head: "Roboto Flex", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;

  --content: 1246px;
  --edge: 32px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-canvas); color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  font-feature-settings: "lnum" 1, "pnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p, h1, h2, h3 { margin: 0; font-weight: inherit; }
::selection { background: color-mix(in srgb, var(--brand-primary) 55%, transparent); color: var(--text-primary); }
img::selection { background: transparent; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }

/* Figma'dagi text-box-trim: matn bloki bosh harf balandligidan boshlanadi */
.trim { text-box: trim-both cap alphabetic; }

.wrap { width: min(var(--content), 100% - 2 * var(--edge)); margin-inline: auto; }

/* ---------- Matn uslublari (Figma text styles) ---------- */
.t-h1 { font: 500 condensed 120px/1 var(--font-head); letter-spacing: -0.03em; }      /* interface/title/display */
.t-heading1 { font: 500 condensed 56px/1 var(--font-head); letter-spacing: -0.02em; } /* interface/title/heading1 */
.t-heading2 { font: 500 condensed 48px/1 var(--font-head); letter-spacing: -0.02em; } /* heading2 */
.t-heading3 { font: 500 condensed 40px/0.9 var(--font-head); letter-spacing: -0.03em; } /* heading3 */
.t-title1 { font: 500 condensed 32px/1 var(--font-head); letter-spacing: -0.01em; }   /* title1 */
.t-title2 { font: 500 condensed 28px/1 var(--font-head); letter-spacing: -0.01em; }   /* title2 */
.t-title5 { font: 400 condensed 16px/1.2 var(--font-head); letter-spacing: 0; } /* title5 */
.t-bodyVL { font: 400 24px/1.3 var(--font-body); letter-spacing: -0.04em; } /* bodyVL */
.t-bodyL { font: 400 20px/1.3 var(--font-body); letter-spacing: -0.04em; }   /* bodyL */
.t-bodyLA { font: 500 20px/1.4 var(--font-body); letter-spacing: -0.005em; } /* bodyLAccent */
.t-bodyM { font: 400 16px/1.3 var(--font-body); letter-spacing: -0.04em; }   /* bodyM */
.t-bodyMA { font: 500 16px/1.4 var(--font-body); letter-spacing: -0.04em; } /* bodyMAccent */
.t-bodyS { font: 400 14px/1.3 var(--font-body); letter-spacing: 0; }   /* bodyS */
.c-secondary { color: var(--text-secondary); }
.c-warning { color: var(--status-warning); }
.c-success { color: var(--status-success); }

/* =====================================================================
   Navigatsiya (Figma: Header 2676:8783) — chap: logo + 4 band, o'ng: ovoz + RU/EN + Telegram
   ===================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  padding: 12px var(--edge) 24px;
  background: rgba(255, 255, 255, 0.001);   /* Figma: oq 0,1% — amalda shaffof */
}

/* Figma: Progressive blur — tepada 32px, pastda 0.
   Bir nechta qatlam: har biri kuchsizroq blur va pastroqqacha yetadi,
   ustma-ust tushib tepada ~32px (28/14/7/3.5 → √Σ² ≈ 32), pastda 0 xiralik beradi. */
.nav__blur { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.nav__blur i { position: absolute; inset: 0; }
.nav__blur i:nth-child(1) { -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); -webkit-mask-image: linear-gradient(#000 0%, #000 20%, transparent 45%); mask-image: linear-gradient(#000 0%, #000 20%, transparent 45%); }
.nav__blur i:nth-child(2) { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask-image: linear-gradient(#000 0%, #000 40%, transparent 65%); mask-image: linear-gradient(#000 0%, #000 40%, transparent 65%); }
.nav__blur i:nth-child(3) { -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); -webkit-mask-image: linear-gradient(#000 0%, #000 60%, transparent 85%); mask-image: linear-gradient(#000 0%, #000 60%, transparent 85%); }
.nav__blur i:nth-child(4) { -webkit-backdrop-filter: blur(3.5px); backdrop-filter: blur(3.5px); -webkit-mask-image: linear-gradient(#000 0%, #000 75%, transparent 100%); mask-image: linear-gradient(#000 0%, #000 75%, transparent 100%); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__left { display: flex; align-items: center; gap: 16px; }
.nav__logo { display: block; width: 42px; height: 24px; border-radius: 4px; }
.nav__logo img { width: 42px; height: 24px; }
.nav__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 60px;
  background: transparent;
  color: var(--text-primary);
  font: 400 condensed 16px/1.2 var(--font-head);   /* title5 */
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.nav__link:hover { background: var(--bg-surface); }

/* "Tez kunda" — hali tayyor bo'lmagan sahifa bosilganda chiqadigan kichik yozuv */
.nav__soon {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  translate: -50% -4px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
  font: 400 14px/1.3 var(--font-body);
  letter-spacing: -0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, translate 0.2s var(--ease);
}
.nav__item.is-soon .nav__soon { opacity: 1; translate: -50% 0; }

.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__tools { display: flex; align-items: center; gap: 6px; }

/* Telegram — asosiy CTA (Figma: Header → button). control/button/m: Roboto Flex Medium 16, oddiy kenglik */
.nav__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;   /* joy Figmadagidek (stroke inside, layout'ga kiradi); chizig'i ::after'da */
  border-radius: 60px;
  background: linear-gradient(180deg, var(--brand-primary-active) 0%, var(--brand-subtle-bg) 100%) border-box;   /* indigo/500 → indigo/950, hoshiya ostidan ham */
  box-shadow: inset 0 13px 20px -5px rgba(255, 255, 255, 0.5);
  color: var(--text-on-brand);
  font: 500 16px/1.2 var(--font-head);
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s var(--ease);
}
/* Hover: yorqinroq qatlam (gradient'ni silliq almashtirish uchun alohida qatlam) */
.nav__cta::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: rgba(255, 255, 255, 0.08); opacity: 0; transition: opacity 0.35s var(--ease); }
.nav__cta:hover::before { opacity: 1; }
/* Hoshiya — Figma: gradient stroke, tepada oq 14% → pastda 4%, 1px, ichkarida */
.nav__cta::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.nav__cta:active { transform: scale(0.97); }
.nav__sound {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__sound:hover { background: var(--bg-surface); color: var(--text-primary); }
.nav__sound svg { width: 20px; height: 20px; }
.nav__sound .wave { transition: opacity 0.2s; }
.nav__sound.is-off .wave { opacity: 0; }
.nav__sound .cross { opacity: 0; transition: opacity 0.2s; }
.nav__sound.is-off .cross { opacity: 1; }

/* RU / EN (Figma: "Til") */
.seg { display: flex; align-items: center; padding: 2px; border-radius: 60px; background: var(--bg-surface); }
.seg__btn {
  min-width: 46px;
  padding: 12px 14px;
  border: 0;
  border-radius: 60px;
  background: transparent;
  color: var(--text-primary);
  font: 400 14px/1.3 var(--font-body);   /* bodyS */
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.seg__btn span { display: block; }
.seg__btn:not(.is-current) { color: var(--text-secondary); }
.seg__btn:not(.is-current):hover { color: var(--text-primary); }
.seg__btn.is-current { background: var(--bg-canvas); }

/* =====================================================================
   Hero (Figma: "Bosh sahifa 2.0" → 2676:8665) — markazda, 614px ustun, yuqoridan 120px.
   Avatar 200 → 8 → ism (rasm 614×210) → 24 → rol → 40 → matn → 40 → rezyume
   ===================================================================== */
.hero { padding: 120px 8px 0; }
.hero__in { display: flex; flex-direction: column; align-items: center; gap: 40px; width: min(614px, 100%); margin-inline: auto; text-align: center; }
.hero__top { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.hero__id { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.hero__name { position: relative; width: 100%; }
/* Yandex rasm paneli (qidiruv, skrinshot) chiqmasin — rasm ustida shaffof qatlam */
.hero__name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hero__name img { width: 100%; height: auto; aspect-ratio: 614 / 210; user-select: none; -webkit-user-drag: none; }
.hero__name img { object-fit: contain; transition: opacity 0.3s var(--ease); }
.hero__name img.is-pending { opacity: 0; }
/* Ikki abzats, oralig'ida bitta bo'sh qator; \n — Figmadagi qator ko'chishi */
.hero__text { white-space: pre-line; }

/* Surat: har 1,5 soniyada o'zi almashadi; bosilganda ham */
.avatar {
  position: relative;
  width: 200px;
  height: 200px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-surface);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);
}
/* Bosilganda biroz kichrayib, qo'yib yuborilganda joyiga qaytadi (avvalgi saytdagidek) */
.avatar:active { transform: scale(0.97); }
.avatar:disabled { cursor: default; }
.avatar:disabled:active { transform: none; }
.avatar__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.avatar__img.is-active { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  border: 0;
  border-radius: 60px;
  font: 500 18px/1.2 var(--font-head);   /* control/button/l — Roboto Flex, oddiy kenglik */
  letter-spacing: -0.03em;
  white-space: nowrap;
  cursor: pointer;
  /* Hover — yumshoq: fon, yorug'lik va soya birga, 0.35s (barcha tugmalar uchun bir xil) */
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.2s var(--ease);
}
/* Paydo bo'lish animatsiyasi (.rv) tugmaning transition'ini almashtirib yubormasin —
   aks holda hover silliq emas, birdan almashadi */
.rv-on .btn.rv {
  transition:
    opacity 0.7s var(--ease) var(--rv-d, 0s),
    translate 0.7s var(--ease) var(--rv-d, 0s),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--brand { background: var(--brand-primary); color: var(--text-on-brand); }
.btn--brand:hover { background: var(--brand-primary-hover); }

/* Kulrang tugmalar ("Моё резюме", "Подробнее", Проекты sahifasidagi tugmalar):
   hover'da fon yorishadi, tepa chetida ingichka yorug'lik va ostida yengil nur paydo bo'ladi */
.btn--surface {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0), 0 8px 24px -8px rgba(255, 255, 255, 0);
}
@media (hover: hover) {
  .btn--surface:hover {
    background: var(--bg-surface-subtle);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px -8px rgba(255, 255, 255, 0.12);
  }
}
.btn--surface:focus-visible,
.btn--surface:active { background: var(--bg-surface-subtle); }

/* control/button/m: 16px, balandligi 48 (Figma: "Подробнее") */
.btn--m { height: 48px; padding: 0 24px; font-size: 16px; }
/* control/button/xl: 20px, ikonka 24 + 10px oraliq (Figma: Resume Link) */
.btn--xl { gap: 10px; font-size: 20px; }
.btn--xl img, .btn--xl svg { width: 24px; height: 24px; flex: none; }

/* "Моё резюме" — qo'shimcha: strelka pastga "tushib" qaytadi (yuklab olish ishorasi), chiziq biroz kengayadi */
.btn--dl .dl { overflow: visible; color: var(--text-primary); }
.btn--dl .dl__arrow { transform-box: fill-box; }
.btn--dl .dl__base { transform-box: fill-box; transform-origin: center; transition: transform 0.35s var(--ease); }
@media (hover: hover) {
  .btn--dl:hover .dl__arrow { animation: dl-drop 0.7s var(--ease); }
  .btn--dl:hover .dl__base { transform: scaleX(1.15); }
}
@keyframes dl-drop {
  0% { transform: translateY(0); opacity: 1; }
  40% { transform: translateY(5px); opacity: 0; }
  41% { transform: translateY(-6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--dl .dl__arrow { animation: none !important; }
}

/* =====================================================================
   Bento (Figma: 2581:5936) — 1246 × 708, 7 karta.
   Kenglik 1246 dan tor bo'lsa, butun blok proporsional kichrayadi (--k, home.js).
   ===================================================================== */
.bento { padding-top: 76px; }   /* Figma: hero 844 → bento 76px dan keyin */
.bento__box { position: relative; height: calc(708px * var(--k, 1)); }
.bento__grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 1246px;
  height: 708px;
  transform: scale(var(--k, 1));
  transform-origin: 0 0;
}

.bc { position: absolute; overflow: hidden; border-radius: 48px; isolation: isolate; }
/* ::after — ichki soya, va ayni paytda rasmlar ustidagi shaffof qatlam (Yandex rasm paneli chiqmasin) */
.bc::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; box-shadow: inset 0 0 45px 0 var(--glow, transparent); }
.bc__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; pointer-events: none; user-select: none; }
.bc__label { font: 400 16px/1.3 var(--font-body); letter-spacing: -0.04em;   /* bodyM */ color: rgba(255, 255, 255, 0.5); }
.bc__head { position: absolute; left: 32px; top: 32px; display: flex; flex-direction: column; gap: 20px; }
.bc__title { white-space: pre-line; }

/* 1) Qizil — 98% */
.bc--red { left: 0; top: 0; width: 342px; height: 446px; }
.bc--red::after { box-shadow: inset 0 0 48.8px 0 #ff4141; }
.bc--red .bc__label { position: absolute; left: 32px; top: 32px; width: 244px; }
.bc__stat { position: absolute; left: 32px; bottom: 32px; width: 264px; display: flex; flex-direction: column; gap: 24px; }
/* 98% — Figma: interface/title/display (.t-h1) */
.bc__body { font: 400 20px/1.3 var(--font-body); letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.7); }

/* 2) Binafsha — interfeys */
.bc--purple { left: 362px; top: 0; width: 548px; height: 262px; --glow: #9e83ff; }
.bc--purple .bc__head { width: 203px; }
/* Figma'dan eksport: 254×247 dan kartaga sig'adigan 230px qismi, chegarasi (#2a223c) rasm ichida */
.bc__phone { position: absolute; right: 44px; top: 32px; width: 254px; height: 230px; border-radius: 24px 24px 0 0; }

/* 3) Kulrang — jarayon */
.bc--grey { left: 930px; top: 0; width: 316px; height: 446px; --glow: #494750; }
.bc--grey .bc__head { width: 256px; }
.bc__steps { position: absolute; left: 32px; top: 195px; width: 256px; white-space: pre-line; color: rgba(255, 255, 255, 0.7); }   /* bodyL */

/* Jarayon kartasidagi rasm (Figma: Design Process Card) — karta chetida kesiladi */
/* Figma eksporti: karta ichida ko'rinadigan qismi (284×143), chap-tepa burchagi 6px shaffof */
.bc__process { position: absolute; left: 32px; top: 303px; width: 284px; height: 143px; }
.bc__process img { width: 284px; height: 143px; }

/* 4) "Давайте работать вместе!" */
.bc--work { left: 362px; top: 282px; width: 164px; height: 164px; border-radius: 40px; background: var(--bg-surface); display: grid; place-items: center; }
.bc--work::after { box-shadow: inset 0 0 28px 0 rgba(255, 255, 255, 0.35); }
.bc--work .bc__title { width: 122px; text-align: center; color: var(--text-primary); }   /* bodyL */

/* 5) Ko'k — AI */
.bc--blue { left: 546px; top: 282px; width: 364px; height: 426px; }
.bc--blue::after { box-shadow: inset 0 0 36px 0 rgba(255, 255, 255, 0.55), inset 0 0 45px 0 #a4dbff; }
.bc--blue .bc__head { left: 50%; translate: -50% 0; width: 278px; align-items: center; text-align: center; }
.bc--blue .bc__label { color: rgba(0, 0, 0, 0.5); }
.bc--blue .bc__title { color: #0b0b0b; }   /* text/primary (Light) → neutral/950 */
.glow { position: absolute; border-radius: 50%; background: #fff; pointer-events: none; }
.glow--1 { left: 205px; top: 205px; width: 135px; height: 135px; filter: blur(43.5px); }
.glow--2 { left: 62px; top: 183px; width: 171px; height: 171px; filter: blur(54px); }
.bc__plate { position: absolute; left: 50%; bottom: 79px; translate: -50% 0; width: 252px; height: 180px; border-radius: 8.824px; background: #a6d1ef; }
/* Oq-ko'k quti 4 ta ikonka bilan (Figma: AI Content, eksport) */
.bc__ai { position: absolute; left: 50%; bottom: 32px; translate: -50% 0; width: 278px; height: 220px; border-radius: 20px; background: #ebf7ff; }

/* 6) Oltin — dizayn tizimi */
.bc--gold { left: 0; top: 466px; width: 526px; height: 242px; --glow: #aa8008; }
.bc--gold .bc__head { left: 50%; translate: -50% 0; align-items: center; text-align: center; }
.bc--gold .bc__title { color: #f2f2f2; white-space: nowrap; }
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 3px 3px 3px 8px;
  border: 1px solid #513b11;
  border-radius: 10px;
  background: rgba(47, 35, 3, 0.8);
  box-shadow: inset 0 4px 12px 0 rgba(189, 189, 189, 0.15);
  color: #f2f2f2;
  font: 300 18px/1.2 var(--font-mono);
  letter-spacing: -0.09em;
  white-space: nowrap;
  overflow: hidden;
}
.chip code { font: inherit; }
.chip--a { left: 32px; bottom: 76px; padding: 8px; }
.chip--b { left: 32px; bottom: 32px; }
.chip--c { left: 297px; bottom: 76px; }
.chip__sw { width: 16px; height: 16px; flex: none; border-radius: 4px; background: #c4530d; }
.chip__prop { width: 16px; height: 16px; flex: none; display: grid; place-items: center; }
.chip__prop::before { content: ""; width: 10px; height: 10px; border: 1.3px solid #fff; border-radius: 2.9px; transform: rotate(45deg); }
.chip__dot { width: 4px; height: 4px; flex: none; border-radius: 50%; background: #f2f2f2; }
.chip__ag { font: 500 condensed 18px/1.2 var(--font-head); letter-spacing: -0.01em; }
.chip__tags { display: flex; gap: 3px; }
.chip__tags code { padding: 5px 6px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.11); }
.chip .ls7 { letter-spacing: -0.07em; }   /* Figma: "100%" chipi −7% */

/* 7) Yashil — dizayn-injiniring */
.bc--green { left: 930px; top: 466px; width: 316px; height: 242px; --glow: #18ad69; }
.bc--green .bc__head { width: 256px; }
.bc__code { position: absolute; left: 32px; top: 126px; width: 280px; height: 162px; border-radius: 6px 0 0 0; overflow: hidden; }
.bc__code img { width: 280px; height: 117px; }   /* Figma eksporti: kartaga sig'adigan qismi */

/* =====================================================================
   Loyiha bloki (Figma: Tezco 2608:7706, HayotLab 2613:8072)
   Sarlavha 120 + tavsif 24, ostida rasmlar kollaji (dizayndagi joylashuv bilan).
   ===================================================================== */
.case { padding-top: 240px; }
.case__head { display: flex; flex-direction: column; align-items: center; gap: 48px; max-width: 614px; margin-inline: auto; text-align: center; }
/* Tavsif + "Подробнее" (Figma: Project Info → 24px oraliq) */
.case__info { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.case__desc { color: var(--text-primary); }
.case__box { position: relative; margin-top: 90px; height: calc(var(--h) * 1px * var(--k, 1)); }
.case__grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 1246px;
  height: calc(var(--h) * 1px);
  transform: scale(var(--k, 1));
  transform-origin: 0 0;
}
.tile {
  position: absolute;
  overflow: hidden;
  border-radius: 48px;
  background: var(--tile-bg, #0d0d0d);
}
.tile img { width: 100%; height: 100%; object-fit: cover; user-select: none; }

/* Yandex Browser rasm ustiga o'z panelini (qidiruv, skrinshot) chiqaradi.
   Rasm ustidagi shaffof qatlam buni yashiradi (bentoda bu vazifani .bc::after bajaradi). */
.tile::after,
.avatar::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }

/* =====================================================================
   Obuna (Figma: 2613:8347)
   ===================================================================== */
.sub { padding: 240px 0 60px; }
.sub__in { display: flex; flex-direction: column; align-items: center; gap: 90px; text-align: center; }
.sub__row { display: flex; gap: 20px; width: 100%; }   /* 4 ta karta bir qatorda */
.sub__card {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  height: 212px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 48px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 77px 0 rgba(255, 255, 255, 0.25);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
/* Tosh ikonka (Figma: social_media, 110 × 110) */
.sub__icon { width: 110px; height: 110px; }
/* Yandex rasm paneli chiqmasin */
.sub__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
/* Hover — Figma: social_media / Hover: ichki yorug'lik brand rangida (indigo #4338CA, 80%) */
.sub__card:hover { box-shadow: inset 0 0 77px 0 color-mix(in srgb, var(--brand-primary) 80%, transparent); }
.sub__card:focus-visible { box-shadow: inset 0 0 77px 0 color-mix(in srgb, var(--brand-primary) 80%, transparent); }
.sub__card:active { transform: scale(0.99); }
.sub__name { color: var(--text-secondary); }

/* =====================================================================
   Loyihalar sahifasi (projects.html) — admin'dagi ishlar, ketma-ket
   ===================================================================== */
.plist { padding: 144px 0 0; }
.plist__title { text-align: center; }
.pitem { padding-top: 240px; }
.pitem:first-child { padding-top: 160px; }
.pitem__head { display: flex; flex-direction: column; align-items: center; gap: 56px; max-width: 760px; margin-inline: auto; text-align: center; }
.pitem__meta { color: var(--text-secondary); }
.pitem__imgs { display: flex; flex-direction: column; gap: 20px; margin-top: 90px; }
/* Hover (avvalgi saytdagidek): ramka o'lchami o'zgarmaydi, faqat ichidagi rasm 3% kattalashadi */
.pitem__img {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0 round 48px);   /* Safari: kattalashuvda burchaklar chiqib ketmasin */
  border-radius: 48px;
  background: #0d0d0d;
}
.pitem__img img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
  -webkit-user-drag: none;
  user-select: none;
}
/* Yandex rasm paneli chiqmasin */
.pitem__img::after { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (hover: hover) {
  a.pitem__img:hover img { transform: scale(1.03); }
}
.pitem__more { display: flex; justify-content: center; margin-top: 40px; }
.plist__empty { padding-top: 120px; text-align: center; color: var(--text-secondary); }

/* =====================================================================
   Paydo bo'lish animatsiyasi: 16px pastdan suzib chiqadi (avvalgidek)
   ===================================================================== */
.rv-on .rv {
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity 0.7s var(--ease) var(--rv-d, 0s),
    translate 0.7s var(--ease) var(--rv-d, 0s);
}
.rv-on .rv.is-in { opacity: 1; translate: none; }
.rv-on .rv.rv-quick { transition-duration: 0.35s, 0.35s; }
.rv-on .rv.rv-reset { transition: none; opacity: 0; translate: 0 8px; }
@media (prefers-reduced-motion: reduce) {
  .rv-on .rv { opacity: 1; translate: none; transition: none; }
}

/* Mobil dizayn hali chizilmagan: tor ekranda faqat matnlar buzilmasligi uchun */
@media (max-width: 760px) {
  :root { --edge: 16px; }
  .nav__list { display: none; }
  .t-h1 { font-size: 72px; }
  .sub__row { flex-direction: column; }
}
