/* ============================================================
   АЛАЯ — цветочная студия. Роза-проводник + галерея букетов.
   Ванильный CSS, без сборки.
   ============================================================ */
:root {
  --bg:      #fbf7f4;
  --surface: #f2eae4;
  --ink:     #1c1410;
  --muted:   #8c8178;
  --accent:  #a8324a;
  --accent-d:#7e2034;
  --line:    rgba(28, 20, 16, 0.12);
  --font-display: 'Cormorant', Georgia, serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1,h2,h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
::selection { background: var(--accent); color: var(--bg); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted); margin: 0 0 16px; }
.accent { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.14em; cursor: pointer; border: 1px solid transparent;
  transition: opacity .25s, background .25s, color .25s, border-color .25s;
}
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-d); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--block { width: 100%; }

/* progress bar */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 90; pointer-events: none; }
#progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .08s linear; }

/* header */
#nav { position: fixed; top: 0; inset-inline: 0; z-index: 50; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
#nav.scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
#nav .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.08em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-phone { font-size: 14px; font-weight: 500; }
.nav-phone:hover { color: var(--accent); }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); }
#mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); display: none; flex-direction: column; justify-content: center; gap: 28px; padding: 0 32px; }
#mobile-menu.open { display: flex; }
#mobile-menu a { font-family: var(--font-display); font-size: 32px; }
#mobile-menu .m-phone { font-family: var(--font-body); font-size: 18px; color: var(--muted); margin-top: 12px; }

/* ============================================================
   РОЗА — закреплена по центру экрана (fixed). Управляется JS:
   --rr поворот, --ry сдвиг по Y, --rs масштаб.
   z-index:1 — позади букетов; нижние секции её накрывают.
   Замена на 3D/видео в будущем = подмена этого одного элемента.
   ============================================================ */
#rose {
  position: fixed; left: 50%; top: 50%;
  height: clamp(300px, 70vh, 720px); width: auto;
  transform: translate3d(-50%, calc(-50% + var(--ry, 26vh)), 0) rotate(var(--rr, 90deg)) scale(var(--rs, 0.92));
  transform-origin: center center; will-change: transform;
  z-index: 1; pointer-events: none;
  filter: drop-shadow(0 30px 50px rgba(126, 32, 52, 0.18));
}

/* ============================================================
   JOURNEY: hero-интро + галерея (прозрачный фон → роза видна)
   ============================================================ */
#journey { position: relative; z-index: 2; }

.hero-intro {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding: 0 24px 12vh;
}
.hero-intro .offer { opacity: var(--offer-o, 1); transition: opacity .4s ease; }
.hero-intro h1 { font-size: clamp(36px, 7vw, 88px); line-height: 1.04; letter-spacing: -0.02em; max-width: 16ch; }
.hero-intro p { color: var(--muted); margin: 18px 0 0; font-size: clamp(15px, 2vw, 20px); }
.scroll-hint { margin-top: 26px; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); opacity: var(--offer-o, 1); }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 26px; margin: 10px auto 0; background: linear-gradient(var(--muted), transparent); }

/* галерея: 3 колонки, центр пустой (там роза) */
.gallery {
  display: grid; grid-template-columns: 1fr 34vw 1fr;
  grid-auto-rows: 62vh; align-items: center;
  max-width: 1500px; margin: 0 auto; padding: 4vh 24px 8vh;
}
.bouquet {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; max-width: 36vw;
  opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.bouquet.b-left  { grid-column: 1; justify-self: end;   transform: translateX(-60px); }
.bouquet.b-right { grid-column: 3; justify-self: start; transform: translateX(60px); }
.bouquet.in { opacity: 1; transform: none; }
.bouquet img {
  height: clamp(190px, 34vh, 400px); width: auto;
  filter: drop-shadow(0 22px 34px rgba(28,20,16,0.16));
  transition: transform .5s var(--ease);
}
.bouquet:hover img { transform: translateY(-8px) scale(1.03); }
.b-price { font-family: var(--font-display); }
.b-price .b-name { display: block; font-size: 22px; }
.b-price .b-sum { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); font-family: var(--font-body); }
.b-price .b-link { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }

/* ============================================================
   НИЖНИЕ СЕКЦИИ — непрозрачные, z-index выше розы (накрывают её)
   ============================================================ */
