/* ==========================================================================
   To'y taklifnomasi — dizayn tizimi
   Uslub: fil suyagi fon, oltin naqsh, to'q ko'k sanoq ekrani
   Shrift: Cormorant Garamond (sarlavha) + Karla (matn)
   ========================================================================== */

:root {
  --ivory: #fbf7ef;
  --ivory-2: #f4ecdd;
  --ink: #2a2419;
  --ink-soft: rgba(42, 36, 25, 0.74);
  --muted: #857b68;
  --gold: #b28a34;
  --gold-soft: #c8a24a;
  --gold-deep: #8d6b23;
  --navy: #131c30;
  --navy-2: #0c1322;
  --cream: #f6efe1;
  --rule: rgba(42, 36, 25, 0.14);
  --rule-strong: rgba(42, 36, 25, 0.28);

  --measure: 33rem;
  --gap: clamp(4rem, 11vw, 7rem);

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.68, 0.31, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-deep);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

[x-cloak] {
  display: none !important;
}

/* ------------------------------------------------------------------ naqshlar */

.orn-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  color: var(--gold);
}

.orn-corner {
  position: absolute;
  width: clamp(66px, 17vw, 108px);
  height: clamp(66px, 17vw, 108px);
  display: block;
}

.orn-corner-svg {
  width: 100%;
  height: 100%;
}

.orn-corner--tl { top: 12px; left: 12px; }
.orn-corner--tr { top: 12px; right: 12px; transform: scaleX(-1); }
.orn-corner--bl { bottom: 12px; left: 12px; transform: scaleY(-1); }
.orn-corner--br { bottom: 12px; right: 12px; transform: scale(-1); }

.orn-div {
  color: var(--gold);
  width: min(15rem, 62%);
  margin: 1.5rem auto;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.appear.in .orn-div,
.in .orn-div,
.reveal .orn-div {
  opacity: 1;
  transform: none;
}

.orn-arch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(23rem, 92%);
  z-index: 3;
  color: var(--gold);
  pointer-events: none;
  opacity: 0;
  animation: rise 1.4s var(--ease) 0.35s forwards;
}

/* ------------------------------------------------------------------ tuzilish */

.sec {
  position: relative;
  padding-block: var(--gap);
  overflow: hidden;
}

.sec--full {
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.sec--tinted {
  background: var(--ivory-2);
}

.sec--dark {
  background:
    radial-gradient(120% 80% at 50% 0%, #1a2440 0%, transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
}

.sec--dark .orn-frame,
.sec--dark .orn-div {
  color: var(--gold-soft);
}

.sec__inner {
  position: relative;
  z-index: 2;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 clamp(1.6rem, 8vw, 3rem);
  width: 100%;
}

.sec__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1.08;
  margin: 0;
  text-align: center;
  letter-spacing: -0.01em;
}

.sec__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold-soft);
  margin: 0;
}

.sec__foot {
  text-align: center;
  font-size: 0.92rem;
  color: rgba(246, 239, 225, 0.7);
  margin: 2.25rem 0 0;
}

