/* =========================================================
   Цветы на Гвардейской — стили
   ========================================================= */

:root {
  --cream: #fff7ef;
  --cream-2: #fdeee3;
  --blush: #ffe3e9;
  --peony: #e8336f;
  --peony-deep: #b3134f;
  --peony-soft: #ff8fb6;
  --coral: #ff7a59;
  --butter: #ffd166;
  --leaf: #143a2d;
  --leaf-2: #1f5643;
  --sage: #a9c3b2;
  --lilac: #e9defb;
  --ink: #2a1420;
  --ink-2: #6a5160;
  --line: rgba(42, 20, 32, 0.12);
  --white: #fff;

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;

  --radius: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 112px;
  --shadow: 0 40px 80px -40px rgba(130, 20, 60, 0.35);
  --shadow-sm: 0 18px 40px -24px rgba(90, 20, 50, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--peony); color: #fff; }
:focus-visible { outline: 2.5px solid var(--peony); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hand { font-family: var(--hand); font-weight: 700; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- типографика ---------- */
.h1, .h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(44px, 6.4vw, 104px); line-height: 0.95; }
.h2 { font-size: clamp(38px, 5vw, 76px); line-height: 1; }
.h1 em, .h2 em { font-style: italic; color: var(--peony); font-weight: 600; }
.line { padding-bottom: 0.06em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--peony);
}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow--light { color: var(--butter); }

.section-head { margin-bottom: clamp(32px, 5vw, 64px); max-width: 860px; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; flex-wrap: wrap; }
.section-head__aside { max-width: 420px; color: var(--ink-2); margin: 18px 0 0; }
.section-head--row .section-head__aside { margin: 0; }

/* ---------- кнопки ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  isolation: isolate;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--peony); color: #fff; box-shadow: 0 14px 30px -12px rgba(232, 51, 111, 0.6); }
.btn--primary:hover { background: var(--peony-deep); box-shadow: 0 20px 40px -14px rgba(232, 51, 111, 0.75); }
.btn--ghost { border-color: rgba(42, 20, 32, 0.25); background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--peony); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--butter); }
.btn--outline-light { border-color: rgba(255, 247, 239, 0.5); color: var(--cream); }
.btn--outline-light:hover { background: var(--cream); color: var(--ink); }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; color: var(--ink-2); font-weight: 600; }
.link:hover { color: var(--peony); }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.6);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  text-decoration: none;
}
.icon-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.badge {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--peony); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 20px; text-align: center;
  transition: transform 0.4s var(--ease);
}
.badge.is-empty, b.is-empty { transform: scale(0); }

.pill {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(232, 51, 111, 0.1); color: var(--peony); font-weight: 700;
}

/* ---------- прелоадер ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; align-content: center; gap: 22px;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--cream) 60%, var(--blush) 100%);
  color: var(--peony);
  clip-path: inset(0 0 0 0);
}
.preloader__flower { width: 150px; height: 150px; }
.preloader__brand { font-family: var(--serif); font-style: italic; font-size: 30px; font-weight: 600; color: var(--ink); opacity: 0; }
.preloader__num {
  position: absolute; right: var(--gutter); bottom: 10px;
  font-family: var(--serif); font-size: clamp(90px, 16vw, 220px); line-height: 1; font-weight: 600;
  color: transparent; -webkit-text-stroke: 1.5px rgba(232, 51, 111, 0.45);
  font-variant-numeric: tabular-nums;
}

/* ---------- курсор ---------- */
.cursor { display: none; }
.has-cursor .cursor {
  display: grid; place-items: center;
  position: fixed; left: 0; top: 0; z-index: 300;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid var(--peony); border-radius: 50%;
  pointer-events: none;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s, opacity 0.3s, border-color 0.3s;
}
.cursor::after { content: attr(data-label); font-size: 12px; font-weight: 700; color: #fff; opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
.cursor.is-hover { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(232, 51, 111, 0.1); }
.cursor.has-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--peony); border-color: var(--peony); }
.cursor.has-label::after { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

/* ---------- шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: transform 0.6s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.topbar { background: linear-gradient(90deg, var(--peony-deep), var(--peony) 45%, var(--coral)); color: #fff; font-size: 13px; font-weight: 600; }
.topbar__inner { max-width: 1320px; margin: 0 auto; padding: 8px var(--gutter); display: flex; justify-content: space-between; gap: 20px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar b { font-weight: 800; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--butter); box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.8); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 209, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); } }

.header__bar {
  max-width: 1320px; margin: 10px auto 0; padding: 10px 14px 10px 18px;
  width: calc(100% - 2 * var(--gutter) + 28px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-radius: 999px;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.header.is-scrolled .header__bar { background: rgba(255, 247, 239, 0.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 10px 40px -20px rgba(90, 20, 50, 0.35); }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 44px; height: 44px; flex: none; transition: transform 0.8s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-20deg) scale(1.05); }
.logo__text { display: grid; line-height: 1; }
.logo__text b { font-family: var(--serif); font-size: 25px; font-weight: 700; letter-spacing: -0.01em; }
.logo__text em { font-family: var(--hand); font-size: 19px; color: var(--peony); font-style: normal; margin-top: -2px; }
.logo--light { color: var(--cream); }

.nav { display: flex; gap: 6px; }
.nav a { position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; transition: background 0.3s, color 0.3s; }
.nav a:hover { background: rgba(232, 51, 111, 0.1); color: var(--peony); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone { font-weight: 800; text-decoration: none; margin-right: 6px; white-space: nowrap; }
.header__phone:hover { color: var(--peony); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform 0.4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 48;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 120px var(--gutter) 40px;
  background: var(--leaf); color: var(--cream);
  clip-path: circle(0% at calc(100% - 48px) 70px);
  transition: clip-path 0.8s var(--ease);
  visibility: hidden;
}
.menu-open .mobile-nav { clip-path: circle(150% at calc(100% - 48px) 70px); visibility: visible; }
.mobile-nav a:not(.btn) { font-family: var(--serif); font-size: clamp(36px, 9vw, 56px); font-weight: 600; text-decoration: none; line-height: 1.15; }
.mobile-nav a:not(.btn):hover { color: var(--peony-soft); font-style: italic; }
.mobile-nav__foot { display: flex; gap: 12px; margin-top: 28px; }

/* ---------- главный экран ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 20px) 0 60px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff3ec 0%, var(--cream) 70%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.75; animation: blob 16s ease-in-out infinite alternate; }
.hero__blob--1 { width: 48vw; height: 48vw; right: -8vw; top: -6vw; background: radial-gradient(circle, #ffb3cb 0%, rgba(255, 179, 203, 0) 70%); }
.hero__blob--2 { width: 34vw; height: 34vw; right: 26vw; bottom: -10vw; background: radial-gradient(circle, #ffe08f 0%, rgba(255, 224, 143, 0) 70%); animation-delay: -5s; }
.hero__blob--3 { width: 30vw; height: 30vw; left: -10vw; top: 20vh; background: radial-gradient(circle, #ffc2ad 0%, rgba(255, 194, 173, 0) 70%); animation-delay: -9s; }
@keyframes blob { to { transform: translate(4vw, -3vw) scale(1.15); } }
.hero__script {
  position: absolute; right: -2vw; bottom: -4vw;
  font-family: var(--hand); font-weight: 700; font-size: clamp(120px, 22vw, 360px); line-height: 1;
  color: rgba(232, 51, 111, 0.07); transform: rotate(-6deg); white-space: nowrap;
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 20px;
  min-height: calc(100svh - var(--header-h) - 80px);
}
.hero__content { position: relative; z-index: 3; padding: 20px 0; }
.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 26px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(52px, 7vw, 116px); line-height: 0.92; letter-spacing: -0.025em; margin: 0 0 28px; text-wrap: balance; }
.hero__title em { font-style: italic; color: var(--peony); }
.hero__lead { font-size: clamp(16px, 1.3vw, 19px); max-width: 520px; color: var(--ink-2); margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.hero__trust li { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.hero__trust b { font-family: var(--serif); font-size: 30px; color: var(--ink); white-space: nowrap; }
.hero__trust .award { font-size: 26px; }

.hero__stage { position: relative; height: min(78svh, 780px); min-height: 460px; }
#hero-canvas { position: absolute; left: -14%; top: -6%; width: 136%; height: 110%; touch-action: pan-y; outline: none; }
.hero__fallback { display: none; }
.no-webgl .hero__fallback { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 40% 40% 32px 32px; }
.no-webgl #hero-canvas, .no-webgl .hero__hint, .no-webgl .hero__replay { display: none; }
.hero__hint { position: absolute; left: -10%; bottom: 3%; z-index: 4; font-family: var(--hand); font-size: 26px; line-height: 1.05; color: var(--ink-2); pointer-events: none; }
.hint { display: block; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.hint svg { width: 60px; height: 40px; display: block; color: var(--peony); transform: rotate(-12deg); margin-bottom: 4px; }
@media (hover: none) { .only-hover { display: none; } }
@media (hover: hover) { .only-touch { display: none; } }
.hint--done {
  position: absolute; left: 0; bottom: 0; width: max-content; max-width: 260px;
  padding: 16px 20px 18px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(16px); pointer-events: none; font-size: 27px; color: var(--ink);
}
.hint--done b { color: var(--peony); }
.hint--done .btn { display: flex; width: max-content; margin-top: 12px; font-family: var(--sans); }
.hero__hint[data-state='bouquet'] .hint--float, .hero__hint[data-state='assembling'] .hint--float { opacity: 0; transform: translateY(-10px); }
.hero__hint[data-state='bouquet'] .hint--done { opacity: 1; transform: none; pointer-events: auto; }
.hero__replay {
  position: absolute; right: 4%; bottom: 6%; z-index: 4;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: #fff; color: var(--peony); font-size: 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.6s var(--ease);
}
.hero__replay:hover { transform: rotate(180deg) scale(1.08); }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(42, 20, 32, 0.3); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--peony); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- бегущая строка ---------- */
.marquee { overflow: hidden; padding: 26px 0; background: var(--peony); color: #fff; position: relative; z-index: 3; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 34px; padding-right: 34px; will-change: transform; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4vw, 58px); font-weight: 600; line-height: 1; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 26px; color: var(--butter); }
.marquee--dark { background: var(--leaf); }
.marquee--dark i { color: var(--peony-soft); }

/* ---------- «листы» ---------- */
.sheet {
  --r: 56px;
  position: relative; z-index: 2;
  margin-top: -56px;
  border-radius: var(--r) var(--r) 0 0;
}

/* ---------- преимущества ---------- */
.perks { background: var(--cream); padding: clamp(80px, 10vw, 140px) 0 clamp(100px, 10vw, 150px); }
.perks__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; perspective: 1200px; }
.perk {
  position: relative; overflow: hidden;
  padding: 34px 30px 36px; border-radius: var(--radius);
  background: #fff; transform-style: preserve-3d;
}
.perk::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.75), transparent 45%);
}
.perk:hover::before { opacity: 1; }
.perk--pink { background: #ffe0e8; }
.perk--butter { background: #fff0c4; }
.perk--green { background: #dcebdf; }
.perk--coral { background: #ffe1d6; }
.perk--lilac { background: var(--lilac); }
.perk--cream { background: #fff; border: 1.5px solid var(--line); }
.perk__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.8); margin-bottom: 26px; box-shadow: var(--shadow-sm); transition: transform 0.6s var(--ease); }
.perk__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--peony); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.perk:hover .perk__icon { transform: rotate(-12deg) scale(1.08); }
.perk h3 { font-family: var(--serif); font-size: 30px; line-height: 1.05; margin: 0 0 10px; font-weight: 600; }
.perk p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- каталог ---------- */
.catalog { background: var(--cream); padding: clamp(60px, 8vw, 110px) 0 clamp(100px, 10vw, 150px); position: relative; }
.filters { display: grid; gap: 14px; margin-bottom: 36px; }
.filters__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.filters__row.chips { justify-content: flex-start; gap: 8px; }
.filters__right { display: flex; align-items: center; gap: 16px; }
.filters__count { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.65);
  font-weight: 700; font-size: 14px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.chip--fav.is-active { background: var(--peony); border-color: var(--peony); }
.chip--fav.is-active svg { fill: currentColor; }
.select select {
  appearance: none; -webkit-appearance: none;
  padding: 10px 40px 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 700; font-size: 14px;
  background: #fff 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='%232a1420' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
}

.catalog__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; position: relative; }
.card { position: relative; }
.card[hidden] { display: none; }
.card__media { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: var(--blush); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__badge { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--butter); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.card__fav {
  position: absolute; right: 12px; top: 12px;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(6px);
  transition: background 0.3s;
}
.card__fav svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; transition: fill 0.3s, stroke 0.3s; }
.card__fav.is-on svg { fill: var(--peony); stroke: var(--peony); }
.card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 12px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  font-weight: 800; font-size: 14px;
  transform: translateY(130%); transition: transform 0.6s var(--ease), background 0.3s, color 0.3s;
}
.card:hover .card__quick, .card__quick:focus-visible { transform: none; }
.card__quick:hover { background: var(--peony); color: #fff; }
.card__body { padding: 16px 4px 0; }
.card__title { font-family: var(--serif); font-size: 27px; line-height: 1.05; font-weight: 600; margin: 0 0 4px; }
.card__note { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.card__sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.size { padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-size: 12.5px; font-weight: 700; transition: all 0.25s; }
.size:hover { border-color: var(--ink); }
.size.is-active { background: var(--blush); border-color: var(--peony); color: var(--peony-deep); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__price { font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.card__price b { font-size: 30px; font-weight: 700; }
.catalog__empty { text-align: center; padding: 60px 0; color: var(--ink-2); }
.catalog__empty .hand { font-size: 40px; color: var(--peony); margin: 0; }
.fly-img { position: fixed; z-index: 400; object-fit: cover; border-radius: 26px; pointer-events: none; }

/* ---------- манифест ---------- */
.statement {
  padding: clamp(110px, 16vw, 220px) 0;
  background: radial-gradient(ellipse at 20% 30%, #ffd3df 0%, transparent 55%), radial-gradient(ellipse at 90% 80%, #ffe6ad 0%, transparent 50%), var(--blush);
}
.statement__text { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 76px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; margin: 0; max-width: 1150px; }
.statement__text em { font-style: italic; color: var(--peony); }
.statement__sign { margin: 34px 0 0; font-size: 34px; color: var(--peony-deep); }

/* ---------- поводы ---------- */
.occasions { background: var(--leaf); color: var(--cream); padding: clamp(80px, 9vw, 120px) 0; overflow: hidden; position: relative; z-index: 3; }
.occasions__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 50px; }
.occasions__head .eyebrow { width: 100%; margin: 0; color: var(--butter); }
.occasions .h2 em { color: var(--peony-soft); }
.occasions__bar { width: min(320px, 40vw); height: 2px; background: rgba(255, 247, 239, 0.2); margin-bottom: 18px; }
.occasions__bar i { display: block; height: 100%; background: var(--butter); transform-origin: left; transform: scaleX(0); }
.occasions__track { display: flex; gap: 28px; padding: 0 var(--gutter); width: max-content; }
.occ { flex: none; width: clamp(280px, 30vw, 420px); text-decoration: none; }
.occ:nth-child(even) { margin-top: 60px; }
/* на десктопе блок закреплён на весь экран — карточки подгоняем под высоту окна, чтобы подписи не обрезались */
@media (min-width: 900px) {
  .occasions { min-height: 100vh; padding: 56px 0; display: flex; flex-direction: column; justify-content: center; }
  .occasions__head { margin-bottom: 28px; }
  .occ { width: clamp(220px, min(30vw, calc((100vh - 430px) * 0.75)), 420px); }
  .occ:nth-child(even) { margin-top: 36px; }
}
.occ__img { aspect-ratio: 3 / 4; border-radius: 30px; overflow: hidden; position: relative; }
.occ__img img { width: 120%; max-width: none; height: 100%; object-fit: cover; margin-left: -10%; transition: scale 1.2s var(--ease); }
.occ:hover .occ__img img { scale: 1.06; }
.occ__cap { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; padding: 20px 6px 0; }
.occ__num { grid-row: span 2; font-family: var(--hand); font-size: 32px; color: var(--butter); line-height: 1; }
.occ__cap h3 { margin: 0; font-family: var(--serif); font-size: 38px; line-height: 1; font-weight: 600; transition: color 0.3s; }
.occ:hover h3 { color: var(--peony-soft); font-style: italic; }
.occ__cap p { margin: 6px 0 0; color: rgba(255, 247, 239, 0.7); font-size: 15px; }

/* ---------- конструктор ---------- */
.builder { background: linear-gradient(180deg, var(--cream-2), #fff4ee); padding: clamp(80px, 10vw, 140px) 0 clamp(110px, 11vw, 160px); }
.builder__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.builder__preview {
  position: sticky; top: 120px;
  padding: 28px 28px 22px; border-radius: 36px;
  background: radial-gradient(circle at 50% 35%, #fff 0%, #fff6f3 60%, #ffeef2 100%);
  box-shadow: var(--shadow);
}
#builder-svg { width: 100%; height: auto; max-height: 560px; display: block; overflow: visible; }
#b-flowers > g { transition: transform 0.7s cubic-bezier(0.3, 1.35, 0.5, 1); }
.b-pop { transform-box: fill-box; transform-origin: center; animation: pop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes pop { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
#b-back, .b-front, .b-ribbon { transition: fill 0.5s, stroke 0.5s; }
.b-empty { font-family: var(--hand); font-size: 30px; fill: var(--ink-2); transition: opacity 0.4s; }
.builder__total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1.5px dashed var(--line); margin-top: 10px; color: var(--ink-2); font-weight: 600; }
.builder__total b { font-family: var(--serif); font-size: 46px; color: var(--ink); line-height: 1; }
.builder__label { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }
.builder__flowers { display: grid; gap: 10px; margin-bottom: 18px; }
.bf {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px;
  padding: 14px 14px 14px 22px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.8); border: 1.5px solid transparent;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.bf:hover { border-color: rgba(232, 51, 111, 0.3); transform: translateX(4px); }
.bf__main { display: grid; line-height: 1.2; }
.bf__title { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.bf__price { font-size: 13px; color: var(--ink-2); }
.bf__colors { display: flex; gap: 6px; }
.swatch {
  width: 24px; height: 24px; border-radius: 50%; padding: 0;
  border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1.5px var(--line);
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}
.swatch:hover { transform: scale(1.15); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--ink); }
.swatch--lg { width: 34px; height: 34px; }
.qty { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: var(--cream); padding: 3px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; font-weight: 700; line-height: 1; transition: background 0.25s, color 0.25s; }
.qty button:hover { background: var(--peony); color: #fff; }
.qty span { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.qty--lg button { width: 38px; height: 38px; }
.builder__hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-radius: 18px; background: #fff3cf; margin-bottom: 22px; font-size: 14px; }
.builder__hint[hidden] { display: none; }
.builder__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-bottom: 28px; }
.builder__wraps { display: flex; flex-wrap: wrap; gap: 8px; }
.wrap-opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; transition: border-color 0.25s; }
.wrap-opt i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.wrap-opt.is-active { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.builder__ribbons { display: flex; gap: 10px; }
.builder__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

/* ---------- доставка ---------- */
.delivery {
  position: relative; z-index: 3;
  background: radial-gradient(ellipse at 85% 0%, #ff6f9d 0%, transparent 50%), radial-gradient(ellipse at 0% 100%, #c2185b 0%, transparent 55%), var(--peony);
  color: #fff; padding: clamp(90px, 10vw, 140px) 0 clamp(110px, 11vw, 160px);
  overflow: hidden;
}
.delivery .h2 em { color: var(--butter); }
.delivery__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; }
.delivery__top .section-head { margin-bottom: 0; }
.countdown { display: flex; align-items: center; gap: 14px; padding: 16px 26px 16px 16px; border-radius: 999px; background: var(--butter); color: var(--ink); font-weight: 600; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.35); }
.countdown p { margin: 0; }
.countdown b { font-size: 20px; font-weight: 800; }
.countdown__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; font-size: 22px; }
.delivery__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 80px; }
.dcard { padding: 28px 26px; border-radius: 26px; background: rgba(255, 255, 255, 0.12); border: 1.5px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(10px); }
.dcard__big { display: block; font-family: var(--serif); font-size: 42px; line-height: 1; font-weight: 700; margin-bottom: 12px; }
.dcard p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.85); }
.process { position: relative; }
.process__line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; color: var(--butter); }
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.step { padding-top: 26px; }
.step:nth-child(even) { padding-top: 70px; }
.step__n {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.6); background: var(--peony); margin-bottom: 20px;
  transition: background 0.5s, color 0.5s, transform 0.6s var(--ease), border-color 0.5s;
}
.step.is-active .step__n { background: var(--butter); color: var(--ink); border-color: var(--butter); transform: scale(1.1) rotate(-8deg); }
.step h3 { font-family: var(--serif); font-size: 32px; margin: 0 0 6px; font-weight: 600; }
.step p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 15px; max-width: 240px; }

/* ---------- подписка ---------- */
.subscribe { background: var(--cream); padding: clamp(80px, 10vw, 140px) 0 clamp(90px, 10vw, 140px); }
.subscribe__layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 32px 26px 28px; border-radius: 30px; background: #fff; border: 1.5px solid var(--line); }
.plan p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan .plan__freq { font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 600; color: var(--ink); }
.plan .plan__price { font-size: 15px; }
.plan__price b { font-family: var(--serif); font-size: 32px; color: var(--ink); }
.plan--hot { background: var(--leaf); border-color: var(--leaf); color: var(--cream); transform: translateY(-14px); }
.plan--hot p, .plan--hot .plan__freq, .plan--hot .plan__price b { color: var(--cream) !important; }
.plan--hot p { color: rgba(255, 247, 239, 0.8) !important; }
.plan__tag { position: absolute; top: -13px; left: 24px; padding: 5px 12px; border-radius: 999px; background: var(--butter); color: var(--ink); font-size: 12px; font-weight: 800; }

.reminder { padding: 34px 32px; border-radius: 30px; background: linear-gradient(160deg, #ffe1ea, #ffd9c9); display: grid; gap: 14px; align-content: start; }
.reminder__title { font-family: var(--serif); font-size: 36px; line-height: 1; margin: 0; font-weight: 600; }
.reminder__lead { margin: 0 0 6px; color: var(--ink-2); font-size: 14.5px; }
.reminder .btn { justify-self: start; }

/* поля форм */
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.9);
  font-size: 15px; transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--peony); box-shadow: 0 0 0 4px rgba(232, 51, 111, 0.12); }
