/* ==========================================================
   Открытка ко Дню матери — стили
   ========================================================== */

:root {
  --ink: #4a2b3b;
  --ink-soft: #7a5566;
  --rose: #e0457b;
  --rose-2: #f2789f;
  --peach: #ff9a76;
  --lilac: #b98af0;
  --gold: #e8b26a;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --script: 'Marck Script', 'Segoe Script', 'Brush Script MT', cursive;
  --shadow: 0 22px 50px -20px rgba(190, 70, 120, .42);
  --card: rgba(255, 255, 255, .68);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; -webkit-tap-highlight-color: transparent; }

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

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.65;
  background: #ffeef2;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

html.is-locked, body.is-locked { overflow: hidden; height: 100%; }

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
.script { font-family: var(--script); font-weight: 400; }

/* ---------- Фон ---------- */
.bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: linear-gradient(165deg, #fff3f5 0%, #ffe4ee 30%, #f6e6ff 62%, #ffeee2 100%);
}
.bg__blob { position: absolute; border-radius: 50%; }
.bg__blob--1 {
  width: 80vmax; height: 80vmax; left: -34vmax; top: -30vmax;
  background: radial-gradient(circle, rgba(255, 150, 185, .55), rgba(255, 150, 185, 0) 62%);
  animation: drift1 24s ease-in-out infinite alternate;
}
.bg__blob--2 {
  width: 75vmax; height: 75vmax; right: -38vmax; top: 18vh;
  background: radial-gradient(circle, rgba(190, 150, 255, .5), rgba(190, 150, 255, 0) 62%);
  animation: drift2 28s ease-in-out infinite alternate;
}
.bg__blob--3 {
  width: 72vmax; height: 72vmax; left: -15vmax; bottom: -38vmax;
  background: radial-gradient(circle, rgba(255, 190, 150, .55), rgba(255, 190, 150, 0) 62%);
  animation: drift3 26s ease-in-out infinite alternate;
}
.sparks { position: absolute; inset: 0; }
.spark {
  position: absolute; border-radius: 50%; background: #fff; opacity: 0;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, .95), 0 0 14px 4px rgba(255, 170, 200, .45);
  animation: twinkle var(--t, 4s) ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}

#fx { position: fixed; inset: 0; z-index: 2; pointer-events: none; }

