:root {
  --bg: #f6f1ea;
  --wash: #f0ddd4;
  --wash2: #e7d7c4;
  --ink: #241816;
  --muted: #7c655f;
  --line: rgba(48, 24, 24, 0.1);
  --card: rgba(255, 251, 247, 0.92);
  --accent: #c23b55;
  --accent-ink: #fffaf8;
  --soft: #f6d9dc;
  --seal: #a12842;
  --shadow: 0 24px 60px rgba(60, 28, 28, 0.08);
  --surface: #fffdfb;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Manrope, "Segoe UI", sans-serif;
}

body[data-theme="her"] {
  --bg: #fdf6f3;
  --wash: #f9d2db;
  --wash2: #fde0cb;
  --ink: #2c1818;
  --muted: #8a6670;
  --line: rgba(80, 30, 40, 0.1);
  --card: rgba(255, 250, 248, 0.92);
  --surface: #fffaf9;
  --accent: #d0476a;
  --accent-ink: #fff8f7;
  --soft: #fbe0e5;
  --seal: #a12842;
  --shadow: 0 24px 60px rgba(120, 40, 60, 0.09);
}
body[data-theme="him"] {
  --bg: #f1ecee;
  --wash: #d9cbd0;
  --wash2: #c4adb4;
  --ink: #2c0c14;
  --muted: #8a6670;
  --line: rgba(60, 17, 27, 0.15);
  --card: rgba(255, 255, 255, 0.95);
  --surface: #faf7f8;
  --accent: #551826;
  --accent-ink: #fbf6f7;
  --soft: #e4d8dc;
  --seal: #46141f;
  --shadow: 0 24px 60px rgba(55, 16, 25, 0.18);
}
body[data-theme="him"] .btn.primary,
body[data-theme="him"] .yes {
  background: linear-gradient(135deg, #2c0c14 0%, #551826 55%, #6e3a48 100%);
  box-shadow: 0 10px 24px -12px rgba(55, 16, 25, 0.8);
}
body[data-theme="him"] .brand i,
body[data-theme="him"] .progress i {
  background: linear-gradient(90deg, #2c0c14, #551826 55%, #74424d);
}
* { box-sizing: border-box; }
:root, html, body, #app, #modal {
  color-scheme: only light !important;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
}
html {
  background-color: #f6f1ea !important;
}
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink) !important;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(1100px 560px at -10% -10%, var(--wash), transparent 58%),
    radial-gradient(900px 480px at 110% 0%, var(--wash2), transparent 52%),
    var(--bg) !important;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
  color-scheme: only light !important;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
}
input, textarea, select {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  caret-color: var(--ink);
}
button { cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--soft); }

/* Telegram / Android WebView: не давать системной тёмной теме перекрашивать сайт */
@media (prefers-color-scheme: dark) {
  :root, html, body, #app, #modal, button, input, textarea, select {
    color-scheme: only light !important;
    forced-color-adjust: none !important;
    -webkit-forced-color-adjust: none !important;
  }
  html {
    background-color: #f6f1ea !important;
  }
  body {
    color: var(--ink) !important;
    background:
      radial-gradient(1100px 560px at -10% -10%, var(--wash), transparent 58%),
      radial-gradient(900px 480px at 110% 0%, var(--wash2), transparent 52%),
      var(--bg) !important;
  }
  body[data-theme="her"] {
    --bg: #fdf6f3;
    --wash: #f9d2db;
    --wash2: #fde0cb;
    --ink: #2c1818;
    --muted: #8a6670;
    --line: rgba(80, 30, 40, 0.1);
    --card: rgba(255, 250, 248, 0.92);
    --surface: #fffaf9;
    --accent: #d0476a;
    --accent-ink: #fff8f7;
    --soft: #fbe0e5;
    --seal: #a12842;
  }
  body[data-theme="him"] {
    --bg: #f1ecee;
    --wash: #d9cbd0;
    --wash2: #c4adb4;
    --ink: #2c0c14;
    --muted: #8a6670;
    --line: rgba(60, 17, 27, 0.15);
    --card: rgba(255, 255, 255, 0.95);
    --surface: #faf7f8;
    --accent: #551826;
    --accent-ink: #fbf6f7;
    --soft: #e4d8dc;
    --seal: #46141f;
  }
  input, textarea, select {
    background-color: var(--surface) !important;
    color: var(--ink) !important;
  }
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 72px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand i {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}
.step-count {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.progress {
  height: 4px;
  margin: -8px 0 22px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--soft) 80%, white);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.layout.has-preview { }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px 26px 24px;
  animation: rise 0.45s ease;
}
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--seal);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.hero h1 { max-width: 13ch; }
.hero .lede { max-width: 40ch; margin-bottom: 0; }
.hero-grid { display: grid; gap: 8px; align-items: center; }
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}
.how-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.how-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.how-list p { margin: 0; line-height: 1.35; }
.how-list .ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-size: 19px;
}
.hero-cta {
  width: 100%;
  min-height: 56px;
  padding: 16px 22px;
  font-size: 18px;
}
h1, h2, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 0.92; margin: 0 0 12px; }
h2 { font-size: 34px; line-height: 1; margin: 0 0 8px; }
.lede, .hint, .fine { color: var(--muted); }
.lede { font-size: 18px; margin: 0 0 22px; max-width: 46ch; }
.hint { margin: 8px 0 0; font-size: 14px; }
.fine { font-size: 13px; margin: 8px 0 0; }

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 22px;
  padding: 16px 16px 14px;
  min-height: 148px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.choice:hover { transform: translateY(-2px); }
.choice.on {
  border-color: transparent;
  background: var(--ink);
  color: #fffaf7;
}
.choice.on .muted { color: rgba(255,250,247,0.72); }
.choice .mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--soft);
  margin-bottom: 14px;
  font-size: 20px;
}
.choice.on .mark { background: rgba(255,255,255,0.12); }
.choice strong { display: block; font-size: 18px; margin-bottom: 4px; }
.choice .muted { color: var(--muted); font-size: 14px; }

.nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  min-height: 48px;
  background: var(--soft);
  font-weight: 700;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.err {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: var(--seal);
  font-weight: 650;
  font-size: 14px;
}

