/* ==========================================================================
   Dilshod & Shahrizoda : raqamli to'y taklifnomasi
   Til: "shisha bog'" : yorug' botanik zamin ustida oq shisha qatlam.
   Zamin och krem-yashil, panellar oq shisha (backdrop-filter), matn to'q
   yashil : shuning uchun kontrast har qanday holatda ham AA dan o'tadi.
   Rejim: faqat yorug' (immersiv taklifnoma, bo'limlar orasida almashmaydi).
   Shaffoflik : approksimatsiya, Apple Liquid Glass emas.
   ========================================================================== */

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

  /* zamin */
  --paper:       #eef3e8;
  --paper-warm:  #f4f2e7;

  /* Shisha : namunada .40, lekin gul foni juda band bo'lgani uchun .47 —
     shu bilan panel ustidagi matn AA dan o'tadi, ko'rinish esa o'zgarmaydi. */
  --glass:       rgba(255, 255, 255, 0.47);
  --glass-2:     rgba(255, 255, 255, 0.56);
  --glass-brd:   rgba(255, 255, 255, 0.35);
  --glass-blur:  blur(7px) saturate(1.08);
  --glass-shadow:
    inset  1.5px  1.5px 2px rgba(255, 255, 255, 0.45),
    inset -1.5px -1.5px 3px rgba(120, 140, 110, 0.12),
    0 18px 50px -6px rgba(53, 69, 47, 0.30),
    0 6px  20px  2px rgba(53, 69, 47, 0.14);

  /* matn : to'q yashil siyoh */
  --ink:         #35452f;
  --ink-1:       rgba(53, 69, 47, 0.94);
  /* .92 : gul foni band, .82 da panel ustidagi mayda matn AA dan o'tmaydi */
  --ink-2:       rgba(53, 69, 47, 0.92);
  --ink-3:       rgba(53, 69, 47, 0.52);   /* faqat dekor */

  /* yagona akcent : butun sahifada o'zgarmaydi */
  --accent:      #47613e;
  --accent-soft: #7d9270;
  --accent-dim:  rgba(71, 97, 62, 0.28);

  --rule:        rgba(71, 97, 62, 0.18);

  /* shrift */
  --display:     'Viaoda Libre', 'Cormorant Garamond', 'Times New Roman', serif;
  --serif:       'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --sans:        'Lora', Georgia, serif;
  /* namunadagi matn shrifti (Mac/iOS'da tizimniki, boshqasida Libre Baskerville)
     va kalendar raqamlari uchun tizim shrifti */
  --baskerville: Baskerville, 'Libre Baskerville', 'Times New Roman', serif;
  --system:      ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

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

  /* burchak radiusi : bitta tizim */
  --r:           30px;
  --r-sm:        14px;
  --r-pill:      999px;

  --z-bg: 0;  --z-petal: 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-1);
  font-family: var(--sans);
  font-size: clamp(0.92rem, 0.88rem + 0.25vw, 1rem);
  font-weight: 400;
  line-height: 1.7;
  -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: var(--paper-warm); }

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

.sr{
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- 2. fon -- */
/* To'rt qatlam: krem zamin + yengil yuvindi + evkalipt fotosi + skrim.
   Foto oqartirilgan holda saqlangan, skrim esa yuqori va pastki chekkani
   yana yoritadi : shishasiz turgan matn ham AA kontrastidan o'tadi. */
.bg{
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  overflow: hidden;
  background-color: var(--paper);
}

/* Yengil yuvindi : evkalipt fotosi ustida markazni biroz yoritadi.
   Foto o'zi tekstura berganidan keyin bu qatlam kuchli bo'lmasligi kerak,
   aks holda fon loyqa bo'lib qoladi. */
.bg-wash{
  position: absolute;
  inset: -14%;
  background-image:
    radial-gradient(circle at 50% 44%, rgba(248,250,242,.42), transparent 52%),
    radial-gradient(circle at 12% 16%, rgba(244,247,238,.24), transparent 40%),
    radial-gradient(circle at 88% 80%, rgba(244,247,238,.24), transparent 40%);
  filter: blur(46px);
}

/* Shablonning asl gul naqshi (litsenziya sotib olingan).
   O'lcham 180% : namunadagi kattalik. Lekin sof foiz bo'lsa keng ekranda
   rasm o'z eniga nisbatan 3 barobardan ortiq cho'zilib, sifati buziladi
   (1920px ekranda 3456px chiziladi, manba esa 1900px).
   Shuning uchun clamp : kichik ekranda ham juda maydalashmaydi,
   kattasida esa manba enidan oshib ketmaydi. */
.bg-tile{
  position: absolute;
  inset: 0;
  background-image: url("../img/floral-bg.webp");
  background-repeat: repeat;
  background-size: clamp(900px, 180%, 1700px) auto;
  background-position: center top;
}

/* Foydalanuvchi o'z fotosini qo'yganda : juda yumshoq, naqsh ustida */
.bg-photo{
  position: absolute;
  inset: -4%;
  background-image: var(--bg-src, none);
  background-size: cover;
  background-position: center;
  filter: blur(3px) saturate(.86);
  transform: scale(1.04);
  opacity: 0;
  transition: opacity 1.6s ease;
}
.bg-photo.on{ opacity: .34; }

/* Skrim : juda yengil : naqsh ko'rinib tursin, lekin chetlari yumshasin.
   Matn kontrasti shisha panellar ustida ta'minlanadi, skrim ustida emas. */
.bg-scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(238,243,232,.46) 0%,
      rgba(238,243,232,.34) 15%,
      transparent 32%,
      transparent 76%,
      rgba(238,243,232,.42) 100%);
}