.section { position: relative; z-index: 5; background: var(--bg); padding: 110px 0; }
.section--surface { background: var(--surface); }
.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.08; }
.section-head p { color: var(--muted); margin: 18px 0 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step .num { font-family: var(--font-display); font-size: 56px; color: var(--accent); line-height: 1; }
.step h3 { font-size: 20px; margin: 16px 0 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 18px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.info-list li:last-child { border-bottom: 1px solid var(--line); }
.info-list .k { color: var(--muted); }
.info-list .v { text-align: right; font-weight: 500; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pay-badge { font-size: 12px; letter-spacing: 0.06em; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { font-size: 26px; color: var(--muted); transition: transform .3s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 60ch; }

/* форма / контакты */
#order { background: var(--ink); color: var(--bg); }
#order .cols2 { gap: 80px; }
#order h2 { color: #fff; }
#order .lead { color: rgba(251,247,244,0.72); font-size: 18px; margin: 18px 0 32px; max-width: 38ch; }
.contact-line { font-family: var(--font-display); font-size: 28px; }
.contact-line:hover { color: var(--accent); }
.contact-small { color: rgba(251,247,244,0.6); font-size: 14px; margin-top: 8px; }
.channels { display: flex; gap: 12px; margin-top: 22px; }
.channels a { padding: 10px 20px; border: 1px solid rgba(251,247,244,0.35); border-radius: 999px; font-size: 13px; letter-spacing: 0.08em; transition: border-color .2s; }
.channels a:hover { border-color: #fff; }
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(251,247,244,0.6); margin-bottom: 8px; }
.field input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(251,247,244,0.3); color: var(--bg); font-family: inherit; font-size: 18px; padding: 10px 0; outline: none; transition: border-color .2s; }
.field input::placeholder { color: rgba(251,247,244,0.35); }
.field input:focus { border-bottom-color: var(--accent); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(251,247,244,0.7); margin-bottom: 24px; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.form-note { font-size: 14px; color: rgba(251,247,244,0.55); text-align: center; margin-top: 16px; }
.form-success { display: none; text-align: center; padding: 40px 0; }
.form-success.show { display: block; }
.form-success h3 { font-size: 34px; color: #fff; }
.form-success p { color: rgba(251,247,244,0.7); margin-top: 12px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

footer { position: relative; z-index: 5; background: var(--bg); border-top: 1px solid var(--line); }
footer .wrap { padding: 32px 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
footer a:hover { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

#sticky-cta { position: fixed; bottom: 0; inset-inline: 0; z-index: 40; display: none; grid-template-columns: 1fr 1fr; background: var(--bg); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .3s; }
#sticky-cta.show { transform: none; }
#sticky-cta a { padding: 16px; text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
#sticky-cta a.cta { background: var(--accent); color: #fff; }

/* ============================================================
   ДЕТАЛЬНАЯ СТРАНИЦА БУКЕТА (bouquet.html)
   ============================================================ */
.detail { padding: 120px 0 90px; }
.detail .cols2 { gap: 64px; align-items: center; }
.detail-photo { display: flex; align-items: center; justify-content: center; background: radial-gradient(60% 60% at 50% 45%, var(--surface), var(--bg)); border-radius: 24px; padding: 5%; min-height: 60vh; }
.detail-photo img { max-height: 64vh; width: auto; filter: drop-shadow(0 30px 50px rgba(28,20,16,0.18)); }
.detail .back { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.detail .back:hover { color: var(--ink); }
.detail h1 { font-size: clamp(34px, 6vw, 64px); margin: 18px 0 8px; }
.detail .tagline { color: var(--muted); font-size: 18px; }
.detail .price { font-family: var(--font-display); font-size: 40px; margin: 22px 0; }
.detail .story { font-size: 17px; max-width: 46ch; }
.detail .compo { color: var(--muted); margin-top: 14px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.detail-form { margin-top: 40px; max-width: 420px; }
.detail-form .field label { color: var(--muted); }
.detail-form .field input { color: var(--ink); border-bottom-color: var(--line); }
.detail-form .consent { color: var(--muted); }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none; }
  .burger { display: flex; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .cols2 { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 80px 0; }
  #sticky-cta { display: grid; }
  body { padding-bottom: 54px; }
  #rose { height: clamp(220px, 42vh, 380px); opacity: 0.32; }
  /* галерея в одну колонку по центру, роза-фон позади */
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 48vh; }
  .bouquet { grid-column: 1 !important; justify-self: center !important; max-width: 78vw; }
  .bouquet.b-left { transform: translateX(-40px); }
  .bouquet.b-right { transform: translateX(40px); }
  .bouquet.in { transform: none; }
  .bouquet img { height: clamp(150px, 26vh, 260px); }
  .detail-photo { min-height: 40vh; }
}

/* ============================================================
   ДОСТУПНОСТЬ: prefers-reduced-motion
   роза статична вверху, всё видно без анимаций
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  #rose {
    position: absolute; top: 8vh; height: clamp(220px, 40vh, 360px);
    transform: translate3d(-50%, 0, 0) rotate(0deg) scale(1);
  }
  .hero-intro { min-height: 60svh; }
  .hero-intro .offer, .scroll-hint { opacity: 1; }
  .gallery { grid-auto-rows: auto; gap: 6vh 0; }
  .bouquet { opacity: 1; transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