.field { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.field span { font-weight: 700; font-size: 14px; }
input[type="text"], input[type="email"], input[type="datetime-local"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}
textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus { border-color: var(--accent); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill, .tag, .scroll-opt {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 650;
}
.pill.on, .tag.on, .scroll-opt.on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.tag {
  border-radius: 18px;
  text-align: left;
  font-weight: 600;
  max-width: 100%;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-more { border-style: dashed; background: transparent; color: var(--accent); font-weight: 700; }
@media (max-width: 520px) {
  .tags { gap: 6px; }
  .tags .tag { padding: 8px 11px; font-size: 13.5px; line-height: 1.3; border-radius: 14px; }
}
.group { margin: 18px 0; }
.group h3 { margin: 0 0 10px; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.meter { margin: 18px 0 8px; }
.meter-track {
  position: relative;
  height: 8px;
  margin: 22px 18px 0;
  background: var(--soft);
  border-radius: 99px;
}
.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--g) * 25%);
  background: var(--accent);
  border-radius: inherit;
}
.meter-dot {
  position: absolute;
  top: 50%;
  left: calc(var(--i) * 25%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  transform: translate(-50%, -50%);
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--soft);
}
.meter-dot.on { background: var(--accent); box-shadow: none; }
.meter-dot.current { transform: translate(-50%, -50%) scale(1.18); }
.guilt-face { font-size: 42px; margin: 22px 0 0; }
.guilt-title { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1; margin: 6px 0; }

.letter-box { margin-top: 8px; }
.no-copy {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.ai-preview {
  position: relative;
  margin-top: 10px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--soft) 70%, white), var(--surface));
  cursor: default;
}
.ai-preview p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; }
.ai-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.ai-btn {
  width: 100%;
  margin-top: 12px;
  min-height: 50px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, white), color-mix(in srgb, var(--seal) 12%, white));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--seal);
  font-weight: 800;
  border-radius: 18px;
  line-height: 1.3;
}
.ai-btn-sm {
  width: auto;
  margin-top: 0;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13px;
}
.letter-box .row-between { margin-bottom: 8px; }
.recompose { display: block; margin: 6px 0 0 auto; }
@media (max-width: 520px) {
  .ai-btn-sm { width: 100%; }
}
.ai-btn[aria-busy="true"] { animation: aipulse 1.2s ease-in-out infinite; }
@keyframes aipulse { 50% { opacity: 0.6; } }
.row-between, .inline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.fresh { animation: flash 0.7s ease; }

.invite-grid { display: grid; gap: 8px; }
.invite {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.invite.on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--soft) 55%, white); }
.invite.off { opacity: 0.55; }
.invite.off .invite-text { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.invite .hide { margin: 0 0 10px 50px; }
.invite .emo { font-size: 22px; line-height: 1.2; }
.invite-pick {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 12px 12px 12px 14px !important;
}
.invite-text { line-height: 1.35; }
.switch {
  position: relative;
  width: 42px;
  height: 26px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--muted) 30%, white);
  transition: background 0.2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.invite.on .switch { background: var(--accent); }
.invite.on .switch::after { transform: translateX(16px); }

.choices.duo .choice {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.choices.duo .choice .mark { margin: 0 0 10px; }
.choices.duo .choice strong { margin: 0; }
.guilt-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.guilt-head .guilt-face { font-size: 36px; margin: 0; line-height: 1; }
.guilt-plaque {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--soft);
  font-weight: 700;
  line-height: 1.3;
}
.guilt-plaque .guilt-face { font-size: 32px; margin: 0; flex: 0 0 auto; line-height: 1; }
.guilt-plaque .guilt-label { flex: 1 1 auto; min-width: 0; }
.guilt-plaque.pop { animation: guiltpop .32s ease; }
@keyframes guiltpop { from { opacity: .25; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

.guilt-slider-wrap {
  position: relative;
  margin: 8px 0 4px;
  padding: 18px 4px 42px;
}
.guilt-range {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 28px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.guilt-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) calc(var(--g, 0) * 25%), var(--soft) calc(var(--g, 0) * 25%));
}
.guilt-range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--soft); }
.guilt-range::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--accent); }
.guilt-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
}
.guilt-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
}

.guilt-hint {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 18px;
  height: 28px;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}
