/* Цоморлиг — dusk tulip field palette: wine-black ground, crimson, peach light, slate sky, cream petals. */
:root {
  --bg: #150b0e;
  --wine: #2a0f15;
  --crimson: #b3122a;
  --hot: #d61f3a;
  --peach: #e8a47e;
  --slate: #3d4553;
  --cream: #f4ece0;
  --ink: #f6efe6;
  --muted: rgba(246, 239, 230, 0.7);
  --line: rgba(246, 239, 230, 0.16);
  --dark: #1d1114;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(18px, 4vw, 56px);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); overflow-x: hidden; }
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0.07; mix-blend-mode: overlay;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
/* The tilted marquee is wider than the screen: clip it here. overflow: hidden would break the pinned stages. */
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }

.display { font-family: var(--serif); font-weight: 500; line-height: 1; letter-spacing: -0.01em; font-size: clamp(2.5rem, 6vw, 5.6rem); text-wrap: balance; }
.display em { font-style: italic; color: var(--peach); }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--peach); margin-bottom: 18px; }
.section { padding: clamp(80px, 12vw, 160px) var(--pad); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border-radius: 999px; background: var(--hot); color: #fff; font: 600 1rem/1 var(--sans); text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(214, 31, 58, 0.8); transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-3px); background: #e8324c; box-shadow: 0 18px 40px -12px rgba(214, 31, 58, 0.95); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.92rem; }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 1.08rem; }
.link { display: inline-flex; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link::after { content: '→'; transition: transform 0.25s; }
.link:hover::after { transform: translateX(4px); }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad); transition: background 0.3s, padding 0.3s; }
.nav.is-scrolled { background: rgba(21, 11, 14, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.6rem/1 var(--serif); }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.95rem; opacity: 0.85; }
.nav-links a:not(.btn):hover { opacity: 1; color: var(--peach); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }

/* ---------- hero field ---------- */
.field-stage { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 40px; padding: 120px var(--pad) 80px; background: #2b2f38; }
.field .seq, .field-photo, .field-photo img, .field .seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.field-photo img { object-fit: cover; object-position: 60% 50%; }
.seq-canvas { opacity: 0; transition: opacity 0.8s; }
.seq.has-frame .seq-canvas { opacity: 1; }
.seq.has-frame .field-photo, .seq.has-frame .build-fallback { opacity: 0; transition: opacity 0.8s; }
.field-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(21, 11, 14, 0.88) 0%, rgba(21, 11, 14, 0.2) 45%, rgba(21, 11, 14, 0) 70%), linear-gradient(to right, rgba(21, 11, 14, 0.55), rgba(21, 11, 14, 0) 60%); }
.chapter { position: relative; z-index: 2; max-width: 680px; }
.chapter h2.display { font-size: clamp(2.2rem, 5vw, 4.4rem); margin-bottom: 18px; }
.chapter p:not(.eyebrow):not(.chapter-num) { color: var(--muted); font-size: 1.08rem; max-width: 520px; }
.chapter--hero h1 { margin-bottom: 22px; }
.chapter--hero .lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); margin-bottom: 30px; }
.chapter-num { font: italic 500 1.4rem/1 var(--serif); color: var(--peach); margin-bottom: 12px; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.split .w > span { display: inline-block; }
.scroll-hint { display: none; }

.has-motion .field { height: 460vh; }
.has-motion .field-stage { position: sticky; top: 0; height: 100svh; min-height: 0; display: block; padding: 0; }
.has-motion .chapter { position: absolute; }
.has-motion .chapter--hero { left: var(--pad); bottom: clamp(60px, 12vh, 120px); }
.has-motion .chapter--one { right: var(--pad); top: 50%; transform: translateY(-50%); max-width: 520px; text-align: right; visibility: hidden; }
.has-motion .chapter--one p:not(.chapter-num) { margin-left: auto; }
.has-motion .chapter--two { left: var(--pad); bottom: clamp(60px, 12vh, 120px); max-width: 560px; visibility: hidden; }
.has-motion .scroll-hint { display: flex; position: absolute; z-index: 2; right: var(--pad); bottom: 36px; align-items: center; gap: 14px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { width: 1px; height: 48px; background: linear-gradient(var(--peach), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--crimson); color: var(--cream); padding: 22px 0; transform: rotate(-1.5deg) scale(1.03); margin-block: -14px; position: relative; z-index: 3; }
.marquee-track { display: flex; align-items: center; width: max-content; gap: 34px; font: italic 500 clamp(1.8rem, 4.4vw, 3.4rem)/1 var(--serif); white-space: nowrap; padding-right: 34px; }
.marquee-track b { font-style: normal; font-size: 0.6em; color: var(--peach); }

/* ---------- bouquet build ---------- */
.build { background: radial-gradient(120% 90% at 70% 40%, #3a1119 0%, var(--wine) 38%, var(--bg) 100%); }
.build-stage { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 32px; padding: 120px var(--pad) 80px; }
.build-copy h2.display { font-size: clamp(2.2rem, 4.4vw, 4rem); margin-bottom: 18px; }
.build-intro { color: var(--muted); max-width: 480px; margin-bottom: 28px; }
.build-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.step-num { font: italic 500 1.25rem/1.5 var(--serif); color: var(--peach); }
.build-steps h3 { font: 600 1.15rem/1.5 var(--sans); }
.build-steps p { color: var(--muted); max-width: 440px; }
.build-visual { position: relative; min-height: 420px; }
.build-visual .seq { position: relative; display: block; width: 100%; height: 100%; min-height: inherit; }
.build-fallback { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.8s; }
.build-visual .seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.build-progress { display: none; }

.has-motion .build { height: 520vh; }
.has-motion .build-stage { position: sticky; top: 0; height: 100svh; align-items: center; padding-block: 90px 40px; }
.has-motion .build-steps li { opacity: 0.4; transition: opacity 0.4s; }
.has-motion .build-steps li p { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.5s, opacity 0.4s; }
.has-motion .build-steps li.is-done { opacity: 0.62; }
.has-motion .build-steps li.is-active { opacity: 1; }
.has-motion .build-steps li.is-active h3 { color: #fff; }
.has-motion .build-steps li.is-active p { max-height: 120px; opacity: 1; margin-top: 4px; }
.has-motion .build-visual { height: 100%; }
.has-motion .build-progress { display: block; position: absolute; left: calc(var(--pad) / 2 - 1px); top: 22%; bottom: 22%; width: 2px; background: var(--line); }
.build-progress b { display: block; height: 100%; background: var(--hot); transform-origin: top; transform: scaleY(0); }

/* ---------- bouquets ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p:not(.eyebrow) { color: var(--muted); margin-top: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px); perspective: 1200px; }
.bouquet-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--wine); transform-style: preserve-3d; }
.bouquet-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bouquet:hover .bouquet-media img { transform: scale(1.06); }
.tag { position: absolute; top: 14px; left: 14px; background: var(--hot); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.bouquet-info { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 16px; align-items: baseline; }
.bouquet-info h3 { font: 600 1.7rem/1.15 var(--serif); }
.bouquet-info p { grid-column: 1; color: var(--muted); font-size: 0.95rem; }
.bouquet-info .price { grid-column: 2; grid-row: 1; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.bouquet-info .link { grid-column: 1 / -1; justify-self: start; margin-top: 10px; color: var(--peach); }

/* ---------- looping clips ---------- */
.band { overflow: hidden; background: var(--wine); }
.band-video { width: 100%; height: clamp(300px, 46vh, 560px); object-fit: cover; display: block; }
.media-loop { border-radius: var(--radius); overflow: hidden; background: var(--wine); }
/* Extra height so the parallax shift never exposes an edge. */
.media-loop video { width: 100%; height: 112%; margin-top: -6%; object-fit: cover; display: block; }

/* ---------- care ---------- */
.care { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: center; background: linear-gradient(180deg, var(--bg), #1b1116 60%, var(--bg)); }
.parallax { border-radius: var(--radius); overflow: hidden; }
.parallax img { width: 100%; height: 116%; object-fit: cover; margin-top: -8%; }
.care-media { aspect-ratio: 4 / 5; }
.care-intro { color: var(--muted); margin-top: 18px; margin-bottom: 28px; }
.care-list { counter-reset: care; }
.care-list li { counter-increment: care; display: grid; grid-template-columns: 56px 1fr; gap: 2px 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.care-list li::before { content: '0' counter(care); grid-row: span 2; font: italic 500 1.5rem/1.2 var(--serif); color: var(--peach); }
.care-list b { font-weight: 600; font-size: 1.08rem; }
.care-list span { color: var(--muted); }

/* ---------- order (light) ---------- */
.order { background: var(--cream); color: var(--dark); }
.order .eyebrow { color: var(--crimson); }
.order .display em { color: var(--crimson); }
.order-head { margin-bottom: clamp(36px, 5vw, 64px); }
.order-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-bottom: clamp(48px, 7vw, 90px); }
.order-steps li { border-top: 2px solid var(--dark); padding-top: 18px; }
.order-steps span { display: block; font: italic 500 3.4rem/1 var(--serif); color: var(--crimson); margin-bottom: 10px; }
.order-steps h3 { font: 700 1.15rem/1.4 var(--sans); margin-bottom: 6px; }
.order-steps p { color: #5a4a4c; }
.order-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.order-media { aspect-ratio: 4 / 5; }
.order-terms dl { display: grid; gap: 0; margin-bottom: 32px; }
.order-terms dl div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(29, 17, 20, 0.14); }
.order-terms dt { color: #6d5b5d; }
.order-terms dd { font-weight: 700; text-align: right; }
.phone { margin-top: 16px; color: #5a4a4c; }
.phone a { font-weight: 700; color: var(--dark); }
.visit { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(29, 17, 20, 0.14); display: grid; gap: 6px; }
.visit h3 { font: 600 1.7rem/1.2 var(--serif); }
.visit p { color: #5a4a4c; }
.visit .link { justify-self: start; margin-top: 8px; color: var(--crimson); }

/* ---------- footer ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 40px var(--pad); border-top: 1px solid var(--line); }
.footer nav { display: flex; gap: 24px; }
.footer nav a { text-decoration: none; color: var(--muted); }
.credit { color: var(--muted); font-size: 0.9rem; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .has-motion .build-steps li.is-active p { max-height: 160px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav-links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px; background: rgba(21, 11, 14, 0.97); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
  .nav-links a:not(.btn) { font: 500 2rem/1 var(--serif); }
  .menu-open { overflow: hidden; }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .field-photo img { object-position: 50% 50%; }
  .field-shade { background: linear-gradient(to top, rgba(21, 11, 14, 0.92) 0%, rgba(21, 11, 14, 0.35) 50%, rgba(21, 11, 14, 0) 72%); }
  .has-motion .chapter--hero, .has-motion .chapter--two { right: var(--pad); bottom: 48px; }
  .has-motion .chapter--one { left: var(--pad); top: auto; bottom: 48px; transform: none; text-align: left; }
  .has-motion .chapter--one p:not(.chapter-num) { margin-left: 0; }
  .has-motion .scroll-hint { display: none; }

  .build-stage { grid-template-columns: 1fr; }
  .build-visual { min-height: 0; aspect-ratio: 4 / 5; }
  .has-motion .build-stage { grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; padding-block: 72px 24px; }
  .has-motion .build-visual { order: -1; aspect-ratio: auto; height: auto; min-height: 0; }
  .has-motion .build-copy .eyebrow, .has-motion .build-intro { display: none; }
  .has-motion .build-copy h2.display { font-size: 1.9rem; margin-bottom: 8px; }
  .has-motion .build-steps li:not(.is-active) { display: none; }
  .has-motion .build-fallback { object-fit: contain; }
  .has-motion .build-progress { display: none; }

  .grid { grid-template-columns: 1fr; }
  .care, .order-main { grid-template-columns: 1fr; }
  .order-steps { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}

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