/* ===== PAGE LOAD ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes lineGrow {
  from { width: 0; }
  to   { width: 100%; }
}

/* ===== HERO ANIMATION KEYFRAMES ===== */

/* Ken Burns — fon rasm sekin zoom */
@keyframes kenBurns {
  0%   { transform: scale(1)    translateX(0)     translateY(0); }
  33%  { transform: scale(1.06) translateX(-1%)   translateY(-0.5%); }
  66%  { transform: scale(1.04) translateX(1%)    translateY(0.5%); }
  100% { transform: scale(1)    translateX(0)     translateY(0); }
}

/* Floating particle */
@keyframes floatUp {
  0%   { transform: translateY(0)    translateX(0)   scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(var(--dx, 20px)) scale(0.4); opacity: 0; }
}

/* Orb harakati */
@keyframes orbMove1 {
  0%   { transform: translate(0, 0)       scale(1); }
  50%  { transform: translate(8%, 5%)     scale(1.15); }
  100% { transform: translate(0, 0)       scale(1); }
}
@keyframes orbMove2 {
  0%   { transform: translate(0, 0)       scale(1); }
  50%  { transform: translate(-6%, -8%)   scale(1.1); }
  100% { transform: translate(0, 0)       scale(1); }
}

/* Matn harf chiqish */
@keyframes letterReveal {
  from { opacity: 0; transform: translateY(20px) skewX(-3deg); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0)    skewX(0deg);  filter: blur(0); }
}

/* Chiziq o'sish */
@keyframes lineReveal {
  from { width: 0; opacity: 0; }
  to   { width: 48px; opacity: 1; }
}

/* Noise shimmer */
@keyframes noiseShift {
  0%, 100% { transform: translate(0, 0); }
  20%  { transform: translate(-2px, 1px); }
  40%  { transform: translate(2px, -2px); }
  60%  { transform: translate(-1px, 2px); }
  80%  { transform: translate(1px, -1px); }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000000;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --dark4: #2a2a2a;
  --border: rgba(0,0,0,0.1);
  --border2: rgba(0,0,0,0.18);
  --gold: #c9a96e;
  --gold-light: #e8c98a;
  --gold-dark: #8b6914;
  --white: #ffffff;
  --white70: rgba(255,255,255,0.7);
  --white40: rgba(255,255,255,0.4);
  --white15: rgba(255,255,255,0.15);
  --text: #111111;
  --text-mid: #444444;
  --text-light: #888888;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: #ffffff;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== SCROLLBAR =====
   Ilgari aylantirgich butunlay yashirilgan edi (`width: 0`). Natijada
   uzun sahifalarda va o'qish oynasida foydalanuvchi qayerda turganini
   va yana qancha matn qolganini BILMAY qolardi — ayniqsa sichqoncha
   yoki touchpad bilan aylantirganda.
   Endi u ko'rinadi, lekin saytning nozik uslubiga mos: ingichka,
   xira va faqat kerak bo'lganda seziladi. */
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .22);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;   /* chetlarida bo'shliq — ingichka ko'rinadi */
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .40); background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* Firefox — FAQAT unga.
   DIQQAT: `scrollbar-width` ni shartsiz berib bo'lmaydi. Chrome uni ham
   qo'llab-quvvatlaydi va u `::-webkit-scrollbar` qoidalarini BEKOR qiladi:
   o'lchab ko'rilganda aylantirgich 12px o'rniga 2px bo'lib qolgan.
   `-moz-appearance` faqat Firefox'da mavjud, shuning uchun shu shart
   orqali ajratamiz. */
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.28) transparent; }
}

/* Asar/tadqiqot o'qish sahifasining TUNGI rejimi: qora fonda qora
   aylantirgich ko'rinmaydi, shuning uchun uni yoritamiz. */
[data-reader-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(233, 223, 201, .26);
  background-clip: content-box;
}
[data-reader-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(233, 223, 201, .45);
  background-clip: content-box;
}
@supports (-moz-appearance: none) {
  [data-reader-theme="dark"] { scrollbar-color: rgba(233,223,201,.30) transparent; }
}

/* Gorizontal lentalar (tab, filtr qatorlari) ATAYLAB yashirin qoladi —
   ular yon tomonga suriladi va u yerda aylantirgich dizayni buzadi.
   Ularning o'z qoidalari quyida (`.works-tabs`, `.filter-tabs`, ...). */

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 0 clamp(20px, 4vw, 80px);
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  animation: fadeInDown 0.7s ease both;
}

.logo { flex-shrink: 0; justify-self: start; text-decoration: none; }

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}
.logo:hover .logo-img { opacity: 0.85; }

/* Shaffof headerd — oq logo ko'rinadi */
.logo-light { display: block; }
.logo-dark  { display: none; }

/* Scroll bo'lganda — rangli logo */
.header.scrolled .logo-light { display: none; }
.header.scrolled .logo-dark  { display: block; }

.logo-script {
  font-family: 'Pinyon Script', cursive;
  font-size: 36px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: opacity var(--transition);
  line-height: 1;
}
.logo-script:hover { opacity: 0.8; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
}

/* ===== BURGER + MOBILE MENU ===== */
.burger {
  display: none;               /* mobile media-query ochadi */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.25s ease;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.25s ease, background 0.3s ease;
}
.header.scrolled .burger span { background: var(--text); }