.guilt-slider-wrap.hinting .guilt-hint { opacity: 1; }
.guilt-slider-wrap.hint-done .guilt-hint {
  opacity: 0;
  transition: opacity .28s ease;
}
.guilt-ghost-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 28%, #fff);
  border: 3px solid color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 22%, transparent);
  opacity: .5;
  animation: guilt-ghost-slide 1.8s ease-in-out infinite;
}
.guilt-hand {
  position: absolute;
  top: 34px;
  left: 0;
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(40, 16, 20, 0.18));
  transform-origin: 50% 10%;
  animation: guilt-hand-slide 1.8s ease-in-out infinite;
}
@keyframes guilt-ghost-slide {
  0%, 100% { left: 0; }
  55% { left: calc(100% - 28px); }
}
@keyframes guilt-hand-slide {
  0%, 100% { left: 0; transform: translateY(0) rotate(10deg); }
  40% { transform: translateY(-3px) rotate(6deg); }
  55% { left: calc(100% - 28px); transform: translateY(0) rotate(-6deg); }
  90% { transform: translateY(-2px) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .guilt-ghost-thumb, .guilt-hand { animation: none; }
  .guilt-ghost-thumb { left: 28%; }
  .guilt-hand { left: 28%; }
}
.guilt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.guilt-badge-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  transform: translateY(-0.5px);
}
.guilt-badge-txt {
  display: inline-block;
  line-height: 1;
}
.guilt-badge.hot { background: linear-gradient(90deg, #ff5a3c, #ff2d87); color: #fff; box-shadow: 0 4px 10px rgba(255, 60, 90, 0.35); }
.guilt-badge.meh { background: #e4e4e7; color: #6b6b73; }

.tag-own { display: inline-flex; align-items: stretch; max-width: 100%; }
.tag-own .tag { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tag-x {
  border: 1px solid var(--line);
  border-left: 0;
  background: #fff;
  border-radius: 0 18px 18px 0;
  padding: 0 12px;
  font-size: 18px;
  color: var(--muted);
}

.photo-row { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; }
.photo-preview { display: grid; place-items: center; }
.photo-preview .polaroid { width: min(100%, 220px); }
.photo-preview .polaroid img { height: 180px; }
.file-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.drop .texty { display: block; margin: 10px auto 0; }
.pills.seg { display: grid; grid-template-columns: 1fr 1fr; }
.pills.seg .pill { min-height: 48px; }
.when-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.when-fields .field { margin: 0; }
input[type="date"], input[type="time"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
  font: inherit;
  color: inherit;
}
input[type="date"]:focus, input[type="time"]:focus { border-color: var(--accent); }
.time-24 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.time-24-h,
.time-24-m {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
  font: inherit;
  color: inherit;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.time-24-h:focus,
.time-24-m:focus { border-color: var(--accent); }
.time-24-sep {
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}
.num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
}
.hide, .texty {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
}
.invite-pick {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-weight: 600;
  color: inherit;
  width: 100%;
}
.ball { display: block; }
.show-pick .yes,
.show-pick .no-field { display: none; }
.custom-row { display: flex; gap: 8px; margin-top: 8px; }
.custom-row input { flex: 1; }

.drop {
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 24px;
  padding: 16px;
  background: rgba(255,255,255,0.45);
  text-align: center;
}
.drop.hot { background: var(--soft); }
.drop input { margin-top: 10px; }
.hero-visual { display: grid; place-items: center; margin: 8px 0 18px; }
.polaroid {
  margin: 0;
  background: #fff;
  padding: 10px 10px 14px;
  border-radius: 8px 8px 12px 12px;
  box-shadow: var(--shadow);
  width: min(100%, 280px);
  transform: rotate(-1.5deg);
}
.polaroid img { width: 100%; height: 230px; object-fit: cover; border-radius: 4px; }
.polaroid figcaption { font-family: var(--serif); text-align: center; font-size: 20px; margin-top: 8px; }

.arena { margin-top: 8px; }
.yes, .no {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
}
.yes { background: var(--accent); color: var(--accent-ink); width: 100%; font-size: 18px; }
.no {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: left 0.16s ease, top 0.16s ease, opacity 0.22s ease;
  touch-action: none;
}
.no.is-free { transform: none; }
.no.is-gone { opacity: 0; }
.no-field { position: relative; height: 132px; margin-top: 10px; }
.oops {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 0;
  background: #2b211d;
  color: #fff8f3;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}
.oops.on { opacity: 1; transform: none; transition: 0.2s ease; }
.demo-result { min-height: 1.4em; font-weight: 700; }

.when-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.when-card {
  text-align: left;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
  min-height: 132px;
}
.when-card.on { border-color: transparent; background: var(--ink); color: #fffaf7; }
.when-card.on .muted { color: rgba(255,250,247,.72); }

.summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip {
  background: var(--soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}
.pay {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  margin: 12px 0;
}
.price-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.discount-timer { display: grid; justify-items: end; gap: 2px; padding: 8px 10px; border-radius: 14px; background: var(--soft); }
.discount-timer span { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.discount-timer b { font-variant-numeric: tabular-nums; font-size: 20px; letter-spacing: .03em; color: var(--seal); }
.price { font-family: var(--serif); font-size: 64px; line-height: 0.8; margin: 0; }
.price span { font-size: 28px; }
.link-box input { font-size: 14px; }
.paid-ok {
  margin: 16px 0 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--soft) 60%, white);
  border: 1px solid var(--line);
  color: var(--seal);
  font-weight: 800;
  font-size: 17px;
}
.link-label { margin: 0 0 8px; font-weight: 700; }
.link-row { display: flex; gap: 10px; align-items: stretch; }
.link-row input { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: inherit; }
.bots .pill { display: flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 520px) {
  .link-row { flex-direction: column; }
}
.bot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--soft) 50%, white);
}
.preview-col { display: none; }
.phone {
  width: min(100%, 390px);
  margin: 0 auto;
  background: #22181a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(40, 16, 24, 0.2);
}
.notch {
  width: 92px;
  height: 8px;
  border-radius: 99px;
  background: #120d0e;
  margin: 2px auto 10px;
}
.phone-screen {
  background: var(--bg);
  border-radius: 26px;
  max-height: min(760px, 78vh);
  overflow: auto;
}

.sheet { padding: 22px 18px 28px; position: relative; }
.kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; font-weight: 800; color: var(--accent); margin: 0 0 6px; }
.sheet h2 { font-size: clamp(36px, 8vw, 52px); }
.guilt-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}
.letter-body {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.28;
  margin: 16px 0;
  white-space: pre-wrap;
}
.invite-list { display: grid; gap: 8px; }
.invite-view {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  background: rgba(255,255,255,.72);
  border-radius: 16px;
  padding: 10px 12px;
}
.when-note, .finale {
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  margin: 14px 0;
}
.finale-title { font-family: var(--serif); font-size: 32px; line-height: 1; margin: 0 0 6px; }
.quiet { color: var(--muted); font-size: 13px; }
.show-pick .when-pick { display: block; }
.when-pick { display: none; margin-top: 10px; }
.agree-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; margin: 0 0 10px; }
.agree-list { display: grid; gap: 8px; margin-bottom: 12px; }
.agree-opt {
  display: grid;
  grid-template-columns: 20px 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.35;
}
.agree-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--soft) 60%, white); }
.agree-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.agree-emo { font-size: 20px; text-align: center; }
.agree-when { font-weight: 700; margin: 0 0 12px; }
.agree .pick-ok { width: 100%; min-height: 52px; }
.tg-ok { margin: 10px 0 0; font-weight: 700; color: var(--seal); }
.footer-mini { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; font-size: 13px; }
.footer-mini a { color: var(--muted); }