/* Tushayotgan gulbarglar. Kam sonli, transform ustida, mobil FPS ni yemaydi. */
.petals{
  position: fixed;
  inset: 0;
  z-index: var(--z-petal);
  pointer-events: none;
  overflow: hidden;
}
/* Olti bargli gulcha (Heroicons uslubidagi oddiy geometriya, MIT). */
.petals i{
  position: absolute;
  top: -8vh;
  width: 13px; height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f4f8ee'%3E%3Cg%3E%3Cellipse cx='12' cy='5' rx='2.2' ry='4.5'/%3E%3Cellipse cx='12' cy='5' rx='2.2' ry='4.5' transform='rotate(60 12 12)'/%3E%3Cellipse cx='12' cy='5' rx='2.2' ry='4.5' transform='rotate(120 12 12)'/%3E%3Cellipse cx='12' cy='5' rx='2.2' ry='4.5' transform='rotate(180 12 12)'/%3E%3Cellipse cx='12' cy='5' rx='2.2' ry='4.5' transform='rotate(240 12 12)'/%3E%3Cellipse cx='12' cy='5' rx='2.2' ry='4.5' transform='rotate(300 12 12)'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='1.8' fill='%23d9c9a4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 1px rgba(53,69,47,.18));
  opacity: 0;
  animation: drift linear infinite;
  will-change: transform;
}
@keyframes drift{
  0%   { transform: translate3d(0,0,0) rotate(0deg)   scale(.7); opacity: 0; }
  8%   {                                                          opacity: .75; }
  92%  {                                                          opacity: .45; }
  100% { transform: translate3d(var(--dx, 3vw), 112vh, 0) rotate(420deg) scale(1); opacity: 0; }
}

/* ------------------------------------------------------------- 3. shisha -- */
.glass{
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r);
  box-shadow: var(--glass-shadow);
}
/* Ichki kartalar : panel ichida turgani uchun biroz zichroq */
.glass-2{
  background: var(--glass-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-sm);
  box-shadow:
    inset 1px 1px 1.5px rgba(255,255,255,.5),
    0 6px 18px -4px rgba(53,69,47,.16);
}

