/* =========================================================
   VALMOND — Premium butter
   Ivory + gold foil aesthetic
   ========================================================= */

:root {
  --ivory: #F8F3E4;
  --ivory-2: #F1E9D4;
  --ivory-3: #E7DBBF;
  --cream: #FCF9F0;
  --ink: #2A2317;
  --ink-2: #5A4E3A;
  --logo: #503F38;
  --muted: #8A7C63;
  --gold: #B08D4F;
  --gold-dark: #8E6B33;
  --gold-light: #E7CD8C;
  --gold-foil: linear-gradient(115deg, #8E6B33 0%, #E7CD8C 28%, #B08D4F 50%, #F1DDA4 72%, #8E6B33 100%);
  --dark: #503F38;
  --dark-2: #5E4B43;
  --line: rgba(176, 141, 79, .35);
  --error: #A5472F;
  --surface: #FFFDF7;
  --on-dark: #FBF7EE;
  --header-bg: rgba(248, 243, 228, .86);
  --hero-glow: rgba(231, 219, 191, .8);
  --noise-opacity: .35;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1200px;
}

/* Qorong'u rejim: sariyog' korobkasi va tilla aksentlar o'zgarmaydi,
   fon esa chuqur qahva-qora tusga o'tadi */
:root[data-theme="dark"] {
  --ivory: #16130D;
  --ivory-2: #1D1911;
  --ivory-3: #3A3226;
  --cream: #1F1A12;
  --ink: #F1E8D4;
  --logo: #F1E8D4;
  --ink-2: #C9BC9F;
  --muted: #9A8B6E;
  --gold-dark: #D2AE6A;
  --dark: #0D0B07;
  --line: rgba(210, 174, 106, .26);
  --error: #E08A6E;
  --surface: #1F1A12;
  --header-bg: rgba(22, 19, 13, .85);
  --hero-glow: rgba(70, 55, 30, .55);
  --noise-opacity: .6;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ivory: #16130D;
    --ivory-2: #1D1911;
    --ivory-3: #3A3226;
    --cream: #1F1A12;
    --ink: #F1E8D4;
    --logo: #F1E8D4;
    --ink-2: #C9BC9F;
    --muted: #9A8B6E;
    --gold-dark: #D2AE6A;
    --dark: #0D0B07;
    --line: rgba(210, 174, 106, .26);
    --error: #E08A6E;
    --surface: #1F1A12;
    --header-bg: rgba(22, 19, 13, .85);
    --hero-glow: rgba(70, 55, 30, .55);
    --noise-opacity: .6;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Tema almashganda ranglar silliq o'tadi (faqat almashtirish paytida) */
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease) !important;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
em { font-style: italic; }

::selection { background: var(--gold-light); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow--light { color: var(--gold-light); }

.section { padding: 140px 0; position: relative; }

.section__head { text-align: center; margin-bottom: 80px; }
.section__head .eyebrow { justify-content: center; }
.section__head--left { text-align: left; }

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--ink);
}
.section__title em,
.hero__title em {
  font-style: italic;
  background: var(--gold-foil);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil 8s ease-in-out infinite;
  padding-right: .06em;
}
.section__title--light { color: var(--on-dark); }