/* Ochilgan holat — X ko'rinishi */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;               /* mobile media-query flex qiladi */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  /* Yopiq holat */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  z-index: 998;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mm-link {
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}
.mm-link:hover,
.mm-link.active { color: var(--gold-dark); background: rgba(201, 169, 110, 0.10); }

.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}
.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Right side wrapper */
.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1100;
}

/* Kirish / auth widget o'chirilgan (login tizimi ishlatilmaydi) */
.hdr-auth-widget { display: none !important; }

/* ---- Language Dropdown ---- */
.lang-dropdown {
  position: relative;
}

.lang-selected {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--white15);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-selected:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white40);
}

.lang-flag { display: flex; align-items: center; }
.lang-flag svg, .lang-flag img { width: 24px; height: 16px; border-radius: 2px; display: block; }

.lang-option svg, .lang-option img { width: 24px; height: 16px; border-radius: 2px; display: block; flex-shrink: 0; }

.lang-chevron {
  font-size: 8px;
  color: var(--white40);
  transition: transform var(--transition);
}
.lang-dropdown.open .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(18,18,18,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 6px;
  min-width: 148px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  z-index: 1100;
}
.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--white70);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}
.lang-option span { font-size: 17px; }
.lang-option:hover { background: var(--white15); color: var(--white); }
.lang-option.active { color: var(--gold); background: rgba(201,169,110,0.08); }
/* -------------------------------- */

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white70);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active { position: relative; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 1px;
  background: var(--gold);
}

/* Scroll bo'lganda (oq bg) nav rangi qorayadi */
.header.scrolled .nav-link { color: var(--text-mid); }
.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active { color: var(--text); }
.header.scrolled .logo-script { color: var(--text); }
.header.scrolled .dropdown-item { color: var(--text-mid); }
.header.scrolled .dropdown-item:hover { color: var(--gold-dark); background: rgba(0,0,0,0.04); }
.header.scrolled .dropdown-menu {
  background: rgba(255,255,255,0.98);
  border-color: var(--border);
}
.header.scrolled .lang-selected {
  background: rgba(0,0,0,0.06);
  border-color: var(--border);
}
.header.scrolled .lang-flag img,
.header.scrolled .lang-flag svg {
  display: block;
  width: 24px; height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}
.header.scrolled .lang-chevron { color: var(--text-light); }
.header.scrolled .arrow { color: var(--text-mid); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(20,20,20,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 8px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white70);
  transition: color var(--transition), background var(--transition);
}

.dropdown-item:hover { color: var(--gold); background: var(--white15); }

.arrow { font-size: 10px; margin-left: 4px; opacity: 0.6; }

/* ===== BOTTOM NAV ===== */
/* ===== BOTTOM NAV — Liquid Glass iOS 26 ===== */
.bottom-nav {
  display: none;
}

@keyframes bnItemPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.88); }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (max-width: 1024px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 480px;
    height: 68px;
    /* Quyuq to'q fon — backdrop-filter ishlamasa ham to'liq ko'rinadi
       (iOS Safari scroll paytida blur uzilib qoladi, shuning uchun fon
       o'zi yetarlicha quyuq bo'lishi shart). */
    background: rgba(18, 15, 12, 0.92);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.32),
      0 2px 8px rgba(0, 0, 0, 0.20),
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    z-index: 1000;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden;
    /* Scroll paytida qayta chizishni barqarorlashtirish */
    transform: translateX(-50%) translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* Subtle specular shimmer on top edge */
  .bottom-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg,
      transparent,
      rgba(255,255,255,0.6) 40%,
      rgba(255,255,255,0.6) 60%,
      transparent);
    border-radius: 50%;
  }

  /* Inner refraction glow */
  .bottom-nav::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(255,255,255,0.12) 0%,
      transparent 70%
    );
    pointer-events: none;
  }

  .bn-item {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    font-size: 9px;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    transition: color 0.25s ease;
    padding: 8px 4px;
    z-index: 1;
  }

  .bn-item:active {
    animation: bnItemPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Active pill background */
  .bn-item.active::before {
    content: '';
    position: absolute;
    inset: 6px 4px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.3),
      0 2px 8px rgba(0,0,0,0.15);
  }

  .bn-item.active {
    color: #ffffff;
  }

  /* Oq fon ustida — deyarli to'liq quyuq (kontent ko'rinmasin) */
  .bottom-nav.on-light {
    background: rgba(14, 11, 9, 0.96);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.36),
      0 2px 8px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  }

  .bn-item:not(.active):hover {
    color: rgba(255, 255, 255, 0.75);
  }

  .bn-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  }

  .bn-item.active .bn-icon {
    transform: scale(1.12);
    filter:
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.5))
      drop-shadow(0 0 12px rgba(201, 169, 110, 0.35));
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #000000;
}

/* Fon rasm — to'liq section */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-wrap picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg-wrap picture source { display: none; }

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform-origin: center center;
  animation: kenBurns 28s ease-in-out infinite;
  will-change: transform;
}

.hero-bg-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(0,0,0,0.75) 0%, transparent 50%),
    linear-gradient(to left,   rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.65) 40%, transparent 75%),
    linear-gradient(to top,    rgba(0,0,0,0.88) 0%, transparent 40%),
    linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 50%);
}