/* ---------- Вспомогательное ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #f2789f, #ff9a76, #c06be0);
}

.btn {
  position: relative; overflow: hidden; cursor: pointer; border: 0;
  padding: 16px 34px; border-radius: 999px;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, #f2789f, #e0457b 55%, #c2418f);
  box-shadow: 0 16px 30px -10px rgba(224, 69, 123, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: scale(.97); }

.chapter {
  display: inline-block; margin-bottom: .6rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
  color: var(--rose);
}
h2 em, .finale__title em { font-style: italic; color: var(--rose); }

/* ---------- Вступление ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  overflow: hidden; text-align: center;
  background: radial-gradient(120% 90% at 50% 8%, #fff4f7 0%, #ffd9e5 48%, #e8d6ff 100%);
  transition: opacity 1.1s ease, visibility 1.1s, transform 1.3s cubic-bezier(.7, 0, .2, 1);
}
.intro.is-gone { opacity: 0; visibility: hidden; transform: scale(1.18); pointer-events: none; }
.intro__card { position: relative; z-index: 2; max-width: 420px; }
.intro__heart {
  width: clamp(110px, 34vw, 150px); margin: 0 auto 18px;
  filter: drop-shadow(0 16px 22px rgba(224, 69, 123, .45));
  animation: beat 1.4s ease-in-out infinite;
}
.intro__small {
  font-size: .85rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--rose);
}
.intro__title {
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: clamp(1.9rem, 8vw, 2.7rem); line-height: 1.2; margin: 10px 0 30px; color: var(--ink);
}
.intro__floaters span {
  position: absolute; bottom: -12%; left: var(--l); font-size: var(--fs, 22px);
  color: rgba(240, 100, 150, .5); animation: rise var(--du, 10s) linear infinite; animation-delay: var(--dl, 0s);
}
.intro__floaters span:nth-child(1) { --l: 7%;  --fs: 20px; --du: 9s;  --dl: 0s; }
.intro__floaters span:nth-child(2) { --l: 20%; --fs: 30px; --du: 12s; --dl: 2s; }
.intro__floaters span:nth-child(3) { --l: 33%; --fs: 18px; --du: 8s;  --dl: 4s; }
.intro__floaters span:nth-child(4) { --l: 47%; --fs: 26px; --du: 11s; --dl: 1s; }
.intro__floaters span:nth-child(5) { --l: 60%; --fs: 22px; --du: 9.5s; --dl: 3s; }
.intro__floaters span:nth-child(6) { --l: 72%; --fs: 32px; --du: 13s; --dl: 0.5s; }
.intro__floaters span:nth-child(7) { --l: 84%; --fs: 20px; --du: 8.5s; --dl: 5s; }
.intro__floaters span:nth-child(8) { --l: 93%; --fs: 26px; --du: 10.5s; --dl: 2.5s; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(48px, 9vh, 100px) 22px clamp(240px, 42vh, 380px);
}
.hero__inner { position: relative; z-index: 5; max-width: 640px; }
.eyebrow {
  font-size: .8rem; font-weight: 800; letter-spacing: .34em; text-transform: uppercase; color: var(--rose);
  margin-bottom: 1rem;
}
.hero__title { font-weight: 400; }
.hero__line1 {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 8.6vw, 4rem); line-height: 1.12; color: var(--ink);
}
.hero__line2 {
  display: block; margin-top: .02em; padding: 0 .12em .16em;
  font-size: clamp(3.8rem, 20vw, 8.6rem); line-height: 1.02;
  background: linear-gradient(100deg, #e0457b, #f2789f 28%, #ff9a76 52%, #c06be0 78%, #e0457b);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 7s linear infinite;
  opacity: 0; filter: blur(10px); transform: scale(.6) rotate(-5deg);
}
.hero.is-on .hero__line2 {
  animation: popIn 1.3s cubic-bezier(.2, 1.3, .4, 1) 1s forwards, shimmer 7s linear 2.3s infinite;
}
.hero__line1 .w { display: inline-block; white-space: nowrap; }
.hero__line1 .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(6deg); }
.hero.is-on .ch {
  animation: letterUp .8s cubic-bezier(.2, .9, .25, 1.2) forwards;
  animation-delay: calc(var(--i) * 45ms + .25s);
}
.hero__lead {
  max-width: 30rem; margin: 1.4rem auto 0;
  font-size: clamp(1rem, 3.9vw, 1.2rem); color: var(--ink-soft);
}
.hero__fade { opacity: 0; transform: translateY(14px); }
.hero.is-on .hero__fade { animation: fadeUp 1s ease forwards; animation-delay: var(--d, 0s); }

.scrollhint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 1.6rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rose); text-decoration: none;
}
.scrollhint svg { width: 24px; height: 24px; animation: bob 1.6s ease-in-out infinite; }

/* ---------- Сад (анимированные цветы) ---------- */
.garden {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none;
  height: clamp(240px, 40vh, 360px); height: clamp(240px, 40svh, 360px);
}
/* Нижний край первого экрана мягко растворяется в фоне */
#garden {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}
.garden__hill { position: absolute; left: -3%; width: 106%; display: block; }
.garden__hill--back { bottom: 0; height: 52%; z-index: 0; }
.garden__hill--front { bottom: 0; height: 30%; z-index: 20; }

.plant {
  position: absolute; bottom: -10px; transform-origin: 50% 100%;
  width: var(--w); margin-left: calc(var(--w) / -2);
  animation: sway var(--sw, 6s) ease-in-out infinite alternate; animation-delay: var(--sd, 0s);
}
.plant svg { display: block; width: 100%; height: auto; overflow: visible; }

