/* =========================================================
   Taklifnoma variantlari — umumiy asos
   Har bir variant faqat ranglarni (tokenlarni) va o'z sahnalarini belgilaydi.
   Animatsiyalar faqat transform/opacity bilan.
   ========================================================= */

:root {
  --fon: #f6f1e7;
  --qogoz: #fffdf8;
  --matn: #1d2638;
  --xira: #6a6f82;
  --asosiy: #1f47a8;
  --asosiy-2: #15317a;
  --oltin: #b58b35;
  --arab: #b58b35;
  --chiziq: rgba(31, 71, 168, .16);
  --soya: 0 1px 2px rgba(60, 45, 20, .06), 0 10px 30px -12px rgba(60, 45, 20, .18);
  --tugma-fon: #fffdf8;
  --tugma-matn: #15317a;

  --f-arab: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;
  --f-bosh: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-matn: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--fon); }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

body {
  margin: 0;
  font-family: var(--f-matn);
  font-size: 16px;
  line-height: 1.6;
  color: var(--matn);
  background: var(--fon);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; -webkit-appearance: none; appearance: none; }
[hidden] { display: none !important; }
.yashirin { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------- Skroll sahnalari ---------------- */
.uzun { position: relative; }
.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
[data-o] { opacity: 0; will-change: opacity, transform; }

/* Skroll bilan yonadigan so'zlar (Apple uslubi) */
.soz { opacity: .16; transition: opacity .35s ease; }
.soz.yon { opacity: 1; }

/* ---------------- Yuqori panel ---------------- */
.panel {
  position: fixed;
  top: 12px;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
}
.panel > * + * { margin-left: 8px; }

.panel__ovoz,
.til {
  height: 38px;
  border: 1px solid var(--chiziq);
  border-radius: 999px;
  background: var(--qogoz);
  box-shadow: var(--soya);
  cursor: pointer;
}
.panel__ovoz {
  display: inline-flex;
  align-items: center;
  padding: 0 12px 0 10px;
  color: var(--asosiy);
  font-size: 12.5px;
  font-weight: 700;
}
.panel__ovoz svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.panel__yozuv { margin-left: 6px; }
.panel__ovoz.tanish { width: 38px; padding: 0; justify-content: center; }
.panel__ovoz.tanish .panel__yozuv { display: none; }
.panel__ovoz[aria-pressed="true"] .belgi-ovozsiz,
.panel__ovoz[aria-pressed="false"] .belgi-ovoz { display: none; }

.til { display: flex; align-items: center; padding: 3px; font-size: 12px; font-weight: 700; }
.til span { padding: 5px 10px; border-radius: 999px; color: var(--xira); line-height: 1.4; }
[data-til="lt"] .til__lt,
[data-til="kr"] .til__kr { background: var(--asosiy); color: var(--qogoz); }

/* Pastga surish ishorasi */
.suring {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--xira);
}
.suring i {
  position: relative;
  display: block;
  width: 1px;
  height: 46px;
  margin-top: 10px;
  overflow: hidden;
  background: var(--chiziq);
}
.suring i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 18px;
  background: var(--asosiy);
  animation: suring 1.8s ease-in-out infinite;
}
@keyframes suring { from { transform: translateY(-18px); } to { transform: translateY(46px); } }

/* ---------------- Oddiy bo'limlar ---------------- */
.ichki { width: 100%; max-width: 520px; margin: 0 auto; padding: 0 16px; }
.bolim { padding: 64px 0 8px; text-align: center; }
.sarlavha { margin: 0; font-family: var(--f-bosh); font-size: 36px; font-weight: 600; line-height: 1.15; color: var(--asosiy-2); }
.izoh { margin: 6px 0 0; font-size: 14.5px; color: var(--xira); }
.arab { margin: 0; font-family: var(--f-arab); font-size: 24px; line-height: 2.05; color: var(--arab); }
.maano { margin: 14px 0 0; font-family: var(--f-bosh); font-size: 19px; font-style: italic; line-height: 1.5; }
figcaption { margin-top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--asosiy); }
.oyat, .duo { margin: 0; }

.oq { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.oq.korindi { opacity: 1; transform: none; }

.karta {
  display: block;
  border: 1px solid var(--chiziq);
  border-radius: 20px;
  background: var(--qogoz);
  box-shadow: var(--soya);
}

.tugmalar { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; margin-top: 18px; }
.tugma {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--chiziq);
  border-radius: 14px;
  background: var(--tugma-fon);
  color: var(--tugma-matn);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease;
}
.tugma svg { width: 18px; height: 18px; margin-right: 8px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tugma:active { transform: scale(.97); }
.tugma:focus-visible { outline: 2px solid var(--asosiy); outline-offset: 2px; }
@media (hover: hover) { .tugma:hover { border-color: var(--asosiy); } }

.manzil { margin-top: 22px; padding: 22px 16px 18px; }
.manzil__belgi { width: 30px; height: 30px; margin: 0 auto 6px; fill: none; stroke: var(--oltin); stroke-width: 1.5; }
.manzil__nomi { margin: 0; font-family: var(--f-bosh); font-size: 26px; font-weight: 600; color: var(--asosiy-2); }
.manzil__matn { margin: 4px 0 0; font-size: 15px; }

.eslatmalar { list-style: none; margin: 18px 0 0; padding: 0; font-size: 14.5px; color: var(--xira); }
.eslatmalar li { padding: 4px 0; }
.eslatmalar li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 10px 2px 0;
  background: var(--oltin);
  transform: rotate(45deg);
}