/* ===== GRADIENT ORBS ===== */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
  will-change: transform;
}

.hero-orb-1 {
  display: none;
}

.hero-orb-2 {
  display: none;
}

/* ===== PARTICLES ===== */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hp {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

.hp-1 { width: 3px;  height: 3px;  left: 10%; animation-duration: 12s; animation-delay: 0s;    --dx: 15px; }
.hp-2 { width: 2px;  height: 2px;  left: 22%; animation-duration: 15s; animation-delay: 2.5s;  --dx: -20px; }
.hp-3 { width: 4px;  height: 4px;  left: 35%; animation-duration: 10s; animation-delay: 1s;    --dx: 25px; }
.hp-4 { width: 2px;  height: 2px;  left: 50%; animation-duration: 18s; animation-delay: 4s;    --dx: -10px; }
.hp-5 { width: 3px;  height: 3px;  left: 63%; animation-duration: 13s; animation-delay: 0.5s;  --dx: 18px; }
.hp-6 { width: 2px;  height: 2px;  left: 75%; animation-duration: 16s; animation-delay: 3s;    --dx: -22px; }
.hp-7 { width: 4px;  height: 4px;  left: 85%; animation-duration: 11s; animation-delay: 1.5s;  --dx: 12px; }
.hp-8 { width: 2px;  height: 2px;  left: 92%; animation-duration: 14s; animation-delay: 5s;    --dx: -15px; }

/* ===== NOISE TEXTURE ===== */
.hero-noise {
  position: absolute;
  inset: -50%;
  z-index: 3;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: noiseShift 0.12s steps(1) infinite;
  mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════════
   HERO STAGE — Markazlashgan, katta matn
═══════════════════════════════════════════ */
.hero-stage {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

/* Badge — "portal" pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.28);
  border-radius: 100px;
  padding: 7px 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(201,169,110,0.9);
  letter-spacing: 0.06em;
  margin-bottom: 36px;
  animation: fadeInUp 0.7s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #c9a96e;
  box-shadow: 0 0 8px rgba(201,169,110,0.8);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Asosiy sarlavha */
.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 0 28px;
  animation: fadeInUp 0.9s 0.25s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-heading-line {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 700;
  font-style: normal;
  text-transform: none;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-heading-line em {
  font-style: italic;
  font-weight: 400;
  color: #c9a96e;
}

/* Tavsif */
.hero-caption-sub {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.2vw, 18px);
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin: 0 0 40px;
  max-width: 520px;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.8s 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

/* Tugmalar */
.hero-caption-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: linear-gradient(135deg, #c9a96e 0%, #9a6f2a 100%);
  color: #1a0e00;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 24px rgba(201,169,110,0.25);
}
.hero-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,169,110,0.35);
}
.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.hero-btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(201,169,110,0.4);
  color: #c9a96e;
  transform: translateY(-2px);
}

/* Yangi markazlashgan stage elementlarini yashirish (eski hero ishlatiladi) */
.hero-stage, .hero-badge, .hero-heading, .hero-caption-sub, .hero-caption-actions { display: none !important; }

/* Mobile */
@media (max-width: 600px) {
  .hero-heading-line { font-size: clamp(36px, 10vw, 56px); }
  .hero-caption-sub  { font-size: 14px; }
  .hero-caption-actions { flex-direction: column; align-items: center; }
  .hero-btn-primary, .hero-btn-ghost { width: 100%; max-width: 280px; justify-content: center; }
}

/* ═══════════════════════════════════════════
   HERO INNER — portret (chap) + matn (o'ng)
═══════════════════════════════════════════ */
.hero-inner {
  position: absolute;
  z-index: 4;
  inset: 0;
  top: 72px;
  bottom: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 72px);
  padding: 0 clamp(40px, 6vw, 120px);
  max-width: 1560px;
  margin: 0 auto;
}

.hero-avatar {
  position: relative;
  width: clamp(380px, 42vw, 640px);
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  flex: 1;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.hero-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 72%,
    transparent 96%
  );
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 72%,
    transparent 96%
  );
}

.hero-avatar-glow {
  display: none;
}

/* Karusel wrap — o'ng tomonda, rasm ustiga chiqmasin */
.hero-carousel-wrap {
  position: absolute;
  right: 0;
  bottom: clamp(80px, 10vh, 140px);
  width: 44%;
  z-index: 2;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 85%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 18%, black 85%, transparent 100%);
}

.hc-track {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  animation: hcScroll 32s linear infinite;
  width: max-content;
}
.hc-track:hover { animation-play-state: paused; }

@keyframes hcScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* kitob razmerida — 3:4 nisbat */
.hc-card {
  flex-shrink: 0;
  width: 155px;
  height: 212px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 4px 6px 20px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hc-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 6px 12px 32px rgba(0,0,0,0.8);
}

/* cover rasm bo'lsa */
.hc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* cover rasm yo'q bo'lganda placeholder */
.hc-card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 10px;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 50%, transparent 100%);
}

/* agar faqat gradient bg bo'lsa */
.hc-card.no-cover {
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.06);
}

.hc-tag {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.hc-card h3 {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.2;
}

.hc-year {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--white40);
  font-family: var(--font-serif);
}
/* ========================== */

