/* =====================================================================
   1) YUKLAGICH — "soch tolalari" pardasi
   2) BIZ HAQIMIZDA — gorizontal sayohat
   Harakatni js/about.js boshqaradi; bu fayl faqat ko'rinish.
   ===================================================================== */
:root { --sl-ease: cubic-bezier(.76, 0, .24, 1); }
body.sl-lock { overflow: hidden; }

/* =====================================================================
   1. YUKLAGICH
   ===================================================================== */
.sl-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  /* JS ishlamasa ham sayt ochilsin */
  animation: sl-failsafe 0s linear 12s forwards;
}
@keyframes sl-failsafe { to { visibility: hidden; opacity: 0; } }

/* ekranni to'ldiruvchi vertikal tolalar — oxirida yuqoriga ko'tariladi */
.sl-strands { position: absolute; inset: 0; display: flex; align-items: flex-start; }
.sl-strands i {
  flex: 1;
  height: calc(100% + 70px);           /* yumaloq uchlari ekrandan pastda turadi */
  margin-right: -1px;                  /* tolalar orasida chiziq ko'rinmasin */
  background: var(--bg);
  border-radius: 0 0 999px 999px;      /* uchi soch uchiday yumaloq */
  transition: transform 1.1s var(--sl-ease);
}
.sl-loader.done .sl-strands i { transform: translateY(-120%); }

.sl-center {
  position: relative;
  width: min(320px, 72vw);
  display: grid;
  justify-items: center;
  gap: 18px;
  transition: opacity .5s ease, transform .8s var(--sl-ease);
}
.sl-loader.done .sl-center { opacity: 0; transform: translateY(-40px) scale(.96); }

.sl-mark { position: relative; width: clamp(110px, 18vw, 150px); aspect-ratio: 558 / 576; }
.sl-mark img, .sl-mark-fill { position: absolute; inset: 0; width: 100%; height: 100%; }
.sl-mark-ghost { opacity: .1; }
/* belgi pastdan yuqoriga "chiziladi" (oltin rangda) */
.sl-mark-fill {
  --p: 0;
  clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0);
  -webkit-mask: url("../images/mark-white.webp") center / contain no-repeat;
  mask: url("../images/mark-white.webp") center / contain no-repeat;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, #b48a45);
}
/* ustidan yaltiroq nur o'tadi */
.sl-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: url("../images/mark-white.webp") center / contain no-repeat;
  mask: url("../images/mark-white.webp") center / contain no-repeat;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .8) 50%, transparent 65%) 0 0 / 250% 100%;
  animation: sl-shine 1.8s ease-in-out infinite;
}
@keyframes sl-shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }

.sl-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.sl-meta b { font: 500 22px var(--serif); letter-spacing: 0; color: var(--cream); font-variant-numeric: tabular-nums; }
.sl-line { width: 100%; height: 1px; background: rgba(244, 236, 224, .12); overflow: hidden; }
.sl-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: left; transform: scaleX(0); }

/* =====================================================================
   2. BIZ HAQIMIZDA — gorizontal sayohat
   ===================================================================== */
section.hz { position: relative; padding: 0; }      /* balandlikni JS hisoblaydi */
.hz-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(216, 179, 106, .08), transparent),
    var(--bg);
}
.hz-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.hz-panel { position: relative; flex: 0 0 auto; height: 100%; display: flex; align-items: center; }

