:root {
  --gold: #B8893A;
  --gold-deep: #916A28;
  --ink: #16130d;
  --ink-soft: #4a4234;
  --veil-color: transparent;   /* parda yo'q — video asl rangida */
  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', 'Helvetica Neue', sans-serif;
  --halo: none;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: #f3efe7;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- fon sahnasi (video + yengil parda) ---------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #f3efe7 url("../assets/hero-poster.jpg") center/cover no-repeat;
}

.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.stage-veil {
  position: absolute;
  inset: 0;
  background: var(--veil-color);
  transition: background-color 0.12s linear;
}

.stage-grain { display: none; }

/* ---------- yuqori panel ---------- */

.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 34px;
}

.brand {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-decoration: none;
  margin-right: -0.32em;
  text-shadow: var(--halo);
}

.top-right { display: flex; align-items: center; gap: 24px; }

.lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.lang button {
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
  text-shadow: var(--halo);
}

.lang button:hover { opacity: 1; }
.lang button.active { opacity: 1; color: var(--gold); }
.lang span { opacity: 0.4; }

.order-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-shadow: var(--halo);
}

.order-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- scroll "beat"lar ---------- */

.beat {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  color: var(--ink);
}

.beat > * { position: relative; }

.kicker {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 32px;
  text-indent: 0.46em;
  text-shadow: var(--halo);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(72px, 16vw, 220px);
  letter-spacing: 0.2em;
  margin-right: -0.2em;
  line-height: 1;
  color: var(--gold);
  text-shadow: none;
}

.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--ink);
  margin-top: 28px;
  text-shadow: var(--halo);
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: var(--halo);
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(7px); opacity: 0.9; }
}

.line {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 6.6vw, 76px);
  line-height: 1.26;
  letter-spacing: 0.01em;
  color: var(--ink);
  max-width: 16ch;
  text-shadow: var(--halo);
}

.line em { font-style: italic; color: var(--gold-deep); }

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 22px;
  text-shadow: var(--halo);
}

/* ---------- kolleksiya (yengil frosted panel) ---------- */

.collection {
  list-style: none;
  width: min(580px, 92vw);
  padding: 10px 28px;
}

.collection li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 6px;
  border-bottom: 1px solid rgba(120, 90, 40, 0.14);
  cursor: pointer;
  transition: padding 0.3s ease, color 0.3s ease;
}

.collection li:last-child { border-bottom: none; }
.collection li:hover { padding-left: 16px; padding-right: 0; }
.collection li:hover .c-name { color: var(--gold); }

.c-name {
  font-family: var(--font-serif);
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s;
  white-space: nowrap;
  text-shadow: var(--halo);
}

.c-note {
  flex: 1;
  text-align: right;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-shadow: var(--halo);
}

.collection-hint {
  margin-top: 34px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: var(--halo);
}

/* ---------- yakuniy beat ---------- */

.final-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 7vw, 76px);
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 46px;
  text-shadow: none;
}

.contacts {
  display: flex;
  gap: clamp(18px, 5vw, 52px);
  flex-wrap: wrap;
  justify-content: center;
}

.contacts a {
  font-family: var(--font-serif);
  font-size: clamp(21px, 3vw, 30px);
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
  text-shadow: var(--halo);
}

.contacts a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.pay-note {
  margin-top: 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: var(--halo);
}

.signature {
  margin-top: 70px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--ink-soft);
  text-shadow: var(--halo);
}

.signature em { color: var(--gold-deep); }

/* ---------- tanlov paneli (yengil) ---------- */

.tray-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 137, 58, 0.5);
  color: var(--gold-deep);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(80,60,25,0.16);
  transition: transform 0.25s, background 0.25s;
}

.tray-fab:hover { transform: translateY(-2px); background: #fffdf9; }

.tray-count {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  background: var(--gold);
  color: #fff;
  font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
}

.tray {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 31;
  width: min(340px, calc(100vw - 40px));
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: rgba(255, 253, 249, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(184, 137, 58, 0.35);
  padding: 26px 24px 24px;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(80,60,25,0.22);
  animation: trayIn 0.28s cubic-bezier(.22,.61,.36,1);
}

@keyframes trayIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.tray-list { list-style: none; margin-bottom: 16px; }

.tray-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(120,90,40,0.14);
  font-family: var(--font-serif);
  font-size: 19px;
}

.tray-qty { display: flex; align-items: center; gap: 12px; }

.tray-qty button {
  width: 28px; height: 28px;
  background: none;
  border: 1px solid rgba(184,137,58,0.5);
  color: var(--gold-deep);
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}

.tray-qty button:hover { background: rgba(184,137,58,0.12); }

.tray-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tray-total strong {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold-deep);
  letter-spacing: 0;
  text-transform: none;
}