/* Hero entrance animations */
.hero-title    { animation: fadeInUp 0.9s 0.4s ease both; }
.hero-desc     { animation: fadeInUp 0.8s 0.65s ease both; }
.hero-years    { animation: fadeInUp 0.8s 0.85s ease both; }
.hero-scroll   { animation: fadeIn   1s  1.1s ease both; }
.hero-timeline { animation: fadeIn   1s  0.9s ease both; }

/* Har bir ism qismi alohida chiqadi */
.hero-name-first {
  animation: letterReveal 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}
.hero-name-sub {
  animation: letterReveal 0.8s cubic-bezier(0.22,1,0.36,1) 0.55s both;
}
.hero-name-last {
  animation: letterReveal 1s cubic-bezier(0.22,1,0.36,1) 0.75s both;
}
.hero-desc {
  animation: letterReveal 0.8s cubic-bezier(0.22,1,0.36,1) 1s both;
}

/* Separator chiziq olib tashlandi — hero-rule bilan almashtirildi */
.hero-title::after {
  content: none;
}

@media (max-width: 1024px) {
  .hero-title::after {
    content: none !important;
  }
}

.hero-years {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  margin-top: 4px;
}

.hero-year {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--white40);
}

.hero-year-line {
  width: 32px;
  height: 1px;
  background: var(--white40);
}

.hero-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.date-block { display: flex; flex-direction: column; gap: 4px; }

.date-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white40);
}

.date-value {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.date-place {
  font-size: 12px;
  color: var(--white40);
}

.date-line {
  width: 40px;
  height: 1px;
  background: var(--white40);
  flex-shrink: 0;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}

.hero-name-first {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.hero-name-sub {
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.2vw, 15px);
  font-weight: 300;
  color: var(--white40);
  margin: 8px 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-name-last {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(60px, 8vw, 116px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-shadow: 0 2px 32px rgba(201,169,110,0.3);
}

.hero-desc {
  font-size: clamp(14px, 1.1vw, 17px);
  color: var(--white70);
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 480px;
  text-align: left;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  background: var(--white15);
  border-color: var(--white40);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 12px 24px;
}
.btn-outline:hover {
  background: rgba(201,169,110,0.1);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 140px;
  right: 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  writing-mode: vertical-rl;
}

.hero-scroll span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white40);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--white40), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Hero Timeline */
.hero-timeline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  background: linear-gradient(to top, rgba(10,10,10,0.95), transparent);
  padding: 48px 40px 20px;
}

.timeline-track {
  display: flex;
  align-items: flex-end;
  gap: 0;
  position: relative;
}

.timeline-track::before {
  content: '';
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* Animated progress line */
.timeline-track::after {
  content: '';
  position: absolute;
  bottom: 12px; left: 0;
  height: 1px;
  background: linear-gradient(to right, var(--gold-dark), var(--gold));
  width: var(--tl-progress, 10%);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity var(--transition);
  position: relative;
}

.timeline-item:hover, .timeline-item.active { opacity: 1; }

.t-year {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
  order: 2;
}

.t-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dark4);
  border: 1px solid var(--border2);
  order: 3;
  z-index: 1;
  transition: all var(--transition);
}

.timeline-item.active .t-dot,
.timeline-item:hover .t-dot {
  background: var(--gold);
  border-color: var(--gold);
  width: 10px; height: 10px;
  box-shadow: 0 0 0 4px rgba(201,169,110,0.2), 0 0 12px rgba(201,169,110,0.4);
}

.timeline-item.active .t-year { color: var(--gold); }
.timeline-item.active .t-label { color: rgba(255,255,255,0.8); }

.t-label {
  font-size: 12px;
  color: var(--white40);
  letter-spacing: 0.05em;
  order: 1;
  white-space: nowrap;
  text-align: center;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* stagger delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ===== ULAMOLAR SECTION ===== */
.scholars-section {
  padding: 110px 0 120px;
  background: #f7f4ef;
  border-bottom: 1px solid #e8e0d0;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Karusel wrapper */
.scholars-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.scholars-carousel {
  overflow: hidden;
  flex: 1;
  cursor: grab;
}
.scholars-carousel:active { cursor: grabbing; }
.scholars-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* ── KARTOCHKA ── */
.scholar-card {
  flex: 0 0 180px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.scholar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}

/* Rasm */
.scholar-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.scholar-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}
.scholar-card:hover .scholar-card-img { transform: scale(1.05); }
.scholar-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(20,12,2,0.55) 100%);
  pointer-events: none;
}
.scholar-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8dfd0 0%, #cfc0a0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: #b8a070;
}

/* Overlay yillar (rasm ustida) */
.scholar-card-years-overlay {
  position: absolute;
  bottom: 14px;
  left: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  letter-spacing: 0.04em;
  z-index: 2;
}

/* Tana */
.scholar-card-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scholar-card-specialty {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.scholar-card-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}
.scholar-card-divider {
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin: 4px 0 6px;
}
.scholar-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-top: auto;
  transition: gap 0.2s, color 0.2s;
}
.scholar-card-link:hover { gap: 9px; color: var(--text); }
.scholar-card-link svg { transition: transform 0.2s; }
.scholar-card-link:hover svg { transform: translateX(3px); }