/* ---------- manifest ---------- */
.hz-intro {
  width: 100vw;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 clamp(16px, 7vw, 120px);
}
.hz-manifesto {
  margin: 0;
  font-family: var(--serif);
  max-width: 1150px;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.hz-manifesto .w { opacity: .14; transition: color .3s linear; }
.hz-manifesto .w.gold { font-style: italic; }
.hz-manifesto .w.gold.lit { color: var(--gold); }
.hz-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.hz-hint i { font-style: normal; color: var(--gold); font-size: 18px; animation: hz-nudge 1.6s ease-in-out infinite; }
@keyframes hz-nudge { 50% { transform: translateX(8px); } }

/* ---------- hikoya panellari ---------- */
.hz-story {
  width: min(1180px, 86vw);
  gap: clamp(28px, 4vw, 70px);
  padding: 0 clamp(20px, 3vw, 50px);
}
.hz-media {
  position: relative;
  width: 58%;
  height: min(68vh, 560px);
  border-radius: 28px;
  overflow: hidden;
  clip-path: inset(0 0 0 100% round 28px);
  will-change: clip-path;
}
.hz-media > img {
  position: absolute;
  top: 0;
  left: -12%;
  width: 124%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hz-copy { position: relative; width: 42%; will-change: transform, opacity; }
.hz-num {
  position: absolute;
  top: -.9em;
  left: -.15em;
  z-index: -1;
  font-family: var(--serif);
  font-size: clamp(7rem, 15vw, 14rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 179, 106, .35);
  will-change: transform;
}
.hz-tag {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.hz-copy h2, .hz-copy h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.05; }
.hz-copy p:not(.hz-tag) { margin: 18px 0 0; color: var(--muted); max-width: 52ch; }

/* ---------- raqamlar ---------- */
.hz-facts {
  width: min(1000px, 92vw);
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(16px, 4vw, 60px);
}
.hz-facts h2, .hz-facts h3 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; text-align: center; }
.hz-facts-grid { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.hz-fact { padding: clamp(22px, 4vh, 40px) 20px; text-align: center; background: var(--bg-2); }
.hz-fact b { display: block; font: 500 clamp(2.6rem, 5.5vw, 4.4rem)/1 var(--serif); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.hz-fact small { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- yakun ---------- */
.hz-final {
  width: 100vw;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}
.hz-final img { width: min(380px, 72vw); height: auto; }
.hz-final p { max-width: 520px; margin: 22px auto 0; color: var(--muted); }
.hz-final .hz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- HUD: hisoblagich va jarayon chizig'i ---------- */
.hz-hud {
  position: absolute;
  left: clamp(16px, 7vw, 120px);
  right: clamp(16px, 7vw, 120px);
  bottom: clamp(18px, 5vh, 44px);
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--muted);
}
.hz-count b { color: var(--cream); font-weight: 700; }
.hz-bar { flex: 1; height: 1px; background: rgba(244, 236, 224, .12); }
.hz-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: left; transform: scaleX(0); }

/* ---------- animatsiyalar o'chirilgan: oddiy vertikal ko'rinish ---------- */
section.hz.static { height: auto !important; }
.hz.static .hz-sticky { position: relative; height: auto; overflow: visible; }
.hz.static .hz-track { flex-direction: column; width: auto; transform: none !important; }
.hz.static .hz-panel { width: auto; height: auto; padding-block: 60px; }
.hz.static .hz-media { clip-path: none !important; }
.hz.static .hz-manifesto .w { opacity: 1; }
.hz.static .hz-hud, .hz.static .hz-hint { display: none; }

/* =====================================================================
   TELEFON — panellar ustma-ust (rasm tepada), harakat o'sha-o'sha
   ===================================================================== */
@media (max-width: 760px) {
  .hz-story { width: 100vw; flex-direction: column; justify-content: center; align-items: stretch; gap: 22px; padding: 70px 18px 80px; }
  .hz-media { width: 100%; height: 40vh; border-radius: 20px; }
  .hz-copy { width: 100%; }
  .hz-num { top: -.55em; font-size: 6.5rem; }
  .hz-copy h2, .hz-copy h3 { font-size: 1.8rem; }
  .hz-copy p:not(.hz-tag) { font-size: 15px; margin-top: 12px; }
  .hz-facts-grid { margin-top: 24px; }
  .hz-fact { padding: 20px 10px; }
  .hz-fact small { font-size: 11px; letter-spacing: .08em; }
}

/* asoschi rasmi — to'liq dumaloq, oltin halqa bilan */
.hz-media.round { width: auto; height: min(62vh, 520px); aspect-ratio: 1; flex: 0 0 auto; border-radius: 50%; clip-path: none !important; overflow: visible; }
.hz-media.round > img { left: 0; width: 100%; border-radius: 50%; clip-path: circle(0% at 50% 50%); }
.hz-media.round::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(240, 213, 149, .55); box-shadow: 0 0 60px rgba(216, 179, 106, .18); pointer-events: none; opacity: var(--ring, 0); transform: scale(calc(.85 + var(--ring, 0) * .15)); }
@media (max-width: 760px) { .hz-media.round { height: min(36vh, 300px); width: auto; align-self: center; } }

/* =====================================================================
   PLANSHET (iPad) — tik holatda panellar ustma-ust, yotiq holatda rasm kichikroq
   ===================================================================== */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .hz-story { width: 100vw; flex-direction: column; justify-content: center; align-items: stretch; gap: 34px; padding: 90px clamp(40px, 8vw, 90px) 100px; }
  .hz-media { width: 100%; height: 42vh; }
  .hz-copy { width: 100%; }
  .hz-num { top: -.6em; font-size: 9rem; }
  .hz-copy h2, .hz-copy h3 { font-size: 2.6rem; }
  .hz-copy p:not(.hz-tag) { font-size: 17px; max-width: 60ch; }
  .hz-media.round { width: auto; height: min(38vh, 420px); align-self: center; }
}
@media (min-width: 761px) and (max-width: 1366px) { .hz-media.round { height: min(62vh, 520px, 42vw); } }
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) { .hz-media.round { height: min(38vh, 420px); } }