.field[hidden], #delivery-fields[hidden], .card-field[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--peony); }

/* ---------- о нас ---------- */
.about { background: var(--cream); padding: clamp(90px, 11vw, 160px) 0; position: relative; }
.about__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.about__text p:not(.eyebrow) { color: var(--ink-2); font-size: 17px; max-width: 540px; }
.about__text .h2 { margin-bottom: 26px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.stat { padding-top: 16px; border-top: 1.5px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(44px, 5vw, 68px); line-height: 1; color: var(--peony); font-weight: 700; }
.stat span { font-size: 13.5px; color: var(--ink-2); }
.about__gallery { position: relative; height: clamp(460px, 48vw, 680px); }
.ag { position: absolute; margin: 0; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); }
.ag img { width: 100%; height: 125%; object-fit: cover; }
.ag--1 { left: 0; top: 4%; width: 58%; height: 62%; }
.ag--2 { right: 0; top: 0; width: 38%; height: 44%; }
.ag--3 { right: 6%; bottom: 0; width: 52%; height: 46%; }
.about__note { position: absolute; left: 6%; bottom: 6%; font-size: 34px; line-height: 1; color: var(--peony); transform: rotate(-8deg); }

/* ---------- отзывы ---------- */
.reviews { background: var(--blush); padding: clamp(90px, 10vw, 140px) 0 clamp(100px, 10vw, 150px); }
.reviews__layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; }
.rating { padding: 34px 32px; border-radius: 32px; background: #fff; box-shadow: var(--shadow-sm); align-self: start; }
.rating__big { display: flex; align-items: center; gap: 16px; }
.rating__big b { font-family: var(--serif); font-size: 108px; line-height: 0.9; font-weight: 700; }
.rating__big span { color: var(--butter); font-size: 24px; letter-spacing: 2px; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); }
.rating__meta { color: var(--ink-2); font-size: 14px; margin: 8px 0 24px; }
.bars { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 90px 1fr 46px; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.bars b { text-align: right; }
.bar { height: 8px; border-radius: 4px; background: var(--blush); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--w) * 100%); background: linear-gradient(90deg, var(--peony), var(--coral)); border-radius: 4px; transform-origin: left; }
.rating__award { margin: 0; padding: 12px 16px; border-radius: 16px; background: #fff6d8; font-weight: 700; font-size: 14px; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }
.quote { margin: 0; padding: 32px 30px 26px; border-radius: 30px; background: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.quote--pink { background: var(--peony); color: #fff; }
.quote--green { background: var(--leaf); color: var(--cream); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; font-weight: 600; font-style: italic; }
.quote blockquote::before { content: '“'; display: block; font-size: 60px; line-height: 0.6; color: var(--peony-soft); font-style: normal; margin-bottom: 8px; }
.quote--pink blockquote::before { color: var(--butter); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; opacity: 0.8; }
.quote figcaption i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--butter); color: var(--ink); font-style: normal; font-weight: 800; }
.reviews__src { margin: 22px 0 0; font-size: 13px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); padding: clamp(80px, 10vw, 140px) 0; }
.faq__layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq__layout .section-head { position: sticky; top: 130px; }
.faq__list details { border-bottom: 1.5px solid var(--line); }
.faq__list summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; cursor: pointer;
  font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.15;
  transition: color 0.3s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--peony); }