/* Shaffoflikni kamaytirish so'ralganda : to'liq to'ldirish, blur yo'q. */
@media (prefers-reduced-transparency: reduce){
  .glass, .glass-2{
    background: rgba(250,252,246,.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ------------------------------------------------------- 4. tipografiya -- */
/* .page ekran enida, tor ustun ichidagi .shell'da. overflow-x: clip :
   bezaklar panel chetidan chiqadi, lekin ekrandan emas. Ilgari .page o'zi
   tor ustun edi va kompyuterda gullar ustun chetida tik chiziq bo'lib
   kesilib qolardi; endi ularni faqat ekran cheti kesadi.
   `clip` (scroll emas) : gorizontal siljish paydo bo'lmaydi.
   `hidden` undan oldin : clip'ni bilmaydigan eski iPhone'larda (iOS 15 va
   undan oldingi) sahifa 30px ga kengayib, barmoq bilan yon tomonga
   surilib ketardi. Vertikal toshish yo'q, shuning uchun ichki scroll ham yo'q. */
.page{ position: relative; z-index: var(--z-page); overflow-x: hidden; overflow-x: clip; }

/* Havoladagi kabi tor ustun : mobil 480px, kattaroq ekranda 900px. */
.shell{
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 0;
}
@media (min-width: 960px){ .shell{ max-width: var(--shell-wide); } }

.section{
  position: relative;
  z-index: 1;                 /* pastki gulchambar ustida turadi */
  padding: var(--rhythm) var(--pad);
  scroll-margin-top: 5rem;
}

.eyebrow{
  display: block;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
}

.h2{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.55rem, 1.1rem + 2.2vw, 2.4rem);
  line-height: 1.18;
  color: var(--accent);
  letter-spacing: .02em;
}
.h2 .it{
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.2;
  padding-bottom: .08em;
  display: inline-block;
  color: var(--ink);
}
/* Bo'lim sarlavhasi namunadagidek : Times New Roman, qalin, katta harf,
   20px (telefon) / 26px (>=768px). Rangi --ink : gul foni ustida --accent
   yetarli kontrast bermaydi. */
.sec-title{
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}
@media (min-width: 768px){ .sec-title{ font-size: 26px; } }
.lead{
  font-size: clamp(.95rem, .9rem + .3vw, 1.05rem);
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 44ch;
}
.small{ font-size: .85rem; color: var(--ink-2); }

.divider{
  display: flex; align-items: center; gap: .9rem;
  color: var(--accent-soft);
  margin-inline: auto;
  max-width: 220px;
}
.divider::before, .divider::after{
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}
.divider svg{ width: 22px; height: 22px; flex: none; }

/* Gul bezaklari : panel burchaklaridan tashqariga chiqadi. Ekrandan
   chiqqan qismini .page (overflow-x: clip) kesadi, sahifa kengaymaydi. */
.decor{
  position: absolute;
  pointer-events: none;
  z-index: 3;
}
.decor img{ width: 100%; height: auto; display: block; }
/* corner-bl rasmining chap chetida ikki gulbarg rasmning o'zida kesilgan.
   Telefonda bu chet ekrandan tashqarida, kompyuterda esa ko'rinadi :
   6% yumshoq so'nadi, tik chiziq qolmaydi. */
.decor img.soft-edge{
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%);
          mask-image: linear-gradient(90deg, transparent, #000 6%);
}

/* Namunadagidek : flower2 o'z holicha (u o'ng-yuqori burchak uchun chizilgan,
   ko'zgu kerak emas), -15.78° burilgan, panel burchagidan tashqariga chiqadi.
   Ekrandan chiqqan qismini .page (overflow-x: clip) kesadi. */
.decor-tr{
  top: -58px;
  right: -40px;
  width: 44%;
  max-width: 210px;
  transform: rotate(-15.78deg);
}
@media (min-width: 768px){ .decor-tr{ top: -78px; right: -64px; max-width: 244px; } }
.decor-bl{
  bottom: -30px;
  left: calc(-1 * clamp(8px, 2.6vw, 26px));
  width: clamp(112px, 32vw, 172px);
}
/* Panel tagidagi keng gulchambar : pastdan yarmi chiqib turadi.
   z-index 0 : panel foni ustida, lekin matn ostida (.section z-index 1).
   Panelga katta pastki bo'shliq berilgan — matn gulga kirib ketmaydi. */
.decor-bottom{
  left: 50%; bottom: 0;
  transform: translate(-50%, 30%);
  width: 128%;
  z-index: 0;
}

/* -------------------------------------------------------------- 5. gate -- */
/* Konvert. Sayt shu bilan ochiladi, musiqa ham shu bosishda yoqiladi
   (brauzer avtomat ovozga ruxsat bermaydi, foydalanuvchi harakati kerak).
   O'lchamlar namunadan olingan : o'z gul foni 8px xiralashtirilgan
   (orqadagi sahifa ko'rinmaydi), ustida keng shisha karta — oval emas. */
.gate{
  position: fixed;
  inset: 0;
  z-index: var(--z-gate);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;           /* chetdan chiqqan gullar va gulchalar ekranni kengaytirmasin */
  overscroll-behavior: contain;
  /* bosib surganda yozuvlar belgilanib, rasmlar "ushlanib" qolmasin */
  -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-bg{
  position: absolute;
  inset: -24px;               /* xiralashgan chetlar oqarib qolmasin */
  background: var(--paper) url("../img/floral-bg.webp") repeat 50% 50% / clamp(900px, 180%, 1700px) auto;
  filter: blur(8px) saturate(1.05);
}
.gate-bg::after{ content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.12); }
.gate-petals{ position: absolute; z-index: 1; }

/* Karta eni namunadagidek : 310 / 340 / 520 / 600px.
   Kirish animatsiyasi yo'q (namunada ham yo'q) : karta yoki uning
   ota-elementida opacity animatsiyasi bo'lsa, Chrome shishaning
   backdrop-filter'ini o'chirib qo'yadi va ortidagi fon xiralashmaydi. */
.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(71,97,62,.15);
}
/* Shisha qatlami alohida : gullar uning ichida, karta chetida kesiladi */
.gate-glass{
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  clip-path: inset(0 round 8px);
  /* namunada .30 : bizda .42 va yozuvlar to'liq to'q — gul foni ustida
     sana va taklif matni 4.5:1 dan, ismlar 3:1 dan past tushmaydi */
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(6px) saturate(1.08);
  -webkit-backdrop-filter: blur(6px) saturate(1.08);
  border: 1px solid rgba(71,97,62,.15);
}
/* Burchak gullari : ikkalasi ham flower2, chap-yuqorisi ko'zguda */
.gate-flower{
  position: absolute;
  height: 160px;
  width: auto;
  max-width: none;
  opacity: .9;
  pointer-events: none;
}
.gate-flower-tl{ top: -5%;    left: -7%;  transform: translateX(-6%) rotate(5deg) scaleX(-1); }
.gate-flower-br{ bottom: -7%; right: -5%; transform: translateX(6%)  rotate(80deg); }
@media (min-width: 768px){
  .gate-flower{ height: 200px; }
  .gate-flower-tl{ top: -7%;     left: -20px;  transform: translateX(-11%) rotate(5deg) scaleX(-1); }
  .gate-flower-br{ bottom: -10%; right: -10px; transform: translateX(11%)  rotate(80deg); }
}

.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(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.25;
  color: var(--accent);
}
.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);
}
.gate-rule i{ width: 40px; height: 1px; background: linear-gradient(to right, transparent, var(--accent)); }
.gate-rule i:last-child{ background: linear-gradient(to left, transparent, var(--accent)); }
.gate-rule span{ font-size: 14px; line-height: 20px; opacity: .7; }
.gate-date,
.gate-note{
  font-family: var(--sans);
  font-size: 18px;
  line-height: 27px;
  color: var(--ink);
}
.gate-date{ margin-bottom: 20px; }
.gate-note{ max-width: 300px; margin: 0 auto 24px; }
@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(--sans);
  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(71,97,62,.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .3s ease, transform .12s ease;
}
@media (min-width: 640px){ .gate-btn{ font-weight: 500; } }
/* "Открыть приглашение" telefonda 32px chetlar bilan ikki qatorga tushadi */
@media (max-width: 639px){ html:lang(ru) .gate-btn{ padding-inline: 20px; } }
.gate-btn:hover{ background: #3a5133; }
.gate-btn:active{ transform: translateY(1px); }
.gate-btn:disabled{ cursor: default; }
.gate-btn:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
.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 : to'q yashil, "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%, #47613e, #294320);
  box-shadow: 0 4px 20px rgba(71,97,62,.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(71,97,62,.5); }
  50%      { transform: scale(1.06); box-shadow: 0 6px 35px rgba(71,97,62,.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 gulcha 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%;
  width: 1em; height: 1em;    /* o'lcham inline font-size orqali */
  opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(53,69,47,.42));
  animation: particle-burst 1.4s cubic-bezier(.25,.46,.45,.94) forwards;
}
.gate-burst svg{ display: block; width: 100%; height: 100%; }
@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)); }
}