.duo { margin-top: 18px; }
.duo__oqilishi { margin: 8px 0 0; font-size: 14px; font-style: italic; color: var(--asosiy); }
.omin {
  margin: 20px auto 0;
  display: inline-flex;
  align-items: center;
  padding: 11px 26px;
  border: 1px solid var(--asosiy);
  border-radius: 999px;
  background: transparent;
  color: var(--asosiy-2);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .15s ease;
}
.omin svg { width: 22px; height: 22px; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.omin:active { transform: scale(.95); }
.omin[aria-pressed="true"] { background: var(--asosiy); color: var(--qogoz); }
.omin__soni { min-height: 1.6em; margin: 10px 0 0; font-size: 13.5px; color: var(--xira); }

.yakun { padding: 64px 0 40px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); text-align: center; }
.aloqa { display: flex; align-items: center; margin-bottom: 12px; padding: 14px 16px; text-align: left; text-decoration: none; }
.aloqa__belgi { width: 46px; height: 46px; margin-right: 14px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--asosiy); }
.aloqa__belgi svg { width: 21px; height: 21px; fill: none; stroke: var(--qogoz); stroke-width: 1.7; }
.aloqa__matn { display: flex; flex-direction: column; line-height: 1.35; }
.aloqa__matn small { font-size: 12px; color: var(--xira); }
.aloqa__matn b { font-size: 16px; }
.aloqa__matn span { font-size: 14px; color: var(--asosiy); }
.imzo { margin: 40px 0 0; font-family: var(--f-bosh); font-size: 28px; font-weight: 600; font-style: italic; color: var(--asosiy-2); }
.imzo span { display: block; font-family: var(--f-matn); font-size: 12.5px; font-weight: 500; font-style: normal; color: var(--xira); letter-spacing: .08em; }
.muallif { margin: 40px 0 0; text-align: center; }
.muallif summary {
  display: inline-block;
  padding: 10px;
  list-style: none;
  cursor: pointer;
  opacity: .28;
  -webkit-tap-highlight-color: transparent;
}
.muallif summary::-webkit-details-marker { display: none; }
.muallif summary::marker { content: ""; }
.muallif summary svg { width: 11px; height: 11px; fill: currentColor; }
.muallif[open] summary { opacity: .45; }
.muallif a {
  display: inline-block;
  padding: 2px 6px 6px;
  font-size: 11px;
  letter-spacing: .04em;
  color: inherit;
  text-decoration: none;
  opacity: .55;
}

.xabar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 50;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--matn);
  color: var(--fon);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .3s ease, transform .3s var(--ease);
  pointer-events: none;
}
.xabar.bor { opacity: 1; transform: translate(-50%, 0); }


/* =========================================================
   Islomiy naqsh qismlari (4 va 5-variantlar)
   Ranglar variant tokenlaridan olinadi: --oltin, --asosiy, --fon
   ========================================================= */
.burchak { position: absolute; z-index: 1; width: 40px; height: 40px; }
.burchak circle { fill: var(--fon); stroke: var(--oltin); stroke-width: 1; }
.burchak path { fill: none; stroke: var(--oltin); stroke-width: 1.2; }
.burchak path.burchak__ichi { fill: var(--asosiy); stroke: none; }
.burchak--cy { top: -20px; left: -20px; }
.burchak--co { top: -20px; right: -20px; }
.burchak--py { bottom: -20px; left: -20px; }
.burchak--po { bottom: -20px; right: -20px; }

.ajratgich { width: 220px; height: auto; margin: 0 auto 30px; overflow: visible; }
.ajratgich path { fill: none; stroke: var(--oltin); stroke-width: 1.1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .1s; }
.ajratgich .ajratgich__toq { fill: var(--asosiy); stroke: none; stroke-dasharray: none; opacity: 0; transition: opacity 1s ease .9s; }
.ajratgich.korindi path { stroke-dashoffset: 0; }
.ajratgich.korindi .ajratgich__toq { opacity: 1; }


/* Unvon — sura sarlavhasi uslubidagi ramka */
.unvon { position: relative; margin: 0 auto; max-width: 480px; padding: 26px 34px; }
.unvon__ramka { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.unvon__ramka path { fill: none; stroke: var(--oltin); stroke-width: 1; vector-effect: non-scaling-stroke; }
.unvon__ramka path + path + path { stroke-opacity: .5; }
.unvon__ramka .unvon__fon { fill: var(--unvon-fon, rgba(15, 61, 51, .035)); stroke: none; }
.unvon__yulduz { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: var(--oltin); }
.unvon__yulduz--chap { left: -8px; }
.unvon__yulduz--ong { right: -8px; }
.unvon .arab { position: relative; font-size: 24px; }

/* Shamsa — chiziladigan rozetka */
.shamsa { display: block; width: 120px; height: 120px; margin: 0 auto 26px; overflow: visible; }
.shamsa path, .shamsa circle { fill: none; stroke: var(--oltin); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); }
.shamsa circle + circle { stroke-opacity: .5; }
.shamsa path + path { transition-delay: .35s; }
.shamsa.korindi path, .shamsa.korindi circle { stroke-dashoffset: 0; }
.shamsa .shamsa__markaz { fill: var(--asosiy); stroke: none; stroke-dasharray: none; opacity: 0; transition: opacity 1s ease 1.4s; }
.shamsa.korindi .shamsa__markaz { opacity: 1; }


.fon-shamsa {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 360px;
  height: 360px;
  margin-left: -180px;
  opacity: .1;
  pointer-events: none;
  animation: aylan 240s linear infinite;
}
.fon-shamsa path, .fon-shamsa circle { fill: none; stroke: var(--oltin); stroke-width: 1; }
.fon-shamsa .shamsa__markaz { fill: var(--oltin); stroke: none; }
@keyframes aylan { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