@keyframes foil {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--gold);
  font-size: 12px;
  margin: 48px 0;
}
.divider span { width: 80px; height: 1px; background: var(--line); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s, color .4s, border-color .4s;
  overflow: hidden;
  white-space: nowrap;
}
.btn--gold {
  color: #FFFDF6;
  background: var(--gold-foil);
  background-size: 220% 100%;
  background-position: 0% 50%;
  box-shadow: 0 10px 30px -12px rgba(142, 107, 51, .6);
}
.btn--gold:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(142, 107, 51, .75);
}
.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 26px 0;
  transition: padding .4s var(--ease), background .4s, box-shadow .4s, backdrop-filter .4s;
}
.header.is-scrolled {
  padding: 14px 0;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.header .logo { margin-right: auto; flex: 0 0 auto; }
.logo__img {
  display: block;
  width: 168px; height: auto;
  aspect-ratio: 295 / 35;
  fill: var(--logo);
  transition: fill .3s;
}
.logo--light .logo__img { fill: var(--on-dark); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .3s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover { color: var(--gold-dark); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 13px 22px; }

/* ---------- Til almashtirgich ---------- */
.lang { position: relative; z-index: 60; flex: 0 0 auto; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: transparent;
  color: var(--gold-dark);
  font: 500 11px/1 var(--sans);
  letter-spacing: .16em;
  transition: border-color .3s, background .3s, color .3s;
}
.lang__btn:hover, .lang__btn[aria-expanded="true"] { border-color: var(--gold); background: var(--dark); color: var(--gold-light); }
.lang__btn:focus-visible, .lang__menu button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lang__btn svg { width: 9px; height: 6px; transition: transform .3s var(--ease); }
.lang__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 168px;
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -16px rgba(42, 35, 23, .35);
}
.lang__menu[hidden] { display: none; }
.lang__menu button {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 11px 12px;
  border: 0; background: none;
  color: var(--ink-2);
  font: 400 13px/1 var(--sans);
  text-align: left;
  transition: background .25s, color .25s;
}
.lang__menu button b { width: 22px; font-size: 10px; font-weight: 500; letter-spacing: .14em; color: var(--gold-dark); }
.lang__menu button:hover { background: var(--ivory-2); color: var(--ink); }
.lang__menu button[aria-checked="true"] { color: var(--ink); }
.lang__menu button[aria-checked="true"]::after { content: "✦"; margin-left: auto; font-size: 10px; color: var(--gold); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative;
  z-index: 60;
  flex: 0 0 40px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-dark);
  transition: border-color .3s, background .3s, color .3s;
}
.theme-toggle:hover { border-color: var(--gold); background: var(--dark); color: var(--gold-light); }
.theme-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.theme-toggle svg {
  position: absolute;
  width: 18px; height: 18px;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.5); }

.burger {
  display: none;
  flex: 0 0 44px;
  width: 44px; height: 44px;
  background: none; border: 0;
  position: relative;
  z-index: 60;
}
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: var(--ink);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 78% 45%, rgba(231, 205, 140, .35), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, var(--hero-glow), transparent 70%),
    linear-gradient(180deg, var(--cream), var(--ivory));
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 8vw, 112px);
  line-height: .96;
  letter-spacing: -.02em;
  margin-bottom: 30px;
}
.hero__lead {
  max-width: 480px;
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero__facts {
  list-style: none; margin: 0; padding: 28px 0 0;
  display: flex; gap: 48px;
  border-top: 1px solid var(--line);
  max-width: 480px;
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--gold-dark);
  line-height: 1.1;
}
.hero__facts span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.hero__visual { position: relative; display: grid; place-items: center; }
.hero__halo {
  position: absolute;
  width: 90%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  animation: spin 60s linear infinite;
}
.hero__halo::before, .hero__halo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(176, 141, 79, .25);
  inset: 6%;
}
.hero__halo::after { inset: -6%; border-style: solid; border-color: rgba(176, 141, 79, .12); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__box {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 1.25 / 1;
}
.hero__box-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(107, 83, 39, .22));
}

.hero__badge {
  position: absolute;
  right: 4%; top: 6%;
  width: 104px; height: 104px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.1;
  box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--line);
  animation: float 7s ease-in-out infinite reverse;
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 30px;
  width: 22px; height: 36px;
  margin-left: -11px;
  border: 1px solid var(--gold);
  border-radius: 12px;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 7px;
  width: 2px; height: 7px;
  margin-left: -1px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll 2s var(--ease) infinite;
}
@keyframes scroll {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--dark);
  color: var(--gold-light);
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
}
.marquee__track {
  display: flex; align-items: center; gap: 40px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  white-space: nowrap;
}
.marquee i { font-style: normal; font-size: 12px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Philosophy ---------- */
.philosophy { text-align: center; }
.philosophy__inner { max-width: 960px; }
.philosophy .eyebrow { justify-content: center; }
.philosophy__quote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.2;
  font-weight: 400;
  color: var(--ink);
}
.philosophy__quote em { color: var(--gold-dark); }
.philosophy__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  text-align: left;
  color: var(--ink-2);
}