.receive {
  min-height: 100vh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 28px 16px 48px;
}
.receive .sheet {
  width: min(560px, 100%);
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.receive-footer {
  width: 100%;
  margin-top: 8px;
}
.receive-footer[hidden] { display: none !important; }
.receive-footer .site-footer {
  margin-top: 12px;
  width: 100%;
}

.vpn-hint {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  gap: 12px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 40px -16px rgba(40, 16, 20, 0.35);
  border: 1px solid var(--line);
  animation: vpn-hint-in .35s cubic-bezier(.3, 1.2, .5, 1) both;
}
.vpn-hint-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}
.vpn-hint-text {
  margin: 0 28px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.vpn-hint-ok {
  width: 100%;
  min-height: 46px;
}
@keyframes vpn-hint-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (min-width: 821px) {
  .vpn-hint { display: none; }
}

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(28, 16, 16, 0.46);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 40;
  overflow: auto;
}
.modal {
  width: min(440px, 100%);
  background: var(--surface);
  color: var(--ink);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.modal.legal-modal {
  width: min(720px, 100%);
  max-height: min(86vh, 860px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.legal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.legal-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.15;
}
.legal-close {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  flex: 0 0 auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.legal-close:hover,
.legal-close:focus-visible {
  background: color-mix(in srgb, var(--accent) 18%, var(--soft));
}
.legal-body {
  padding: 8px 22px 24px;
  overflow: auto;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.legal-body h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}
.legal-body p { margin: 0 0 10px; color: var(--muted); }
.legal-body a { color: var(--seal); }
.legal-meta { margin-top: 18px !important; font-size: 13px; }

.site-footer {
  margin-top: 28px;
  padding: 36px 0 28px;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--wash) 42%, transparent) 28%, color-mix(in srgb, var(--soft) 55%, #fff) 100%);
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.wrap.has-bar + .site-footer {
  padding-bottom: calc(28px + 72px + env(safe-area-inset-bottom, 0px));
}
.site-footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr;
  gap: 28px 24px;
}
.foot-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 10px;
}
.foot-logo {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}
.foot-tagline {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 28ch;
}
.foot-badge {
  display: inline-flex;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--soft) 78%, #fff);
  border: 1px solid var(--line);
  color: var(--seal);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.foot-requisites {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.foot-requisites a { color: var(--seal); text-decoration: none; font-weight: 650; }
.foot-requisites a:hover { text-decoration: underline; }
.foot-title {
  margin: 4px 0 12px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.foot-links button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.foot-links button:hover { color: var(--seal); }
.site-footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer-bar p { margin: 0; }
.pay-legal {
  margin: 12px 2px 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
.pay-legal .linkish {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--seal);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 900px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer { padding: 28px 0 22px; margin-top: 18px; }
  .site-footer-inner { width: min(1120px, calc(100% - 24px)); }
  .site-footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-footer-bar { flex-direction: column; gap: 8px; }
  .foot-tagline { max-width: none; }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: #241816;
  color: #fff8f4;
  padding: 12px 14px;
  border-radius: 14px;
  z-index: 50;
  max-width: min(520px, calc(100% - 24px));
  box-shadow: var(--shadow);
}
.burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 30;
}
.bit {
  position: absolute;
  bottom: -24px;
  animation: rise linear forwards;
}
.bit.heart { color: var(--accent); text-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.ball {
  width: 18px;
  height: 22px;
  border-radius: 50% 50% 48% 48%;
  position: relative;
}
.ball::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 28px;
  background: rgba(40, 20, 20, 0.35);
}
.spark { color: var(--seal); }

.empty {
  padding: 48px 20px;
  text-align: center;
}
.noscript { padding: 24px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes flash {
  from { background: var(--soft); }
  to { background: #fff; }
}
@keyframes sway {
  50% { transform: rotate(2.4deg); }
}
@keyframes beat {
  50% { transform: scale(1.16); }
}
@keyframes risebit {
  to { transform: translate3d(var(--drift), -108vh, 0) rotate(18deg); opacity: 0.15; }
}
.bit { animation-name: risebit; }
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 860px) {
  .how-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .layout.has-preview { grid-template-columns: minmax(0, 1fr) 420px; }
  .preview-col { display: block; position: sticky; top: 16px; }
}
@media (max-width: 1039px) {
  .layout.is-last { display: flex; flex-direction: column; }
  .layout.is-last .preview-col { display: block; order: -1; }
}
@media (max-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 24px));
    min-height: 100vh;
    min-height: 100dvh;
    padding: 12px 0 24px;
  }
  .wrap.has-bar { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .top { margin-bottom: 12px; gap: 12px; }
  .brand { font-size: 22px; gap: 10px; }
  .brand i { width: 44px; height: 44px; font-size: 22px; }
  .progress { margin: -4px 0 14px; }
  .panel { padding: 18px 16px; border-radius: 22px; animation-name: fadein; }
  h1 { font-size: 32px; line-height: 0.98; margin-bottom: 8px; }
  .lede { font-size: 15px; margin-bottom: 14px; }

  .hero h1 { font-size: clamp(32px, 9.4vw, 40px); }
  .badge { font-size: 12px; padding: 6px 10px; margin-bottom: 12px; }
  .how-list { margin-top: 16px; gap: 8px; }
  .how-list li { padding: 8px 10px; font-size: 14px; }
  .how-list .ico { width: 34px; height: 34px; font-size: 16px; border-radius: 12px; }
  .how-list li { grid-template-columns: 34px minmax(0, 1fr); }

  .choices, .when-grid { grid-template-columns: 1fr; gap: 10px; }
  .choice {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 14px;
  }
  .choice .mark { grid-row: 1 / span 2; margin: 0; }
  .choices.duo { grid-template-columns: 1fr 1fr; gap: 8px; }
  .choices.duo .choice { grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; padding: 12px; }
  .choices.duo .mark { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }
  .choices.duo .muted { font-size: 12px; line-height: 1.3; }
  .when-fields { grid-template-columns: 1fr; gap: 0; }
  .when-fields .field { margin: 8px 0; }
  .choice strong { font-size: 17px; margin: 0; }
  .choice:hover { transform: none; }
  .when-card { min-height: 0; }
  .field { margin: 12px 0; }
  .guilt-face { font-size: 34px; margin-top: 6px; }
  .meter { margin: 8px 0 4px; }
  .guilt-title { font-size: 28px; }

  .nav { gap: 10px; }
  .nav .btn { flex: 1 1 0; min-height: 52px; padding: 14px 16px; font-size: 16px; }
  .stepnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 74%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid var(--line);
  }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .pay { flex-direction: column; align-items: flex-start; }
  .price { white-space: nowrap; font-size: 56px; }
  .pay { flex-direction: column; align-items: flex-start; }
  .price { white-space: nowrap; font-size: 56px; }
  .letter-body { font-size: 26px; }
  .no { white-space: normal; width: max-content; max-width: calc(100% - 12px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Конструктор v2: 8 шагов, 4 сценария ===== */
.layout.solo { max-width: 760px; margin: 0 auto; width: 100%; }
.layout.solo.step-7, .layout.solo.step-8 { max-width: 820px; }
.scenario-chip {
  display: inline-flex;
  gap: 6px;
  margin: 6px 0 0;
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
}
.name-field { margin-top: 22px; }
.name-field.missing input { border-color: var(--seal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--seal) 28%, transparent); }
.letter-box textarea#letter { min-height: 180px; }
.invite-rule { margin: -6px 0 4px; color: var(--seal); font-weight: 600; }
.invite-count { margin: 0 0 6px; }
.invite-grid + .custom-row { margin-top: 10px; }

.anim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.anim-card {
  display: grid;
  gap: 6px;
  padding: 8px 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: border-color .2s, transform .2s;
}
.anim-card:hover { transform: translateY(-2px); }
.anim-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.anim-thumb { display: block; border-radius: 12px; background: color-mix(in srgb, var(--soft) 45%, white); overflow: hidden; }
.anim-thumb svg { display: block; width: 100%; height: auto; }
.anim-title { font-weight: 700; font-size: 14px; }

.anim-svg { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; }

.answer-preview {
  margin-top: 18px;
  padding: 18px 16px 6px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--soft) 35%, white);
  text-align: center;
}
.ap-visual .polaroid { margin: 0 auto; max-width: 260px; }
.ap-caption { font-family: var(--serif); font-size: 30px; line-height: 1.05; margin: 12px 0 6px; }
.ap-hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; }

.place-row { display: grid; gap: 10px; align-items: end; }
.map-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  background:
    linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,.3)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(120,140,160,.18) 22px 24px),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(120,140,160,.18) 30px 32px),
    linear-gradient(135deg, #e8efe4, #f4efe6 55%, #dfe9f2);
}
.map-card.empty { opacity: .5; pointer-events: none; }
.map-pin { font-size: 26px; animation: beat 1.6s ease-in-out infinite; }
@media (min-width: 640px) { .place-row { grid-template-columns: minmax(0, 1fr) 260px; } }