.stem { stroke-dasharray: 260; stroke-dashoffset: 260; }
.leaf { transform-box: fill-box; transform: scale(0); }
.leaf--l { transform-origin: 100% 100%; }
.leaf--r { transform-origin: 0 100%; }
.plant .head { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.petals { transform-box: fill-box; transform-origin: center; animation: spin var(--spin, 60s) linear infinite; }

.garden.is-on .stem { animation: draw 1.9s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: var(--d, 0s); }
.garden.is-on .leaf { animation: leafIn 1s cubic-bezier(.3, 1.4, .5, 1) forwards; animation-delay: calc(var(--d, 0s) + .9s); }
.garden.is-on .plant .head { animation: bloomIn 1.4s cubic-bezier(.25, 1.6, .4, 1) forwards; animation-delay: calc(var(--d, 0s) + 1.4s); }

/* ---------- Воспоминания ---------- */
.memory {
  position: relative; display: grid; gap: 2.4rem; align-items: center; text-align: center;
  max-width: 1040px; margin: 0 auto; padding: clamp(48px, 9vw, 100px) 22px;
}
.memory__photo { position: relative; justify-self: center; width: min(78vw, 360px); }
.memory__text h2, .section-head h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.8rem, 7.2vw, 2.8rem); line-height: 1.15; margin-bottom: 1rem;
}
.memory__text p { color: var(--ink-soft); font-size: 1.06rem; }
.memory__text .note {
  margin-top: 1.1rem; font-size: 1.55rem; line-height: 1.3; color: var(--rose);
}