/* Ok tugmalar */
.sc-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  border: 1px solid #e0d8cc;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.sc-arrow:hover {
  background: var(--gold-dark);
  color: #fff;
  border-color: var(--gold-dark);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(139,105,20,0.25);
}
.sc-arrow:disabled { opacity: 0.25; cursor: not-allowed; transform: none; box-shadow: none; }

/* Dots */
.sc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.sc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0c8b8;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.2s;
  border: none;
}
.sc-dot.active {
  background: var(--gold-dark);
  transform: scale(1.2);
  width: 22px;
  border-radius: 4px;
}

/* Yuklanmoqda */
.scholars-loading {
  padding: 80px;
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  width: 100%;
}

.scholars-more {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 600px) {
  .scholars-section { padding: 72px 0 80px; }
  .scholar-card { flex: 0 0 150px; }
  .sc-arrow { width: 36px; height: 36px; font-size: 16px; }
  .scholar-card-img-wrap { height: 160px; }
}

/* ===== SHOIR SECTION (eski, saqlanadi) ===== */
.shoir-section {
  padding: 100px 0;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
}

.shoir-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: center;
}

.shoir-portrait {
  position: relative;
}

.shoir-portrait img {
  width: 100%;
  border-radius: 4px;
  display: block;
  filter: grayscale(15%);
  border: 1px solid var(--gold);
}


.shoir-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 20px;
}

.shoir-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
}

.shoir-title em {
  font-style: normal;
  font-family: 'Pinyon Script', cursive;
  font-size: 1.5em;
  color: var(--gold-dark);
  line-height: 1;
  display: block;
  margin-top: 4px;
}

.shoir-years {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-bottom: 24px;
}

.shoir-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

.shoir-facts {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
}

.shoir-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sf-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

.sf-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.shoir-btn {
  display: inline-block;
  padding: 13px 32px;
  background: var(--text);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.shoir-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .shoir-inner { grid-template-columns: 1fr; gap: 48px; }
  .shoir-portrait { max-width: 280px; }
  .shoir-portrait::before { display: none; }
}

@media (max-width: 640px) {
  .shoir-section { padding: 64px 0; }
  .shoir-facts { gap: 24px; flex-wrap: wrap; }
}

/* ===== QUOTES SECTION ===== */
.quotes-section {
  position: relative;
  padding: 80px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}

.quotes-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201,169,110,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.quotes-wrapper {
  position: relative;
  width: 100%;
  max-width: 860px;
  padding: 0 40px;
  text-align: center;
  min-height: 160px;
}