.preview-stage { display: grid; justify-items: center; gap: 16px; margin: 8px 0 4px; }
.iphone {
  position: relative;
  width: min(320px, 84vw);
  aspect-ratio: 393 / 852;
  transform-origin: 50% 0;
  padding: 11px;
  border-radius: 56px;
  background: linear-gradient(150deg, #8a2a40 0%, #5a1426 28%, #33091a 55%, #6e1c31 80%, #9a3a50 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 210, 220, .35),
    inset 0 0 0 5px #24060f,
    0 2px 0 1px #3a0a17,
    0 40px 70px -20px rgba(74, 15, 31, .55),
    0 18px 30px -18px rgba(0, 0, 0, .4);
  animation: phonefloat 6s ease-in-out infinite;
}
.iphone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 45%, transparent 60%);
  background-size: 250% 100%;
  animation: sheen 7s ease-in-out infinite;
}
@keyframes phonefloat { 50% { transform: translateY(-8px) rotate(-.6deg); } }
@keyframes sheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.iphone-key { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #4a0e1e, #8a2a40); }
.iphone-key.k1 { left: -3px; top: 17%; height: 4%; }
.iphone-key.k2 { left: -3px; top: 24%; height: 8%; }
.iphone-key.k3 { left: -3px; top: 34%; height: 8%; }
.iphone-key.k4 { right: -3px; top: 28%; height: 12%; }
.iphone-screen {
  position: relative;
  height: 100%;
  border-radius: 46px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 0%, #fff, transparent 55%),
    #fffaf8;
  isolation: isolate;
}
.iphone-island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 28px; border-radius: 20px; background: #050203; z-index: 3; }
.iphone-status { position: absolute; top: 14px; left: 26px; right: 22px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; z-index: 2; color: var(--ink); }
.iphone-icons { letter-spacing: 2px; font-size: 10px; }
.iphone .flow { position: absolute; inset: 0; padding: 54px 14px 18px; overflow-y: auto; scrollbar-width: none; }
.iphone .flow::-webkit-scrollbar { display: none; }
.iphone .fs-title { font-size: 28px; }
.iphone .agree-opt { padding: 10px; font-size: 13px; grid-template-columns: 18px 20px minmax(0, 1fr); gap: 8px; }
.iphone .letter-text { font-size: 17px; }
.iphone .yes { font-size: 16px; }
.iphone .no-field { height: 110px; }
.iphone .no { font-size: 14px; }

.demo-note {
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--soft) 60%, white);
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  transition: box-shadow .3s;
}
.demo-note.lit { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.preview-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 4px; }