/* --------------------------------------------------------------- 6. btn -- */
.btn{
  display: inline-flex;
  align-items: center; justify-content: center; gap: .5rem;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-warm);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  padding: .85rem 1.8rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .12s ease, box-shadow .3s ease;
}
.btn:hover{ background: #3a5133; border-color: #3a5133; box-shadow: 0 10px 26px rgba(53,69,47,.22); }
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity: .5; cursor: default; box-shadow: none; }
.btn svg{ width: 14px; height: 14px; }

.btn-ghost{
  color: var(--accent);
  background: rgba(255,255,255,.5);
  border-color: var(--accent-dim);
}
.btn-ghost:hover{ background: rgba(255,255,255,.8); border-color: var(--accent); color: var(--accent); box-shadow: none; }

/* ------------------------------------------------------------ 7. 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(238,243,232,.78), transparent);
  transition: background .4s ease, backdrop-filter .4s ease;
}
.topbar.stuck{
  background: rgba(244,247,239,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(71,97,62,.1);
}
.mono{
  font-family: var(--display);
  font-size: 1.05rem; letter-spacing: .22em; color: var(--accent); 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(--sans); font-size: .68rem; 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(--accent); }
.lang button[aria-pressed="true"]{ color: var(--accent); border-bottom-color: var(--accent); }

.music{
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  padding: 0;
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease;
}
.music:hover{ border-color: var(--accent); background: rgba(255,255,255,.85); }
.music i{ display: block; width: 1.5px; height: 9px; background: var(--accent); 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; }

/* -------------------------------------------------------------- 8. hero -- */
/* Havoladagi kabi : baland oval shisha, ostidan botanik dasta chiqadi. */
.hero{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(5rem, 16vw, 7rem) var(--pad) clamp(8rem, 26vw, 10.5rem);
}
.hero-arch{
  position: relative;
  width: 62%;
  max-width: 250px;
}
.hero-oval{
  position: relative;
  z-index: 1;
  /* Diqqat markazi : gul foni orqada ko'rinib tursin, lekin ismlar aniq chiqsin. */
  background: rgba(255, 255, 255, .62);
  width: 100%;
  aspect-ratio: 239 / 368;
  border-radius: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Pastki qismini dasta yopadi : ismlar markazdan biroz yuqorida turadi. */
  padding: 1.6rem 1rem 3.4rem;
  text-align: center;
}
.hero-names{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.3rem + 3.6vw, 2.6rem);
  line-height: 1.12;
  color: var(--accent);
  letter-spacing: .01em;
}
.hero-names .amp{
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: .62em;
  color: var(--ink-2);
  padding-block: .12em;
  line-height: 1.3;
}
/* Namunadagi kabi : dasta ovalning pastki qismi USTIDA turadi. */
.hero-spray{
  position: absolute;
  left: 50%; bottom: 0;
  transform: translate(-50%, 44%);
  width: 136%;
  pointer-events: none;
  z-index: 2;
}
.hero-spray img{ width: 100%; height: auto; display: block; }