/* Полароид */
.polaroid {
  --tilt: -3deg;
  position: relative; background: #fff; padding: 14px 14px 0; border-radius: 6px;
  box-shadow: var(--shadow), 0 2px 8px rgba(0, 0, 0, .06);
  transform: rotate(var(--tilt)); animation: floatTilt 7s ease-in-out infinite;
}
.polaroid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.polaroid figcaption {
  padding: 14px 6px 18px; text-align: center; font-size: 1.5rem; line-height: 1.2; color: var(--ink-soft);
}
.tape {
  position: absolute; top: -13px; width: 96px; height: 28px; z-index: 2;
  background: repeating-linear-gradient(45deg, rgba(255, 205, 220, .85) 0 8px, rgba(255, 228, 236, .85) 8px 16px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.tape--l { left: -26px; transform: rotate(-38deg); }
.tape--r { right: -26px; transform: rotate(38deg); }

/* Арка */
.arch {
  --tilt: 0deg;
  position: relative; padding: 10px; border-radius: 999px 999px 30px 30px;
  background: linear-gradient(160deg, #fff, #ffe3ec);
  box-shadow: var(--shadow); animation: floatTilt 8s ease-in-out infinite;
}
.arch::before {
  content: ''; position: absolute; inset: -10px; pointer-events: none;
  border: 1.5px solid rgba(232, 178, 106, .8); border-radius: 999px 999px 40px 40px;
}
.arch img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 22px 22px; }

/* Круг с венком */
.round {
  --tilt: 0deg;
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; padding: 10px; background: #fff;
  box-shadow: var(--shadow); animation: floatTilt 8s ease-in-out infinite;
}
.round img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; position: relative; z-index: 1; }
.wreath { position: absolute; inset: -10%; z-index: 2; pointer-events: none; animation: spin 90s linear infinite; }
.wreath .bloom { position: absolute; width: 17%; height: auto; margin: -8.5% 0 0 -8.5%; }
.wreath .bloom svg { animation: none; filter: none; }
.bloom .petals { animation: none; }

.ribbon {
  position: relative; z-index: 3; display: block; width: fit-content; max-width: 100%;
  margin: 26px auto 0; padding: 10px 22px 12px; text-align: center; font-size: 1.4rem; line-height: 1.25; color: #fff;
  text-wrap: balance;
  background: linear-gradient(135deg, #f2789f, #e0457b); border-radius: 26px;
  box-shadow: 0 12px 24px -10px rgba(224, 69, 123, .7);
}

/* Цветы-украшения */
.bloom {
  position: absolute; z-index: 4; width: clamp(54px, 17vw, 84px); aspect-ratio: 1; pointer-events: none;
  transform: scale(0) rotate(-50deg);
  transition: transform 1.3s cubic-bezier(.3, 1.5, .4, 1) .5s;
}
.reveal.in .bloom { transform: none; }
.bloom svg {
  width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 6px 8px rgba(190, 70, 120, .25));
  animation: bobSoft 5s ease-in-out infinite;
}
.bloom--tl { top: -26px; left: -26px; }
.bloom--tr { top: -26px; right: -26px; }
.bloom--bl { bottom: 36px; left: -28px; }
.bloom--br { bottom: 70px; right: -28px; }

/* ---------- Пожелания ---------- */
.wishes { max-width: 1040px; margin: 0 auto; padding: clamp(40px, 8vw, 90px) 22px; }
.section-head { text-align: center; margin-bottom: 2rem; }
.wishes__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.wish {
  position: relative; z-index: 1; padding: 24px 22px 22px; border-radius: 26px; text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .62));
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 18px 40px -22px rgba(190, 70, 120, .5);
}
.wish__icon {
  display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 10px;
  font-size: 1.9rem; border-radius: 50%;
  background: linear-gradient(145deg, #fff, #ffe3ec); box-shadow: 0 8px 18px -8px rgba(224, 69, 123, .55);
  animation: bobSoft 4.5s ease-in-out infinite;
}
.wish:nth-child(2n) .wish__icon { animation-delay: -1.5s; }
.wish:nth-child(3n) .wish__icon { animation-delay: -3s; }
.wish h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin-bottom: 6px; }
.wish p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Благодарность ---------- */
.thanks { padding: clamp(50px, 9vw, 100px) 22px; }
.letter {
  position: relative; max-width: 580px; margin: 0 auto; padding: 44px 26px 28px; text-align: center;
  background: linear-gradient(180deg, #fffdfc, #fff6f1); border-radius: 28px; box-shadow: var(--shadow);
}
.letter h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.15; margin-bottom: 1.2rem; }
.letter__pin {
  position: absolute; top: -20px; left: 50%; margin-left: -20px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 1.15rem;
  background: linear-gradient(135deg, #ff9ab8, #e0457b); box-shadow: 0 10px 18px -6px rgba(224, 69, 123, .7);
  animation: beat 1.8s ease-in-out infinite;
}
.thanks__list { list-style: none; padding: 0; text-align: left; }
.thanks__list li {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 4px;
  font-size: 1.08rem; color: var(--ink);
  border-bottom: 1px dashed rgba(224, 69, 123, .25);
}
.thanks__list li:last-child { border-bottom: 0; }
.tick { flex: none; color: var(--rose); animation: beat 2.2s ease-in-out infinite; }

/* ---------- Финал ---------- */
.finale { position: relative; overflow: hidden; text-align: center; padding: clamp(60px, 10vw, 100px) 22px 0; min-height: 100vh; min-height: 100svh; }
.finale__inner {
  position: relative; z-index: 6; max-width: 600px; margin: 0 auto;
  padding-bottom: clamp(230px, 40vh, 360px); padding-bottom: clamp(230px, 40svh, 360px);
}
.finale__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 7.5vw, 2.9rem); line-height: 1.15; margin-bottom: 1.2rem; }

.bigheart {
  position: relative; display: block; margin: 8px auto 0; padding: 0; border: 0; background: none; cursor: pointer;
  width: clamp(150px, 46vw, 210px); aspect-ratio: 1;
  filter: drop-shadow(0 18px 24px rgba(224, 69, 123, .5));
  animation: beat 1.5s ease-in-out infinite;
}
.bigheart svg { position: relative; z-index: 1; width: 100%; height: 100%; }
.bigheart::before, .bigheart::after {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  border: 2px solid rgba(240, 100, 150, .55); animation: ripple 2.6s ease-out infinite;
}
.bigheart::after { animation-delay: 1.3s; }
.bigheart:active { transform: scale(.92); }