.flow { position: relative; }
.fs { display: none; flex-direction: column; gap: 12px; }
.fs.on { display: flex; animation: fsin .45s cubic-bezier(.22, 1, .36, 1); }
@keyframes fsin { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.fs-kicker { margin: 0; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; font-weight: 800; color: var(--accent); }
.fs-title { font-family: var(--serif); font-size: 34px; line-height: 1; margin: 0; }
.fs-title.center, .fs-summary { text-align: center; }
.fs-hint { margin: 0; color: var(--muted); font-size: 14px; }
.fs-group { margin: 6px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fs-btn { width: 100%; min-height: 50px; }
.fs-when { gap: 10px; }
.when-stack { display: grid; gap: 8px; }
.fs-actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}
.fs-actions .fs-btn {
  min-height: 52px;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  box-sizing: border-box;
  text-align: center;
}
.flow .when-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  background: #fff;
}
.flow .when-note strong {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.flow .when-note p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.iphone .fs-when .fs-title { font-size: 26px; }
.iphone .flow .when-note { padding: 10px 12px; }
.iphone .flow .when-note p { font-size: 14px; }
.iphone .fs-actions .fs-btn { min-height: 48px; padding: 10px 12px; }
.fs-visual .polaroid { margin: 0 auto; max-width: 240px; }
.fs-visual .polaroid img { height: 200px; }
.fs-summary { margin: 0; font-weight: 600; line-height: 1.4; }
.letter-card { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: #fffaf6; box-shadow: 0 10px 30px -14px rgba(40, 20, 20, .35); animation: fsin .5s ease; }
.letter-card[hidden] { display: none; }
.letter-text { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.35; white-space: pre-wrap; }
.guilt-pill { justify-self: start; padding: 6px 12px; border-radius: 99px; background: var(--soft); font-size: 13px; font-weight: 700; }

.nut-wrap { display: grid; justify-items: center; gap: 10px; }
.nut { position: relative; border: 0; background: none; padding: 0; cursor: pointer; animation: wobble 2.2s ease-in-out infinite; }
.nut.cracked { animation: none; cursor: default; }
.nut-svg { width: 120px; height: auto; overflow: visible; }
.nut-l, .nut-r { transition: transform .6s cubic-bezier(.2, 1.4, .4, 1), opacity .6s ease .4s; transform-box: fill-box; }
.nut-l { transform-origin: 100% 100%; }
.nut-r { transform-origin: 0% 100%; }
.nut.cracked .nut-l { transform: translateX(-26px) rotate(-28deg); opacity: .35; }
.nut.cracked .nut-r { transform: translateX(26px) rotate(28deg); opacity: .35; }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-8deg); } 85% { transform: rotate(8deg); } 92% { transform: rotate(-4deg); } }
.fortune {
  width: 100%;
  margin-top: -40px;
  padding: 16px 14px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fffdf6, #f8efd9);
  box-shadow: 0 10px 24px -12px rgba(60, 40, 10, .45);
  transform-origin: top center;
  animation: unroll .8s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  z-index: 2;
}
.fortune[hidden] { display: none; }
.fortune::before, .fortune::after { content: ""; position: absolute; left: -4px; right: -4px; height: 8px; border-radius: 4px; background: #e6d3a8; }
.fortune::before { top: -4px; }
.fortune::after { bottom: -4px; }
.fortune-text { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.35; text-align: center; white-space: pre-line; }
@keyframes unroll { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.receive-card {
  width: min(480px, 100%);
  padding: 22px 18px 26px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.receive .footer-mini { width: min(480px, 100%); }

.pay-panel { margin-top: 18px; scroll-margin-top: 16px; }
.pay-title { font-family: var(--serif); font-size: clamp(34px, 6vw, 46px); line-height: 1; margin: 0 0 8px; }
.pay-panel .pay > div:first-child { flex-shrink: 0; }
.pay-panel .price { white-space: nowrap; }
.old-price { font-family: "Manrope", system-ui, sans-serif; font-size: 22px; font-weight: 600; color: var(--muted); text-decoration: line-through; margin-left: 8px; white-space: nowrap; }
.bit.spark { color: var(--accent); }

@media (max-width: 720px) {
  .anim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-caption { font-size: 26px; }
  .preview-actions .btn { flex: 1 1 100%; }
  .old-price { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .iphone, .iphone::after { animation: none !important; }
}

/* ===== Страница получателя: синхронизация с превью ===== */
.no-zone { margin-top: 6px; }
.no-zone .oops {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 0 4px;
}
.no-zone .oops:empty { visibility: hidden; }
.no-zone .no-field { margin-top: 0; height: 120px; }
.iphone .no-zone .no-field { height: 104px; }
.letter-to { margin: 0; font-size: 14px; color: var(--muted); }
.letter-to b { color: var(--ink); }
.fs-btn:disabled, .fs-btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.fs-later { font-size: 14px; line-height: 1.25; white-space: normal; text-align: center; font-weight: 700; }
.flow .when-fields { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; }
.flow .when-fields .field { margin: 0; min-width: 0; }
.flow .when-fields input { width: 100%; min-width: 0; padding-left: 10px; padding-right: 8px; }
.iphone .flow .when-fields input { font-size: 14px; padding-left: 8px; padding-right: 6px; }
.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-sizing: border-box;
}
.map-link-ico {
  flex: 0 0 auto;
  line-height: 1;
}
.map-link-txt {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}
.flow .when-note .map-link { margin-top: 6px; width: 100%; min-height: 40px; }
.iphone .map-link { font-size: 12px; padding: 8px 10px; min-height: 38px; }
.sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.sum-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.sum-ico { font-size: 20px; line-height: 1.3; text-align: center; }
.sum-list b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sum-list p { margin: 2px 0 0; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.sum-list .map-link { width: 100%; margin-top: 8px; }
.iphone .sum-list li { padding: 8px 10px; }
.iphone .sum-list p { font-size: 13px; }
.fs-share-note { text-align: center; font-size: 12px; margin-top: -4px; }
.fs-share:disabled { background: color-mix(in srgb, var(--soft) 70%, white); color: var(--muted); }
.iphone-screen::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, #fffaf8 70%, transparent); }

/* ===== Векторные сцены: анимируются только transform и opacity ===== */
.scene { display: block; height: auto; }
.scene .tw { animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Hero: вечерний парк */
.hero { position: relative; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; }
.hero-art { order: -1; margin: -28px -26px -14px; }
.hero-scene {
  width: 100%;
  height: clamp(240px, 40vw, 440px);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 72%, transparent 100%);
}
@media (max-width: 720px) {
  .hero-art { margin: -18px -16px -14px; }
  .hero-scene { height: clamp(220px, 66vw, 300px); }
}
.hs-a, .hs-b, .hs-a-head, .hs-heart, .hs-heart-core, .fly, .hs-cone, .hs-lamp-glow { will-change: transform; transform-box: fill-box; }
.hs-a { animation: hsA 10s ease-in-out infinite; }
.hs-b { animation: hsB 10s ease-in-out infinite; }
.hs-a-head { transform-origin: 50% 60%; animation: hsHead 10s ease-in-out infinite; }
.hs-heart { opacity: 0; transform-origin: 50% 50%; animation: hsHeart 10s ease-in-out infinite; }
.hs-heart-core { transform-origin: 50% 50%; animation: beat 1.3s ease-in-out infinite; }
.hs-cone { animation: lampflicker 4.2s ease-in-out infinite; }
.hs-lamp-glow { transform-origin: 50% 50%; animation: lampglow 4.2s ease-in-out infinite; }
.fly { animation-name: firefly; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
@keyframes hsA { 0%, 14% { transform: translateX(0); } 32%, 84% { transform: translateX(10px); } 100% { transform: translateX(0); } }
@keyframes hsB { 0%, 14% { transform: translateX(0); } 32%, 84% { transform: translateX(-6px); } 100% { transform: translateX(0); } }
@keyframes hsHead { 0%, 30% { transform: none; } 42%, 80% { transform: translate(5px, 5px) rotate(17deg); } 92%, 100% { transform: none; } }
@keyframes hsHeart {
  0%, 40% { opacity: 0; transform: translateY(12px) scale(.4); }
  50% { opacity: 1; transform: translateY(0) scale(1.12); }
  56%, 80% { opacity: 1; transform: translateY(0) scale(1); }
  94%, 100% { opacity: 0; transform: translateY(-16px) scale(.9); }
}
@keyframes lampflicker { 0%, 100% { opacity: 1; } 46% { opacity: .82; } 50% { opacity: .95; } 53% { opacity: .78; } }
@keyframes lampglow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .8; transform: scale(.94); } }
@keyframes firefly {
  0%, 100% { transform: translate(0, 0); opacity: .15; }
  25% { transform: translate(14px, -10px); opacity: 1; }
  50% { transform: translate(4px, -22px); opacity: .35; }
  75% { transform: translate(-12px, -8px); opacity: 1; }
}

/* Сова: общие части */
.owl, .owl-bob, .owl-head, .owl-wing, .owl-letter, .owl-lid, .owl-pupil, .branch-owl, .leaf { transform-box: fill-box; will-change: transform; }
.owl { transform-origin: 50% 100%; }
.owl-bob { transform-origin: 50% 100%; animation: owlbob 3.2s ease-in-out infinite; }
.owl-head { transform-origin: 50% 85%; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.owl-pupil { transition: transform .3s ease; }
.owl-lid { transform-origin: 50% 0; transform: scaleY(0); animation: owlblink 5s ease-in-out infinite; transition: transform .15s ease; }
.owl-wing-l { transform-origin: 75% 4%; }
.owl-wing-r { transform-origin: 25% 4%; }
.owl-letter { transform-origin: 50% 50%; transition: transform .35s ease; }
@keyframes owlbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes owlblink { 0%, 90%, 100% { transform: scaleY(0); } 94% { transform: scaleY(1); } }
@keyframes flapl { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(48deg); } }
@keyframes flapr { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-48deg); } }

/* Экран 1: сова в окне */
.owl-stage {
  position: relative;
  width: 100%;
}
.owl-zone {
  position: relative;
  display: grid;
  place-items: end center;
  width: 100%;
  min-height: 250px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.owl-tap-hint {
  position: absolute;
  left: 58%;
  bottom: 3%;
  z-index: 4;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: visible;
  transform-origin: 50% 12%;
  animation: owl-tap-hand 1.35s ease-in-out infinite;
}
.owl-tap-hand {
  position: relative;
  z-index: 1;
  width: clamp(38px, 10vw, 48px);
  height: auto;
  display: block;
  opacity: .94;
  filter: drop-shadow(0 3px 8px rgba(40, 16, 20, 0.18));
  user-select: none;
  -webkit-user-drag: none;
}
.owl-tap-ripples {
  /* Центр волн — кончик указательного пальца */
  position: absolute;
  left: 50%;
  top: 6%;
  z-index: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  pointer-events: none;
  overflow: visible;
}
.owl-tap-ripples > span {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2.5px solid rgba(180, 120, 80, 0.9);
  border-radius: 50%;
  background: rgba(232, 190, 150, 0.22);
  opacity: 0;
  transform: scale(0.5);
  animation: owl-tap-ripple 1.35s ease-out infinite;
}
.owl-tap-ripples > span:nth-child(2) { animation-delay: .14s; }
.owl-tap-ripples > span:nth-child(3) { animation-delay: .28s; }
.owl-tap-hint.gone {
  opacity: 0;
  transition: opacity .25s ease;
  animation: none;
}
.owl-tap-hint.gone .owl-tap-ripples > span { animation: none; }
@keyframes owl-tap-hand {
  0%, 100% { transform: translate(-50%, 0) rotate(8deg) scale(1); }
  40% { transform: translate(-50%, -8px) rotate(2deg) scale(1.05); }
  55% { transform: translate(-50%, 4px) rotate(6deg) scale(.94); }
  70% { transform: translate(-50%, -4px) rotate(3deg) scale(1.02); }
}
@keyframes owl-tap-ripple {
  0%, 45% {
    opacity: 0;
    transform: scale(0.4);
  }
  52% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(4.2);
  }
}
@media (max-width: 520px) {
  .owl-tap-hint { left: 57%; bottom: 2%; }
}
.owl-zone:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.owl-zone.thrown { pointer-events: none; }
.owl-scene { width: 100%; max-width: 340px; overflow: visible; }
.owl-zone .owl.look-l .owl-head { transform: rotate(-18deg) translateX(-4px); }
.owl-zone .owl.look-r .owl-head { transform: rotate(18deg) translateX(4px); }
.owl-zone .owl.look-l .owl-pupil { transform: translateX(-3px); }
.owl-zone .owl.look-r .owl-pupil { transform: translateX(3px); }
.owl-zone .owl.look-l .owl-letter { transform: translate(16px, 4px) rotate(10deg) scale(.88); }
.owl-zone .owl.look-r .owl-letter { transform: translate(-16px, 4px) rotate(-10deg) scale(.88); }
.owl-zone .owl.squint .owl-lid { animation: none; transform: scaleY(.6); }
.owl-zone .owl.hop { animation: owlhop .55s ease; }
.owl-zone .owl.hop.look-l .owl-wing-r { animation: flapr .28s ease-in-out 2; }
.owl-zone .owl.hop.look-r .owl-wing-l { animation: flapl .28s ease-in-out 2; }
.owl-zone .owl.throw .owl-wing-l { animation: flapl .26s ease-in-out 3; }
.owl-zone .owl.throw .owl-wing-r { animation: flapr .26s ease-in-out 3; }
.owl-zone .owl.throw .owl-letter { animation: letterfly .9s cubic-bezier(.3, .6, .4, 1) forwards; }
@keyframes owlhop {
  0%, 100% { transform: none; }
  22% { transform: translateY(3px) scale(1.04, .94); }
  50% { transform: translateY(-16px) scale(.97, 1.04); }
  78% { transform: translateY(0) scale(1.03, .97); }
}
@keyframes letterfly {
  0% { transform: none; }
  35% { transform: translateY(-26px) rotate(-6deg) scale(1.25); }
  100% { transform: translateY(34px) rotate(0) scale(3.4); opacity: .95; }
}

/* Экран 2: сова на ветке */
.branch-zone { position: relative; margin-top: 26px; }
.branch-scene { width: 100%; max-width: 340px; margin: 0 auto; overflow: visible; }
.branch-owl { cursor: pointer; transform-origin: 50% 100%; animation: owlarrive 1.5s cubic-bezier(.25, .8, .3, 1) both; }
.branch-owl .owl-wing-l { animation: flapl .25s ease-in-out 5; }
.branch-owl .owl-wing-r { animation: flapr .25s ease-in-out 5; }
.branch-owl .owl-head { animation: owltilt 5s ease-in-out 1.8s infinite; }
.branch-owl.gone { pointer-events: none; animation: owlaway 1.2s ease-in forwards; }
.branch-owl.gone .owl-wing-l { animation: flapl .22s ease-in-out infinite; }
.branch-owl.gone .owl-wing-r { animation: flapr .22s ease-in-out infinite; }
.leaf { transform-origin: 0 50%; animation: leafsway 4s ease-in-out infinite; }
@keyframes owlarrive {
  0% { opacity: 0; transform: translate(240px, -220px) rotate(-12deg) scale(.6); }
  15% { opacity: 1; }
  80% { transform: translate(0, -6px) rotate(3deg) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes owlaway {
  0% { transform: none; opacity: 1; }
  20% { transform: translateY(6px) scale(1.03, .95); }
  100% { transform: translate(320px, -300px) rotate(14deg) scale(.6); opacity: 0; }
}
@keyframes owltilt { 0%, 30%, 100% { transform: none; } 40%, 58% { transform: rotate(-14deg); } 68% { transform: none; } }
@keyframes leafsway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(6deg); } }

/* Пузыри и перья */
.owl-bubble {
  position: absolute;
  top: 2%;
  left: 50%;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 16px;
  background: #fff;
  color: #2a1a22;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(30, 10, 30, .5);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px) scale(.9);
  transition: opacity .25s ease, transform .3s cubic-bezier(.3, 1.4, .5, 1);
}
.owl-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.owl-bubble.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.owl-bubble-sm { top: -34px; left: 6%; transform: translateY(8px) scale(.9); }
.owl-bubble-sm.on { transform: none; }
.owl-bubble-sm::after { display: none; }
.feather { position: absolute; z-index: 2; width: 11px; height: 24px; pointer-events: none; will-change: transform; animation: featherfall 2.2s ease-in both; }
.feather svg { display: block; width: 100%; height: 100%; }
@keyframes featherfall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  10% { opacity: 1; }
  35% { transform: translate(calc(var(--dx) * .5), -18px) rotate(calc(var(--rot) * .4)); }
  100% { opacity: 0; transform: translate(var(--dx), 120px) rotate(var(--rot)); }
}