/* ------------------------------------------------ 9. asosiy shisha panel -- */
/* Havoladagi kabi : hero'dan keyingi hamma bo'lim bitta shisha panel ichida */
.card{
  position: relative;
  margin-inline: clamp(14px, 4vw, 26px);
  margin-bottom: 10px;
  padding-top: clamp(1.6rem, 5vw, 2.4rem);
  /* Katta pastki bo'shliq : pastki gulchambar matnni yopib qo'ymasin
     (namunada ham shunday : pb-[42%]). Gulchambar balandligi panel eniga
     bog'liq, shuning uchun kompyuterda foizda (ustun enining 24%) —
     yakuniy satr va yurakli chiziq gullar ustida qoladi. */
  padding-bottom: max(clamp(5rem, 24vw, 10rem), 24%);
  isolation: isolate;
}

/* --------------------------------------------------- 10. marosim haqida -- */
/* Namunadagi "Ceremony info" : shrift, o'lcham va oraliqlar undan o'lchangan
   (telefon / >=768px). Ota-onalar bloki olib tashlangan. */
.ceremony{
  --cer-serif: var(--baskerville);
  position: relative;          /* pastki-chap gul shu blokka bog'langan */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.ceremony > :not(.decor){ position: relative; z-index: 1; }   /* matn guldan yuqorida */

/* Namunada bu yozuvlar --accent : bizda kichik matn --ink (va kun/oy nomlari
   hale bilan), aks holda fon aylanganda kontrast 3.4:1 gacha tushadi.
   Ismlar, "&" va kun raqami --accent (katta matn, 3:1 kifoya). */
.cer-lead{
  font-family: var(--cer-serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.cer-names{ display: flex; flex-direction: column; align-items: center; width: 80%; }
.cer-name{
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'EB Garamond', var(--serif);
  font-weight: 400;
  font-size: 35px;
  line-height: 48px;
  color: var(--accent);
}
.cer-amp{
  margin: 24px 0 12px;
  font-family: 'Ms Madi', cursive;
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
}
.cer-info{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--cer-serif);
}
/* Joy va vaqt : namunadagidan ~25% kattaroq. To'yxona nomi ismlar
   shriftida, yashil va katta; "to'yxonasi" va "VAQT" esa bir xil kichik,
   keng oraliqli bosh harfli yorliq — nom/qiymat juftligi aniq ko'rinadi. */
.cer-place{ display: flex; flex-direction: column; align-items: center; }
.cer-kind{ font-size: 17px; line-height: 1.5; color: var(--ink); }
.cer-venue,
.cer-label{
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.cer-venue{ margin-top: 2px; }
.cer-venue b{
  display: block;
  margin-bottom: 2px;
  font-family: 'EB Garamond', var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--accent);
}
.cer-label{ margin-top: 22px; }
.cer-hour{ margin-top: 6px; font-size: 28px; line-height: 1.3; color: var(--accent); }
.cer-date{
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink);
}
/* Kichik bosh harflar gul va barglar ustidan o'tadi : yengil oq hale bilan
   kontrast 4.5:1 dan pastga tushmaydi (namunada hale yo'q). */
.cer-side{
  font-size: 14px;
  line-height: 20px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(255,255,255,.75), 0 0 2px rgba(255,255,255,.6);
}
.cer-bar{ font-size: 24px; line-height: 1; color: var(--ink); }
.cer-day{ font-size: 40px; line-height: 1.3; font-variant-numeric: lining-nums; color: var(--accent); }
.cer-year{ margin-top: 16px; font-size: 22px; line-height: 1.5; letter-spacing: .06em; color: var(--ink); }
/* 320–379px da "SATURDAY | 17 | OCTOBER" / "СУББОТА | 17 | ОКТЯБРЬ" sig'ishi uchun */
@media (max-width: 379px){
  .cer-date{ gap: 10px; }
  .cer-side{ font-size: 13px; letter-spacing: .06em; }
}

@media (min-width: 768px){
  .ceremony{ gap: 28px; }
  .cer-lead{ font-size: 17px; }
  .cer-name{ font-size: 58px; line-height: 64px; }
  .cer-amp{ margin: 32px 0 16px; font-size: 40px; }
  .cer-info{ margin-top: 16px; }
  .cer-kind{ font-size: 21px; }
  .cer-venue, .cer-label{ font-size: 15px; }
  .cer-venue b{ font-size: 46px; }
  .cer-label{ margin-top: 28px; }
  .cer-hour{ margin-top: 8px; font-size: 38px; }
  .cer-date{ margin-top: 26px; gap: 24px; }
  .cer-side{ font-size: 18px; line-height: 26px; }
  .cer-bar{ font-size: 32px; }
  .cer-day{ font-size: 54px; }
  .cer-year{ margin-top: 20px; font-size: 28px; }
}

/* Bo'limlar chetidagi gullar : bo'lim ichidagi matn ulardan yuqorida.
   Joylar namunadagi ritmda — navbat bilan o'ng va chap tomonda. Ekrandan
   chiqqan qismini .page kesadi. Parallaks : main.js, initDrift. */
.section > .reveal{ position: relative; z-index: 1; }
/* namunadagi "Reception" : flower3 ko'zguda, o'ngda, bo'lim o'rtasida */
.decor-cal{ right: -10%; top: 48%; width: 46%; z-index: 0; transform: scaleX(-1); }
/* namunadagi "Schedule" : flower4 ko'zguda, chap pastda */
.decor-venue{ left: -14%; bottom: -8%; width: 42%; z-index: 0; transform: scaleX(-1); }
.decor-rsvp{ right: -16%; top: 4%; width: 38%; z-index: 0; }
.decor-wish{ left: -13%; top: 30%; width: 40%; z-index: 0; }
/* Telefonda panel tor : kalendar raqamlari va sarlavhalar gul ortida
   qolib ketmasin — gullar kichikroq va chetroq. */
@media (max-width: 767px){
  .decor-cal{ right: -18%; top: 52%; width: 36%; }
  .decor-rsvp{ right: -14%; top: -3%; width: 30%; }
}

/* Pastki-chap gul (flower3) : namunada panel chetidan ~13% tashqariga chiqadi,
   eni panelning ~48.5% i, pastki cheti yil yozuvidan 35–41px pastda.
   Foizlar bu blokka nisbatan, blok esa paneldan var(--pad) ichkarida. */
.decor-mid{
  left: calc(-13.1% - var(--pad) * 1.26);
  bottom: -35px;
  width: calc(48.5% + var(--pad) * .97);
  z-index: 0;
}
@media (min-width: 768px){ .decor-mid{ bottom: -41px; } }

/* ------------------------------------------------------- 11. countdown -- */
/* Namunadagi "Counting down" : kichik sarlavha, bitta qator sanoq, ingichka
   ramkali kalendar (tizim shrifti), to'y kuni yurak ichida, ostida havola.
   O'lchamlar namunadan (telefon / >=768px). */
.countdown-block{ display: flex; flex-direction: column; align-items: center; text-align: center; }
.sub-title{
  font-family: var(--baskerville);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.cd-line{
  margin-top: 8px;
  font-family: var(--baskerville);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cal{
  width: 100%;
  max-width: 330px;
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 28px;
}
.cal-inner{ border-radius: 8px; overflow: hidden; font-family: var(--system); color: var(--ink); }
/* Kalendar namunadagidek shaffof : gul foni ustidagi mayda raqamlar uchun
   yengil oq hale va --ink (namunada --accent, hafta kunlari .6) — shunda
   kontrast 4.5:1 dan pastga tushmaydi. */
.cal-head, .cal-dow span, .cal-grid span{ text-shadow: 0 0 6px rgba(255,255,255,.8), 0 0 2px rgba(255,255,255,.7); }
.cal-dow span{ text-shadow: 0 0 8px rgba(255,255,255,.95), 0 0 3px rgba(255,255,255,.9); }
.cal-head{
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .025em;
  text-align: center;
  border-bottom: 1px solid rgba(71,97,62,.27);
}
.cal-dow{ display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 2px solid var(--accent); }
.cal-dow span{ padding: 6px 0; font-size: 10px; line-height: 1.5; font-weight: 600; text-align: center; opacity: .88; }
.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 yurak tasviri ichida */
.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: #fff;
  font-size: 11px;
  font-weight: 700;
  text-shadow: none;
}
.cal-add{ margin-top: 16px; }
.cal-add a{
  font-family: 'Times New Roman', Times, serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  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: 18px; }
  .cd-line{ font-size: 18px; line-height: 28px; }
  .cal{ max-width: 400px; margin-top: 40px; padding: 28px; }
  .cal-head{ font-size: 14px; }
  .cal-dow span{ font-size: 11px; }
  .cal-grid span{ height: 34px; font-size: 13px; }
  .cal-grid .pick{ width: 30px; height: 28px; font-size: 12px; }
}

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

/* ---------------------------------------------------------- 12. manzil -- */
/* "Marosim haqida" bilan bir xil shriftlar : yorliq kichik keng bosh harf,
   qiymat EB Garamond (katta, yashil), izoh Baskerville. */
.venue{ padding: clamp(1.4rem, 4vw, 2rem); display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.facts{ display: grid; gap: 0; }
.fact{ display: grid; gap: 4px; padding-block: 20px; text-align: center; }
.fact + .fact{ border-top: 1px solid var(--rule); }
.fact dt{
  font-family: var(--baskerville);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.fact dd{
  margin: 0;
  font-family: 'EB Garamond', var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
.fact dd small{
  display: block;
  margin-top: 6px;
  font-family: var(--baskerville);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
@media (min-width: 768px){
  .fact{ padding-block: 24px; }
  .fact dt{ font-size: 15px; }
  .fact dd{ font-size: 38px; }
  .fact dd small{ font-size: 19px; }
}

/* ------------------------------------- 13. bizning hikoyamiz : karusel -- */
/* O'lchamlar namunadan : sahna 340px (desktop 520px), perspective 1000px,
   karta sahna balandligining 92% i, 2:3 nisbat, 16px burchak, 1.1s o'tish.
   Burilish/siljish qiymatlarini JS har karta uchun inline qo'yadi. */
.story{
  position: relative;
  width: 100%;
  max-width: 432px;
  margin: 1.5rem auto 0;
  padding-inline: .5rem;
  overflow: hidden;           /* 45° burilgan chetki kartalar panelga 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);
  box-shadow:
    0 0 0 .25px rgba(255,255,255,.04),
    0 20px 25px -5px rgba(0,0,0,.10),
    0 8px 10px -6px rgba(0,0,0,.10);
  /* z-index ham o'tadi (butun son, o'rtada almashadi) : aks holda kirib
     kelayotgan karta hali chetda turganida markazdagining ustiga chiqib,
     uning chetini xira qatlam bilan yopib qo'yadi. */
  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;       /* sichqoncha bilan sudralganda rasm "ushlanmasin" */
}
.story-slide:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

/* Strelkalar : namunadagidek 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 rgba(255,255,255,.6);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(53,69,47,.25);
  transition: background .25s ease;
}
.story-nav:hover{ background: rgba(255,255,255,.85); }
.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-size: .875rem;
  color: var(--ink);          /* panel ustida turadi : --ink-2 yetarli emas */
  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(40,50,36,.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[hidden]{ display: none; }
.lightbox img{
  max-width: 100%; max-height: 82dvh;
  border-radius: var(--r-sm);
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
.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,.12);
  color: #fff;
  cursor: pointer;
  transition: background .25s ease;
}
.lb-btn:hover{ background: rgba(255,255,255,.26); }
.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-size: .72rem; letter-spacing: .16em; color: rgba(255,255,255,.8);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------ 14. forma umumiy -- */
.form{ display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.row{ display: grid; gap: 1.1rem; }
@media (min-width: 560px){ .row{ grid-template-columns: 1fr 1fr; } }

.field{ display: grid; gap: .45rem; }
.field label{
  font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
}
.field input, .field select, .field textarea{
  width: 100%;
  font-family: var(--sans); font-size: .95rem; font-weight: 400;
  color: var(--ink);
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(71,97,62,.2);
  border-radius: var(--r-sm);
  padding: .72rem .85rem;
  appearance: none;
  transition: border-color .25s ease, background .25s ease;
}
.field textarea{ resize: vertical; min-height: 5rem; line-height: 1.65; }
.field input::placeholder, .field textarea::placeholder{ color: var(--ink-3); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.88);
}
.field select{
  cursor: pointer;
  padding-right: 2.2rem;
  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='%2347613e' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
}
.field .hint{ font-size: .75rem; color: var(--ink-2); }
/* Robotlar uchun tuzoq maydon : odam ko'rmaydi, robot to'ldiradi. Nomi "hp" —
   "website" kabi nomni Safari avtoto'ldirishi to'ldirib, haqiqiy javobni yo'qotardi. */
.hp{ position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.status{
  font-size: .86rem; color: var(--accent);
  min-height: 1.3rem; opacity: 0;
  transition: opacity .3s ease;
}
.status.on{ opacity: 1; }
.status.bad{ color: #a14b38; }

/* -------------------------------------------------- 15. mehmonlar kitobi -- */
.wishes{ display: grid; gap: .7rem; max-height: 24rem; overflow-y: auto; padding-right: .3rem; margin-top: 1.2rem; }
.wishes::-webkit-scrollbar{ width: 4px; }
.wishes::-webkit-scrollbar-thumb{ background: var(--accent-dim); border-radius: 4px; }
.wish{
  padding: .9rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.6);
}
.wish .who{
  font-family: var(--display); font-size: 1rem; color: var(--accent);
}
.wish .txt{ margin-top: .3rem; font-size: .88rem; color: var(--ink-1); }
.wishes-empty{ font-size: .88rem; color: var(--ink-2); font-style: italic; text-align: center; }

/* --------------------------------------------- 16. sovg'a : tilak qudug'i -- */
/* Namunadagi "Wishing well" : faqat qutining o'zi — atrofida 7 ta kichik
   sovg'a va 4 ta yulduzcha. Quti sekin tebranadi, soyasi "nafas oladi";
   sichqoncha ustida quti sakraydi, kichik sovg'alar tepaga uchadi.
   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(--accent); outline-offset: 4px; border-radius: 16px; }
.gift-sparkle{
  position: absolute;
  z-index: 20;
  line-height: 1;
  color: var(--ink);
  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-family: var(--baskerville);
  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(40,50,36,.7);
  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;
  animation: rise .5s cubic-bezier(.22,.61,.36,1) both;
  /* Qorong'i fon ustida turgani uchun shaffof shisha emas : aks holda
     karta kulrang bo'lib qoladi va matn kontrasti yo'qoladi. */
  background: rgba(247, 250, 244, .97);
}
.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,.6);
  color: var(--accent);
  cursor: pointer;
}
.sheet-close svg{ width: 15px; height: 15px; }
.sheet-note{ text-align: center; font-size: .88rem; color: var(--ink-2); }

/* Ikki bank kartasi : haqiqiy karta ko'rinishida — nomi, chip, raqam,
   egasi va "Nusxalash" tugmasi. Ranglar saytnikidan : Uzcard to'q yashil
   (barglar), Humo chang-pushti (pionlar). Oq matn ikkalasida ham 4.5:1 dan
   yuqori. Raqam telefon eniga qarab kichrayadi : 320px'da ham bir qatorda. */
.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,.18), transparent 60%),
    linear-gradient(135deg, #58764c 0%, #405b37 55%, #2e4228 100%);
  box-shadow: 0 16px 30px -14px rgba(30,45,26,.65), inset 0 1px 0 rgba(255,255,255,.22);
  overflow: hidden;
  overflow: clip;             /* scroll konteyneri emas : fokusda ichi surilib ketmaydi */
  isolation: isolate;
}
.bank-card.humo{
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, #93625e 0%, #774b48 55%, #573532 100%);
  box-shadow: 0 16px 30px -14px rgba(70,36,33,.6), inset 0 1px 0 rgba(255,255,255,.22);
}
/* kartadagi yumshoq doira naqsh */
.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;
}
/* Nusxalash : oq tugma (kartadagi asosiy amal). Bosilgach shaffof bo'lib
   "Nusxalandi" deydi. */