.tray-order {
  width: 100%;
  background: linear-gradient(135deg, #D4A954, var(--gold));
  border: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px;
  cursor: pointer;
  transition: filter 0.2s;
}

.tray-order:hover { filter: brightness(1.06); }

.tray-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 30px; height: 30px;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tray-close:hover { color: var(--gold); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 16px);
  z-index: 40;
  background: rgba(255, 253, 249, 0.97);
  border: 1px solid rgba(184,137,58,0.45);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 13px 24px;
  box-shadow: 0 16px 40px rgba(80,60,25,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- fokus ---------- */

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

/* ---------- reveal ---------- */

.js .beat > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.22,.61,.36,1);
}
.js .beat.in > * { opacity: 1; transform: none; }
.js .beat.in > *:nth-child(2) { transition-delay: 0.1s; }
.js .beat.in > *:nth-child(3) { transition-delay: 0.2s; }
.js .beat.in > *:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .beat > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .scroll-cue { animation: none; }
}

/* ---------- pastdagi solid bo'lim (mahsulotlar + buyurtma) ---------- */
.below {
  position: relative;
  z-index: 1;
  background: #f3efe7;
}

/* ---------- mahsulotlar: chetdan chetgacha 3 ta to'liq video ---------- */
.products { padding: 0; }
.products-head {
  text-align: center;
  padding: clamp(64px, 9vw, 120px) 24px clamp(28px, 4vw, 46px);
}
.products-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.5vw, 52px);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.pcard {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #ece6da;
}
.pcard-video { position: absolute; inset: 0; cursor: pointer; }
.pcard-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* pastdan yumshoq yorug'lik — qora matn o'qilishi uchun (ramka emas) */
.pcard-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(28px, 3vw, 46px) clamp(20px, 2vw, 34px) clamp(28px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(to top, rgba(244,240,232,0.96) 0%, rgba(244,240,232,0.78) 42%, transparent 100%);
  pointer-events: none;
}
.pcard-overlay > * { pointer-events: auto; }
.pcard-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 34px);
  color: var(--ink);
}
.pcard-desc { font-size: 15px; color: var(--ink-soft); margin-bottom: 4px; }
.pcard-price {
  font-family: var(--font-serif);
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 600;
  color: var(--gold-deep);
  margin-top: 2px;
}
.pcard-btns { display: flex; gap: 9px; margin-top: 16px; max-width: 420px; }
.pbtn {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: filter 0.2s, background 0.2s, color 0.2s;
  border: 1.5px solid var(--gold);
}
.pbtn-cart { background: var(--gold); color: #fff; }
.pbtn-cart:hover { filter: brightness(1.07); }
.pbtn-full { background: transparent; color: var(--gold-deep); }
.pbtn-full:hover { background: rgba(184,137,58,0.12); }
.pmore { height: 8px; }

/* ---------- yakuniy buyurtma bo'limi ---------- */
.order-final {
  text-align: center;
  padding: clamp(70px, 10vw, 120px) 24px clamp(80px, 10vw, 130px);
  border-top: 1px solid rgba(184,137,58,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- to'liq video modal ---------- */
.vmodal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20, 15, 8, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.vmodal-inner {
  position: relative;
  width: min(420px, 92vw);
  background: #fffdf9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.vmodal-inner video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 70vh;
  object-fit: cover;
  display: block;
  background: #000;
}
.vmodal-info {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px 18px;
}
.vmodal-info h3 { font-family: var(--font-serif); font-weight: 600; font-size: 22px; color: var(--ink); }
.vmodal-info .pbtn { flex: none; padding: 11px 20px; }
.vmodal-close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 24px; line-height: 1;
  cursor: pointer;
}
.vmodal-close:hover { background: rgba(0,0,0,0.65); }

/* ---------- responsiv ---------- */

@media (max-width: 900px) {
  .pgrid { grid-template-columns: 1fr; }   /* telefon/planshet: bitta to'liq ekran video */
}

@media (max-width: 640px) {
  .top { padding: 18px 20px; }
  .top-right { gap: 16px; }
  .order-link { display: none; }
  .contacts { flex-direction: column; gap: 20px; }
}