/* single slide */
.quote-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.quote-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* entrance */
.quote-slide.enter {
  animation: quoteEnter 0.9s cubic-bezier(0.22,1,0.36,1) both;
}
.quote-slide.exit {
  animation: quoteExit 0.6s cubic-bezier(0.4,0,1,1) both;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

@keyframes quoteEnter {
  from { opacity: 0; transform: translateY(40px) scale(0.97); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}
@keyframes quoteExit {
  from { opacity: 1; transform: translateY(0)     scale(1);    filter: blur(0); }
  to   { opacity: 0; transform: translateY(-30px) scale(0.97); filter: blur(4px); }
}

.quote-line-top,
.quote-line-bottom {
  width: 0;
  height: 1px;
  background: var(--gold-dark);
  opacity: 0.6;
  transition: width 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.quote-slide.active .quote-line-top,
.quote-slide.active .quote-line-bottom {
  width: 60px;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.55;
  color: #111111;
  letter-spacing: 0.01em;
}

.quote-src {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  opacity: 0.9;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

/* dots */
.quotes-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.q-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.q-dot.active {
  background: var(--gold-dark);
  width: 24px;
  border-radius: 3px;
}

/* progress bar */
.quotes-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(0,0,0,0.08);
}
.quotes-progress-bar {
  height: 100%;
  background: var(--gold-dark);
  width: 0%;
  transition: width linear;
}

.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: #111111;
}

.section-more {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  margin-left: auto;
  transition: opacity var(--transition);
}
.section-more:hover { opacity: 0.7; }

/* ===== WORKS ===== */
.works {
  padding: 100px 0;
  background: #ffffff;
}

.works-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 48px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.works-tabs::-webkit-scrollbar { display: none; }
.tab-btn { flex-shrink: 0; white-space: nowrap; }

.tab-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all var(--transition);
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold-dark);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Books Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.book-card {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.book-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
}

.book-cover {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.book-cover-1 { background: linear-gradient(135deg, #1a0a2e, #2d1b69, #1a0a2e); }
.book-cover-2 { background: linear-gradient(135deg, #0a1a1a, #1b4d4d, #0a1a1a); }
.book-cover-3 { background: linear-gradient(135deg, #1a0a0a, #4d1b1b, #1a0a0a); }
.book-cover-4 { background: linear-gradient(135deg, #0a0a1a, #1b1b4d, #0a0a1a); }
.book-cover-5 { background: linear-gradient(135deg, #0a1a0a, #1b4d1b, #0a1a0a); }

.book-cover-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.book-year {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white40);
  margin-bottom: 4px;
}

.book-cover h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.book-info { padding: 20px; }

.book-genre {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}

.book-info h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin: 6px 0;
  color: #111111;
}

.book-info p {
  font-size: 13px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.book-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  transition: opacity var(--transition);
}
.book-link:hover { opacity: 0.7; }

/* Articles List */
.articles-list { display: flex; flex-direction: column; gap: 1px; }

.article-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
  transition: all var(--transition);
}
.article-row:hover { padding-left: 12px; }

.art-year {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-dark);
  width: 60px;
  flex-shrink: 0;
}

.art-info { flex: 1; }
.art-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.art-info p {
  font-size: 13px;
  color: var(--text-light);
}

.art-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  flex-shrink: 0;
}

/* ===== NEWS ===== */
.news {
  padding: 100px 0;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

.news-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { border-color: #bbbbbb; transform: translateY(-2px); }

.news-img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
  background: #e8e8e8;
}

.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-img-placeholder {
  width: 100%;
  height: 100%;
  background: #e8e8e8;
}

.news-card-featured .news-img-wrap {
  aspect-ratio: 4/3;
}

.news-cat {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 2px;
}

.news-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.news-date {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 8px;
  display: block;
}

.news-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #111111;
}

.news-card-featured h3 { font-size: 22px; }

.news-card p {
  font-size: 13px;
  color: #555555;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.news-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  align-self: flex-start;
  transition: opacity var(--transition);
}
.news-link:hover { opacity: 0.7; }

/* ===== TADQIQOTLAR ===== */
.research-section {
  padding: 100px 0;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.research-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
  position: relative;
}

.research-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, #c9a96e, #e8c97e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.research-card:hover {
  border-color: #bbbbbb;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.research-card:hover::after {
  transform: scaleX(1);
}

.research-year {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  color: #c9a96e;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.research-info {
  flex: 1;
}

.research-info h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.3;
}

.research-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

.research-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #c9a96e;
  text-decoration: none;
  transition: color 0.2s ease;
  align-self: flex-start;
}

.research-link:hover {
  color: #a07840;
}

/* ===== MEDIA ===== */
.media {
  padding: 100px 0;
  background: #ffffff;
}

.media-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-template-rows: 280px;
  gap: 16px;
}

/* Kartochka dizayni: media (rasm yoki video kadri) butun maydonni to'ldiradi,
   sarlavha esa HAR DOIM uning ustida — pastdagi qora gradient fonda oq harflar
   bilan. Rasmsiz turlar (audio, qo'lyozma, kadri ochilmagan video) uchun ham
   ayni ko'rinish saqlanadi: quyuq fon + oltin ▶ tugmasi, shunda to'rttala
   kartochka yagona uslubda turadi. */
.media-item {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition);
}
.media-item:hover { transform: translateY(-3px); }

.media-placeholder {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #241f18 0%, #14120f 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  transition: box-shadow var(--transition);
}
.media-item:hover .media-placeholder { box-shadow: 0 14px 32px rgba(0,0,0,0.24); }

.media-photo { background: linear-gradient(150deg, #1d1f2b 0%, #121318 100%); }
.media-audio { background: linear-gradient(150deg, #1a2420 0%, #101512 100%); }
.media-doc   { background: linear-gradient(150deg, #262019 0%, #16120f 100%); }

.media-icon {
  font-size: 34px;
  line-height: 1;
  color: rgba(255,255,255,0.82);
}

/* Rasm/video kadri bilan to'ldirilgan preview kartochka */
.media-placeholder.media-has-thumb {
  padding: 0;
  background: #0d0d0d;
}

.media-thumb-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  transition: transform 0.6s ease;
}

.media-item:hover .media-thumb-media { transform: scale(1.06); }

/* Galereyadagi rasmlar soni */
.media-count {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(0,0,0,0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 12px;
  letter-spacing: 0.03em;
}

/* ▶ tugmasi — video va audio kartochkalarida bir xil ko'rinadi */
.media-icon-over {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201,169,110,0.92);
  color: #111111;
  font-size: 22px;
  padding-left: 3px;                 /* uchburchakning optik markazi */
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}

.media-item:hover .media-icon-over { transform: scale(1.1); background: var(--gold); }
.media-item-large .media-icon-over { width: 74px; height: 74px; font-size: 26px; }

.media-placeholder p {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* Sarlavha + tur/davomiylik — media ustidagi qora gradientda oq yozuv */
.media-title-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 52px 16px 14px;
  background: linear-gradient(to top,
              rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 42%, rgba(0,0,0,0) 100%);
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  text-align: left;
}

.mto-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mto-meta {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.media-item-large .media-title-overlay { padding: 68px 20px 18px; }
.media-item-large .mto-title { font-size: 17px; }
.media-item-large .mto-meta  { font-size: 11px; }

/* API ishlamay, index.html dagi statik zaxira mazmun qolganda ishlatiladi */
.media-caption {
  font-size: 12px;
  color: var(--text-mid);
  padding: 10px 4px 0;
  letter-spacing: 0.05em;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #0f0d08;
}

/* Dekorativ fon */
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(201,169,110,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 20%, rgba(201,169,110,0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Dekorativ katta yozuv */
.contact-section::after {
  content: 'Murojaat';
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(120px, 15vw, 220px);
  color: rgba(201,169,110,0.04);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  min-height: 600px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Chap panel */
.contact-info {
  padding: 80px 60px 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(201,169,110,0.15);
}

.contact-info .container {
  padding: 0;
  max-width: 100%;
}

.contact-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.contact-tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
}

.contact-title em {
  font-style: normal;
  color: var(--gold);
}

.contact-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.85;
  margin-bottom: 48px;
  max-width: 320px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.cd-icon {
  width: 42px;
  height: 42px;
  background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* O'ng panel — forma */
.contact-form {
  padding: 80px 0 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.cf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-field label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cf-req { color: var(--gold); }

.cf-field input,
.cf-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: #ffffff;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  outline: none;
  resize: none;
  width: 100%;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--gold);
  background: rgba(201,169,110,0.06);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}

.cf-field.has-error input,
.cf-field.has-error textarea {
  border-color: #e57373;
}

.cf-error {
  font-size: 12px;
  color: #e57373;
  min-height: 16px;
}

.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--gold);
  color: #0f0d08;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  align-self: flex-start;
  margin-top: 4px;
}

.cf-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.25);
}

.cf-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cf-submit-arrow {
  font-size: 18px;
  transition: transform 0.2s;
}

.cf-submit:hover .cf-submit-arrow { transform: translateX(5px); }

/* Success */
.cf-success {
  display: none;
  align-items: center;
  gap: 20px;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 12px;
  padding: 24px 28px;
  animation: fadeInUp 0.5s ease both;
}

.cf-success.show { display: flex; }

.cf-success-icon {
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: #0f0d08;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.cf-success strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 4px;
}

.cf-success p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .contact-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0 28px;
  }
  .contact-info {
    padding: 64px 0 40px;
    border-right: none;
    border-bottom: 1px solid rgba(201,169,110,0.15);
  }
  .contact-form {
    padding: 48px 0 64px;
  }
  .contact-desc { max-width: 100%; }
}

@media (max-width: 560px) {
  .contact-inner { padding: 0 20px; }
  .contact-info { padding: 48px 0 32px; }
  .contact-form { padding: 32px 0 56px; gap: 18px; }
  .cf-row-2 { grid-template-columns: 1fr; }
  .contact-section::after { display: none; }
}

/* ===== FOOTER ===== */
.footer {
  background: #0f0d08;
  border-top: 1px solid rgba(201,169,110,0.15);
  padding: 80px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo { font-size: 38px; margin-bottom: 12px; display: block; color: var(--gold); }
.footer-logo-img { height: 60px; width: auto; display: block; margin-bottom: 12px; }

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 260px;
}

.footer-nav { display: flex; flex-direction: column; }

.footer-nav h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }

.footer-contact h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-contact p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-email {
  color: var(--gold);
  font-size: 14px;
  transition: opacity var(--transition);
}
.footer-email:hover { opacity: 0.7; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}

.footer-credit { margin-top: 6px; }
.footer-credit a { color: rgba(232,201,138,0.55); text-decoration: none; }
.footer-credit a:hover { color: var(--gold-light); text-decoration: underline; }

/* ================================================
   BREAKPOINTS:
   1. Mobil      — max 640px
   2. Planshet   — 641px – 1024px
   3. Noutbuk    — 1025px – 1440px  (asosiy default)
   4. Katta mon  — 1441px+
   ================================================ */

/* ===== 4. KATTA MONITOR (1441px+, 24–27") ===== */
@media (min-width: 1441px) {
  .hero-inner { bottom: 110px; }
  .hero-name-first { font-size: clamp(48px, 3.8vw, 76px); }
  .hero-name-last  { font-size: clamp(72px, 7vw, 130px); }
  .hero-desc { font-size: clamp(15px, 1.1vw, 18px); max-width: 600px; }
}

/* ===== SHARED: <=1024px bottom nav ko'rinadi ===== */
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-right { gap: 8px; }
  .hero-scroll { display: none; }
  .nav { display: none; }

  /* Mobil menyu: burger + yuqoridan tushuvchi dropdown */
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .mobile-menu-backdrop { display: block; }

  .hero-timeline {
    display: block;
    bottom: 100px;
    padding: 12px 16px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 60%, transparent);
  }
  .timeline-track {
    gap: 0;
    overflow-x: hidden;
    scrollbar-width: none;
  }
  .timeline-track::before,
  .timeline-track::after { bottom: 8px; }
  .timeline-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 2px;
    gap: 3px;
  }
  .t-dot { width: 6px; height: 6px; }
  .timeline-item.active .t-dot,
  .timeline-item:hover .t-dot { width: 8px; height: 8px; }
  .t-label { font-size: 11px; letter-spacing: 0; white-space: normal; text-align: center; line-height: 1.2; }
  .t-year  { font-size: 13px; letter-spacing: 0; }
}