/* Анимация «Под одним зонтом» */
.anim-couple .rain, .anim-couple .uc-pair, .anim-couple .uc-heart, .anim-couple .uc-glow, .anim-couple .uc-lamp { will-change: transform; transform-box: fill-box; }
.anim-couple .rain-a { animation: rain .75s linear infinite; }
.anim-couple .rain-b { animation: rain 1.15s linear infinite; }
.anim-couple .uc-lamp { transform-origin: 50% 50%; animation: lampglow 4s ease-in-out infinite; }
.anim-couple .uc-glow { transform-origin: 50% 50%; animation: lampglow 3.2s ease-in-out infinite; }
.anim-couple .uc-pair { transform-origin: 50% 100%; animation: ucsway 4.5s ease-in-out infinite; }
.anim-couple .uc-heart { transform-origin: 50% 50%; animation: ucheart 3.6s ease-in infinite; }
.anim-couple .win { animation: twinkle 6s steps(2) infinite; }
@keyframes rain { from { transform: translate(0, 0); } to { transform: translate(-60px, 210px); } }
@keyframes ucsway { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }
@keyframes ucheart {
  0% { opacity: 0; transform: translateY(8px) scale(.6); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-28px) scale(1.1); }
}

/* Анимация «Котики на крыше» */
.anim-cats .kc-moon-glow, .anim-cats .kc-smoke, .anim-cats .kc-heart-glow, .anim-cats .kc-cat, .anim-cats .kc-head, .anim-cats .kc-ear { will-change: transform; transform-box: fill-box; }
.anim-cats .kc-moon-glow { transform-origin: 50% 50%; animation: lampglow 5s ease-in-out infinite; }
.anim-cats .kc-smoke { animation: smoke 4s ease-out infinite; }
.anim-cats .kc-heart-glow { transform-origin: 50% 50%; animation: beat 1.6s ease-in-out infinite; }
.anim-cats .kc-cat { transform-origin: 50% 100%; }
.anim-cats .kc-cat-l { animation: kcl 6s ease-in-out infinite; }
.anim-cats .kc-cat-r { animation: kcr 6s ease-in-out infinite; }
.anim-cats .kc-head { transform-origin: 50% 90%; }
.anim-cats .kc-cat-l .kc-head { animation: kcheadl 6s ease-in-out infinite; }
.anim-cats .kc-cat-r .kc-head { animation: kcheadr 6s ease-in-out infinite; }
.anim-cats .kc-ear { transform-origin: 50% 100%; animation: earflick 3.4s ease-in-out infinite; }
.anim-cats .kc-cat-r .kc-ear { animation-delay: -1.7s; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes kcl { 0%, 100% { transform: rotate(0); } 40%, 70% { transform: rotate(3deg); } }
@keyframes kcr { 0%, 100% { transform: rotate(0); } 40%, 70% { transform: rotate(-3deg); } }
@keyframes kcheadl { 0%, 25%, 100% { transform: none; } 40%, 70% { transform: rotate(10deg); } }
@keyframes kcheadr { 0%, 25%, 100% { transform: none; } 40%, 70% { transform: rotate(-10deg); } }
@keyframes earflick { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-14deg); } 96% { transform: rotate(4deg); } }

