/* =============================================================
   TAKLIFNOMA — uslublar
   ============================================================= */
:root {
  --text: #1a1a1a;
  --text-mid: #444444;
  --text-soft: #888888;
  --dark: #363636;
  --script: 'Great Vibes', 'Bad Script', cursive;
  --sans: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}
/* Great Vibes'da ғ, қ, ҳ harflari yo'q — kirill o'zbekchada yozma shrift to'liq Bad Script */
html[lang="uz-Cyrl"] { --script: 'Bad Script', cursive; }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  background: #ffffff;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100svh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
i { font-style: normal; }
[hidden] { display: none !important; }

/* ---------- Fon ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #f3f3f2; }
.silk { position: absolute; inset: -20%; }
.silk-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); will-change: transform;
  animation: drift var(--dur) ease-in-out infinite alternate;
}
.b1 { --dur: 18s; width: 70vmax; height: 50vmax; left: -10%; top: 0; background: radial-gradient(closest-side, #fff, rgba(255,255,255,0)); }
.b2 { --dur: 22s; width: 60vmax; height: 60vmax; right: -15%; top: 20%; background: radial-gradient(closest-side, #d6d6d5, rgba(214,214,213,0)); animation-delay: -6s; }
.b3 { --dur: 26s; width: 80vmax; height: 40vmax; left: 10%; bottom: -5%; background: radial-gradient(closest-side, #fff, rgba(255,255,255,0)); animation-delay: -12s; }
.b4 { --dur: 20s; width: 45vmax; height: 45vmax; left: 30%; top: 35%; background: radial-gradient(closest-side, #e2e1df, rgba(226,225,223,0)); animation-delay: -3s; }
.silk-sheen {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.8) 48%, transparent 60%);
  background-size: 250% 250%;
  animation: sheen 14s ease-in-out infinite;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(6%, -4%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(-5%, 5%, 0) rotate(-6deg) scale(.96); }
}
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 100%; } }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.bg-video.on { opacity: 1; }
.bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.9) 0%, rgba(255,255,255,.75) 35%, rgba(255,255,255,.75) 65%, rgba(255,255,255,.92) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200,200,200,.1) 0%, transparent 70%);
}

/* ---------- Yuqori panel (musiqa + til) ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2001;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(28px + env(safe-area-inset-top)) 36px 28px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.music-btn {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0, 0, 0, .2);
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #111;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.music-btn svg { width: 33px; height: 33px; }
.music-btn:active { transform: scale(.94); }
@media (hover: hover) { .music-btn:hover { transform: scale(1.08); background: #111; color: #fff; } }

.lang {
  display: flex; padding: 4px; border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lang-btn {
  margin: 0 2px; padding: 6px 12px; border-radius: 40px;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 10px; font-weight: 400;
  color: #888; background: rgba(239, 239, 239, .85);
  border: 1px solid rgba(0, 0, 0, .2);
  transition: all .25s;
}
.lang-btn.active { background: #111; color: #fff; }

/* ---------- Qulf ekrani ---------- */
#unlock {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  background: #f2f2f2 url('../images/unlock-bg.webp') center / cover no-repeat;
  transition: opacity 1s ease, visibility 1s ease;
}
@media (orientation: landscape) { #unlock { background-image: url('../images/unlock-bg-wide.webp'); } }
#unlock::before {
  content: ''; position: absolute;
  width: 500px; height: 500px; margin-top: 170px; margin-right: 30px;
  background: var(--heart) center / contain no-repeat;
  opacity: .7; pointer-events: none;
  animation: floatLight 12s ease-in-out infinite;
}
#unlock::after {
  content: ''; position: absolute; inset: 0; background: #fff;
  opacity: 0; pointer-events: none; transition: opacity .6s ease;
}
#unlock.opening::after { opacity: 1; }
#unlock.gone { opacity: 0; visibility: hidden; }

