/* ==========================================================================
   Og'abek & Nozanin : raqamli to'y taklifnomasi (wedding-invitation.uz)
   Dizayn : chungdoi.com "Royal V2 Purple" — to'q binafsha zamin, ustida
   shablonning asl naqshi (685px, 0.4), oltin ramka va chiziqlar, binafsha
   pion gullari. Ismlar Great Vibes, qolgan matn EB Garamond.
   Tuzilma va mantiq ogabek-nozanin.uz bilan bir xil.
   Rejim: faqat qorong'i (immersiv taklifnoma, bo'limlar orasida almashmaydi).
   ========================================================================== */

/* ------------------------------------------------------------- 1. token -- */
:root{
  color-scheme: dark;

  /* zamin : namunadan */
  --paper:       #190c1f;
  --paper-2:     #240c30;
  --paper-3:     #15081a;

  /* matn : oq va ikkilamchi oltin (namunadagi #ffe491) */
  --ink:         #ffffff;
  --ink-2:       rgba(255, 255, 255, 0.78);
  --ink-3:       rgba(255, 255, 255, 0.45);   /* faqat dekor va placeholder */
  --gold:        #ffe491;

  /* tugma va musiqa pleyeri : #b1804c; oltin chiziqlar : #874f22 */
  --accent:      #b1804c;
  --accent-deep: #93622e;
  --accent-line: #874f22;
  --accent-dim:  rgba(255, 228, 145, 0.35);

  --rule:        rgba(255, 228, 145, 0.22);

  /* shrift : namunadagidek */
  --script:      'Great Vibes', 'Alex Brush', cursive;
  --serif:       'EB Garamond', 'Times New Roman', serif;
  --lora:        'Lora', 'Times New Roman', serif;
  --system:      ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* o'lcham : tor ustun */
  --shell:       480px;
  --shell-wide:  900px;
  --pad:         clamp(1.1rem, 4.5vw, 2rem);
  --rhythm:      clamp(3rem, 8vw, 5rem);

  --r:           8px;
  --r-sm:        8px;
  --r-pill:      999px;

  --z-bg: 0;  --z-spark: 1;  --z-page: 2;  --z-bar: 40;  --z-gate: 90;  --z-box: 95;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  min-height: 100dvh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.locked{ overflow: hidden; }

/* Rasm, ikonka va havolalarni sichqoncha yoki barmoq bilan bosib
   surganda ular "ushlanib" sudralmasin, tugmalar yozuvi belgilanmasin.
   (-webkit-user-drag'ni bilmaydigan Firefox uchun main.js'da dragstart.) */
img, svg, a{ -webkit-user-drag: none; }
img{ -webkit-touch-callout: none; }
button, .btn, .topbar{ -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

h1,h2,h3{ margin: 0; font-weight: 400; text-wrap: balance; }
p{ margin: 0; }
a{ color: inherit; }
img{ display: block; max-width: 100%; height: auto; }   /* height : eni qisqarganda rasm cho'zilmasin */
::selection{ background: var(--accent); color: #fff; }

:where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- 2. fon -- */
/* Namunadagidek : #190C1F zamin, ustida asl naqsh 685px qadamda, 0.4. */
.bg{
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  background-color: var(--paper);
}
.bg-tile{
  position: absolute;
  inset: 0;
  background: url("../img/bg-texture.webp") repeat 0 0 / 685px 685px;
  opacity: .4;
}

/* Tushayotgan ✦ yulduzchalar (namunadagi "ambient-fall"). Kam sonli,
   transform ustida, mobil FPS ni yemaydi. */
.sparkles{
  position: fixed;
  inset: 0;
  z-index: var(--z-spark);
  pointer-events: none;
  overflow: hidden;
}
.sparkles i{
  position: absolute;
  top: -30px;
  font-style: normal;
  line-height: 1;
  opacity: 0;
  animation: ambient-fall 22s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes ambient-fall{
  0%   { transform: translateY(-8vh) translateX(0) rotate(0deg);                  opacity: 0; }
  10%  {                                                                          opacity: .5; }
  50%  { transform: translateY(48vh) translateX(var(--sway, 20px)) rotate(180deg); opacity: .6; }
  92%  {                                                                          opacity: .45; }
  100% { transform: translateY(105vh) translateX(0) rotate(360deg);               opacity: 0; }
}

/* ------------------------------------------------------- 3. tipografiya -- */
/* .page ekran enida, tor ustun ichidagi .shell'da. overflow-x: clip :
   bezaklar ustun chetidan chiqadi, lekin ekrandan emas.
   `hidden` undan oldin : clip'ni bilmaydigan eski iPhone'lar uchun. */
.page{ position: relative; z-index: var(--z-page); overflow-x: hidden; overflow-x: clip; }

.shell{
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}
@media (min-width: 960px){ .shell{ max-width: var(--shell-wide); } }

.section{
  position: relative;
  padding: var(--rhythm) var(--pad);
  scroll-margin-top: 5rem;
}
.section > .reveal{ position: relative; z-index: 1; }   /* matn guldan yuqorida */

/* Bo'lim sarlavhasi namunadagidek : EB Garamond, 600, katta harf, oq,
   20px (telefon) / 26px (>=768px), harf oralig'i 0.02em. */
.sec-title{
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}
@media (min-width: 768px){ .sec-title{ font-size: 26px; } }

/* Gul bezaklari : bo'lim chetidan tashqariga chiqadi. Ekrandan chiqqan
   qismini .page (overflow-x: clip) kesadi, sahifa kengaymaydi. */
.decor{
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.decor img{ width: 100%; height: auto; display: block; }

/* oltin "barg-yurak" chiziq : bo'limlar orasidagi ajratkich */
.leafline{
  width: 64%;
  max-width: 300px;
  margin: 32px auto 0;
  pointer-events: none;
}

/* -------------------------------------------------------------- 4. gate -- */
/* Konvert. Sayt shu bilan ochiladi, musiqa ham shu bosishda yoqiladi
   (brauzer avtomat ovozga ruxsat bermaydi, foydalanuvchi harakati kerak).
   Hammasi namunadan : fon gradienti, karta eni 310/340/520/600px,
   karta yuzi naqsh 340px + rgba(25,12,31,.6), burchaklarda gullar. */
.gate{
  position: fixed;
  inset: 0;
  z-index: var(--z-gate);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;           /* chetdan chiqqan gullar va zarralar ekranni kengaytirmasin */
  overscroll-behavior: contain;
  background: linear-gradient(to bottom right, var(--paper-2), var(--paper-3));
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition: opacity .3s ease, visibility .3s;
}
.gate[hidden]{ display: none; }
.gate.away{ opacity: 0; visibility: hidden; pointer-events: none; }
.gate-sparkles{ position: absolute; z-index: 1; }

.gate-card{
  position: relative;
  z-index: 10;
  width: 310px;
  max-width: calc(100vw - 10px);
}
@media (min-width: 640px){  .gate-card{ width: 340px; } }
@media (min-width: 768px){  .gate-card{ width: 520px; } }
@media (min-width: 1024px){ .gate-card{ width: 600px; } }

.gate-panel{
  position: relative;
  border-radius: 8px;
  box-shadow: 0 25px 60px -12px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.2), 0 0 40px rgba(135,79,34,.15);
}
/* Karta yuzi alohida qatlam : gullar uning ichida, karta chetida kesiladi */
.gate-face{
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  clip-path: inset(0 round 8px);
  background:
    linear-gradient(rgba(25,12,31,.6), rgba(25,12,31,.6)),
    url("../img/bg-texture.webp") 0 0 / 340px repeat,
    var(--paper);
  border: 1px solid rgba(135,79,34,.15);
}
.gate-flower{
  position: absolute;
  height: auto;
  max-width: none;
  opacity: .95;
  pointer-events: none;
}
.gate-flower-tl{ width: 50%; top: -7%;  left: -10%;  transform: translate(-20%, -16%); }
.gate-flower-br{ width: 52%; bottom: 0; right: -12%; transform: translate(18%, 18%); }
@media (min-width: 768px){
  .gate-flower-tl{ max-width: 280px; }
  .gate-flower-br{ max-width: 300px; }
}

.gate-body{
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 112px 24px 56px;
}
@media (min-width: 768px){ .gate-body{ padding: 96px 24px 32px; } }

.gate-names{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
  font-family: var(--script);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.25;
  color: #fff;
}
.gate-names .amp{
  font-family: Baskerville, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1;
}
@media (min-width: 640px){
  .gate-names{ font-size: 36px; }
  .gate-names .amp{ font-size: 20px; }
}
.gate-rule{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--accent-line);
}
.gate-rule i{ width: 40px; height: 1px; background: linear-gradient(to right, transparent, var(--accent-line)); }
.gate-rule i:last-child{ background: linear-gradient(to left, transparent, var(--accent-line)); }
.gate-rule span{ font-size: 14px; line-height: 20px; opacity: .7; }
.gate-date,
.gate-note{
  font-family: var(--lora);
  font-size: 18px;
  line-height: 27px;
  color: rgba(255,255,255,.72);
}
.gate-date{ margin-bottom: 20px; }
.gate-note{ max-width: 300px; margin: 0 auto 24px; font-weight: 300; }
@media (min-width: 768px){  .gate-note{ max-width: 380px; } }
@media (min-width: 1024px){ .gate-note{ max-width: 440px; } }

/* Tugma va undan har 3 soniyada o'tadigan yaltirash (namunadagidek) */
.gate-btn{
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: 10px 32px;
  font-family: var(--lora);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(177,128,76,.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .3s ease, transform .12s ease;
}
@media (min-width: 640px){ .gate-btn{ font-weight: 500; } }
@media (max-width: 639px){ html:lang(ru) .gate-btn{ padding-inline: 20px; } }
.gate-btn:hover{ background: var(--accent-deep); }
.gate-btn:active{ transform: translateY(1px); }
.gate-btn:disabled{ cursor: default; }
.gate-shine{
  position: absolute;
  top: 0; left: -100%;
  width: 32px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  pointer-events: none;
  animation: shine 3s ease-in-out infinite;
}
@keyframes shine{ 0%{ left: -100%; } 50%, 100%{ left: 100%; } }

/* Muhr : oltin, "nafas oladi". Halqa alohida element, aks holda
   muhr kichrayganda halqa ham u bilan birga kichrayib ketadi. */
.gate-seal-wrap{
  position: absolute;
  left: 50%; top: 50px;
  z-index: 30;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
}
.gate-seal{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, #b1804c, #93622e);
  box-shadow: 0 4px 20px rgba(177,128,76,.5), inset 0 2px 4px rgba(255,255,255,.3);
  animation: seal-pulse 2s ease-in-out infinite;
}
.gate-seal svg{ width: 28px; height: 28px; }
@keyframes seal-pulse{
  0%, 100% { transform: scale(1);    box-shadow: 0 4px 20px rgba(177,128,76,.5); }
  50%      { transform: scale(1.06); box-shadow: 0 6px 35px rgba(177,128,76,.5); }
}
.gate-ring{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}

/* ---- ochilish : vaqtlar namunadan o'lchangan ----
   0 ms    muhr sinadi (500 ms) + halqa tarqaladi (600 ms)
   500 ms  karta cho'kib tepaga uchadi (800 ms) + 32 ta ✦ sochiladi (1400 ms)
   1100 ms fon so'na boshlaydi, 1400 ms da olib tashlanadi               */
.gate.opening .gate-seal{ animation: seal-break .5s cubic-bezier(.4,0,.2,1) forwards; }
.gate.opening .gate-ring{ animation: seal-ring .6s ease-out forwards; }
.gate-card.leaving{ animation: envelope-away .8s ease-in forwards; }

@keyframes seal-break{
  0%   { transform: scale(1)    rotate(0deg);  opacity: 1;  filter: brightness(1); }
  30%  { transform: scale(1.15) rotate(5deg);  opacity: .9; filter: brightness(1.3); }
  60%  { transform: scale(1.05) rotate(-3deg); opacity: .5; filter: brightness(1.5); }
  100% { transform: scale(0)    rotate(15deg); opacity: 0;  filter: brightness(2); }
}
@keyframes seal-ring{
  0%   { transform: scale(.8);  opacity: .8; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes envelope-away{
  0%   { transform: translateY(0)      rotate(0deg);  opacity: 1; }
  15%  { transform: translateY(10px)   rotate(.5deg); opacity: 1; }
  100% { transform: translateY(-120vh) rotate(-2deg); opacity: 0; }
}

.gate-burst{
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
.gate-burst i{
  position: absolute;
  left: 50%; top: 50%;
  font-style: normal;
  line-height: 1;             /* o'lcham inline font-size orqali */
  opacity: 0;
  animation: particle-burst 1.4s cubic-bezier(.25,.46,.45,.94) forwards;
}
@keyframes particle-burst{
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0)   rotate(0deg); }
  15%  { opacity: 1; transform: translate(-50%, -50%) scale(1.3) rotate(var(--rs, 15deg)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.6) rotate(var(--re, 180deg)); }
}

/* --------------------------------------------------------------- 5. btn -- */
/* Namunadagi "Подтвердить участие" : oltin, EB Garamond 600, katta harf */
.btn{
  display: inline-flex;
  align-items: center; justify-content: center; gap: .5rem;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 19.5px;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 7px;
  padding: 10px 32px;
  box-shadow: 0 4px 14px rgba(177,128,76,.25);
  text-decoration: none;
  cursor: pointer;
  transition: background .3s ease, transform .12s ease, box-shadow .3s ease;
}
@media (min-width: 768px){ .btn{ font-size: 15px; padding: 12px 36px; } }
.btn:hover{ background: var(--accent-deep); box-shadow: 0 10px 26px rgba(177,128,76,.3); }
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity: .5; cursor: default; box-shadow: none; }
.btn svg{ width: 14px; height: 14px; }

/* Namunadagi "Проложить маршрут" : oltin yozuvli, ingichka ramkali "tabletka" */
.btn-route{
  display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
  padding: 8px 20px;
  font-family: var(--system);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--gold);
  background: rgba(255,228,145,.06);
  border: 1px solid var(--accent-dim);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.btn-route:hover{ background: rgba(255,228,145,.14); border-color: var(--gold); }
.btn-route svg{ width: 16px; height: 16px; }

/* ------------------------------------------------------------ 6. topbar -- */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-bar);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(1rem, 4vw, 2.2rem);
  background: linear-gradient(180deg, rgba(25,12,31,.85), transparent);
  transition: background .4s ease, backdrop-filter .4s ease;
}
.topbar.stuck{
  background: rgba(25,12,31,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,228,145,.12);
}
.mono{
  font-family: var(--script);
  font-size: 1.6rem; line-height: 1; color: var(--gold); text-decoration: none;
}
.bar-right{ display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1rem); }

.lang{ display: flex; align-items: center; gap: .4rem; }
.lang button{
  border: 0; background: none;
  font-family: var(--serif); font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); padding: .3rem 0; cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.lang button:hover{ color: var(--gold); }
.lang button[aria-pressed="true"]{ color: var(--gold); border-bottom-color: var(--gold); }

/* Musiqa : namunadagi oltin doira */
.music{
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c4955f, var(--accent-deep));
  box-shadow: 0 4px 14px rgba(177,128,76,.35);
  cursor: pointer;
  transition: transform .2s ease;
}
.music:hover{ transform: scale(1.06); }
.music i{ display: block; width: 2px; height: 10px; background: #fff; border-radius: 1px; }
.music[aria-pressed="true"] i{ animation: eq 1.05s ease-in-out infinite; }
.music[aria-pressed="true"] i:nth-child(2){ animation-delay: .16s; }
.music[aria-pressed="true"] i:nth-child(3){ animation-delay: .32s; }
@keyframes eq{ 0%,100%{ transform: scaleY(.35); } 50%{ transform: scaleY(1.55); } }
.music[hidden]{ display: none; }

/* -------------------------------------------------------------- 7. hero -- */
/* Namunadagi kabi : 406:574 oltin ramka, ismlar ikki oltin chiziq orasida,
   chap-yuqorida va o'ng-pastda pion dastalari ramkadan chiqib turadi. */
.hero{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(56px, 14vw, 104px) 16px 24px;
}
@media (min-width: 768px){ .hero{ padding-bottom: 56px; } }
.hero-frame{
  position: relative;
  width: 95%;
  max-width: 600px;
  aspect-ratio: 406 / 574;
}
@media (min-width: 768px){ .hero-frame{ width: 90%; max-width: 520px; } }
.hero-border{
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.hero-line{
  position: absolute;
  left: 50%;
  z-index: 20;
  width: 32%;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-line-top{ top: 26%; }
.hero-line-bottom{ top: 76%; }
.hero-names{
  position: absolute;
  left: 0; right: 0;
  top: 51%;
  z-index: 20;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1.25;
  color: #fff;
  text-align: center;
}
.hero-names .amp{
  font-size: .62em;
  line-height: 1.2;
  color: var(--gold);
}
.hero-flower{
  position: absolute;
  z-index: 30;
  height: auto;
  pointer-events: none;
}
.hero-flower-tl{ left: -26%; top: -17%; width: 64%; }
.hero-flower-br{ left: 60%;  top: 62%;  width: 56%; }
@media (min-width: 768px){ .hero-flower-br{ width: 60%; } }

/* --------------------------------------------------- 8. marosim haqida -- */
/* Namunadagi "О церемонии" : yuqorida oltin burchaklar va yurakli chiziq,
   ismlar Great Vibes, joy/vaqt/sana oltin (#ffe491). */
.ceremony{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.ornament{
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 64px;
  margin-bottom: -4px;
}
.orn-corner{
  position: absolute;
  top: 0;
  width: 20%;
  max-width: 84px;
}
.orn-l{ left: -2%; }
.orn-r{ right: -2%; transform: scaleX(-1); }
.orn-top{
  position: absolute;
  left: 50%; top: 0;
  width: 45%;
  max-width: 176px;
  transform: translateX(-50%);
}
@media (min-width: 768px){ .ornament{ max-width: 560px; height: 80px; } }

.cer-lead{
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
}
.cer-names{ display: flex; flex-direction: column; align-items: center; width: 100%; }
.cer-name{
  font-family: var(--script);
  font-weight: 400;
  font-size: 43px;
  line-height: 50px;
  color: #fff;
}
.cer-amp{
  margin: 18px 0 10px;
  font-family: var(--script);
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
}
.cer-info{
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gold);
}
.cer-kind{
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cer-venue{
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cer-venue b{
  display: block;
  margin-bottom: 2px;
  font-family: var(--script);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}
.cer-hour{
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cer-date{
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.cer-side{
  min-width: 5.5em;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cer-side:first-child{ text-align: right; }
.cer-side:last-child{ text-align: left; }
.cer-bar{ font-size: 24px; line-height: 1; font-weight: 300; }
.cer-day{ font-size: 34px; line-height: 1.3; font-weight: 400; font-variant-numeric: lining-nums; color: #fff; }
.cer-year{ margin-top: 14px; font-size: 18px; line-height: 1.5; letter-spacing: .06em; }
@media (max-width: 379px){
  .cer-date{ gap: 10px; }
  .cer-side{ font-size: 12px; letter-spacing: .04em; }
}
@media (min-width: 768px){
  .ceremony{ gap: 28px; }
  .cer-lead{ font-size: 17px; }
  .cer-name{ font-size: 64px; line-height: 76px; }
  .cer-amp{ margin: 24px 0 14px; font-size: 44px; }
  .cer-kind, .cer-venue{ font-size: 15px; }
  .cer-venue b{ font-size: 54px; }
  .cer-hour{ margin-top: 28px; font-size: 17px; }
  .cer-date{ margin-top: 24px; gap: 24px; }
  .cer-side{ font-size: 16px; }
  .cer-bar{ font-size: 32px; }
  .cer-day{ font-size: 46px; }
  .cer-year{ margin-top: 18px; font-size: 22px; }
}

/* Bo'limlar chetidagi gullar : namunadagi ritmda, navbat bilan chap va
   o'ngda. Parallaks : main.js, initDrift. Matn ulardan yuqorida. */
.decor-cer-l{ left: -34%; top: 26%; width: 56%; }
.decor-cer-r{ right: -34%; top: 70%; width: 56%; }
.decor-cal-l{ left: -24%; top: 14%; width: 34%; }
.decor-cal-r{ right: -26%; top: 66%; width: 32%; }
.decor-rsvp{ right: -16%; top: -12%; width: 24%; max-width: 200px; transform: rotate(30deg); }
.decor-wish{ left: -34%; bottom: 6%; width: 50%; }
@media (min-width: 768px){
  .decor-cer-l{ left: -30%; width: 46%; }
  .decor-cer-r{ right: -30%; width: 46%; }
  .decor-cal-l{ left: -16%; width: 24%; }
  .decor-cal-r{ right: -16%; width: 22%; }
  .decor-rsvp{ right: -4%; }
  .decor-wish{ left: -28%; width: 40%; }
}

/* ------------------------------------------------------- 9. countdown -- */
/* Namunadagi "Обратный отсчёт" : sarlavha, bitta qator sanoq, oltin
   ramkali kalendar, to'y kuni oltin yurak ichida, ostida havola. */
.countdown-block{ display: flex; flex-direction: column; align-items: center; text-align: center; }
.sub-title{
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink);
}
.cd-line{
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cal{
  width: 100%;
  max-width: 330px;
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--accent);
  border-radius: 28px;
  background: rgba(25,12,31,.35);
}
.cal-inner{ font-family: var(--system); color: var(--ink); }
.cal-head{
  padding: 10px 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .025em;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.cal-dow{ display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 2px solid #fff; }
.cal-dow span{ padding: 6px 0; font-size: 10px; line-height: 1.5; font-weight: 600; text-align: center; color: var(--ink-2); }
.cal-grid{ display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; padding: 8px 4px; }
.cal-grid span{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
/* to'y kuni : shablonning asl oltin yuragi ichida, to'q raqam */
.cal-grid .pick{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 24px;
  background: url("../img/cal-heart.webp") center / contain no-repeat;
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
}
.cal-add{ margin-top: 16px; }
.cal-add a{
  font-family: var(--serif);
  font-size: 14px;
  line-height: 20px;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: opacity .2s ease;
}
.cal-add a:hover{ opacity: .7; }
@media (min-width: 768px){
  .sub-title{ font-size: 26px; }
  .cd-line{ font-size: 19px; line-height: 28px; }
  .cal{ max-width: 400px; margin-top: 40px; padding: 28px; }
  .cal-head{ font-size: 17px; }
  .cal-dow span{ font-size: 11px; }
  .cal-grid span{ height: 34px; font-size: 13px; }
  .cal-grid .pick{ width: 30px; height: 28px; font-size: 12px; }
  .cal-add a{ font-size: 16px; }
}

.btn-row{ display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.4rem; }
.btn-row-end{ justify-content: flex-end; margin-top: .2rem; }

/* ---------------------------------------------------------- 10. manzil -- */
/* yorliq : kichik oltin bosh harf; qiymat : Great Vibes, oq; izoh : oltin */
.venue{
  margin: 1.4rem auto 0;
  max-width: 440px;
  padding: 4px clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: rgba(25,12,31,.55);
}
.facts{ display: grid; gap: 0; margin: 0; }
.fact{ display: grid; gap: 4px; padding-block: 20px; text-align: center; }
.fact + .fact{ border-top: 1px solid var(--rule); }
.fact dt{
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.fact dd{
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  color: #fff;
  font-variant-numeric: lining-nums;
}
.fact dd small{
  display: block;
  margin-top: 6px;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
@media (min-width: 768px){
  .fact{ padding-block: 24px; }
  .fact dt{ font-size: 14px; }
  .fact dd{ font-size: 32px; }
  .fact dd small{ font-size: 17px; }
}

/* ------------------------------------- 11. bizning hikoyamiz : karusel -- */
/* O'lchamlar namunadan : sahna 340px (desktop 520px), perspective 1000px,
   karta sahna balandligining 92% i, 16px burchak, oq halqa, 1.1s o'tish. */
.story{
  position: relative;
  width: 100%;
  max-width: 432px;
  margin: 1.5rem auto 0;
  padding-inline: .5rem;
  overflow: hidden;           /* 45° burilgan chetki kartalar toshmasin */
}
@media (min-width: 768px){ .story{ max-width: 800px; } }

.story-stage{
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  touch-action: pan-y;        /* vertikal surish sahifaga, gorizontali karuselga */
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 768px){ .story-stage{ height: 520px; } }

.story-slide{
  position: absolute;
  height: 92%;
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-2);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.3),
    0 20px 25px -5px rgba(0,0,0,.35),
    0 8px 10px -6px rgba(0,0,0,.3);
  transition:
    transform 1.1s cubic-bezier(.4,0,.2,1),
    opacity   1.1s cubic-bezier(.4,0,.2,1),
    z-index   1.1s cubic-bezier(.4,0,.2,1);
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
.story-slide img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.story-slide:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

/* Strelkalar : faqat kattaroq ekranda, telefonda surish yetadi */
.story-nav{
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  width: 40px; height: 40px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  background: rgba(25,12,31,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold);
  cursor: pointer;
  transition: background .25s ease;
}
.story-nav:hover{ background: rgba(25,12,31,.9); }
.story-nav svg{ width: 16px; height: 16px; }
.story-prev{ left: 1rem; }
.story-next{ right: 1rem; }
@media (min-width: 768px){ .story-nav{ display: grid; } }

.story-count{
  margin-top: .9rem;
  text-align: center;
  font-family: var(--system);
  font-size: .875rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* lightbox */
.lightbox{
  position: fixed; inset: 0; z-index: var(--z-box);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(12,5,16,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[hidden]{ display: none; }
.lightbox img{
  max-width: 100%; max-height: 82dvh;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.lb-btn{
  position: absolute;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  transition: background .25s ease;
}
.lb-btn:hover{ background: rgba(255,255,255,.24); }
.lb-btn svg{ width: 18px; height: 18px; }
.lb-prev{ left: clamp(.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-next{ right: clamp(.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-close{ top: clamp(.8rem, 3vw, 1.6rem); right: clamp(.8rem, 3vw, 1.6rem); }
.lb-count{
  position: absolute; bottom: clamp(.9rem, 3vw, 1.8rem); left: 50%; transform: translateX(-50%);
  font-family: var(--system); font-size: .72rem; letter-spacing: .16em; color: rgba(255,255,255,.8);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------ 12. forma umumiy -- */
/* Namunadagi "Книга пожеланий" maydonlari : shaffof, oltin ramka, 8px. */
.form{ display: grid; gap: 1.1rem; max-width: 440px; margin: 1.4rem auto 0; }
.row{ display: grid; gap: 1.1rem; }
@media (min-width: 560px){ .row{ grid-template-columns: 1fr 1fr; } }

.field{ display: grid; gap: .4rem; }
.field label{
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.field input, .field select, .field textarea{
  width: 100%;
  font-family: var(--serif); font-size: 16px; font-weight: 400;  /* 16px : iPhone kattalashtirmasin */
  color: #fff;
  background: rgba(25,12,31,.45);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 12px 16px;
  appearance: none;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.field textarea{ resize: vertical; min-height: 6.5rem; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder{ color: var(--ink-3); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  background: rgba(25,12,31,.75);
  box-shadow: 0 0 0 3px rgba(255,228,145,.18);
}
.field select{
  cursor: pointer;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%23ffe491' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field select option{ background: var(--paper); color: #fff; }
.field .hint{ font-size: 13px; color: var(--ink-2); }
/* Robotlar uchun tuzoq maydon : odam ko'rmaydi, robot to'ldiradi. */
.hp{ position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.status{
  font-size: 15px; color: var(--gold);
  min-height: 1.3rem; opacity: 0;
  transition: opacity .3s ease;
}
.status.on{ opacity: 1; }
.status.bad{ color: #ff9d8a; }

/* -------------------------------------------------- 13. mehmonlar kitobi -- */
/* Namunadagidek : zamin rangidagi karta, 20% oq ramka, ism oltin. */
.wishes{
  display: grid; gap: .75rem;
  max-width: 440px; max-height: 500px;
  margin: 2rem auto 0;
  padding-right: .4rem;
  overflow-y: auto;
}
.wishes::-webkit-scrollbar{ width: 4px; }
.wishes::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.3); border-radius: 4px; }
.wish{
  padding: 16px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.2);
}
.wish .who{ font-size: 15px; font-weight: 600; color: var(--gold); }
.wish .txt{ margin-top: .35rem; font-size: 15px; line-height: 1.6; color: #fff; white-space: pre-line; overflow-wrap: anywhere; }
.wishes-empty{ font-size: 15px; color: var(--ink-2); font-style: italic; text-align: center; }

/* --------------------------------------------- 14. sovg'a qutisi -- */
/* Namunadagi "Коробка для подарков" : quti, atrofida 7 ta kichik sovg'a
   va 4 ta yulduzcha. Joy, o'lcham, burchak va vaqtlar namunadan. */
.gift-wrap{ display: flex; flex-direction: column; align-items: center; }
.gift-box{
  position: relative;
  width: 260px;
  height: 262px;
  margin-top: 16px;
  padding: 0 0 8px;
  border: 0;
  background: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gift-box:focus-visible{ outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 16px; }
.gift-sparkle{
  position: absolute;
  z-index: 20;
  line-height: 1;
  color: var(--gold);
  pointer-events: none;
  animation: gift-sparkle 2s ease-in-out infinite;
}
.gs1{ top: 8%;  left: 14%;  font-size: 22px; }
.gs2{ top: 18%; right: 10%; font-size: 16px; animation-delay: .6s; }
.gs3{ top: 32%; left: 5%;   font-size: 14px; animation-delay: 1.2s; }
.gs4{ top: 26%; right: 5%;  font-size: 14px; animation-delay: 1.7s; }
.gift-bob{
  position: relative;
  display: block;
  width: 200px;
  height: 220px;
  animation: gift-bob 3s ease-in-out infinite;
}
.gift-shadow{
  position: absolute;
  left: 50%; bottom: -8px;
  width: 144px; height: 12px;
  margin-left: -72px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  filter: blur(4px);
  animation: gift-shadow 3s ease-in-out infinite;
}
.gift-main{
  position: absolute;
  left: 50%; bottom: 0;
  z-index: 2;
  width: 170px;
  max-height: 220px;
  margin-left: -85px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
  transform-origin: 50% 100%;
}
.gift-mini{ position: absolute; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.gm1{ left: -20px; top: 10px;  width: 34px; z-index: 1; transform: rotate(-22deg); }
.gm2{ left: 168px; top: 2px;   width: 38px; z-index: 1; transform: rotate(20deg); }
.gm3{ left: -16px; top: 120px; width: 26px; z-index: 1; transform: rotate(-18deg); }
.gm4{ left: 182px; top: 114px; width: 24px; z-index: 1; transform: rotate(14deg); }
.gm5{ left: -8px;  top: 172px; width: 44px; z-index: 3; transform: rotate(8deg); }
.gm6{ left: 26px;  top: 182px; width: 26px; z-index: 3; transform: rotate(-10deg); }
.gm7{ left: 118px; top: 176px; width: 40px; z-index: 3; transform: rotate(-14deg); }
.gift-box:hover .gift-main,
.gift-box:focus-visible .gift-main{ animation: gift-pop .7s cubic-bezier(.34,1.56,.64,1) forwards; }
.gift-box:hover .gm1, .gift-box:focus-visible .gm1{ animation: gift-fly1 1.6s ease-in-out infinite; }
.gift-box:hover .gm2, .gift-box:focus-visible .gm2{ animation: gift-fly2 1.8s ease-in-out .15s infinite; }
.gift-box:hover .gm3, .gift-box:focus-visible .gm3{ animation: gift-fly3 1.4s ease-in-out .3s infinite; }
.gift-box:hover .gm4, .gift-box:focus-visible .gm4{ animation: gift-fly4 1.7s ease-in-out .45s infinite; }
.gift-box:hover .gm5, .gift-box:focus-visible .gm5{ animation: gift-fly5 1.5s ease-in-out .1s infinite; }
.gift-box:hover .gm6, .gift-box:focus-visible .gm6{ animation: gift-fly6 1.9s ease-in-out .25s infinite; }
.gift-box:hover .gm7, .gift-box:focus-visible .gm7{ animation: gift-fly7 1.6s ease-in-out .4s infinite; }
.gift-text{
  margin-top: 24px;
  max-width: 30ch;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink);
}
@media (min-width: 768px){ .gift-text{ font-size: 18px; } }

@keyframes gift-bob{ 0%, 100%{ transform: translateY(0); } 50%{ transform: translateY(-5px); } }
@keyframes gift-shadow{ 0%, 100%{ transform: scaleX(1); opacity: .3; } 50%{ transform: scaleX(.9); opacity: .18; } }
@keyframes gift-sparkle{ 0%, 100%{ opacity: 0; transform: scale(.4); } 50%{ opacity: 1; transform: scale(1.15); } }
@keyframes gift-pop{
  0%   { transform: translateY(0) scale(1) rotate(0deg); }
  45%  { transform: translateY(-14px) scale(1.08) rotate(-3deg); }
  100% { transform: translateY(-8px) scale(1.05) rotate(0deg); }
}
@keyframes gift-fly1{ 0%{ translate: 0 0; opacity: 1; } 55%{ translate: -6px -28px; opacity: 1; } 80%{ translate: -14px -55px; opacity: 0; } 81%{ translate: 0 0; opacity: 0; } 100%{ translate: 0 0; opacity: 1; } }
@keyframes gift-fly2{ 0%{ translate: 0 0; opacity: 1; } 55%{ translate: 6px -30px; opacity: 1; } 80%{ translate: 14px -60px; opacity: 0; } 81%{ translate: 0 0; opacity: 0; } 100%{ translate: 0 0; opacity: 1; } }
@keyframes gift-fly3{ 0%{ translate: 0 0; opacity: 1; } 55%{ translate: -4px -32px; opacity: 1; } 80%{ translate: -10px -65px; opacity: 0; } 81%{ translate: 0 0; opacity: 0; } 100%{ translate: 0 0; opacity: 1; } }
@keyframes gift-fly4{ 0%{ translate: 0 0; opacity: 1; } 55%{ translate: 5px -35px; opacity: 1; } 80%{ translate: 12px -70px; opacity: 0; } 81%{ translate: 0 0; opacity: 0; } 100%{ translate: 0 0; opacity: 1; } }
@keyframes gift-fly5{ 0%{ translate: 0 0; opacity: 1; } 55%{ translate: -3px -40px; opacity: 1; } 80%{ translate: -8px -80px; opacity: 0; } 81%{ translate: 0 0; opacity: 0; } 100%{ translate: 0 0; opacity: 1; } }
@keyframes gift-fly6{ 0%{ translate: 0 0; opacity: 1; } 55%{ translate: 4px -38px; opacity: 1; } 80%{ translate: 10px -75px; opacity: 0; } 81%{ translate: 0 0; opacity: 0; } 100%{ translate: 0 0; opacity: 1; } }
@keyframes gift-fly7{ 0%{ translate: 0 0; opacity: 1; } 55%{ translate: 6px -36px; opacity: 1; } 80%{ translate: 14px -72px; opacity: 0; } 81%{ translate: 0 0; opacity: 0; } 100%{ translate: 0 0; opacity: 1; } }

/* modal */
.sheet{
  position: fixed; inset: 0; z-index: var(--z-box);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(12,5,16,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sheet[hidden]{ display: none; }
@keyframes rise{ from{ opacity: 0; transform: translateY(22px) scale(.98); } to{ opacity: 1; transform: none; } }
.sheet-card{
  position: relative;
  width: min(100%, 26rem);
  max-height: 86dvh;
  overflow-y: auto;
  padding: clamp(1.6rem, 5vw, 2.2rem);
  display: grid; gap: 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background:
    linear-gradient(rgba(25,12,31,.82), rgba(25,12,31,.82)),
    url("../img/bg-texture.webp") 0 0 / 340px repeat,
    var(--paper);
  box-shadow: 0 25px 60px -12px rgba(0,0,0,.6);
  animation: rise .5s cubic-bezier(.22,.61,.36,1) both;
}
.sheet-close{
  position: absolute; top: .9rem; right: .9rem;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  background: rgba(255,255,255,.06);
  color: var(--gold);
  cursor: pointer;
}
.sheet-close svg{ width: 15px; height: 15px; }
.sheet-note{ text-align: center; font-size: 15px; color: var(--ink-2); }

/* Ikki bank kartasi : nomi, chip, raqam, egasi va "Nusxalash" tugmasi.
   Uzcard binafsha (pionlar), Humo oltin-jigarrang (ramka). */
.gifts{ display: grid; gap: 14px; }
.bank-card{
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px 16px 16px 20px;
  border-radius: 16px;
  color: #fff;
  text-align: left;
  font-family: var(--system);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(135deg, #6d3f8a 0%, #4f2a66 55%, #34183f 100%);
  box-shadow: 0 16px 30px -14px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.2);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.bank-card.humo{
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, #a77744 0%, #85592c 55%, #5c3c1b 100%);
}
.bank-card::after{
  content: "";
  position: absolute;
  right: -48px; bottom: -70px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  box-shadow: -46px -30px 0 0 rgba(255,255,255,.04);
  z-index: -1;
}
.bc-top{ display: flex; align-items: center; justify-content: space-between; }
.bc-brand{ font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.bc-chip{
  width: 36px; height: 27px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 31%, rgba(90,70,30,.35) 31% 34%, transparent 34% 66%, rgba(90,70,30,.35) 66% 69%, transparent 69%),
    linear-gradient(0deg, transparent 46%, rgba(90,70,30,.35) 46% 54%, transparent 54%),
    linear-gradient(135deg, #f1e4b9, #cdb376 60%, #b49a5a);
  box-shadow: inset 0 0 0 1px rgba(60,45,15,.25);
}
.bc-num{
  font-size: clamp(16px, 5.2vw, 22px);
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
}
.bc-bottom{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bc-holder{
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.copy{
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.94);
  color: #4f2a66;
  font: 600 12.5px/1 var(--system);
  cursor: pointer;
  box-shadow: 0 4px 10px -4px rgba(0,0,0,.35);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.copy:hover{ background: #fff; }
.bank-card.humo .copy{ color: #5c3c1b; }
.copy.done,
.bank-card.humo .copy.done{ background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.copy svg{ width: 14px; height: 14px; flex: none; }

/* Xarita tanlash oynasi : ikki katta tugma — Yandex va Google. */
.map-choices{ display: grid; gap: 12px; }
.map-choice{
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--rule);
  color: #fff;
  font: 600 16px/1.2 var(--system);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .12s ease;
}
.map-choice:hover{ border-color: var(--gold); background: rgba(255,255,255,.1); }
.map-choice:active{ transform: translateY(1px); }
.map-logo{
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font: 700 19px/1 var(--system);
}
.map-logo.yandex{ background: #fc3f1d; color: #fff; }
.map-logo.google{ background: #fff; color: #4285f4; }
.map-go{ width: 16px; height: 16px; margin-left: auto; color: var(--gold); flex: none; }

@media (max-width: 359px){
  .sheet{ padding: 8px; }
  .sheet-card{ padding: 24px 16px; }
  .bank-card{ padding: 16px 12px 14px 16px; }
}
.copied{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ----------------------------------------------------------- 15. yakun -- */
/* "Sizni kutib qolamiz" : shablonning yozma shrifti (Great Vibes).
   Bo'lim ko'ringanda : gulchambar o'zini chizadi, matn chapdan o'ngga qo'lda
   yozilgandek ochiladi, oxirida chiziqlar yoyilib yurak "uradi" — konvert
   muhridagi yurak : taklifnoma u bilan ochilib, u bilan tugaydi. */
.section-end{ padding-top: clamp(1rem, 4vw, 2rem); padding-bottom: 0; }
.envoi{ text-align: center; display: grid; gap: 12px; justify-items: center; }
.envoi-mark{ width: clamp(62px, 13vw, 88px); color: var(--accent); stroke-dasharray: 1; }
.envoi-line{
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(42px, 11.5vw, 66px);
  line-height: 1.2;
  padding: 0 .15em .12em;      /* yozma harflarning dumlari niqobda kesilmasin */
  max-width: 13em;
  text-wrap: balance;
  color: #fff;
}
.envoi-rule{ display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--accent); }
.envoi-rule i{ width: 56px; height: 1px; background: linear-gradient(to right, transparent, var(--accent)); transform-origin: 100% 50%; }
.envoi-rule i:last-child{ background: linear-gradient(to left, transparent, var(--accent)); transform-origin: 0 50%; }
.envoi-rule svg{ width: 16px; height: 16px; }

.section-end .envoi-mark{ stroke-dashoffset: 1; }
.section-end .envoi-line{
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat;
          mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat;
}
.section-end .envoi-rule i{ transform: scaleX(0); }
.section-end .envoi-rule svg{ transform: scale(0); }
.section-end .reveal.in .envoi-mark{ animation: envoi-draw 1.6s ease-in-out .2s forwards; }
.section-end .reveal.in .envoi-line{ animation: envoi-write 2.4s cubic-bezier(.45,.05,.4,1) 1s forwards; }
.section-end .reveal.in .envoi-rule i{ animation: envoi-rule .8s ease-out 3.1s forwards; }
.section-end .reveal.in .envoi-rule svg{
  animation: envoi-heart .6s cubic-bezier(.34,1.56,.64,1) 3.5s forwards,
             envoi-beat 2.6s ease-in-out 4.4s infinite;
}
@keyframes envoi-draw{ to{ stroke-dashoffset: 0; } }
@keyframes envoi-write{ to{ -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes envoi-rule{ to{ transform: scaleX(1); } }
@keyframes envoi-heart{ to{ transform: scale(1); } }
@keyframes envoi-beat{
  0%, 40%, 100%{ transform: scale(1); }
  10%{ transform: scale(1.2); }
  22%{ transform: scale(1.05); }
  30%{ transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce){
  .section-end .envoi-mark{ stroke-dashoffset: 0; }
  .section-end .envoi-line{ -webkit-mask: none; mask: none; }
  .section-end .envoi-rule i, .section-end .envoi-rule svg{ transform: none; }
  .section-end .reveal.in .envoi-mark,
  .section-end .reveal.in .envoi-line,
  .section-end .reveal.in .envoi-rule i,
  .section-end .reveal.in .envoi-rule svg{ animation: none; }
}
@media print{
  .section-end .envoi-mark{ stroke-dashoffset: 0; }
  .section-end .envoi-line{ -webkit-mask: none; mask: none; }
  .section-end .envoi-rule i, .section-end .envoi-rule svg{ transform: none; }
}

/* Sahifa oxiri : namunadagi keng gulchambar (flowerbottom), ustida futer
   yozuvi, ostida oltin bezak. Gulchambar ekran chetida kesiladi. */
.foot-wrap{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px var(--pad) clamp(2rem, 6vw, 3rem);
  text-align: center;
}
.foot-flowers{
  display: block;
  width: 124%;
  max-width: none;
  margin-bottom: 4px;
  pointer-events: none;
}
@media (min-width: 768px){ .foot-flowers{ width: 86%; } }
.foot-flowers img{ width: 100%; height: auto; }
.foot{
  position: relative;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
}
.foot-orn{
  width: 45%;
  max-width: 176px;
  margin-top: 20px;
  pointer-events: none;
}

/* ------------------------------------------------------- 16. reveal/a11y -- */
.reveal{ opacity: 0; transform: translateY(20px); }
.reveal.in{
  opacity: 1; transform: none;
  transition: opacity .95s ease, transform .95s cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal{ opacity: 1; transform: none; }
  .sparkles{ display: none; }
}

@media print{
  .bg, .sparkles, .topbar, .gate, .lightbox, .sheet, .music, .decor, .hero-flower, .story-nav, .foot-flowers{ display: none !important; }
  body{ background: #fff; color: #000; }
  .reveal{ opacity: 1; transform: none; }
}