.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: var(--ink);
  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: #573532; }
.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. Belgilar
   ilovalarning o'z ranglarida (qizil "Я", ko'k "G"), tanib olish oson. */
.map-choices{ display: grid; gap: 12px; }
.map-choice{
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px 14px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(71,97,62,.18);
  box-shadow: 0 8px 18px -12px rgba(40,60,35,.5);
  color: var(--ink);
  font: 600 16px/1.2 var(--system);
  text-decoration: none;
  transition: border-color .2s ease, transform .12s ease, box-shadow .2s ease;
}
.map-choice:hover{ border-color: var(--accent); box-shadow: 0 10px 22px -12px rgba(40,60,35,.6); }
.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; box-shadow: inset 0 0 0 1.5px rgba(66,133,244,.35); }
.map-go{ width: 16px; height: 16px; margin-left: auto; color: var(--accent); flex: none; }

/* 320–359px telefonlar : oyna va karta ichki bo'shlig'i kichikroq —
   egasining ismi va "Nusxalash" tugmasi bir qatorga sig'sin. */
@media (max-width: 359px){
  .sheet{ padding: 8px; }
  .sheet-card{ padding: 24px 16px; }
  .bank-card{ padding: 16px 12px 14px 16px; }
}
/* ekran o'quvchisi uchun "Nusxalandi" : ko'zga tugmaning o'zi aytadi */
.copied{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ----------------------------------------------------------- 17. yakun -- */
/* "Sizni kutib qolamiz" : namunaning yozma shrifti — Alex Brush (hero'dagi
   "&" ham shu). U kirill harflarini bilmaydi : ruschasi o'xshash Great Vibes
   bilan chiqadi (brauzer harf bo'yicha o'zi almashtiradi).
   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.
   Gul ustida turgani uchun matnga yumshoq oq hale. */
.section-end{ padding-top: clamp(1rem, 4vw, 2rem); }
.envoi{ text-align: center; display: grid; gap: 12px; justify-items: center; }
.envoi-mark{ width: clamp(62px, 13vw, 88px); color: var(--accent-soft); stroke-dasharray: 1; }
.envoi-line{
  font-family: 'Alex Brush', 'Great Vibes', cursive;
  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;          /* ikki qatorga bo'linsa, bir so'z yolg'iz qolmasin */
  color: var(--accent);
  text-shadow: 0 0 14px rgba(255,255,255,.95), 0 0 4px rgba(255,255,255,.9);
}
.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; filter: drop-shadow(0 0 4px rgba(255,255,255,.9)); }