.lede {
  font-family: var(--display);
  font-size: clamp(1.3rem, 4.4vw, 1.65rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.lede--center {
  text-align: center;
}

/* ------------------------------------------------------------------ til / admin */

.langbar {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 85;
  display: flex;
  gap: 2px;
  background: rgba(251, 247, 239, 0.9);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: blur(8px);
}

.langbar a {
  display: block;
  padding: 0.3rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
}

.langbar a.is-on {
  background: var(--gold);
  color: #fff;
}

.adminbar,
a.adminbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: block;
  text-align: center;
  padding: 0.5rem 1rem;
  background: #24523c;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

body:has(.adminbar) .langbar {
  top: 2.9rem;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 1.5rem 5rem;
  overflow: hidden;
  background: var(--ivory);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Telefonda rasm markazdan kesiladi — vertikal rasm shunda to'g'ri chiqadi */
  object-position: center;
  z-index: 0;
  animation: kenburns 30s var(--ease) forwards;
}

/* Keng ekranda vertikal rasm cho'zilib, yuz kesilib qoladi.
   Shuning uchun kesish nuqtasini yuqoriga suramiz va matnni
   pastga tushiramiz — yuz tepada toza qoladi. */
@media (min-width: 56rem) {
  .hero__image {
    /* Kichikroq foiz — rasmning yuqoriroq qismi ko'rinadi */
    object-position: center 10%;
    animation: kenburns-wide 34s var(--ease) forwards;
  }

  .hero {
    max-height: 100svh;
    justify-content: flex-end;
    padding-bottom: clamp(4rem, 9vh, 7rem);
  }
}

@keyframes kenburns-wide {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes kenburns {
  from { transform: scale(1.13); }
  to { transform: scale(1); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero--photo .hero__veil {
  background: linear-gradient(
    to top,
    rgba(20, 16, 10, 0.8) 0%,
    rgba(20, 16, 10, 0.45) 55%,
    rgba(20, 16, 10, 0.3) 100%
  );
}

/* Keng ekranda matn pastda turadi, shuning uchun pastdagi parda
   kuchliroq bo'lsin. Bu qoida asosiy qoidadan KEYIN turishi shart —
   aks holda kuchga kirmaydi. */
@media (min-width: 56rem) {
  .hero--photo .hero__veil {
    background: linear-gradient(
      to top,
      rgba(20, 16, 10, 0.9) 0%,
      rgba(20, 16, 10, 0.62) 42%,
      rgba(20, 16, 10, 0.18) 75%,
      rgba(20, 16, 10, 0.28) 100%
    );
  }
}

.hero--plain .hero__veil {
  background:
    radial-gradient(60% 45% at 50% 32%, rgba(178, 138, 52, 0.13), transparent 70%),
    radial-gradient(50% 40% at 20% 78%, rgba(178, 138, 52, 0.09), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate;
}

@keyframes aurora {
  from { transform: translate3d(-2%, -2%, 0) scale(1); }
  to { transform: translate3d(3%, 3%, 0) scale(1.1); }
}

.hero__inner {
  position: relative;
  z-index: 4;
  max-width: var(--measure);
  margin: 0 auto;
  width: 100%;
  text-align: center;
  padding: 0 clamp(1rem, 6vw, 2rem);
}

.hero--photo .hero__inner {
  color: #fff;
}

.hero--photo .orn-frame,
.hero--photo .orn-arch {
  color: #e2c383;
}

.salute {
  margin: 0 0 clamp(1.5rem, 5vw, 2.25rem);
}

.salute__label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.hero--photo .salute__label {
  color: #e2c383;
}

.salute__name {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.15;
  margin: 0;
}

.salute__note {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

.hero--photo .salute__note,
.hero--photo .hero__meta {
  color: rgba(255, 255, 255, 0.85);
}

.hero__names {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.8rem, 13vw, 4.6rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
}

.hero__names--short {
  font-size: clamp(2.4rem, 10vw, 3.8rem);
}

.hero__amp {
  display: block;
  font-style: italic;
  font-size: 0.42em;
  line-height: 1;
  margin: 0.2em 0;
  color: var(--gold);
}

.hero--photo .hero__amp {
  color: #e2c383;
}

.hero__meta {
  margin: clamp(1.5rem, 5vw, 2.25rem) 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule-strong);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.hero__meta--block {
  display: block;
  border-top: 0;
}

.chevron {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 4;
  width: 26px;
  color: var(--gold);
  animation: drift 2.4s ease-in-out infinite;
}

.hero--photo .chevron {
  color: #e2c383;
}

@keyframes drift {
  0%, 100% { opacity: 0.35; transform: translate(-50%, -4px); }
  50% { opacity: 1; transform: translate(-50%, 4px); }
}

/* ------------------------------------------------------------------ animatsiya */

.reveal > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) forwards;
}

.reveal > *:nth-child(1) { animation-delay: 0.25s; }
.reveal > *:nth-child(2) { animation-delay: 0.5s; }
.reveal > *:nth-child(3) { animation-delay: 0.8s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.appear {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.appear.in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ sanoq */

.bigday {
  text-align: center;
  margin-top: 1.25rem;
}

.bigday__num {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(6rem, 34vw, 11rem);
  line-height: 0.88;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(200, 162, 74, 0.22);
}

.bigday__label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(246, 239, 225, 0.65);
  margin-top: 1rem;
}

.bigday__done {
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 300;
  text-align: center;
  color: var(--gold-soft);
  margin: 2rem 0;
}

.smallunits {
  display: flex;
  justify-content: center;
  gap: clamp(1.75rem, 9vw, 3.25rem);
  margin-top: 2.5rem;
  font-variant-numeric: tabular-nums;
}

.smallunits > div {
  text-align: center;
}

.smallunits__num {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 7vw, 2.1rem);
  font-weight: 300;
  color: var(--cream);
}

.smallunits__num.is-tick {
  animation: tick 0.45s var(--ease);
}

@keyframes tick {
  from { opacity: 0.3; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.smallunits__lbl {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 239, 225, 0.55);
  margin-top: 0.4rem;
}

/* ------------------------------------------------------------------ timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.85rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--gold);
  opacity: 0.45;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.4s var(--ease);
}

.timeline.in::before,
.appear.in .timeline::before {
  transform: scaleY(1);
}

.timeline li {
  position: relative;
  padding-bottom: 2.6rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.85rem - 3.5px);
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.5s var(--ease);
}

.appear.in .timeline li::before {
  transform: scale(1);
}

.appear.in .timeline li:nth-child(2)::before { transition-delay: 0.35s; }
.appear.in .timeline li:nth-child(3)::before { transition-delay: 0.7s; }
.appear.in .timeline li:nth-child(4)::before { transition-delay: 1.05s; }

.timeline__date {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.25rem;
}

.timeline__title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.35rem;
}

.timeline__text {
  margin: 0;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ slayd-shou */

.slideshow {
  position: relative;
  height: clamp(18rem, 62vw, 32rem);
  overflow: hidden;
  background: var(--ivory-2);
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.3s var(--ease), transform 6.5s linear;
}

.slideshow img.is-active {
  opacity: 1;
  transform: scale(1);
}

.slideshow__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}

.slideshow__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.slideshow__dots button.is-active {
  background: #f0d79b;
  transform: scale(1.5);
}

/* ------------------------------------------------------------------ galereya */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 2rem;
}

.gallery__item {
  padding: 0;
  border: 0;
  background: var(--ivory);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.gallery__item:first-child {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.05);
}

.appear .gallery__item {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.appear.in .gallery__item {
  opacity: 1;
  transform: none;
}

.appear.in .gallery__item:nth-child(2) { transition-delay: 0.1s; }
.appear.in .gallery__item:nth-child(3) { transition-delay: 0.2s; }
.appear.in .gallery__item:nth-child(4) { transition-delay: 0.3s; }
.appear.in .gallery__item:nth-child(5) { transition-delay: 0.4s; }
.appear.in .gallery__item:nth-child(6) { transition-delay: 0.5s; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(16, 13, 8, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 0;
  animation: fade 0.35s ease;
}

.lightbox img {
  max-width: 100%;
  max-height: 88svh;
  object-fit: contain;
  animation: zoom 0.45s var(--ease);
}

@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(0.94); } }

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}

/* ------------------------------------------------------------------ tafsilot */

.facts {
  margin: 2rem 0 0;
}

.facts > div {
  display: flex;
  gap: 1.25rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.facts > div:first-child {
  border-top: 1px solid var(--rule);
}

.facts dt {
  flex: 0 0 6rem;
  color: var(--gold-deep);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 0.3rem;
}

.facts dd {
  margin: 0;
  flex: 1;
}

.appear .facts > div {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.appear.in .facts > div {
  opacity: 1;
  transform: none;
}

.appear.in .facts > div:nth-child(2) { transition-delay: 0.12s; }
.appear.in .facts > div:nth-child(3) { transition-delay: 0.24s; }
.appear.in .facts > div:nth-child(4) { transition-delay: 0.36s; }

/* ------------------------------------------------------------------ xarita */

.map {
  margin-top: 2rem;
  border: 1px solid var(--rule);
  overflow: hidden;
  background: #fff;
}

.map iframe {
  width: 100%;
  height: 17rem;
  border: 0;
}

.map__foot {
  padding: 1.1rem 1rem 1.3rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.map__addr {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

/* ------------------------------------------------------------------ tugmalar */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #fff;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.22s ease, transform 0.12s ease;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.08);
  color: #fff;
}

.btn:active:not(:disabled) {
  transform: scale(0.975);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn--ghost:hover:not(:disabled) {
  background: rgba(42, 36, 25, 0.05);
  border-color: var(--ink);
  color: var(--ink);
  filter: none;
}

.btn--wide {
  width: 100%;
}

.btn-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ------------------------------------------------------------------ forma */

.field {
  margin-bottom: 1.3rem;
}

.field label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.85rem 0.95rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.choice {
  display: flex;
  gap: 0.7rem;
}

.choice button {
  flex: 1;
  font-family: var(--body);
  font-size: 0.92rem;
  padding: 0.95rem 0.5rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.choice button:hover {
  border-color: var(--gold);
}

.choice button[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-color: var(--gold);
  color: #fff;
  font-weight: 600;
}

.form-note {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
  text-align: center;
}

.form-error {
  color: #a8422a;
  font-size: 0.9rem;
  margin: 0.85rem 0 0;
  text-align: center;
}

.done {
  border: 1px solid var(--gold);
  padding: 2rem 1.75rem;
  background: #fff;
  text-align: center;
  animation: rise 0.7s var(--ease);
}

.done h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
}

.done p {
  margin: 0;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ duolar */

.duas {
  position: relative;
  min-height: 19rem;
}

.dua {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dua.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.dua__title {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.dua__ar {
  font-family: "Traditional Arabic", "Amiri", "Scheherazade New", serif;
  font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  line-height: 2;
  color: var(--cream);
  margin: 0 0 1.5rem;
  direction: rtl;
}

/* O'qilishi — oddiy, tiniq shrift. Kursiv emas, chunki uni ovoz
   chiqarib o'qishadi va har bir harf aniq ko'rinishi kerak. */
.dua__tr {
  font-family: var(--body);
  font-style: normal;
  font-size: clamp(1.02rem, 3.9vw, 1.18rem);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.012em;
  color: #f0d79b;
  background: rgba(200, 162, 74, 0.09);
  border: 1px solid rgba(200, 162, 74, 0.24);
  border-radius: 3px;
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
}

.dua__mn {
  font-family: var(--display);
  font-size: clamp(1.15rem, 4.2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--cream);
  margin: 0 0 1.1rem;
}

.dua__src {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(246, 239, 225, 0.5);
  margin: 0;
}

.sec--dark .rotator__nav button {
  border-color: rgba(246, 239, 225, 0.3);
  color: var(--cream);
}

.sec--dark .rotator__nav button:hover {
  background: rgba(246, 239, 225, 0.1);
  border-color: var(--gold-soft);
}

.sec--dark .rotator__count {
  color: rgba(246, 239, 225, 0.6);
}

.sec--dark .lede {
  color: rgba(246, 239, 225, 0.78);
}

/* ------------------------------------------------------------------ tilaklar */

.rotator {
  position: relative;
  margin-top: 2.5rem;
  min-height: 11rem;
}

.rotator__card {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.rotator__card.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}

.rotator__text {
  font-family: var(--display);
  font-size: clamp(1.25rem, 4.4vw, 1.55rem);
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 0.9rem;
}

.rotator__from {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.rotator__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.4rem;
}

.rotator__nav button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rotator__nav button:hover {
  background: rgba(42, 36, 25, 0.05);
  border-color: var(--gold);
}

.rotator__count {
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.wishes-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2rem;
  text-align: center;
}

/* ------------------------------------------------------------------ yuklash */

.drop {
  border: 1px dashed var(--gold);
  background: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: background 0.25s ease;
}

.drop--over {
  background: var(--ivory-2);
}

.drop p {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.queue {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.queue li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
  animation: rise 0.5s var(--ease);
}

.queue__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.queue__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue__state {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.queue__state--ok { color: var(--gold-deep); }
.queue__state--err { color: #a8422a; }

.bar {
  height: 2px;
  background: var(--rule);
  margin-top: 0.55rem;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

/* ------------------------------------------------------------------ kamera */

.cam {
  position: fixed;
  inset: 0;
  z-index: 96;
  background: rgba(16, 13, 8, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fade 0.3s ease;
}

.cam__inner {
  width: min(100%, 40rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cam video {
  width: 100%;
  max-height: 68svh;
  object-fit: contain;
  background: #000;
}

.cam__error {
  color: #f0d9cf;
  background: rgba(168, 66, 42, 0.28);
  border: 1px solid rgba(240, 217, 207, 0.3);
  padding: 1.25rem;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.cam__bar {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
}

.cam__bar .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cam__bar .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ------------------------------------------------------------------ musiqa */

.music {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(255, 255, 255, 0.94);
  color: var(--gold-deep);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 14px rgba(42, 36, 25, 0.14);
  transition: transform 0.2s ease;
}

.music:hover {
  transform: scale(1.07);
}

/* ------------------------------------------------------------------ footer */

.footer {
  position: relative;
  padding: var(--gap) 1.5rem calc(var(--gap) / 1.8);
  background: var(--ivory-2);
  overflow: hidden;
  text-align: center;
}

.footer__inner {
  position: relative;
  z-index: 2;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 7vw, 2.5rem);
}

.footer__names {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 8vw, 2.7rem);
  color: var(--ink);
  margin: 0 0 0.6rem;
  line-height: 1.1;
}

.footer p:not(.footer__names) {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ holatlar */

.screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.screen p {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 26rem;
}

/* ------------------------------------------------------------------ moslashuv */

@media (min-width: 40rem) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery__item:first-child {
    grid-column: span 3;
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal > *,
  .appear,
  .orn-div,
  .orn-arch,
  .slideshow img,
  .rotator__card,
  .dua,
  .appear .facts > div,
  .appear .gallery__item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .timeline::before { transform: scaleY(1) !important; }
  .timeline li::before { transform: scale(1) !important; }
  .hero__image,
  .hero--plain .hero__veil,
  .chevron { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------------ qo'shimchalar */

/* Mehmon ismi — sahifadagi eng shaxsiy element, kattaroq va yorqinroq */
.salute__name--big {
  font-size: clamp(2.35rem, 10vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.hero--photo .salute__name--big {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* Strelka tugmalari */
.navbtn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.22s ease, border-color 0.22s ease,
    color 0.22s ease, transform 0.15s ease;
}

.navbtn svg {
  width: 20px;
  height: 20px;
}

.navbtn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.navbtn:active {
  transform: scale(0.93);
}

.sec--dark .navbtn {
  border-color: rgba(246, 239, 225, 0.32);
  color: var(--cream);
}

.sec--dark .navbtn:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy);
}

/* Tilak yuborilgandagi xabar */
.form-ok {
  color: var(--gold-deep);
  background: rgba(178, 138, 52, 0.1);
  border: 1px solid rgba(178, 138, 52, 0.3);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  margin: 0.85rem 0 0;
  text-align: center;
  animation: rise 0.6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .form-ok { animation: none !important; }
}