.faq__list summary i { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); transition: transform 0.5s var(--ease), background 0.3s; }
.faq__list summary i::before, .faq__list summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; border-radius: 2px; }
.faq__list summary i::after { transform: rotate(90deg); transition: transform 0.4s var(--ease); }
.faq__list details[open] summary i { background: var(--peony); color: #fff; border-color: var(--peony); transform: rotate(180deg); }
.faq__list details[open] summary i::after { transform: rotate(0); }
.faq__a { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 60px 26px 0; color: var(--ink-2); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- контакты ---------- */
.contacts { background: var(--cream); padding: clamp(80px, 10vw, 140px) 0; }
.contacts__layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 70px); align-items: stretch; }
.clist { list-style: none; margin: 34px 0; padding: 0; display: grid; gap: 0; }
.clist li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-top: 1.5px solid var(--line); font-size: 16px; }
.clist a { font-weight: 800; text-decoration: none; }
.clist a:hover { color: var(--peony); }
.clist small { color: var(--ink-2); font-size: 13.5px; }
.clist__k { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.soc { padding: 12px 20px; border-radius: 999px; font-weight: 800; font-size: 14px; text-decoration: none; color: #fff; transition: transform 0.3s var(--ease), filter 0.3s; }
.soc:hover { transform: translateY(-3px); filter: brightness(1.08); }
.soc--wa { background: #25d366; }
.soc--vb { background: #7360f2; }
.soc--vk { background: #0077ff; }
.soc--ya { background: var(--ink); }
.contacts__map { border-radius: 32px; overflow: hidden; min-height: 460px; background: var(--blush); box-shadow: var(--shadow); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* ---------- подвал ---------- */
.footer { position: relative; z-index: 31; background: #22101a; color: var(--cream); padding: 80px 0 30px; overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 247, 239, 0.15); }
.footer__about { color: rgba(255, 247, 239, 0.65); max-width: 340px; margin: 18px 0 0; font-size: 15px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; align-content: start; }
.footer__nav a, .footer__contact a { text-decoration: none; color: rgba(255, 247, 239, 0.8); transition: color 0.3s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--peony-soft); }
.footer__contact { display: grid; gap: 8px; align-content: start; font-weight: 600; }
.footer__contact span { color: rgba(255, 247, 239, 0.6); }
.footer__big {
  margin: 40px 0 10px; font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(64px, 14.5vw, 240px); line-height: 0.9; letter-spacing: -0.03em;
  color: var(--peony); white-space: nowrap; overflow: hidden;
}
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; font-size: 13px; color: rgba(255, 247, 239, 0.55); }
.footer__credits a { color: inherit; }
.to-top { border: 1.5px solid rgba(255, 247, 239, 0.3); background: none; color: var(--cream); padding: 10px 18px; border-radius: 999px; font-weight: 700; transition: background 0.3s, color 0.3s; }
.to-top:hover { background: var(--cream); color: var(--ink); }

/* ---------- корзина ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(34, 16, 26, 0.45); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.5s var(--ease); }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%);
  display: flex; flex-direction: column;
  background: var(--cream); box-shadow: -30px 0 80px -30px rgba(34, 16, 26, 0.5);
  transform: translateX(105%); transition: transform 0.7s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1.5px solid var(--line); }
.drawer__title { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 600; }
.drawer__title span { display: none; }
.drawer[data-step='cart'] .t-cart, .drawer[data-step='checkout'] .t-checkout, .drawer[data-step='done'] .t-done { display: inline; }
.drawer__pane { display: none; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px 30px; }
.drawer[data-step='cart'] .pane-cart, .drawer[data-step='checkout'] .pane-checkout, .drawer[data-step='done'] .pane-done { display: block; animation: paneIn 0.5s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateX(30px); } }
.drawer__sub { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin: 26px 0 12px; }
.drawer__sum { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 6px; font-weight: 700; }
.drawer__sum b { font-family: var(--serif); font-size: 38px; }
.drawer__note { font-size: 13px; color: var(--ink-2); margin: 0 0 16px; }
.drawer__clear { display: block; margin: 16px auto 0; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: #fff; }
.cart-item img { width: 72px; height: 88px; object-fit: cover; border-radius: 14px; background: var(--blush); }
.cart-item__info { display: grid; gap: 4px; min-width: 0; }
.cart-item__info b { font-family: var(--serif); font-size: 22px; line-height: 1; }
.cart-item__info > span { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.cart-item .qty { justify-self: start; }
.cart-item .qty button { width: 26px; height: 26px; font-size: 15px; }
.cart-item__side { display: grid; justify-items: end; gap: 6px; font-size: 13px; }
.cart-item__side b { font-size: 16px; white-space: nowrap; }
.cart-empty { text-align: center; padding: 40px 10px; color: var(--ink-2); }
.cart-empty .hand { font-size: 40px; color: var(--peony); }
.addons { display: grid; gap: 8px; }
.addon { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1.5px solid transparent; cursor: pointer; font-size: 14.5px; font-weight: 600; transition: border-color 0.25s; }
.addon.is-on { border-color: var(--peony); }
.addon input { width: 18px; height: 18px; accent-color: var(--peony); }
.addon__icon { font-size: 20px; }
.addon__price { color: var(--ink-2); font-size: 13.5px; }
.checkout { display: grid; gap: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 11px; border-radius: 999px; font-weight: 800; cursor: pointer; transition: background 0.3s, color 0.3s; }
.seg input:checked + span { background: var(--ink); color: var(--cream); }
.seg input:focus-visible + span { outline: 2.5px solid var(--peony); }
.card-field { display: grid; gap: 12px; }
.postcard {
  position: relative; padding: 22px 24px 18px; border-radius: 6px;
  background: #fffdf8 repeating-linear-gradient(transparent 0 31px, rgba(232, 51, 111, 0.12) 31px 32px);
  box-shadow: 0 12px 30px -16px rgba(90, 20, 50, 0.45); transform: rotate(-1.2deg);
  font-family: var(--hand); font-size: 24px; line-height: 32px; color: #3d2a6b;
}
.postcard::after { content: '✿'; position: absolute; right: 16px; top: 10px; color: var(--peony); font-family: var(--sans); font-size: 18px; }
.postcard p { margin: 0; }
#card-preview-sign { text-align: right; }
.done { text-align: center; padding: 50px 10px; display: grid; justify-items: center; gap: 10px; }
.done__flower { font-size: 70px; color: var(--peony); animation: spin 12s linear infinite; }
.done .hand { font-size: 40px; margin: 0; color: var(--peony); }
.done p { color: var(--ink-2); margin: 0 0 14px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 150;
  padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--cream);
  font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow);
  transform: translate(-50%, 150%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.4s;
  max-width: calc(100% - 32px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast button { background: none; border: 0; padding: 0 0 0 6px; color: var(--peony-soft); font-weight: 800; text-decoration: underline; }

.mobile-bar { display: none; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1200px) {
  .catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .subscribe__layout { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .hide-md { display: none !important; }
  .perks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder__layout { grid-template-columns: 1fr; }
  .builder__preview { position: relative; top: 0; max-width: 560px; width: 100%; justify-self: center; }
  .delivery__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews__layout { grid-template-columns: 1fr; }
  .faq__layout { grid-template-columns: 1fr; }
  .faq__layout .section-head { position: static; }
}
@media (max-width: 899px) {
  :root { --header-h: 100px; }
  .hero { padding-top: calc(var(--header-h) + 10px); }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { text-align: left; }
  .hero__stage { order: -1; height: 50svh; min-height: 360px; margin: -10px calc(-1 * var(--gutter)) -18px; }
  .hero__content { padding-top: 0; }
  .hero__hint { left: var(--gutter); bottom: 0; font-size: 21px; }
  .hint--done { font-size: 19px; padding: 10px 14px 12px; max-width: 190px; border-radius: 18px; }
  .hint--done .btn { margin-top: 8px; padding: 8px 14px; font-size: 13px; }
  .hero__replay { right: var(--gutter); bottom: 0; }
  #hero-canvas { inset: 0; width: 100%; height: 100%; }
  .hero__scroll { display: none; }
  .occasions__track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
  .occasions__track::-webkit-scrollbar { display: none; }
  .occ { scroll-snap-align: start; width: 74vw; }
  .occ:nth-child(even) { margin-top: 0; }
  .occasions__bar { display: none; }
  .about__layout, .contacts__layout { grid-template-columns: 1fr; }
  .process__line { display: none; }
  .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step, .step:nth-child(even) { padding-top: 0; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  :root { --header-h: 92px; }
  body { padding-bottom: 74px; }
  .hide-sm { display: none !important; }
  .topbar__inner { justify-content: center; }
  .header__bar { margin-top: 6px; padding: 8px 8px 8px 12px; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__text b { font-size: 21px; }
  .logo__text em { font-size: 17px; }
  .icon-btn, .burger { width: 42px; height: 42px; }
  .burger span:first-child { top: 16px; }
  .burger span:last-child { top: 24px; }
  .hero__title { font-size: clamp(46px, 13vw, 64px); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__trust b { font-size: 24px; }
  .hero__hint { font-size: 22px; }
  .perks__grid { grid-template-columns: 1fr; }
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .card__title { font-size: 21px; }
  .card__note { display: none; }
  .card__price b { font-size: 23px; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__add span { display: none; }
  .card__quick { transform: none; padding: 9px; font-size: 12.5px; }
  .card__fav { width: 36px; height: 36px; }
  .filters__row { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .filters__right { justify-content: space-between; }
  .bf { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 12px 12px 16px; }
  .bf__colors { grid-row: 2; }
  .bf .qty { grid-row: span 2; grid-column: 2; grid-row-start: 1; }
  .builder__row { grid-template-columns: 1fr; }
  .builder__total b { font-size: 36px; }
  .delivery__cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dcard { padding: 20px 18px; }
  .dcard__big { font-size: 30px; }
  .countdown { border-radius: 24px; }
  .plans { grid-template-columns: 1fr; }
  .plan--hot { transform: none; }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .about__gallery { height: 420px; }
  .quotes { grid-template-columns: 1fr; }
  .rating__big b { font-size: 84px; }
  .clist li { grid-template-columns: 1fr; gap: 4px; }
  .faq__a p { padding-right: 0; }
  .footer__cols { grid-template-columns: 1fr; }
  .toast { bottom: 90px; }
  .sheet { --r: 32px; margin-top: -32px; }
  .mobile-bar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 45;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px; border-radius: 22px;
    background: rgba(255, 247, 239, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 40px -10px rgba(42, 20, 32, 0.35);
  }
  .mobile-bar a, .mobile-bar button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none; border-radius: 16px; font-size: 11.5px; font-weight: 700; text-decoration: none; }
  .mobile-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-bar b { position: absolute; top: 2px; right: 18%; min-width: 18px; height: 18px; border-radius: 9px; background: var(--peony); color: #fff; font-size: 10.5px; line-height: 18px; transition: transform 0.4s; }
}
@media (max-width: 420px) {
  .catalog__grid { grid-template-columns: 1fr 1fr; }
  .size { padding: 4px 8px; font-size: 11.5px; }
  .delivery__cards { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