/* ---------- Taste ---------- */
.taste { background: var(--cream); }
.taste__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.card {
  padding: 44px 32px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .5s var(--ease);
}
.card:hover { background: var(--ivory); }
.card__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 32px;
}
.card h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin-bottom: 14px;
}
.card p { color: var(--ink-2); font-size: 14px; margin: 0; }

.notes {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}
.notes__title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  font-style: italic;
}
.notes__bars { display: grid; gap: 22px; }
.note { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 24px; }
.note span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.note__bar { height: 2px; background: var(--ivory-3); position: relative; overflow: hidden; }
.note__bar i {
  position: absolute; inset: 0;
  background: var(--gold-foil);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.8s var(--ease) .2s;
}
.notes.is-visible .note__bar i { transform: scaleX(var(--v)); }

/* ---------- Collection ---------- */
.collection__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.collection__visual {
  position: relative;
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 48px 28px 40px;
  background: linear-gradient(160deg, var(--cream), var(--ivory-2));
  border: 1px solid var(--line);
}
.collection__visual::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.collection__visual img { display: block; height: auto; }
.collection__open {
  width: 100%;
  filter: drop-shadow(0 18px 18px rgba(107, 83, 39, .25));
  transition: transform 1s var(--ease);
}
.collection__visual img, .hero__box-img { cursor: zoom-in; }
.zoom-lens {
  position: absolute; left: 0; top: 0;
  width: 240px; height: 170px;
  border-radius: 4px;
  border: 2px solid var(--gold);
  box-shadow: 0 14px 40px rgba(60, 44, 18, .38), inset 0 0 0 4px rgba(255, 255, 255, .35);
  background-color: var(--cream);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0; transform: scale(.85);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 3;
}
.zoom-lens--round { width: 190px; height: 190px; border-radius: 50%; }
.zoom-lens.is-on { opacity: 1; transform: scale(1); }
@media (hover: none) { .zoom-lens { display: none; } }
.collection__caption {
  margin: 10px 0 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gold-dark);
}
.collection__back {
  width: 74%;
  filter: drop-shadow(0 10px 12px rgba(107, 83, 39, .2));
  opacity: .95;
}
.collection__text > p { color: var(--ink-2); margin: 28px 0 36px; max-width: 480px; }

.specs { list-style: none; margin: 0 0 44px; padding: 0; border-top: 1px solid var(--line); }
.specs li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.specs span { color: var(--muted); letter-spacing: .06em; }
.specs b { font-weight: 500; text-align: right; }

/* ---------- Gastronomy ---------- */
.gastronomy { background: var(--ivory-2); }
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.moment h3 { font-family: var(--serif); font-size: 26px; margin: 26px 0 10px; }
.moment p { font-size: 14px; color: var(--ink-2); margin: 0; }
.moment__art {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: grid; place-items: center;
  transition: transform .8s var(--ease);
}
.moment:hover .moment__art { transform: translateY(-6px); }
.moment__art span {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  color: rgba(255, 250, 238, .9);
  z-index: 1;
}
.moment__art::after {
  content: "";
  position: absolute; inset: 12px;
  border: 1px solid rgba(255, 245, 220, .45);
}
.moment__art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.moment:hover .moment__art img { transform: scale(1.05); }
.moment__art::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,14,6,0) 55%, rgba(20,14,6,.45));
}
.moment__art span { font-size: 34px; text-shadow: 0 2px 14px rgba(0,0,0,.5); align-self: start; justify-self: start; margin: 24px 0 0 26px; }