/* Анимация «Тёплые объятия» */
.anim-hug .snow, .anim-hug .steam, .anim-hug .cocoa-heart { will-change: transform; transform-box: fill-box; }
.anim-hug .snow { animation: snowfall 8s linear infinite; }
.anim-hug .bulb { animation: twinkle 2.4s ease-in-out infinite; }
.anim-hug .steam { opacity: 0; animation: steam 3.3s ease-out infinite; }
.anim-hug .cocoa-heart { opacity: 0; transform-origin: 50% 50%; animation: cocoaheart 6s ease-in-out infinite; }
@keyframes snowfall { from { transform: translate(0, 0); } to { transform: translate(8px, 100px); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px); } 35% { opacity: .75; } 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes cocoaheart {
  0%, 30% { opacity: 0; transform: translateY(18px) scale(.75); }
  48%, 76% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-14px) scale(1.05); }
}

/* Анимация «Нить судьбы» */
.anim-hearts .ln-far, .anim-hearts .ln-pair, .anim-hearts .ln-l, .anim-hearts .ln-r, .anim-hearts .ln-thread,
.anim-hearts .ln-touch, .anim-hearts .ln-sway, .anim-hearts .ln-halo, .anim-hearts .ln-flame { will-change: transform; transform-box: fill-box; }
.anim-hearts .ln-far { animation: lnfar 9s ease-in-out infinite alternate; }
.anim-hearts .ln-pair { animation: lnfloat 5s ease-in-out 3.6s infinite; }
.anim-hearts .ln-l { animation: lnl 3.4s cubic-bezier(.3, .7, .3, 1) both; }
.anim-hearts .ln-r { animation: lnr 3.4s cubic-bezier(.3, .7, .3, 1) both; }
.anim-hearts .ln-thread { transform-origin: 50% 0; animation: lnthread 3.4s cubic-bezier(.3, .7, .3, 1) both; }
.anim-hearts .ln-touch { transform-origin: 50% 50%; animation: fadein 1.4s ease 2.6s both, lnpulse 3s ease-in-out 4s infinite; }
.anim-hearts .ln-sway { transform-origin: 50% 100%; animation: lnsway 4s ease-in-out infinite; }
.anim-hearts .ln-r .ln-sway { animation-delay: -2s; }
.anim-hearts .ln-halo { transform-origin: 50% 50%; animation: lampglow 2.6s ease-in-out infinite; }
.anim-hearts .ln-flame { transform-origin: 50% 100%; animation: flame .5s ease-in-out infinite alternate; }
@keyframes lnfar { from { transform: translateY(0); opacity: .55; } to { transform: translateY(-14px); opacity: 1; } }
@keyframes lnfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes lnl { from { opacity: 0; transform: translate(-40px, 50px); } 20% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes lnr { from { opacity: 0; transform: translate(40px, 50px); } 20% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes lnthread { from { opacity: 0; transform: translateY(50px) scaleX(2.54); } 20% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes lnpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes lnsway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes flame { from { transform: scale(1, 1); } to { transform: scale(.85, 1.15); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* Анимация «Шар в облаках» */
.anim-balloon .bl-balloon, .anim-balloon .bl-cloud, .anim-balloon .bl-flame, .anim-balloon .bl-flame-glow { will-change: transform; transform-box: fill-box; }
.anim-balloon .bl-balloon { transform-origin: 50% 0; animation: blfloat 5s ease-in-out infinite; }
.anim-balloon .bl-cloud-back { animation: drift 16s ease-in-out infinite alternate; --dx: -16px; }
.anim-balloon .bl-cloud-mid { animation: drift 11s ease-in-out infinite alternate; --dx: 20px; }
.anim-balloon .bl-cloud-front { animation: drift 8s ease-in-out infinite alternate; --dx: -26px; }
.anim-balloon .bl-flame { transform-origin: 50% 100%; animation: flame .4s ease-in-out infinite alternate; }
.anim-balloon .bl-flame-glow { transform-origin: 50% 50%; animation: lampglow 1.4s ease-in-out infinite; }
@keyframes blfloat { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(var(--dx)); } }

@media (prefers-reduced-motion: reduce) {
  .scene, .scene *, .owl-zone *, .feather { animation: none !important; transition: none !important; }
  .owl-tap-hint,
  .owl-tap-ripples > span { animation: none; }
  .branch-owl.gone { opacity: 0; }
}