.finale__hint { margin-top: 12px; font-family: var(--script); font-size: 1.4rem; color: var(--ink-soft); transition: opacity .6s ease; animation: pulse 2.2s ease-in-out infinite; }
.finale.is-open .finale__hint { opacity: 0; animation: none; }

.finale__msg {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 1.6s ease, opacity .8s ease, margin .8s ease;
}
.finale.is-open .finale__msg { max-height: 1200px; opacity: 1; margin-top: -22px; }
.finale__msg p { margin-bottom: 1rem; font-size: 1.1rem; color: var(--ink); }
.finale__msg > * { opacity: 0; transform: translateY(16px); }
.finale.is-open .finale__msg > * { animation: fadeUp 1s ease forwards; animation-delay: calc(var(--i) * .6s + .4s); }
.finale__msg .finale__big {
  font-size: clamp(2.4rem, 11vw, 3.8rem); line-height: 1.1; padding: .1em .1em .18em; margin-bottom: .6rem;
  background: linear-gradient(100deg, #e0457b, #f2789f 35%, #ff9a76 60%, #c06be0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.finale__msg .sign { font-size: 2rem; color: var(--rose); margin-top: .6rem; }
.finale__foot {
  position: absolute; left: 0; right: 0; bottom: 8px; z-index: 30; font-size: .85rem; font-weight: 700;
  color: rgba(255, 255, 255, .95); text-shadow: 0 1px 6px rgba(40, 100, 60, .45);
}

/* ---------- Бабочки ---------- */
.butterflies { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.bf { position: absolute; left: 0; top: 0; width: 46px; height: 40px; opacity: 0; transition: opacity 1.2s ease; will-change: transform; }
.bf.on { opacity: .95; }
.bf svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 5px rgba(120, 60, 120, .25)); }
.wing { transform-origin: 30px 25px; animation: flap .26s ease-in-out infinite alternate; }

/* ---------- Появление при прокрутке ---------- */
.reveal {
  opacity: 0; transform: translateY(34px) scale(.98);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Анимации ---------- */
@keyframes drift1 { to { transform: translate(14vmax, 10vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-16vmax, -8vmax) scale(.92); } }
@keyframes drift3 { to { transform: translate(12vmax, -12vmax) scale(1.08); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.1); } 28% { transform: scale(1); } 42% { transform: scale(1.07); } 70% { transform: scale(1); } }
@keyframes rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(-120vh) rotate(40deg); opacity: 0; } }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 140%; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes letterUp { to { opacity: 1; transform: none; } }
@keyframes popIn { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes shimmer { to { background-position: 220% 0; } }
@keyframes bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
@keyframes bobSoft { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes floatTilt {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)); }
  50% { transform: translateY(-9px) rotate(calc(var(--tilt) + 1deg)); }
}
@keyframes sway { from { transform: rotate(-2.8deg); } to { transform: rotate(2.8deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes leafIn { to { transform: scale(1); } }
@keyframes bloomIn { 0% { transform: scale(0) rotate(-90deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.16); } }
@keyframes ripple { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Широкие экраны ---------- */
@media (min-width: 560px) {
  .wishes__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .memory { grid-template-columns: 1fr 1fr; gap: 4.5rem; text-align: left; }
  .memory__photo { width: min(34vw, 380px); }
  .memory--flip .memory__photo { order: 2; }
  .wishes__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Уважение к настройке «уменьшить движение» ---------- */
@media (prefers-reduced-motion: reduce) {
  .bg__blob, .polaroid, .arch, .round, .wreath, .bloom svg, .intro__floaters span, .plant { animation: none; }
  .butterflies { display: none; }
  html { scroll-behavior: auto; }
}