/* ---------- Audience ---------- */
.audience { background: var(--dark); color: #D9CDB2; overflow: hidden; }
.audience::before {
  content: "V";
  position: absolute;
  right: -2%; top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 620px;
  line-height: 1;
  color: rgba(231, 205, 140, .045);
  pointer-events: none;
}
.audience__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.audience__text p { margin-top: 28px; max-width: 460px; }
.audience__list { list-style: none; margin: 0; padding: 0; }
.audience__list li {
  display: flex; gap: 20px; align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid rgba(231, 205, 140, .18);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.35;
  color: var(--on-dark);
}
.audience__list li:first-child { border-top: 1px solid rgba(231, 205, 140, .18); }
.audience__list span { color: var(--gold); font-size: 13px; }

/* ---------- Order ---------- */
.order { background: linear-gradient(180deg, var(--ivory), var(--cream)); }
.order__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: start;
}
.order__intro { position: sticky; top: 120px; }
.order__intro > p { color: var(--ink-2); margin: 28px 0 32px; max-width: 420px; }
.perks { list-style: none; margin: 0; padding: 0; }
.perks li {
  position: relative;
  padding: 12px 0 12px 32px;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.perks li::before {
  content: "✦";
  position: absolute; left: 0; top: 12px;
  color: var(--gold);
  font-size: 12px;
}

.form {
  background: var(--surface);
  padding: 52px 48px 44px;
  border: 1px solid var(--line);
  position: relative;
  box-shadow: 0 40px 80px -50px rgba(107, 83, 39, .45);
}
.form::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(176, 141, 79, .18);
  pointer-events: none;
}

.form__type {
  border: 0; margin: 0 0 34px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.form__type legend {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px; padding: 0;
}
.form__type label { position: relative; cursor: pointer; }
.form__type label + label { border-left: 1px solid var(--line); }
.form__type input { position: absolute; opacity: 0; pointer-events: none; }
.form__type span {
  display: block;
  text-align: center;
  padding: 14px 8px;
  font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
  transition: background .35s, color .35s;
}
.form__type input:checked + span { background: var(--dark); color: var(--gold-light); }
.form__type input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: -2px; }

.field { position: relative; margin-bottom: 28px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 24px 0 10px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ivory-3);
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B08D4F' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.field label {
  position: absolute;
  left: 0; top: 24px;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease), color .3s;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--gold); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select + label {
  transform: translateY(-20px) scale(.75);
  color: var(--gold-dark);
  letter-spacing: .08em;
}