.unlock-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  text-align: center; padding: 0 20px;
  animation: fadeLuxury 1.2s ease forwards;
}
#unlock.opening .unlock-inner { animation: cinematicOpen 1.4s ease forwards; }
.u-line {
  width: 1px; height: 70px;
  background: linear-gradient(to bottom, transparent, #999, transparent);
  animation: linePulse 3s ease-in-out infinite;
}
.u-heart { width: 26px; height: 26px; animation: heartbeat 2.2s infinite; }
.u-title { font-size: 14px; letter-spacing: 4px; text-transform: uppercase; color: #111; }
.u-names { font-size: 25px; font-weight: 300; letter-spacing: 3px; color: #111; padding: 5px; }
.u-names .amp { color: #bbb; margin: 0 .3em; }
.lock-btn {
  position: relative; overflow: hidden;
  width: 78px; height: 78px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0, 0, 0, .2);
  background: rgba(255, 255, 255, .65);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #111;
  transition: all .4s ease;
}
.lock-btn svg { position: relative; z-index: 1; width: 33px; height: 33px; overflow: visible; }
.lock-btn::before {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,.15), transparent 70%);
  opacity: .4; animation: pulseGlow 2.8s ease-in-out infinite;
}
.lock-btn::after {
  content: ''; position: absolute; top: -100%; left: -40%; width: 60%; height: 300%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.9), transparent);
  transform: rotate(25deg); animation: lightSweep 3.5s infinite;
}
.lock-btn .shackle { transform-box: view-box; transform-origin: 16px 11px; transition: transform .45s cubic-bezier(.5, -.5, .3, 1.5); }
#unlock.opening .shackle { transform: translateY(-3px) rotate(28deg); }
@media (hover: hover) { .lock-btn:hover { transform: scale(1.1); background: #111; color: #fff; } }
.u-hint { font-size: 16px; letter-spacing: 2px; line-height: 1.65; color: #111; margin: -4px 0 -20px; }

/* Sahifa qismlari qulf ochilgandan keyin paydo bo'ladi */
.hero, .section, .closing { opacity: 0; transform: translateY(30px); transition: opacity 1.2s ease, transform 1.2s ease; }
body.loaded .hero, body.loaded .section, body.loaded .closing { opacity: 1; transform: none; }

/* ---------- Bosh qism ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('../images/hero-bg.webp') center / 120% no-repeat;
  opacity: .075;
}
@media (orientation: landscape) { .hero::before { background-size: 40%; } }
.bokeh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0;
  animation: floatOrb var(--dur, 8s) var(--delay, 0s) ease-in-out infinite;
}
.thread {
  position: absolute; top: 0; bottom: 0; width: 1px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(100,100,100,.15) 30%, rgba(100,100,100,.15) 70%, transparent);
}
.t1 { left: 10%; } .t2 { left: 30%; } .t3 { right: 30%; } .t4 { right: 10%; }

.hero-inner { position: relative; z-index: 1; text-align: center; padding: 80px 32px 56px; }
body.loaded .hero-inner { animation: fadeUp .9s .2s both; }
.hero-eyebrow {
  display: block; margin-bottom: 36px; text-align: center;
  font-size: 11px; font-weight: 400; letter-spacing: .45em; text-transform: uppercase; color: #555;
}
.hero-names { font-family: var(--script); font-weight: 400; font-size: clamp(53px, 13vw, 140px); line-height: 1.1; color: var(--text); }
.hero-names em { font-style: normal; color: var(--dark); }
.hero-amp { display: block; font-size: clamp(40px, 7vw, 72px); color: #777; margin: 4px 0; line-height: 1; }
.hero-date-row { margin-top: 44px; display: flex; align-items: center; justify-content: center; gap: 20px; }
.hero-date-row::before, .hero-date-row::after { content: ''; width: 50px; flex-shrink: 1; height: 1px; background: linear-gradient(to right, transparent, #888); }
.hero-date-row::after { background: linear-gradient(to left, transparent, #888); }
.hero-date { font-size: 16px; font-weight: 400; letter-spacing: .22em; color: #555; }

.timer-wrap {
  position: relative; max-width: 580px; margin: 40px auto 20px; padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, .08); border-radius: 60px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
}
.timer-label { font-size: 9px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: #888; margin-bottom: 14px; }
.timer { display: flex; align-items: baseline; justify-content: center; gap: 6px; flex-wrap: wrap; }
.t-block {
  min-width: 68px; padding: 10px 6px 6px; text-align: center;
  background: #ffffffcc;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, .05); border-radius: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .02);
}
.t-num {
  font-size: 32px; font-weight: 500; letter-spacing: 2px; line-height: 1.1; color: #222;
  font-variant-numeric: tabular-nums lining-nums;
  animation: gentlePulse 1.2s infinite ease;
}
.t-unit { margin-top: 6px; font-size: 9px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: #999; }
.t-sep { margin: 0 2px; font-size: 28px; font-weight: 200; color: #bbb; animation: softBlink 1.4s infinite; }
.timer-done { font-family: var(--script); font-size: 38px; color: var(--dark); }

.scroll-hint {
  position: absolute; z-index: 1; bottom: calc(28px + env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 9px; letter-spacing: .25em; text-transform: uppercase; text-decoration: none; color: #111;
  animation: bounce 1.5s ease-in-out infinite;
}

/* ---------- Umumiy ---------- */
.section { max-width: 640px; margin: 0 auto; padding: 0 28px; }
.divider {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; max-width: 500px; margin: 48px auto; padding: 0 20px;
}
.divider::before, .divider::after {
  content: '✧'; position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 10px; color: rgba(170, 170, 170, .4);
}
.divider::before { left: 5px; } .divider::after { right: 5px; }
.dv-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(170,170,170,.3) 15%, rgba(170,170,170,.7) 50%, rgba(170,170,170,.3) 85%, transparent 100%); }
.dv-dot { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: linear-gradient(135deg, #181713, #120e02); animation: dotGlow 1.8s ease-in-out infinite; }
.dv-heart { position: relative; flex-shrink: 0; width: 10px; height: 10px; margin: 5px; background: linear-gradient(135deg, #111, #42413d); transform: rotate(45deg); }
.dv-heart::before, .dv-heart::after { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: inherit; }
.dv-heart::before { top: -5px; left: 0; }
.dv-heart::after { left: -5px; top: 0; }

.tag {
  display: block; margin-bottom: 14px; text-align: center;
  font-size: 11px; font-weight: 400; letter-spacing: .38em; text-transform: uppercase; color: #888;
}
.sec-title {
  font-family: var(--script); font-weight: 400; text-align: center;
  font-size: clamp(35px, 7vw, 60px); line-height: 1.2; color: var(--text); margin-bottom: 20px;
}
.card {
  background: #fff; border: 1px solid rgba(0, 0, 0, .04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .04);
}
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- Hurmatli mehmonlar ---------- */
.welcome-img { width: 100%; margin: 0 auto 28px; border-radius: 12px; }
.quote {
  position: relative; overflow: hidden; margin: 28px 0;
  padding: 48px 48px 48px 70px;
  background: linear-gradient(135deg, #ffffff 0%, #fafaf8 100%);
  border-left: 4px solid var(--dark); border-radius: 24px;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .02), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.quote::before {
  content: '❝'; position: absolute; top: 20px; left: 24px;
  font-size: 88px; line-height: 1;
  background: linear-gradient(135deg, #363636 0%, #888 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .35;
}
.quote p { position: relative; font-family: var(--script); font-size: 32px; line-height: 1.55; letter-spacing: .01em; color: var(--text); }
.quote p::after {
  content: ''; position: absolute; left: 0; bottom: -12px; width: 60px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #363636 0%, #aaa 50%, transparent 100%);
}

/* ---------- Kalendar ---------- */
.calendar-section { max-width: 720px; padding: 0 24px 40px; }
.calendar { border-radius: 36px; padding: 32px 28px 36px; margin: 32px 0 20px; }
.cal-head { position: relative; text-align: center; margin-bottom: 32px; }
.cal-month {
  position: relative; z-index: 1; display: inline-block; padding: 0 18px; background: #fff;
  font-size: 13px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #888;
}
.cal-deco { position: absolute; top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); background: linear-gradient(90deg, transparent, #d4d4d4, #d4d4d4, transparent); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 28px; }
.cal-wd { padding: 12px 0 8px; text-align: center; font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #bbb; }
.cal-day {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 400; color: #2a2a2a; background: #fefefe; border-radius: 50%; border: 1px solid transparent;
}
.cal-day.wedding { background: var(--dark); color: #fff; font-weight: 500; animation: gentleGlow 2s ease-in-out infinite; }
.heart-pulse { position: absolute; bottom: -6px; right: -4px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.heart-pulse svg {
  width: 14px; height: 14px; fill: var(--dark); stroke: #fff; stroke-width: 1.2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .1));
  animation: heartPulse 1.4s ease-in-out infinite;
}
.cal-notes { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(0, 0, 0, .05); }
.cal-note { display: flex; align-items: center; justify-content: center; gap: 10px; }
.cal-note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dark); animation: softPulse 1.8s infinite; }
.cal-note-text { font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: #aaa; }

/* ---------- Tafsilotlar ---------- */
.details-section { max-width: 720px; padding: 0 24px; }
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 40px 0 32px; }
.detail { display: flex; gap: 20px; padding: 28px 24px; border-radius: 28px; box-shadow: 0 8px 24px rgba(0, 0, 0, .03); transition: all .3s ease; }
.detail-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: #fafaf8; display: flex; align-items: center; justify-content: center; color: var(--dark); transition: all .3s ease; }
.detail-icon svg { width: 28px; height: 28px; }
@media (hover: hover) {
  .detail:hover { transform: translateY(-4px); box-shadow: 0 20px 32px -12px rgba(0, 0, 0, .08); }
  .detail:hover .detail-icon { background: var(--dark); color: #fff; }
}
.detail-content { flex: 1; min-width: 0; }
.detail-title { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #888; margin-bottom: 10px; }
.detail-text { font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--text); margin-bottom: 8px; }
.detail-note { margin-top: 6px; font-size: 12px; font-weight: 300; color: #aaa; }
.detail-link {
  display: inline-block; margin-top: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--dark); border-bottom: 1px solid rgba(54, 54, 54, .2);
}
.detail-venue { margin-top: 14px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text); }
.detail-addr { margin-top: 2px; font-size: 13px; font-weight: 300; line-height: 1.5; color: #888; }
.details .js-dress { grid-column: 1 / -1; }
.swatches { display: flex; gap: 10px; margin-top: 14px; }
.swatches span { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .05); }
.footnote {
  margin: 48px 0 28px; padding: 24px 20px; text-align: center;
  background: rgba(250, 250, 248, .5); border: 1px solid rgba(0, 0, 0, .02); border-radius: 32px;
}
.footnote-line { width: 48px; height: 1px; margin: 0 auto 18px; background: linear-gradient(90deg, transparent, #ccc, transparent); }
.footnote p { max-width: 380px; margin: 0 auto; font-size: 13px; font-weight: 300; letter-spacing: .02em; line-height: 1.65; color: #555; }

/* ---------- To'yxona rasmlari ---------- */
.gallery-section { max-width: 900px; padding: 0 24px 48px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin: 40px 0 20px; }
.g-card { overflow: hidden; border-radius: 28px; box-shadow: 0 8px 24px rgba(0, 0, 0, .04); transition: all .4s ease; }
.g-img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #f3f3f2; }
.g-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-overlay {
  position: absolute; inset: 0; padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  background: linear-gradient(to top, rgba(0,0,0,.3) 0%, rgba(0,0,0,.1) 50%, transparent 100%);
  opacity: 0; transition: opacity .4s ease;
}
.g-card:hover .g-overlay, .g-card:focus-within .g-overlay, .g-card.active .g-overlay { opacity: 1; }
.g-card:hover .g-img img { transform: scale(1.03); }
.g-label {
  padding: 6px 14px; border-radius: 40px;
  font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #fff;
  background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.g-icon {
  align-self: flex-end; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .9); color: var(--dark);
}
.g-icon svg { width: 24px; height: 24px; }
.g-cap { padding: 20px 24px 24px; text-align: center; }
.g-cap h4 { font-size: 17px; font-weight: 500; letter-spacing: .02em; color: var(--text); margin-bottom: 6px; }
.g-cap p { font-size: 13px; font-weight: 300; line-height: 1.5; color: #888; }

/* Galereya: faqat rasmlar, bosganda katta ochiladi */
.gallery.photos { grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin-left: auto; margin-right: auto; }
.g-card.photo { display: block; width: 100%; padding: 0; text-align: left; cursor: zoom-in; }
.g-card.photo .g-img { aspect-ratio: 2 / 3; }
.g-card.photo:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }

.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%; min-height: 220px; padding: 20px;
  background: repeating-linear-gradient(45deg, #f5f5f4, #f5f5f4 12px, #efefee 12px, #efefee 24px);
  color: #9a9a9a; font-size: 12px; letter-spacing: .06em; text-align: center;
}
.ph svg { width: 34px; height: 34px; }
.ph code { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: #777; background: rgba(255,255,255,.8); padding: 3px 8px; border-radius: 6px; }

/* ---------- Xarita ---------- */
.location-section { max-width: 860px; padding: 0 24px 56px; }
.map { margin: 36px 0 28px; overflow: hidden; border-radius: 32px; border: 1px solid rgba(0, 0, 0, .04); box-shadow: 0 12px 32px rgba(0, 0, 0, .08); background: #eee; }
/* Tepadagi 76px kesiladi — Google'ning "Joy axboroti yuklanmadi" qutichasi ko'rinmaydi */
.map { position: relative; }
.map iframe { display: block; width: 100%; height: calc(360px + 76px); margin-top: -76px; border: 0; pointer-events: none; }
.map-link { position: absolute; inset: 0; z-index: 1; display: block; -webkit-tap-highlight-color: transparent; }
.map-hint {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 40px;
  font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dark);
  background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  transition: background .3s ease, color .3s ease;
}
.map-hint svg { width: 15px; height: 15px; flex-shrink: 0; }
.map-link:hover .map-hint, .map-link:active .map-hint { background: var(--dark); color: #fff; }
.map-link:focus-visible { outline: 3px solid rgba(54, 54, 54, .4); outline-offset: -3px; border-radius: 32px; }
.location-info { padding: 28px 32px; border-radius: 32px; box-shadow: 0 8px 24px rgba(0, 0, 0, .04); }
.address-card { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.address-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: #fafaf8; display: flex; align-items: center; justify-content: center; color: var(--dark); }
.address-icon svg { width: 22px; height: 22px; }
.address-text { flex: 1; }
.address-text strong { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 500; color: var(--text); }
.address-text span { font-size: 14px; font-weight: 300; line-height: 1.4; color: #888; }
.map-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.map-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 28px; border-radius: 60px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--dark); background: #fff; border: 1px solid rgba(0, 0, 0, .1);
  transition: all .3s ease;
}
.map-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.map-btn.google:active, .map-btn.google:hover { background: #4285F4; border-color: #4285F4; color: #fff; }
.map-btn.yandex:active, .map-btn.yandex:hover { background: #FC3F1D; border-color: #FC3F1D; color: #fff; }
.map-btn.route:active, .map-btn.route:hover { background: var(--dark); border-color: var(--dark); color: #fff; }

/* Har bir tadbir uchun alohida xarita */
.loc + .loc { margin-top: 64px; }
.loc-head { margin-top: 40px; text-align: center; }
.loc-title { font-family: var(--script); font-weight: 400; font-size: 44px; line-height: 1.2; color: var(--text); }
.loc-date { margin-top: 8px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #888; }
.loc .map { margin: 20px 0 24px; }

/* ---------- RSVP ---------- */
.rsvp-section { max-width: 680px; padding: 0 24px 60px; }
.rsvp { padding: 40px 36px; margin: 36px 0 20px; border-radius: 36px; }
.field { display: block; position: relative; margin-bottom: 32px; border: 0; }
.field-label { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #555; }
.field-label b { color: var(--dark); margin-left: 4px; font-weight: 500; }
.input {
  width: 100%; padding: 16px 20px; border-radius: 24px; outline: none;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--text);
  background: #fefefe; border: 1px solid #e8e8e8;
  transition: all .3s ease;
}
textarea.input { resize: vertical; line-height: 1.5; }
.input::placeholder { color: #ccc; font-weight: 300; font-size: 14px; }
.input:focus { border-color: var(--dark); background: #fff; box-shadow: 0 0 0 3px rgba(54, 54, 54, .08); }
.input.error { border-color: #b33a3a; box-shadow: 0 0 0 3px rgba(179, 58, 58, .1); }
.stepper { display: inline-flex; align-items: center; gap: 20px; padding: 6px 12px; border-radius: 60px; background: #fefefe; border: 1px solid #e8e8e8; }
.step { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f5f5f5; color: var(--dark); transition: all .3s ease; }
.step svg { width: 16px; height: 16px; }
.step:active { background: var(--dark); color: #fff; }
.step:disabled { opacity: .4; cursor: default; }
.step-value { min-width: 40px; text-align: center; font-size: 20px; font-weight: 500; color: var(--text); }
.field-hint { display: block; margin: 10px 0 0 8px; font-size: 11px; color: #bbb; }
.choices { display: flex; flex-wrap: wrap; gap: 16px; }
.choice { flex: 1; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 20px; border-radius: 60px;
  font-size: 14px; font-weight: 500; color: #555;
  background: #fefefe; border: 1px solid #e8e8e8;
  transition: all .3s ease;
}
.choice-ic { font-size: 14px; font-weight: 600; }
.choice input:checked + .choice-box { background: var(--dark); border-color: var(--dark); color: #fff; box-shadow: 0 4px 12px rgba(54, 54, 54, .15); }
.choice input:focus-visible + .choice-box { box-shadow: 0 0 0 3px rgba(54, 54, 54, .2); }
.btn-submit {
  width: 100%; margin-top: 16px; padding: 16px 28px; border-radius: 60px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--dark);
  transition: all .3s ease;
}
.btn-submit svg { width: 18px; height: 18px; }
.btn-submit:active { background: var(--text); }
.btn-submit[disabled] { opacity: .6; pointer-events: none; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #aaa; }
.form-note b { color: var(--dark); font-size: 12px; font-weight: 400; }

/* ---------- Kuyov-kelin rasmi ---------- */
.couple { position: relative; overflow: hidden; border-radius: 22px; box-shadow: 0 16px 48px rgba(0, 0, 0, .08); background: #f3f3f2; }
.couple img { width: 100%; }
.couple .ph { aspect-ratio: 4 / 5; }
.couple figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 28px 24px; text-align: center;
  background: linear-gradient(to top, rgba(255, 255, 255, .96), transparent);
  font-family: var(--script); font-size: 36px; color: #444;
}
.closing-img { width: 100%; border-radius: 18px; margin-top: 48px; }

/* ---------- Yakun ---------- */
.closing {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 32px 60px;
  background: linear-gradient(180deg, #f5f5f5 0%, #eee 100%);
}
.closing::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,.8) 0%, transparent 70%); }
.or-row { position: relative; display: flex; justify-content: center; align-items: center; gap: 10px; margin: 20px 0; }
.or-line { width: 36px; height: 1px; background: rgba(0, 0, 0, .2); }
.or-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dark); }
.closing-tag { position: relative; display: block; margin-bottom: 24px; font-size: 11px; font-weight: 400; letter-spacing: .38em; text-transform: uppercase; color: #888; }
.closing-text { position: relative; white-space: pre-line; font-family: var(--script); font-size: clamp(36px, 5vw, 56px); line-height: 1.5; color: #111; }
.closing-sig { position: relative; margin-top: 32px; font-family: var(--script); font-size: 40px; line-height: 1.4; color: var(--dark); }

/* ---------- Mehmonlar ro'yxati ---------- */
.guests-section { max-width: 1100px; padding: 0 24px 60px; }
.guests-box { padding: 32px 28px; margin: 36px 0 20px; border-radius: 32px; }
.table-wrap { overflow-x: auto; border-radius: 20px; -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 14px; }
.table th { padding: 18px 16px; text-align: left; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #888; background: #fafaf8; border-bottom: 1px solid #eee; }
.table td { padding: 16px; font-weight: 400; color: #333; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.table .time-cell { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #999; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 40px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge.yes { background: rgba(37, 211, 102, .12); color: #1a8a4a; }
.badge.yes::before { content: '✓'; font-weight: 700; }
.badge.no { background: rgba(200, 60, 60, .1); color: #b33a3a; }
.badge.no::before { content: '✗'; font-weight: 700; }
.table .empty td { text-align: center; padding: 48px 16px; color: #bbb; font-style: italic; }
.stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #f0f0f0; }
.stat { display: flex; align-items: baseline; gap: 8px; }
.stat-label { font-size: 12px; font-weight: 400; letter-spacing: .02em; color: #aaa; }
.stat-num { font-size: 20px; font-weight: 500; color: var(--dark); }
.stat-num.yes { color: #1a8a4a; } .stat-num.no { color: #b33a3a; }
.guests-note { margin-top: 14px; text-align: center; font-size: 12px; color: #aaa; }

/* ---------- Pastki qism ---------- */
.footer {
  position: relative; overflow: hidden; width: 100%; margin-top: 40px;
  padding: 56px 24px calc(48px + env(safe-area-inset-bottom));
  background: linear-gradient(135deg, #fafaf8 0%, #f5f5f3 100%);
  border-top: 1px solid rgba(0, 0, 0, .04);
}
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(54,54,54,.15), rgba(54,54,54,.15), transparent); }
.footer::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 2px; opacity: .3; background: linear-gradient(90deg, transparent, #363636, #363636, transparent); }
.footer-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; text-align: center; }
.footer-line { width: 48px; height: 1px; margin: 0 auto 32px; background: linear-gradient(90deg, transparent, #bbb, transparent); }
.footer-names {
  margin-bottom: 24px; font-family: var(--script); font-weight: 400; font-size: clamp(32px, 6vw, 48px);
  line-height: 1.3; letter-spacing: .02em; color: var(--text);
  cursor: default; user-select: none; -webkit-user-select: none;
}
.footer-amp { font-size: clamp(28px, 5vw, 40px); color: #888; margin: 0 6px; }
.footer-date { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 28px; }
.date-icon { font-size: 10px; color: #bbb; animation: starPulse 2s ease-in-out infinite; }
.date-text { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #666; }
.footer-thanks { max-width: 480px; margin: 0 auto; font-size: 15px; font-weight: 300; line-height: 1.6; color: #888; }
.footer-heart { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, .05); font-size: 20px; color: #888; }

/* ---------- Xabar ---------- */
.toast {
  position: fixed; z-index: 3000; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px);
  padding: 14px 28px; border-radius: 60px;
  background: var(--dark); color: #fff; font-size: 14px; font-weight: 400;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  transform: translateX(-50%) translateY(100px); opacity: 0; pointer-events: none;
  transition: transform .4s ease, opacity .4s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { background: #b33a3a; }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }
.toast.error svg { display: none; }

/* ---------- Rasmni katta ko'rish ---------- */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  padding: calc(72px + env(safe-area-inset-top)) 16px calc(64px + env(safe-area-inset-bottom));
  background: rgba(17, 17, 17, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: lbIn .25s ease;
}
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.lb-btn {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255, 255, 255, .14); transition: background .2s ease;
}
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: calc(16px + env(safe-area-inset-top)); right: 16px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  font-size: 12px; letter-spacing: .2em; color: rgba(255, 255, 255, .75);
}
@media (hover: hover) { .lb-btn:hover { background: rgba(255, 255, 255, .28); } }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Animatsiyalar ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeLuxury { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes cinematicOpen {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  40%  { transform: scale(1.05); filter: blur(2px); }
  100% { opacity: 0; transform: scale(1.2); filter: blur(10px); }
}
@keyframes floatLight {
  0%   { transform: translate(0, 0) scale(1); opacity: .6; }
  15%  { transform: translate(5px, -3px) scale(1.15); opacity: .5; }
  20%  { transform: translate(7px, -5px) scale(1.05); }
  28%  { transform: translate(8px, -6px) scale(1.25); opacity: .75; }
  45%  { transform: translate(10px, -9px) scale(1); opacity: .7; }
  60%  { transform: translate(12px, -10px) scale(1); }
  100% { transform: translate(0, 0) scale(1); opacity: .5; }
}
@keyframes linePulse { 0%, 100% { opacity: .3; } 50% { opacity: .9; } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes heartPulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.28); opacity: 1; } }
@keyframes pulseGlow { 0%, 100% { transform: scale(1); opacity: .25; } 50% { transform: scale(1.15); opacity: .5; } }
@keyframes lightSweep { 0% { top: -120%; } 100% { top: 120%; } }
@keyframes floatOrb {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%, 80% { opacity: var(--op, .35); }
  100% { opacity: 0; transform: translateY(-120px) scale(1.15); }
}
@keyframes gentlePulse {
  0%, 100% { opacity: .7; transform: translateY(0); text-shadow: none; }
  50%      { opacity: 1; transform: translateY(-1px); text-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
}
@keyframes softBlink { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes bounce {
  0%, 100% { opacity: .4; transform: translateX(-50%) translateY(0); }
  50%      { opacity: .9; transform: translateX(-50%) translateY(8px); }
}
@keyframes dotGlow { 0%, 100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes gentleGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(54, 54, 54, .2); background: #363636; }
  50%      { box-shadow: 0 0 0 6px rgba(54, 54, 54, .08); background: #2a2a2a; }
}
@keyframes softPulse { 0%, 100% { opacity: .4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes starPulse { 0%, 100% { opacity: .4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------- Telefon o'lchamlari ---------- */
@media (max-width: 767px) {
  .hero-eyebrow > span { display: block; }
}
@media (max-width: 768px) {
  .quote { padding: 36px 28px 36px 56px; border-radius: 20px; }
  .quote::before { font-size: 68px; top: 14px; left: 18px; }
  .quote p { font-size: 33px; line-height: 1.5; }
  .quote p::after { width: 45px; bottom: -10px; }
}
@media (max-width: 680px) {
  .gallery.photos { gap: 12px; max-width: none; }
  .g-card.photo { border-radius: 20px; }
  .loc-title { font-size: 38px; }
  .gallery { grid-template-columns: 1fr; gap: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }
  .g-cap { padding: 18px 20px 20px; }
  .g-cap h4 { font-size: 16px; }
}
@media (max-width: 620px) {
  .details { grid-template-columns: 1fr; gap: 18px; }
  .detail { padding: 22px 20px; }
  .detail-icon { width: 44px; height: 44px; }
  .detail-title { font-size: 12px; }
  .detail-text { font-size: 15px; }
}
@media (max-width: 600px) {
  .location-section { padding: 0 20px 48px; }
  .location-info { padding: 22px 24px; }
  .address-card { gap: 12px; padding-bottom: 20px; margin-bottom: 20px; }
  .address-icon { width: 42px; height: 42px; }
  .address-text strong { font-size: 15px; }
  .address-text span { font-size: 12px; }
  .map-btns { gap: 10px; }
  .map-btn { padding: 10px 20px; font-size: 10px; gap: 8px; }
  .map-btn svg { width: 14px; height: 14px; }
}
@media (max-width: 560px) {
  .calendar { padding: 24px 20px 28px; }
  .cal-grid { gap: 4px; }
  .cal-day { font-size: 13px; }
  .cal-wd { font-size: 9px; padding: 8px 0 4px; }
  .heart-pulse { bottom: -4px; right: -2px; width: 16px; height: 16px; }
  .heart-pulse svg { width: 16px; height: 16px; }
  .rsvp-section { padding: 0 20px 48px; }
  .rsvp { padding: 28px 24px; }
  .input { padding: 14px 18px; font-size: 15px; }
  .choice-box { padding: 12px 16px; font-size: 13px; }
  .stepper { gap: 12px; }
  .step { width: 36px; height: 36px; }
  .step-value { font-size: 18px; }
  .btn-submit { padding: 14px 24px; font-size: 12px; }
  .stats { justify-content: center; gap: 20px; }
  .stat-num { font-size: 18px; }
}
@media (max-width: 550px) {
  .divider { gap: 8px; margin: 32px auto; }
  .dv-dot { width: 4px; height: 4px; }
  .divider::before, .divider::after { font-size: 8px; }
  .timer { gap: 4px; }
  .t-block { min-width: 54px; padding: 6px 4px 4px; }
  .t-num { font-size: 24px; }
  .t-unit { font-size: 7px; }
  .t-sep { font-size: 22px; margin: 0 1px; }
  .timer-wrap { padding: 14px 12px; margin-top: 28px; border-radius: 48px; }
}
@media (max-width: 480px) {
  .thread.t2, .thread.t3 { display: none; }
  .quote { padding: 28px 20px 28px 48px; }
  .quote::before { font-size: 54px; top: 10px; left: 14px; }
  .quote p { font-size: 28px; }
  .details-section { padding: 0 20px; }
  .detail { gap: 14px; }
  .gallery-section { padding: 0 20px 40px; }
  .g-cap { padding: 16px 16px 18px; }
  .g-icon { width: 38px; height: 38px; }
  .g-label { font-size: 9px; padding: 4px 12px; }
  .map-btns { flex-direction: column; align-items: stretch; }
  .map-btn { justify-content: center; padding: 12px 20px; }
  .map iframe { height: calc(280px + 76px); }
  .choices { flex-direction: column; }
  .rsvp { padding: 24px 20px; }
  .closing { padding: 56px 24px 48px; }
}
@media (max-width: 450px) {
  .cal-grid { gap: 2px; }
  .cal-day { font-size: 12px; }
  .calendar { padding: 20px 16px 24px; }
  .cal-note-text { font-size: 9px; }
}
@media (max-width: 400px) {
  .footer-names { font-size: 28px; }
  .footer-amp { font-size: 24px; }
  .date-text { font-size: 10px; letter-spacing: .12em; }
  .footer-thanks { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fade-in, .hero, .section, .closing { opacity: 1; transform: none; }
}