/* Boshlang'ich holat (bo'lim hali ko'rinmagan) va animatsiya (.reveal.in) */
.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); }
}
/* Harakat kamaytirilganda va chop etishda : hammasi darhol ko'rinadi. */
@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; text-shadow: none; }
  .section-end .envoi-rule i, .section-end .envoi-rule svg{ transform: none; }
}

/* Panel pozitsiyalangan, futer esa yo'q : z-index bo'lmasa gulchambar
   futer matnini yopib qo'yadi. Ustki bo'shliq chambar chetidan kattaroq. */
.foot-wrap{
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(5.5rem, 21vw, 8rem) var(--pad) clamp(2rem, 6vw, 3rem);
}
/* Gul foni ustida turadi : yengil shisha bo'lmasa o'qilmaydi. */
.foot{
  display: inline-block;
  padding: .55rem 1.1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--glass-brd);
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink);
}
@media (prefers-reduced-transparency: reduce){
  .foot{ background: rgba(250,252,246,.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ------------------------------------------------------- 18. 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; }
  .petals{ display: none; }
  .bg-photo{ opacity: .34; }
}

@media print{
  .bg, .petals, .topbar, .gate, .lightbox, .sheet, .music, .decor, .hero-spray, .story-nav{ display: none !important; }
  body{ background: #fff; color: #000; }
  .glass, .glass-2{ background: none; border: 1px solid #ccc; box-shadow: none; backdrop-filter: none; }
  .reveal{ opacity: 1; transform: none; }
  .card{ margin: 0; }
}