.field__error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--error);
}
.field.is-invalid input { border-bottom-color: var(--error); }
.field.is-invalid .field__error { display: block; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field__label {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.qty {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--ivory-3);
}
.field .qty input {
  text-align: center;
  padding: 8px 0;
  border: 0;
  font-family: var(--serif);
  font-size: 24px;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__btn {
  flex: 0 0 38px; height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-dark);
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  transition: background .3s, color .3s;
}
.qty__btn:hover { background: var(--dark); color: var(--gold-light); }
.qty__hint { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.qty__hint b { color: var(--ink); font-weight: 500; }
.form__total {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 16px 0; margin-top: 4px;
  border-top: 1px solid var(--line);
}
.form__total-label { display: block; font-size: 11px; letter-spacing: .08em; color: var(--gold-dark); text-transform: uppercase; }
.form__total-unit { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.form__total-sum { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.field--select { align-self: start; }
.field--gift { animation: fadeIn .5s var(--ease); }
.field--select label.field__label {
  position: static; transform: none; pointer-events: auto;
  font-size: 11px; letter-spacing: .08em; color: var(--gold-dark);
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } }
.field--select select {
  height: 46px; padding: 0 22px 0 0;
  font-family: var(--serif); font-size: 22px;
}



.btn__spinner {
  display: none;
  width: 14px; height: 14px;
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__note { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
  align-items: start;
}
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.3;
  transition: color .3s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  flex: 0 0 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  color: var(--gold-dark);
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--dark); color: var(--gold-light); }
.accordion summary:hover { color: var(--gold-dark); }
.accordion details p { margin: -6px 0 28px; max-width: 620px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #A99C80; padding: 90px 0 30px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(231, 205, 140, .15);
}
.footer__brand p { margin-top: 20px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-light); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col h4 {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px; font-weight: 500;
}
.footer__col a { transition: color .3s; }
.footer__col a:hover { color: var(--gold-light); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 26px;
  font-size: 12px;
  letter-spacing: .04em;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 26, 18, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .4s var(--ease);
}
.modal__card {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: var(--cream);
  padding: 56px 40px 44px;
  text-align: center;
  border: 1px solid var(--line);
  animation: pop .6s var(--ease);
}
.modal__card::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(176, 141, 79, .25);
  pointer-events: none;
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal__seal {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-foil);
  color: #FFFDF6;
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  box-shadow: 0 0 0 6px var(--cream), 0 0 0 7px var(--line);
}
.modal h3 { font-family: var(--serif); font-size: 34px; margin-bottom: 12px; }
.modal p { color: var(--ink-2); margin-bottom: 30px; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Menyu: til tugmasi qo'shilgani va tarjima matnlari uzunroq bo'lgani uchun
   burger rejimiga planshet kengligidan oldinroq o'tamiz */
@media (max-width: 1240px) {
  .nav { gap: 22px; }
}

@media (max-width: 1120px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--ivory);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: 13px; }
  .header.menu-open { background: transparent; box-shadow: none; backdrop-filter: none; }
}

@media (max-width: 1080px) {
  .taste__grid, .moments { grid-template-columns: repeat(2, 1fr); }
  .collection__inner, .order__inner, .audience__inner, .faq__inner { gap: 60px; }
}

@media (max-width: 900px) {
  .section { padding: 100px 0; }
  .hero { padding-top: 120px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; max-width: 560px; width: 100%; margin: 0 auto; padding-bottom: 28px; }
  .hero__scroll { display: none; }

  .philosophy__cols,
  .collection__inner,
  .audience__inner,
  .order__inner,
  .faq__inner { grid-template-columns: 1fr; }
  .order__intro { position: static; }
  .notes { grid-template-columns: 1fr; gap: 30px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  /* Logo, tema tugmasi va menyu tugmasi tor ekranga sig'ishi uchun */
  .header__inner { gap: 8px; }
  .logo { gap: 10px; min-width: 0; }
  .logo__img { width: 136px; }
  .lang__btn { height: 40px; padding: 0 11px; gap: 5px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 50px; }
  .hero__facts { gap: 26px; }
  .hero__facts strong { font-size: 24px; }
  .hero__badge { width: 80px; height: 80px; font-size: 14px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .taste__grid, .moments { grid-template-columns: 1fr; }
  .moment__art { aspect-ratio: 16 / 9; }
  .note { grid-template-columns: 1fr; gap: 8px; }
  .form { padding: 36px 22px 30px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__type span { letter-spacing: .1em; font-size: 10px; }
  .audience__list li, .accordion summary { font-size: 20px; }
  .footer__inner { grid-template-columns: 1fr; }
  .audience::before { font-size: 360px; }
}

/* Eng tor telefonlar (~320px): logo, til, tema va menyu tugmalari bir qatorga sig'sin */
@media (max-width: 380px) {
  .lang__btn { padding: 0 10px; }
  .lang__btn svg { display: none; }
  .logo__img { width: 124px; }
}

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

/* ---------- Foto ranglarini landing palitrasiga (ivory / gold / qahva) moslash ---------- */
.moment__art--warm img { filter: sepia(.6) saturate(.95) hue-rotate(-12deg) brightness(1.02); }
.order__pack {
  display: block; width: 100%; max-width: 420px; height: auto;
  margin: 0 0 32px;
  filter: drop-shadow(0 18px 18px rgba(107, 83, 39, .25));
}
