/* =========================================================
   ISFORM — asosiy uslublar
   UNIBO dizayn tizimi asosida (minimal, oq-qora), OpenAI uslubidagi
   ko'p sahifali tuzilma uchun moslangan.
   Ranglar va o'lchamlar :root ichida — shu yerdan o'zgartiring.
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --surface: #F4F4F4;
  --surface-2: #EBEBEB;
  --ink: #0D0D0D;
  --text: #2B2B2B;
  --muted: #5E5E5E;
  --faint: #8F8F8F;
  --line: rgba(0, 0, 0, .09);
  --line-strong: rgba(0, 0, 0, .15);

  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .1);

  --container: 1480px;   /* openai.com dan o'lchangan: kontent ~1390px */
  --gutter: clamp(16px, 3vw, 56px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Asos ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* hidden atributi har doim kuchga ega bo'lsin: .btn kabi display qoidalari uni bosib ketmasin */
[hidden] { display: none !important; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { overflow-wrap: break-word; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 900px; margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Tipografiya ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section-tight { padding-block: clamp(48px, 7vw, 88px); }
.section-alt { background: var(--surface); }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.section-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.section-head p { max-width: 660px; margin-top: 16px; font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head-row .section-head { margin-bottom: 0; }
.text-grad { color: var(--faint); }
.lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #262626; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--surface); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark { width: auto; height: 30px; }
.logo-word { width: auto; height: 16px; }
.logo-lockup { width: auto; height: 94px; }
/* Unibo logotipi — saytdagi yagona rangli element */
.logo-word-unibo { height: 17px; }
@media (max-width: 420px) { .logo-word { height: 14px; } }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-links > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border: 0; background: transparent;
  border-radius: 999px; font-size: 15px; color: var(--muted);
  transition: color .18s, background .18s;
}
.nav-links > a:hover, .nav-drop > button:hover { color: var(--ink); background: var(--surface); }
.nav-links > a.is-active, .nav-drop.is-active > button { color: var(--ink); font-weight: 500; }
/* Boshqa brendga o'tish: menyudan chiziq bilan ajratilgan */
.nav-links > a.nav-cross {
  margin-left: 10px; padding-left: 14px; color: var(--faint);
  border-left: 1px solid var(--line); border-radius: 0; background: none;
}
.nav-links > a.nav-cross:hover { color: var(--ink); background: none; }
.nav-links > a.nav-cross .icon { width: 14px; height: 14px; }
.nav-drop { position: relative; }
.nav-drop .chev { width: 16px; height: 16px; transition: transform .2s; }
.nav-drop[data-open="true"] .chev { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 270px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.nav-drop-menu a { display: block; padding: 10px 12px; border-radius: 10px; }
.nav-drop-menu a:hover { background: var(--surface); }
.nav-drop-menu strong { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-drop-menu span { font-size: 13.5px; color: var(--faint); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
/* Til almashtirgich */
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a {
  padding: 5px 9px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--faint);
  transition: color .18s, background .18s;
}
.lang-switch a:hover { color: var(--ink); background: var(--surface); }
.lang-switch a.is-active { color: #fff; background: var(--ink); }
@media (max-width: 560px) { .lang-switch a { padding: 5px 7px; font-size: 11px; } }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none; padding: 8px var(--gutter) 24px;
  border-top: 1px solid var(--line); background: #fff;
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
.mobile-menu .mm-head { font-weight: 500; }
.mobile-menu .sub { padding-left: 16px; font-size: 15.5px; color: var(--muted); }
.mobile-menu .mm-cross { margin-top: 10px; border-top: 1px solid var(--line); font-size: 15px; color: var(--faint); }
.mobile-menu .btn { margin-top: 18px; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .mobile-menu:not([hidden]) { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 88px); }
.hero-inner { max-width: 1100px; }
.hero-media { margin-top: clamp(32px, 5vw, 64px); }
.hero h1 {
  margin-top: 16px;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.hero p { max-width: 640px; margin-top: 22px; font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); }

/* ---------- Kartalar ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface); border: 1px solid transparent; border-radius: var(--radius-lg);
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { background: var(--surface-2); }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .num { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; color: var(--faint); }
.card h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.card p { font-size: 15.5px; color: var(--muted); }
/* Media-karta: rasm ustida, matn ostida */
.card-media { background: #fff; border-color: var(--line); gap: 0; }
.card-media:hover { background: #fff; border-color: var(--line-strong); }
.card-media .media { margin: -4px 0 0; }
.card-media h3 { margin-top: 18px; }
.card-dark { background: var(--ink); color: #fff; }
.card-dark .num { color: rgba(255, 255, 255, .5); }
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255, 255, 255, .7); }
.card-foot { margin-top: auto; padding-top: 16px; }

/* Portfolio / ish kartalari */
.work { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); display: block; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.work:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.work-media { aspect-ratio: 4 / 3; background: linear-gradient(140deg, #1a1a1a, #3d3d3d); position: relative; }
.work-media span { position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: rgba(255, 255, 255, .6); }
.work-body { padding: 20px 22px 24px; }
.work-body .num { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--faint); }
.work-body h3 { margin-top: 6px; font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.work-body p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Bosqichlar */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 76px 1fr; gap: 20px; padding-block: 24px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--faint); padding-top: 3px; }
.step h3 { font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.step p { margin-top: 6px; font-size: 15.5px; color: var(--muted); max-width: 620px; }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: 6px; } }

/* Faktlar qatori */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.fact { background: #fff; padding: 24px; }
.fact dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.fact dd { margin: 8px 0 0; font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
@media (max-width: 840px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* Ikki ustunli blok */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); line-height: 1.14; margin-top: 12px; text-wrap: balance; }
.split p { margin-top: 16px; color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.panel { border-radius: var(--radius-xl); background: var(--surface); aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.panel-dark { background: linear-gradient(140deg, #101010, #343434); }
.panel::after { content: attr(data-label); position: absolute; left: 20px; bottom: 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--faint); }
.panel-dark::after { color: rgba(255, 255, 255, .6); }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: clamp(36px, 6vw, 72px); text-align: center; }
.cta .eyebrow { color: rgba(255, 255, 255, .55); }
.cta h2 { margin-top: 14px; font-size: clamp(28px, 4vw, 44px); font-weight: 500; letter-spacing: -0.01em; color: #fff; text-wrap: balance; }
.cta p { max-width: 560px; margin: 16px auto 0; color: rgba(255, 255, 255, .7); }
.cta .btn-row { justify-content: center; }

/* ---------- Forma ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.phone-field {
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color .18s, box-shadow .18s;
}
.phone-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.phone-field .phone-prefix { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.phone-field input { padding-inline: 0; border: 0; border-radius: 0; background: transparent; letter-spacing: .02em; }
.phone-field input:focus { border: 0; box-shadow: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.form-note { font-size: 14px; color: var(--faint); }
.form-status { font-size: 14.5px; color: var(--ink); }

/* Aloqa ro'yxati */
.contact-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.contact-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: #fff; transition: background .18s; }
.contact-list a:hover { background: var(--surface); }
.contact-list .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.contact-list .v { font-size: 16px; color: var(--ink); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: 18px; overflow: hidden; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 26s linear infinite; }
.marquee span { font-family: var(--mono); font-size: 13px; letter-spacing: .18em; color: var(--faint); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Koreys tilida so'z o'rtasidan bo'linib ketmasin */
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.footer-grid ul { margin-top: 14px; display: grid; gap: 10px; }
.footer-grid a { font-size: 15px; color: var(--muted); }
.footer-grid a:hover { color: var(--ink); }
.footer-about p { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 320px; }
.footer-cross { margin-top: clamp(28px, 4vw, 40px); padding-top: 20px; border-top: 1px solid var(--line); }
.footer-cross a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.footer-cross a:hover { color: var(--ink); }
.footer-cross .icon { width: 15px; height: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }

/* ---------- Media (rasm / video) ----------
   Fayl topilmasa <img> o'zini o'chiradi va ostidagi gradient + yorliq qoladi,
   shuning uchun sayt media yuklanmaganda ham butun ko'rinadi. */
.media {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #141414, #3a3a3a);
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media::after {
  content: attr(data-label);
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  color: rgba(255, 255, 255, .72); text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
  pointer-events: none;
}
.media-16x7 { aspect-ratio: 16 / 7; }
.media-4x3 { aspect-ratio: 4 / 3; }
.media-1x1 { aspect-ratio: 1 / 1; }
.media-9x16 { aspect-ratio: 9 / 16; }
/* Dizayn varaqlari: oq fon, rasm to'liq ko'rinadi (kesilmaydi) */
.media-sheet { background: var(--surface); aspect-ratio: auto; }
.media-sheet img { height: auto; object-fit: contain; }
.media-sheet::after { color: var(--faint); text-shadow: none; }
.media-16x9 { aspect-ratio: 16 / 9; }
.media-2x3 { aspect-ratio: 2 / 3; }
.media-3x2 { aspect-ratio: 3 / 2; }
.media-5x4 { aspect-ratio: 5 / 4; }
.media-xl { border-radius: var(--radius-xl); }
.work .media { border-radius: 0; }

/* Unibo logotipi — saytdagi yagona rangli element */
.logo-unibo { height: 28px; width: auto; }
.brand-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand-row .sep { color: var(--faint); }

/* Narx qatori */

/* Teglar ro'yxati (sohalar, integratsiyalar) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--muted); }

/* ---------- Animatsiya ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.js .reveal { transition: opacity .6s var(--ease) var(--d, 0s), transform .6s var(--ease) var(--d, 0s); }
.reveal.is-in, html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Indeks ro'yxati (Xizmatlar) ---------- */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: clamp(12px, 3vw, 40px); align-items: baseline;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--text); transition: padding-left .2s var(--ease);
}
.index-row:hover { padding-left: 8px; }
.index-n { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--faint); }
.index-body { display: block; min-width: 0; }
.index-t { display: block; font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.index-d { display: block; margin-top: 8px; font-size: 15.5px; color: var(--muted); max-width: 62ch; }
.index-go {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 14.5px; color: var(--faint); transition: color .18s;
}
.index-go .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.index-row:hover .index-go { color: var(--ink); }
.index-row:hover .index-go .icon { transform: translate(3px, -3px); }
@media (max-width: 760px) {
  .index-row { grid-template-columns: 40px minmax(0, 1fr); }
  .index-go { grid-column: 2; margin-top: 10px; }
}

/* ---------- Va'dalar chizig'i (Kafolatlar) ---------- */
.promise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.promise li { padding-top: 16px; border-top: 2px solid var(--ink); }
.promise b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.promise span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Tahririy ro'yxat (Imkoniyatlar) ---------- */
.feature-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 80px);
}
.feature-list li {
  display: grid; grid-template-columns: 56px 1fr; align-items: start;
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-top: 1px solid var(--line);
}
.feature-list li:nth-child(-n+2) { border-top: 0; }
.feature-n { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--faint); padding-top: 5px; }
.feature-list h3 { font-size: clamp(19px, 1.8vw, 22px); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.feature-list p { margin-top: 6px; font-size: 15.5px; color: var(--muted); max-width: 46ch; }
@media (max-width: 760px) {
  .feature-list { grid-template-columns: 1fr; }
  .feature-list li:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .feature-list li:first-child { border-top: 0; }
}

/* ---------- Yirik bayonot (Nimani kamaytiradi) ---------- */
.statement {
  max-width: 32ch; margin: 0;
  font-size: clamp(21px, 2.5vw, 32px); line-height: 1.35; font-weight: 400;
  letter-spacing: -0.01em; color: var(--ink); text-wrap: balance;
}
.statement i { font-style: normal; color: var(--faint); padding-inline: 2px; }
@media (max-width: 760px) { .statement { max-width: none; } }

/* ---------- Sohalar lentasi (Kimlar uchun) ---------- */
.sector-band { margin: 0; border-top: 1px solid var(--line); }
.sector-band > div {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(16px, 4vw, 64px); align-items: baseline;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.sector-band dt { font-size: clamp(22px, 2.8vw, 34px); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.sector-band dd { margin: 0; font-size: 15.5px; color: var(--muted); }
@media (max-width: 700px) {
  .sector-band > div { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Arxitektura chizmasi ---------- */
.arch { display: grid; gap: clamp(28px, 4vw, 48px); }
.arch-map { display: block; width: 100%; height: auto; color: var(--ink); }

.arch-layer rect { fill: #fff; stroke: var(--line-strong); stroke-width: 1; }
.arch-layer.is-core rect { fill: var(--ink); }
.arch-layer.is-core .arch-n { fill: rgba(255, 255, 255, .45); }
.arch-layer.is-core .arch-t { fill: #fff; }
.arch-layer.is-core .arch-d { fill: rgba(255, 255, 255, .62); }

.arch-n { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; fill: var(--faint); }
.arch-t { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; fill: var(--ink); }
.arch-d { font-size: 14.5px; fill: var(--muted); }

.arch-flow path { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.arch-flow-label,
.arch-edge-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; fill: var(--faint); }
.arch-edge path { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }

/* Telefonda chizma o'rniga ustma-ust qatlamlar */
.arch-stack { display: none; list-style: none; margin: 0; padding: 0; gap: 10px; }
.arch-stack li { position: relative; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; }
.arch-stack li + li { margin-top: 10px; }
.arch-stack li + li::before {
  content: ""; position: absolute; left: 32px; top: -11px; width: 1px; height: 10px; background: var(--line-strong);
}
.arch-stack .arch-step { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--faint); }
.arch-stack h3 { margin-top: 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.arch-stack p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.arch-stack .is-core { background: var(--ink); border-color: var(--ink); }
.arch-stack .is-core .arch-step { color: rgba(255, 255, 255, .45); }
.arch-stack .is-core h3 { color: #fff; }
.arch-stack .is-core p { color: rgba(255, 255, 255, .62); }
@media (max-width: 760px) {
  .arch-map { display: none; }
  .arch-stack { display: block; }
}

.arch-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.arch-facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.arch-facts dd { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .arch-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .arch-facts { grid-template-columns: 1fr; } }

/* ---------- Pastki chetdagi xira shisha (iOS uslubi) ----------
   Uch qatlam: pastga borgan sari kuchliroq xiralik. Mask tufayli
   tepaga qarab asta yo'qoladi — keskin chegara ko'rinmaydi. */
.edge-blur {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 104px; z-index: 30; pointer-events: none;
  opacity: 0; transition: opacity .45s var(--ease);
}
.edge-blur.is-on { opacity: 1; }
.edge-blur::before,
.edge-blur::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
}
.edge-blur::before {
  height: 104px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}
.edge-blur::after {
  height: 56px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(to top, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 30%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, #000 30%, transparent 100%);
}
@media (max-width: 640px) {
  .edge-blur { height: 72px; }
  .edge-blur::before { height: 72px; }
  .edge-blur::after { height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .edge-blur { transition: none; } }

/* ---------- Unibo savol maydoni (hero ichida) ---------- */
.ask { max-width: 760px; margin: clamp(24px, 4vw, 44px) auto 0; text-align: center; }
.ask-form {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 20px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 28px;
  box-shadow: var(--shadow);
  transition: border-color .18s, box-shadow .18s;
}
.ask-form:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 0, 0, .05); }
.ask-form input {
  flex: 1; min-width: 0; padding: 13px 0;
  border: 0; border-radius: 0; background: transparent; font-size: 16px;
}
.ask-form input:focus { outline: none; box-shadow: none; }
.ask-send {
  flex: none; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer;
  transition: opacity .18s;
}
.ask-send:hover { opacity: .85; }
.ask-send .icon { width: 18px; height: 18px; }
.ask-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chip {
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; font-size: 14px; color: var(--muted); cursor: pointer;
  transition: color .18s, border-color .18s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.ask-note { margin-top: 14px; font-size: 13.5px; color: var(--faint); }
@media (max-width: 560px) {
  .ask-form { padding-left: 16px; }
  .chip { font-size: 13px; padding: 7px 12px; }
}

/* ---------- Unibo eshigi ---------- */
.door {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(20px, 3vw, 40px); padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface);
}
.door-text { flex: 1 1 320px; min-width: 0; }
.door h2 { margin: 10px 0 0; font-size: clamp(26px, 3.2vw, 36px); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.door p { margin: 10px 0 0; max-width: 52ch; }
.door-note { font-size: 14px; color: var(--faint); }
.door-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.door-state { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.door-state[data-state="open"] { color: var(--ink); }
@media (max-width: 640px) {
  .door-action { width: 100%; }
  .door-action .btn { width: 100%; justify-content: center; }
}

/* Yashirin boshqaruv oynasi (#eshik) */
.door-panel {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(13, 13, 13, .5);
}
.door-panel[hidden] { display: none; }
.door-card {
  width: min(420px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  overflow-y: auto; padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg);
}
.door-card h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.door-card .btn-row { margin-top: 4px; }