/* ===== 3. NOUTBUK (1025–1440px, 15–16") ===== */
@media (min-width: 1025px) and (max-width: 1440px) {
  .hc-card { width: 155px; height: 212px; }
  .hero-avatar { width: clamp(400px, 40vw, 580px); }

  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card-featured { grid-column: 1 / -1; }
  .media-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .media-item-large { grid-column: 1 / -1; height: 280px; }
  .media-item { height: 180px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ===== 2. PLANSHET (641–1024px) ===== */
@media (min-width: 641px) and (max-width: 1024px) {
  .container { padding: 0 28px; }
  .bio-strip-inner { grid-template-columns: 1fr; gap: 48px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card-featured { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Media arxiv: planshetda 4 ta ustun juda tor — 2 ustunga tushiramiz */
  .media-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .media-item-large { grid-column: 1 / -1; height: 260px; }
  .media-item { height: 190px; }

  /* Hero: avatar + matn ustma-ust, markazda */
  .hero-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 32px 0;
    top: 56px;
    bottom: 160px;
    gap: 6px;
    overflow: hidden;
  }
  .hero-avatar {
    width: clamp(200px, 30vh, 340px);
    height: auto;
    align-self: center;
    flex: 0 1 auto;
    min-height: 0;
    margin-bottom: -14px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .hero-avatar-img {
    height: auto;
    max-height: 34vh;
    width: 100%;
    object-fit: contain;
    object-position: center bottom;
  }
  .hero-content {
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 640px;
    flex: 0 0 auto;
    gap: 14px;
    position: relative;
    z-index: 5;
  }
  .hero-title { align-items: center; }
  .hero-title::after { content: none; }
  .hero-name-first { font-size: clamp(30px, 5vw, 52px); }
  .hero-name-last  { font-size: clamp(48px, 9vw, 92px); }
  .hero-desc { text-align: center; max-width: 100%; font-size: clamp(12px, 1.6vw, 15px); line-height: 1.6; }
  .hero-years { display: none; }
  .hero-bg-fade {
    background:
      linear-gradient(to top,    rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.85) 40%, transparent 70%),
      linear-gradient(to bottom, rgba(0,0,0,0.92) 0%, transparent 60%);
  }
  .hero-carousel-wrap { display: none; }
}

/* ===== 1. MOBIL (<=640px) ===== */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .research-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  /* grid-template-rows: 280px asosiy qoidadan qoladi va birinchi qator
     kartochkadan baland bo'lib, ostida bo'sh joy qoldirardi — auto ga qaytaramiz. */
  .media-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .media-item-large { height: 220px; }
  .media-item { height: 180px; }
  .media-item-large .media-icon-over { width: 58px; height: 58px; font-size: 20px; }
  .media-item-large .mto-title { font-size: 15px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .books-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .books-grid .book-cover { height: 130px; padding: 12px; }
  .books-grid .book-cover h3 { font-size: 15px; }
  .bio-strip-inner { grid-template-columns: 1fr; gap: 32px; }

  /* Mobil hero — oddiy oqim (avatar -> matn -> timeline ketma-ket, ustma-ust EMAS) */
  .hero {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;   /* gorizontal ortiqcha (hero-noise) kesilsin */
    overflow-y: visible;
    display: flex;
    flex-direction: column;
  }
  .hero-noise { display: none; }   /* 1000px keng dekor — mobilda kerak emas */
  .hero-bg { position: absolute; }
  .hero-bg-img {
    width: 100%;
    object-fit: cover;
    object-position: center top;
  }
  .hero-bg-fade {
    background:
      linear-gradient(to top,    rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.88) 45%, rgba(0,0,0,0.35) 75%, transparent 100%),
      linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 55%);
  }
  .hero-carousel-wrap { display: none; }

  /* Absolute o'rniga oqim */
  .hero-inner {
    position: static;
    inset: auto;
    flex-direction: column;
    align-items: stretch;      /* bolalar to'liq kenglikni olsin (matn kesilmasin) */
    justify-content: flex-start;
    padding: 84px 20px 0;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-avatar {
    width: clamp(180px, 62vw, 320px);
    height: auto;
    align-self: center;
    flex-shrink: 0;
    margin-bottom: -6vh;      /* portret matnga biroz kirsin */
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .hero-avatar-img {
    height: auto;
    max-height: 46vh;
    width: auto;
    max-width: 100%;
  }
  .hero-content {
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    flex: none;
    gap: 12px;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
  }
  .hero-title { align-items: center; width: 100%; }
  .hero-title::after { content: none; }
  .hero-name-first { font-size: clamp(24px, 6vw, 42px); }
  .hero-name-last  { font-size: clamp(40px, 10vw, 72px); }
  .hero-name-sub   { font-size: clamp(9px, 2.5vw, 13px); }
  .hero-desc {
    text-align: center;
    font-size: clamp(13px, 3.6vw, 15px);
    width: 100%; max-width: 100%;
    margin: 0 auto; line-height: 1.65;
    color: rgba(255,255,255,0.82);
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .hero-years { display: none; }
  .hero-orb-1, .hero-orb-2 { display: none; }
  .hp { display: none; }

  /* Timeline — absolute EMAS, matndan keyin oqimда */
  .hero-timeline {
    position: static;
    margin-top: 28px;
    padding: 22px 8px calc(env(safe-area-inset-bottom, 0px) + 96px);
    background: linear-gradient(to top, rgba(10,10,10,0.96) 60%, transparent);
  }
  .timeline-track { gap: 2px; }
}

/* Harakat cheklangan foydalanuvchilar */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-img    { animation: none; }
  .hero-orb       { animation: none; }
  .hp             { display: none; }
  .hero-noise     { animation: none; }
  .hero-name-first,
  .hero-name-sub,
  .hero-name-last,
  .hero-title, .hero-desc, .hero-years,
  .hero-timeline { animation: fadeIn 0.5s ease both; }
}

@media (max-width: 640px) {
  .t-label { font-size: 9px; }
  .t-year  { font-size: 11px; }
}
