/* ==========================================================================
   Teddy House — стили витрины
   ========================================================================== */

/* ---------- Шрифты (локально, без Google) ---------- */
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2665; }
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: italic; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-500-italic.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: italic; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: italic; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-600-italic.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: italic; font-display: swap; src: url(../fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(../fonts/manrope-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(../fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-21FF; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url(../fonts/manrope-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url(../fonts/manrope-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-21FF; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(../fonts/manrope-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(../fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-21FF; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(../fonts/manrope-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(../fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-21FF; }
@font-face { font-family: "Caveat"; font-weight: 500; font-display: swap; src: url(../fonts/caveat-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 500; font-display: swap; src: url(../fonts/caveat-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2665; }

/* ---------- Токены ---------- */
:root {
  --bg: #F5F8FC;
  --bg-2: #E8EFF8;
  --paper: #FFFFFF;
  --ink: #1E2638;
  --ink-2: #576176;
  --ink-3: #8D96A8;
  --line: #DAE3EE;
  --rose: #4F86C6;      /* основной акцент — голубой, как носик Tatty Teddy */
  --rose-d: #2E5E9C;
  --blush: #DDE9F7;
  --pink: #F6D9DC;
  --heart: #E7828C;
  --gold: #CFA54C;
  --sage: #E1EEE7;
  --sky: #DCEAF8;
  --butter: #F6EDD6;
  --lilac: #E8E5F4;
  --fur: #B9C3CF;
  --ok: #3F8A6A;

  --f-display: "Cormorant", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", cursive;

  --r-sm: 12px;
  --r: 22px;
  --r-lg: 34px;
  --shadow-sm: 0 1px 2px rgba(20,30,52,.05), 0 4px 14px rgba(20,30,52,.05);
  --shadow: 0 2px 6px rgba(20,30,52,.04), 0 18px 40px -12px rgba(36,58,98,.18);
  --shadow-lg: 0 30px 80px -20px rgba(36,58,98,.35);
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html, body { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
::selection { background: var(--blush); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

.kicker {
  font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--rose-d);
  margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
h2 { font: 500 clamp(34px, 4.6vw, 58px)/1.02 var(--f-display); letter-spacing: -.01em; }
h2 em, h1 em { font-style: italic; color: var(--rose-d); }

/* ---------- Кнопки ---------- */
.btn {
  --bg-btn: var(--paper); --fg-btn: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--bg-btn); color: var(--fg-btn); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.97); }
.btn-primary { --bg-btn: var(--rose); --fg-btn: #fff; box-shadow: 0 10px 24px -10px rgba(46,94,156,.7); }
.btn-primary:hover { --bg-btn: var(--rose-d); box-shadow: 0 16px 34px -12px rgba(46,94,156,.8); }
.btn-dark { --bg-btn: var(--ink); --fg-btn: #fff; }
.btn-dark:hover { --bg-btn: #000; }
.btn-light { --bg-btn: #fff; --fg-btn: var(--ink); }
.btn-ghost { --bg-btn: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-lg { height: 58px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.icon-btn:hover { background: var(--bg-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.link-arrow .ico { width: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Бегущая строка сверху ---------- */
.topbar { background: var(--ink); color: #F4ECE2; font-size: 13px; overflow: hidden; height: 38px; display: flex; align-items: center; }
.topbar-track { display: flex; gap: 56px; white-space: nowrap; animation: marquee 38s linear infinite; padding-left: 56px; }
.topbar-track span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-track .ico { width: 16px; height: 16px; color: var(--blush); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .3s, background .3s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(36,58,98,.25); }
.header-in { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-mark { width: 40px; height: 40px; object-fit: contain; transition: transform .6s var(--ease-spring); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }
.logo-text { font: 600 26px/1 var(--f-display); letter-spacing: .01em; display: flex; flex-direction: column; }
.logo-name { white-space: nowrap; letter-spacing: .02em; }
.logo-text .tld { color: var(--rose); }
img.logo-mark { width: 46px; height: 46px; }
.logo-text small { font: 600 10px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: 15px; position: relative; transition: background .2s; }
.nav a:hover { background: var(--bg-2); }
.nav a.is-active { background: var(--paper); box-shadow: var(--shadow-sm); }
.nav-phone { display: none !important; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { font-weight: 600; font-size: 15px; padding: 0 8px; }
.cart-btn {
  position: relative; width: 50px; height: 50px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  transition: transform .4s var(--ease-spring), background .2s;
}
.cart-btn:hover { transform: scale(1.06); background: #000; }
.cart-btn.is-bump { animation: bump .6s var(--ease-spring); }
@keyframes bump { 30% { transform: scale(1.22) rotate(-8deg); } 60% { transform: scale(.94) rotate(4deg); } }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--rose); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg);
}
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; place-items: center; background: var(--paper); box-shadow: var(--shadow-sm); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(20px, 2.6vw, 36px) 0 clamp(28px, 3vw, 44px); }
.hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; animation: blob 18s ease-in-out infinite alternate; }
.hero-blobs i:nth-child(1) { width: 520px; height: 520px; background: var(--blush); right: -120px; top: -80px; }
.hero-blobs i:nth-child(2) { width: 420px; height: 420px; background: var(--pink); right: 26%; bottom: -160px; animation-delay: -6s; }
.hero-blobs i:nth-child(3) { width: 380px; height: 380px; background: #E4EEFA; left: -140px; top: 30%; animation-delay: -12s; }
@keyframes blob { 50% { transform: translate(40px, -30px) scale(1.08); } 100% { transform: translate(-30px, 40px) scale(.95); } }
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--paper); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(63,138,106,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(63,138,106,0); } 100% { box-shadow: 0 0 0 0 rgba(63,138,106,0); } }
.hero-title { font: 500 clamp(34px, 3.8vw, 54px)/1.06 var(--f-display); letter-spacing: -.02em; margin: 18px 0 16px; }
.hero-title em { font-style: italic; color: var(--rose-d); white-space: nowrap; position: relative; }
.hero-title em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 50 1 100 6 T 198 4' fill='none' stroke='%234F86C6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: left; transform: scaleX(0); animation: draw 1.1s 1.1s var(--ease) forwards;
}
@keyframes draw { to { transform: scaleX(1); } }
.hero-lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); max-width: 520px; }
.hero-lead b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; align-items: center; gap: 22px; margin: 22px 0 0; flex-wrap: wrap; }
.hero-from { font: 600 17px/1 var(--f-body); color: var(--ink-2); }
.hero-trust { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.hero-trust .ico { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-sm); color: var(--rose-d); }
.hero-trust b { display: block; color: var(--ink); font-size: 14px; }

.hero-art { position: relative; aspect-ratio: 1 / 1.02; max-width: 430px; justify-self: center; width: 100%; }
.hero-ring {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #fff 45%, rgba(255,255,255,0) 72%);
}
.hero-ring::before {
  content: ""; position: absolute; inset: -4%; border-radius: 50%;
  border: 1.5px dashed rgba(46,94,156,.3); animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-scene { position: absolute; inset: 4% 3% 2%; pointer-events: none; }
.watercolor {
  position: absolute; inset: 10%; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background:
    radial-gradient(circle at 30% 30%, rgba(246,196,204,.95), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(244,206,212,.9), transparent 60%),
    radial-gradient(circle at 60% 25%, rgba(214,230,248,.9), transparent 50%),
    radial-gradient(circle at 25% 75%, rgba(250,226,230,.95), transparent 55%);
  filter: blur(14px); animation: morph 14s ease-in-out infinite alternate;
}
@keyframes morph { 50% { border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; transform: rotate(6deg) scale(1.03); } }
.gold-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 90s linear infinite; }
.hero-bear { position: absolute; inset: 15% 15% 3%; cursor: pointer; transform-origin: 50% 90%; z-index: 2; }
.hero-bear .bear, .cta-bear .bear { width: 100%; height: 100%; overflow: visible; }
.hero-bear:has(.bear-img) { inset: 17% 17% 5%; }
.bear-img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(36,58,98,.18)); animation: breathe 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes breathe { 50% { transform: scale(1.015, .99) rotate(-.6deg); } }
.hero-bear.is-hug .bear-img { animation: hug .8s var(--ease-spring); }
.empty-bear .bear-img, .order-bear .bear-img { height: auto; }
.bear .bear-head { transform-origin: 200px 270px; transition: transform .8s var(--ease); }
.bear .bear-eye { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
.bear .bear-eyes { transition: transform .25s ease-out; }
.bear .bear-ear { transform-box: fill-box; transform-origin: 50% 90%; }
.bear .bear-heart { transform-box: fill-box; transform-origin: center; animation: beat 2.4s var(--ease) infinite; }
.bear:hover .bear-ear-l { animation: wiggle .7s var(--ease); }
.bear:hover .bear-ear-r { animation: wiggle .7s .1s var(--ease) reverse; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.09); } 30% { transform: scale(.98); } 45% { transform: scale(1.05); } }
@keyframes wiggle { 30% { transform: rotate(-10deg); } 60% { transform: rotate(6deg); } }
.hero-bear.is-hug .bear { animation: hug .8s var(--ease-spring); }
@keyframes hug { 35% { transform: scale(1.06, .94); } 70% { transform: scale(.97, 1.03); } }
.sparkle { position: absolute; width: var(--s, 22px); height: var(--s, 22px); color: var(--gold); pointer-events: none; animation: twinkle var(--t, 3s) ease-in-out infinite; animation-delay: var(--dl, 0s); filter: drop-shadow(0 0 6px rgba(240,200,110,.6)); }
.sparkle svg { width: 100%; height: 100%; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.5) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero > .wrap, .cta-in { position: relative; z-index: 1; }
.hero-note {
  position: absolute; left: -2%; top: 8%; font: 500 34px/1 var(--f-hand); color: #C46A78;
  transform: rotate(-8deg); display: flex; align-items: flex-end; gap: 2px; z-index: 3;
}
.hero-note svg { width: 70px; height: 44px; margin-left: -4px; transform: translateY(28px) rotate(8deg); }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 20px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow); font-size: 13px; font-weight: 500; line-height: 1.3; max-width: 240px;
  transition: box-shadow .3s, transform .3s var(--ease);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip:hover { box-shadow: var(--shadow-lg); }
.float-chip img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--bg-2); }
.float-chip b { display: block; font-size: 15px; font-weight: 700; margin-top: 2px; }
.float-chip-0 { right: -8%; top: 1%; }
.float-chip-1 { left: -8%; bottom: 20%; animation-delay: -2s; }
.float-chip-2 { right: -4%; bottom: 2%; animation-delay: -4s; }
.hearts { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.heart-p { position: absolute; z-index: 4; color: var(--heart); font-size: 22px; line-height: 1; animation: heartUp 2.4s var(--ease) forwards; will-change: transform, opacity; }
@keyframes heartUp {
  0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), -220px) scale(1.15) rotate(var(--rot)); }
}
.scroll-hint { position: absolute; left: 50%; bottom: 20px; width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid var(--ink-3); transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink-2); animation: scrollHint 1.8s infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Появление заголовков по словам */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms + 100ms); }
.is-ready [data-split] .w > span { transform: none; }
[data-split-fade] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-ready [data-split-fade] { opacity: 1; transform: none; }
.is-ready [data-split-fade]:nth-of-type(2) { transition-delay: .5s; }
.hero-copy > [data-split-fade]:nth-child(1) { transition-delay: .05s; }
.hero-copy > [data-split-fade]:nth-child(3) { transition-delay: .55s; }
.hero-copy > [data-split-fade]:nth-child(4) { transition-delay: .7s; }
.hero-copy > [data-split-fade]:nth-child(5) { transition-delay: .85s; }
.hero-art { opacity: 0; transform: scale(.94) translateY(20px); transition: opacity 1.2s .2s var(--ease), transform 1.4s .2s var(--ease); }
.is-ready .hero-art { opacity: 1; transform: none; }

/* Появление при скролле */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Бегущая строка ---------- */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: var(--paper); transform: rotate(-1.2deg) scale(1.02); margin: 0; position: relative; z-index: 2; }
.marquee-track { display: flex; align-items: center; gap: 40px; white-space: nowrap; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font: italic 500 clamp(30px, 4vw, 52px)/1 var(--f-display); }
.marquee-track i { font-style: normal; color: var(--gold); font-size: 28px; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section-first { padding-top: clamp(28px, 3vw, 44px); }
.section-first .section-head { margin-bottom: 22px; }
.section-first h2 { font-size: clamp(30px, 3vw, 42px); }
.section-tight { padding-top: 24px; }
.section-tint { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Карточки товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r);
  box-shadow: var(--shadow-sm); transform-style: preserve-3d;
  transition: box-shadow .5s var(--ease), transform .6s var(--ease), opacity .9s var(--ease);
  will-change: transform;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: var(--bg-2); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-alt { opacity: 0; }
.card:hover .card-alt { opacity: 1; }
.card-badges { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; box-shadow: var(--shadow-sm); }
.badge-rose { background: var(--rose); color: #fff; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-soft { background: var(--butter); color: #7A5B16; }
.badge-lg { position: absolute; top: 20px; left: 20px; height: 34px; font-size: 15px; padding: 0 14px; z-index: 2; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; transform: translateZ(20px); }
.card-cat { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 6px; }
.card-title { font: 600 15px/1.4 var(--f-body); margin-bottom: 16px; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
/* Цены — шрифтом Manrope: у Cormorant старинные цифры и нет своего знака ₽ */
.price strong { font: 700 19px/1 var(--f-body); letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.price s { color: var(--ink-3); font-size: 14px; }
.add-btn {
  position: relative; z-index: 3; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; flex: none; overflow: hidden;
  transition: transform .45s var(--ease-spring), background .3s;
}
.add-btn:hover { transform: scale(1.12) rotate(90deg); background: var(--rose); }
.add-btn > span { grid-area: 1 / 1; display: grid; place-items: center; transition: transform .45s var(--ease), opacity .3s; }
.add-done { transform: translateY(120%); opacity: 0; }
.add-btn.is-added { background: var(--ok); transform: none; }
.add-btn.is-added .add-ico { transform: translateY(-120%); opacity: 0; }
.add-btn.is-added .add-done { transform: none; opacity: 1; }
.card.is-sold .card-media img { filter: grayscale(.8); opacity: .6; }
.card.is-sold .price strong { color: var(--ink-3); }

/* «Летящий» товар в корзину */
.fly { position: fixed; z-index: 200; width: 70px; height: 70px; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: var(--shadow-lg); border: 3px solid #fff; }

/* ---------- Бенто категорий ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: clamp(12px, 1.6vw, 22px); }
.bento-item { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--blush); display: flex; align-items: flex-end; padding: 24px; isolation: isolate; }
.bento-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 1.4s var(--ease); }
.bento-item::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,30,52,0) 35%, rgba(20,30,52,.62)); transition: opacity .5s; }
.bento-item > span { z-index: 2; }
.bento-label strong, .bento-label small { text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.bento-item:hover img { transform: scale(1.08); }
.bento-0 { grid-column: span 2; grid-row: span 2; }
.bento-1 { background: var(--sky); }
.bento-2 { background: var(--sage); }
.bento-3 { background: var(--butter); }
.bento-4 { background: var(--lilac); }
.bento-label { color: #fff; display: flex; flex-direction: column; gap: 4px; }
.bento-label strong { font: 500 clamp(26px, 2.6vw, 38px)/1 var(--f-display); }
.bento-0 .bento-label strong { font-size: clamp(34px, 4vw, 58px); }
.bento-label small { font-size: 13px; opacity: .9; }
.bento-go { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; transform: scale(.6) rotate(-45deg); opacity: 0; transition: transform .5s var(--ease-spring), opacity .3s; }
.bento-item:hover .bento-go { transform: none; opacity: 1; }

/* ---------- Чипы ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 14px;
  transition: background .25s, box-shadow .25s, transform .4s var(--ease-spring), color .25s;
}
.chip sup { font-size: 11px; color: var(--ink-3); top: -.6em; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.chip.is-on sup { color: rgba(255,255,255,.6); }
.chip-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.chips-lg .chip { height: 62px; padding: 0 30px; font: 500 26px/1 var(--f-display); }
.chips-label { align-self: center; font-size: 13px; color: var(--ink-3); margin-right: 4px; }
.occasions { padding-block: clamp(40px, 6vw, 90px); }
.occasions-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.occasions-in h2 { margin-bottom: 34px; }
.occasions-in .chips { justify-content: center; max-width: 900px; }

/* ---------- Открытка ---------- */
.gift-promo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.gift-card { perspective: 1200px; }
.gift-card-inner {
  position: relative; aspect-ratio: 1.35; border-radius: 8px; padding: clamp(28px, 4vw, 56px);
  background: #FFFEFC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: 0 1px 0 #EADFD3, 0 40px 80px -30px rgba(36,58,98,.45), 0 0 0 10px #fff inset, 0 0 0 11px var(--blush) inset;
  transform: rotate(-4deg); transition: transform 1s var(--ease);
  display: flex; align-items: center;
}
.gift-card:hover .gift-card-inner { transform: rotate(-1deg) translateY(-6px) rotateX(6deg); }
.gift-stamp { position: absolute; top: 24px; right: 28px; width: 64px; height: 76px; border: 2px dashed var(--rose); border-radius: 6px; display: grid; place-items: center; color: var(--rose); font-size: 30px; transform: rotate(6deg); }
.handwrite { font: 500 clamp(28px, 3vw, 42px)/1.25 var(--f-hand); color: #3B3A5A; min-height: 3.75em; }
.handwrite .caret { display: inline-block; width: 2px; height: .9em; background: currentColor; margin-left: 2px; vertical-align: -.1em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.handwrite-sm { font: 500 22px/1.3 var(--f-hand); }
.gift-copy h2 { margin-bottom: 22px; }
.gift-copy > p { color: var(--ink-2); font-size: 17px; max-width: 520px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.ticks .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--sage); color: var(--ok); }

/* ---------- Шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 32px 28px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s; }
.steps li:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.steps li:nth-child(2) { --d: .1s; } .steps li:nth-child(3) { --d: .2s; } .steps li:nth-child(4) { --d: .3s; }
.step-n { position: absolute; top: 22px; right: 26px; font: italic 500 46px/1 var(--f-display); color: var(--blush); }
.steps .ico { width: 54px; height: 54px; padding: 14px; border-radius: 18px; background: var(--blush); color: var(--rose-d); margin-bottom: 26px; }
.steps li:nth-child(2) .ico { background: var(--sky); color: #2E5E9C; }
.steps li:nth-child(3) .ico { background: var(--butter); color: #8A6A1E; }
.steps li:nth-child(4) .ico { background: var(--sage); color: var(--ok); }
.steps h3 { font: 600 26px/1.1 var(--f-display); margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 14px; }

/* ---------- FAQ / аккордеоны ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq-list details, .acc details { border-bottom: 1px solid var(--line); }
.faq-list summary, .acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-weight: 600; font-size: 18px;
}
.acc summary { font-size: 16px; padding: 18px 0; }
summary::-webkit-details-marker { display: none; }
summary .ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), background .3s; }
details[open] summary .ico { transform: rotate(135deg); background: var(--rose); color: #fff; }
.faq-list details > p, .acc details > div { padding: 0 0 24px; color: var(--ink-2); max-width: 680px; animation: fadeIn .5s var(--ease); }
.faq-list a, .prose a { color: var(--rose-d); text-decoration: underline; text-underline-offset: 3px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0 clamp(270px, 24vw, 320px); text-align: center; }
.cta::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 30% 30%, rgba(120,170,230,.35), transparent 40%), radial-gradient(circle at 70% 60%, rgba(150,170,210,.25), transparent 40%); animation: blob 20s ease-in-out infinite alternate; }
.cta-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta h2 { font-size: clamp(42px, 6.4vw, 92px); max-width: 1000px; }
.cta h2 em { color: #A9CBF2; }
.cta p { color: rgba(255,255,255,.7); font-size: 17px; margin-bottom: 12px; }
/* Мишка выглядывает из-за верхнего края подвала: лапы лежат на кромке */
.footer { position: relative; }
.footer-bear { position: absolute; left: 50%; top: 0; width: 380px; z-index: 3; pointer-events: none; }
.footer-bear[data-reveal] { opacity: 0; transform: translate(-50%, -80%); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.footer-bear.is-in { opacity: 1; transform: translate(-50%, -88%); }
.footer-bear .bear-img { height: auto; animation: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); }
.footer-bear .bear { width: 100%; height: auto; }
/* Картинка «выглядывает»: нижняя линия рисунка ложится на край блока */
.bear-img-peek { animation: none; filter: drop-shadow(0 -10px 30px rgba(0,0,0,.25)); }

/* ---------- Подвал ---------- */
.footer { background: #172033; color: rgba(255,255,255,.72); padding: 80px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h3 { font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin-top: 18px; max-width: 340px; }
.logo-footer .logo-text { color: #fff; }
.footer-legal { font-size: 12px; opacity: .6; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pay-logos span { padding: 5px 9px; border-radius: 6px; border: 1px solid rgba(255,255,255,.18); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; opacity: .6; }

/* ---------- Шторка корзины ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(20,30,52,.4); backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s var(--ease); }
.drawer-panel {
  position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(460px, calc(100% - 20px));
  background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; transform: translateX(110%); transition: transform .6s var(--ease);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 12px; }
.drawer-head h2 { font-size: 36px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.drawer-total strong { font: 700 24px/1 var(--f-body); }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); animation: fadeIn .4s var(--ease); }
.line img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; background: var(--bg-2); }
.line-name { font-weight: 600; font-size: 14px; line-height: 1.35; display: block; margin-bottom: 8px; }
.line-price { font: 700 16px/1 var(--f-body); text-align: right; }
.line-price s { display: block; font: 400 12px var(--f-body); color: var(--ink-3); margin-top: 4px; }
.line-del { color: var(--ink-3); margin-top: 10px; display: inline-flex; }
.line-del:hover { color: var(--rose-d); }
.line-del .ico { width: 18px; height: 18px; }
.line-warn { display: block; font-size: 12px; color: var(--rose-d); margin-top: 4px; }
.drawer-empty { text-align: center; padding: 60px 10px; color: var(--ink-2); }
.drawer-empty .bear-mini { width: 120px; margin: 0 auto 18px; opacity: .9; }
.drawer-empty img.bear-mini { width: 190px; opacity: 1; }

.qty { display: inline-flex; align-items: center; height: 36px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.qty button { width: 34px; height: 100%; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { color: var(--rose-d); }
.qty button[disabled] { opacity: .3; }
.qty .ico { width: 15px; height: 15px; }
.qty input, .qty span { width: 30px; text-align: center; border: 0; background: none; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.free-ship { padding: 14px 24px; }
.drawer .free-ship { margin: 0 24px; padding: 14px 16px; background: var(--paper); border-radius: var(--r-sm); }
.free-ship p { font-size: 13px; margin-bottom: 8px; color: var(--ink-2); }
.free-ship p b { color: var(--ink); }
.free-bar { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.free-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--rose), #9CC0EC); transition: width .8s var(--ease); }
.free-ship.is-done .free-bar span { background: var(--ok); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 200%); opacity: 0; visibility: hidden;
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); max-width: calc(100% - 32px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast { transition: transform .5s var(--ease), opacity .3s, visibility .5s; }

/* ---------- Внутренние страницы ---------- */
.page-hero { padding: 36px 0 12px; }
.page-title { font: 500 clamp(44px, 6vw, 84px)/1 var(--f-display); letter-spacing: -.02em; margin: 18px 0 12px; }
.page-sub { color: var(--ink-2); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); padding-top: 12px; }
.crumbs .ico { width: 14px; height: 14px; }
.crumbs a:hover { color: var(--ink); }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.chips-sub { margin-bottom: 36px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.sort select { height: 44px; padding: 0 40px 0 18px; border-radius: 999px; border: 0; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E2638' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; box-shadow: inset 0 0 0 1.5px var(--line); appearance: none; font-weight: 600; color: var(--ink); cursor: pointer; }
.empty { text-align: center; padding: 60px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; color: var(--ink-2); font-size: 18px; }
.empty-bear { width: 200px; }
.empty-bear .bear, .order-bear .bear { width: 100%; height: auto; }
.prose-page { max-width: 860px; }
.prose p { margin-bottom: 1em; }
.prose h2 { font-size: 34px; margin: 1.4em 0 .5em; }
.note-box { background: var(--butter); padding: 14px 18px; border-radius: var(--r-sm); font-size: 14px; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 30px; }
.info-card { background: var(--paper); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
a.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card .ico { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--blush); color: var(--rose-d); margin-bottom: 16px; }
.info-card h3 { font: 600 24px/1.1 var(--f-display); margin-bottom: 8px; }
.info-card p { color: var(--ink-2); font-size: 14px; margin: 0; }

/* ---------- Карточка товара ---------- */
.product { padding-bottom: 40px; }
.product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: 24px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.gallery-main img.is-on { opacity: 1; transform: none; }
.gallery-main.is-zoom img.is-on { transform: scale(2); transition: transform .2s ease-out; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 4px; }
.gallery-thumbs button { width: 84px; height: 84px; flex: none; border-radius: 16px; overflow: hidden; opacity: .55; transition: opacity .3s, box-shadow .3s; }
.gallery-thumbs button.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-d); }
.buy-title { font: 500 clamp(26px, 2.4vw, 34px)/1.15 var(--f-display); letter-spacing: -.005em; margin: 10px 0 16px; }
.buy-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.buy-price strong { font: 700 34px/1 var(--f-body); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.buy-price s { font-size: 20px; color: var(--ink-3); }
.save { background: var(--blush); color: var(--rose-d); font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.stock { background: var(--paper); border-radius: var(--r); padding: 16px 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.stock-row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.stock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; flex: none; }
.stock-ship { margin-left: auto; font-weight: 500; color: var(--ink-3); font-size: 13px; }
.stock-bar { height: 5px; background: var(--bg-2); border-radius: 9px; margin-top: 12px; overflow: hidden; }
.stock-bar span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #9CC0EC, var(--rose)); border-radius: inherit; animation: grow 1.4s .3s var(--ease) backwards; }
@keyframes grow { from { width: 0; } }
.stock-out { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.stock-out .stock-dot { background: var(--ink-3); animation: none; }
.buy-actions { display: flex; gap: 12px; margin-bottom: 26px; }
.buy-actions .qty { height: 58px; }
.buy-actions .qty button { width: 46px; }
.buy-actions .qty input { width: 36px; font-size: 17px; }
.buy-btn { flex: 1; }
.buy-btn > span { transition: transform .45s var(--ease), opacity .3s; display: inline-flex; align-items: center; gap: 8px; }
.buy-btn-done { position: absolute; transform: translateY(150%); opacity: 0; }
.buy-btn.is-added { --bg-btn: var(--ok); box-shadow: 0 10px 24px -10px rgba(63,138,106,.7); }
.buy-btn.is-added .buy-btn-txt { transform: translateY(-150%); opacity: 0; }
.buy-btn.is-added .buy-btn-done { transform: none; opacity: 1; }
.perks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; }
.perks li { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.perks .ico { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-sm); color: var(--rose-d); }
.perks b { display: block; font-size: 14px; }
.perks span { font-size: 13px; color: var(--ink-2); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; font-size: 14px; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; font-weight: 500; }
.sticky-buy { display: none; }

/* ---------- Оформление заказа ---------- */
.checkout { padding-bottom: 80px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 420px; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 20px; }
.step { border: 0; margin: 0 0 18px; padding: 28px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.step legend { float: left; width: 100%; display: flex; align-items: center; gap: 14px; font: 500 30px/1 var(--f-display); margin-bottom: 22px; }
.step legend > span { width: 36px; height: 36px; border-radius: 50%; background: var(--blush); color: var(--rose-d); display: grid; place-items: center; font: 700 15px/1 var(--f-body); }
.step legend i { font: 400 14px var(--f-body); color: var(--ink-3); }
.step-hint { clear: both; color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.step-hint a { color: var(--rose-d); text-decoration: underline; }
.fields { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-size: 13px; font-weight: 600; }
.field > span i { font-weight: 400; color: var(--ink-3); font-style: normal; }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: 14px; background: var(--bg); padding: 15px 16px; font-size: 16px;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, background .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--rose); }
.field.has-err input { box-shadow: inset 0 0 0 2px var(--rose-d); background: #F2F7FD; }
.field em, .err-block { font-style: normal; font-size: 12.5px; color: var(--rose-d); min-height: 0; }
.err-block:empty { display: none; }
.err-block { display: block; margin-top: 8px; }
.note-field { margin: 18px 0 16px; }
.note-field textarea { font: 500 22px/1.3 var(--f-hand); color: #3B3A5A; background: #FFFEFC; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cdek-box { clear: both; border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line); }
.cdek-map { height: 520px; position: relative; }
.cdek-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-size: 14px; background: var(--bg); }
.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--rose); animation: spin 0.8s linear infinite; vertical-align: -4px; margin-right: 8px; }
.delivery-picked { margin-top: 14px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--sage); display: flex; gap: 12px; align-items: flex-start; font-size: 14px; animation: fadeIn .4s var(--ease); }
.delivery-picked .ico { color: var(--ok); margin-top: 2px; }
.delivery-picked b { display: block; }
.pay-options { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; height: 100%; transition: box-shadow .25s, background .25s, transform .3s var(--ease); }
.pay-card:hover { transform: translateY(-2px); }
.pay-card b { display: block; font-size: 15px; }
.pay-card small { color: var(--ink-2); font-size: 12.5px; line-height: 1.4; display: block; margin-top: 3px; }
.pay-ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--bg-2); transition: background .25s, color .25s; }
.pay-opt input:checked + .pay-card { box-shadow: inset 0 0 0 2px var(--ink); background: var(--bg); }
.pay-opt input:checked + .pay-card .pay-ico { background: var(--ink); color: #fff; }
.pay-opt input:focus-visible + .pay-card { outline: 2px solid var(--rose); outline-offset: 2px; }
.switch { clear: both; display: flex; align-items: center; gap: 14px; cursor: pointer; font-size: 15px; }
.switch input { position: absolute; opacity: 0; }
.switch-ui { width: 50px; height: 30px; flex: none; border-radius: 99px; background: var(--line); position: relative; transition: background .3s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease-spring); }
.switch input:checked + .switch-ui { background: var(--rose); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--rose); outline-offset: 2px; }
.switch small { display: block; color: var(--ink-3); font-size: 13px; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-card { background: var(--paper); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.summary-card h2 { font-size: 34px; margin-bottom: 8px; }
.summary-items { max-height: 340px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.summary-items .line { grid-template-columns: 60px 1fr auto; }
.summary-items .line img { width: 60px; height: 60px; border-radius: 12px; }
.summary-lines { margin: 18px 0 0; display: grid; gap: 10px; font-size: 14px; }
.summary-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines dt { color: var(--ink-2); }
.summary-lines dd { margin: 0; font-weight: 600; text-align: right; }
.summary-total { padding-top: 14px; margin-top: 6px; border-top: 1px dashed var(--line); align-items: baseline; }
.summary-total dt { color: var(--ink) !important; font-weight: 600; font-size: 16px; }
.summary-total dd { font: 700 26px/1 var(--f-body) !important; }
.summary .free-ship { padding: 14px 0 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); margin: 18px 0 14px; cursor: pointer; }
.agree input { accent-color: var(--rose); width: 18px; height: 18px; flex: none; margin: 0; }
.agree a { text-decoration: underline; }
.summary-safe { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); margin-top: 14px; justify-content: center; }
.summary-safe .ico { width: 16px; height: 16px; }

/* ---------- Страница заказа ---------- */
.order-page { padding: 40px var(--gutter) 100px; max-width: 820px; }
.order-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 30px 0 40px; position: relative; }
.order-hero p { color: var(--ink-2); max-width: 560px; }
.order-hero .page-title { margin: 0; }
.order-bear { width: 190px; }
.order-bear-peek { width: 280px; }
.order-card { background: var(--paper); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.order-card h2 { font-size: 32px; margin-bottom: 14px; }
.order-items { list-style: none; padding: 0; margin: 0 0 24px; }
.order-items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.order-items i { color: var(--ink-3); font-style: normal; }
.order-total { font-size: 18px !important; border-bottom: 0 !important; }
.order-total b { font: 700 24px/1 var(--f-body); }
.confetti { position: fixed; top: -30px; z-index: 300; pointer-events: none; font-size: 22px; animation: confetti linear forwards; }
@keyframes confetti { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .header-phone { display: none; }
  .checkout-grid { grid-template-columns: 1fr 360px; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .burger { display: grid; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 38px) 0 auto 0; margin: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 16px var(--gutter) 28px; gap: 2px; box-shadow: 0 30px 40px -20px rgba(20,30,52,.25);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .4s var(--ease), opacity .3s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { font: 500 30px/1.2 var(--f-display); padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a.is-active { background: none; box-shadow: none; }
  .nav-phone { display: flex !important; align-items: center; gap: 10px; font: 600 17px var(--f-body) !important; border: 0 !important; margin-top: 10px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 300px; order: -1; margin-top: -6px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-title { margin-top: 16px; }
  .hero-cta { justify-content: center; margin: 22px 0 8px; }
  .hero-trust { justify-content: center; gap: 18px; }
  .hero-note { display: none; }
  .float-chip-0 { display: none; }
  .float-chip-1 { left: -2%; bottom: 2%; }
  .scroll-hint { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gift-promo, .faq, .product-grid, .checkout-grid { grid-template-columns: 1fr; }
  .gallery, .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .sticky-buy {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 10px 10px 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lg);
    transform: translateY(150%); transition: transform .5s var(--ease);
  }
  .sticky-buy.is-on { transform: none; }
  .sticky-buy b { display: block; font-size: 13px; }
  .sticky-buy span { font: 700 17px/1 var(--f-body); }
}
@media (max-width: 640px) {
  .topbar { font-size: 12px; height: 34px; }
  .nav { inset: calc(var(--header-h) + 34px) 0 auto 0; }
  .logo-text { font-size: 22px; }
  .logo-text small { font-size: 9px; }
  .logo-mark, img.logo-mark { width: 36px; height: 36px; }
  .logo { gap: 8px; }
  .logo-text { font-size: 20px; }
  .cart-btn { width: 46px; height: 46px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 18px; }
  .card-media { border-radius: 18px 18px 0 0; }
  .card-body { padding: 12px 12px 14px; }
  .card-title { font-size: 13px; margin-bottom: 10px; }
  .card-cat { font-size: 10px; }
  .price strong { font-size: 16px; }
  .price s { font-size: 12px; }
  .add-btn { width: 38px; height: 38px; }
  .card-badges { top: 8px; left: 8px; }
  .badge { height: 22px; font-size: 11px; padding: 0 8px; }
  .float-chip { padding: 6px 12px 6px 6px; font-size: 11px; max-width: 170px; border-radius: 16px; }
  .float-chip img { width: 38px; height: 38px; border-radius: 10px; }
  .float-chip b { font-size: 13px; }
  .float-chip-1 { left: -2%; }
  .float-chip-2 { display: none; }
  .hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
  .hero-trust li { flex-direction: column; text-align: center; gap: 6px; font-size: 11px; }
  .hero-trust b { font-size: 13px; }
  .eyebrow-more { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .chips-lg .chip { height: 50px; padding: 0 22px; font-size: 21px; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-auto-rows: 170px; }
  .bento-0 { grid-column: span 2; grid-row: span 1; }
  .bento-item { padding: 18px; border-radius: 24px; }
  .bento-go { display: none; }
  .fields, .pay-options { grid-template-columns: 1fr; }
  .step { padding: 22px 18px; border-radius: 24px; }
  .step legend { font-size: 26px; }
  .cdek-map { height: 460px; }
  .summary-card { padding: 22px 18px; }
  .buy-price strong { font-size: 30px; }
  .stock-ship { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter); scrollbar-width: none; }
  .filters .chip { flex: none; }
  .footer-bear { width: 260px; }
  .hero-art { max-width: 250px; }
  .hero-title { margin: 12px 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], [data-split-fade], .hero-art { opacity: 1 !important; transform: none !important; }
  .footer-bear[data-reveal] { transform: translate(-50%, -88%) !important; }
  [data-split] .w > span { transform: none !important; }
}

/* ==========================================================================
   Переходы между страницами (View Transitions: Chrome, Яндекс.Браузер, Edge, Safari 18.2+)
   ========================================================================== */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
.header { view-transition-name: header; }
.footer { view-transition-name: footer; }
::view-transition-old(root) { animation: vt-out .38s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vt-in .6s cubic-bezier(.22,1,.36,1) .08s both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-18px) scale(.985); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(26px) scale(.99); filter: blur(4px); } }
/* фото товара «перетекает» из карточки на страницу товара */
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.22,1,.36,1); }
::view-transition-image-pair(*) { isolation: isolate; }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: cover; overflow: clip; }

/* ==========================================================================
   Заставка первого экрана
   ========================================================================== */
.gold-ring circle:first-of-type { stroke-dasharray: 1120; stroke-dashoffset: 1120; }
.gold-ring ellipse { opacity: 0; }
.gold-ring circle:last-of-type { opacity: 0; }
.is-ready .gold-ring circle:first-of-type { animation: ringDraw 2.2s .35s cubic-bezier(.65,0,.35,1) forwards; }
.is-ready .gold-ring ellipse { animation: fadeIn2 1.2s 1.6s ease forwards; }
.is-ready .gold-ring circle:last-of-type { animation: fadeIn2 1.4s 1.9s ease forwards; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn2 { to { opacity: .8; } }
.watercolor { opacity: 0; transform: scale(.6); transition: opacity 1.4s .2s ease, transform 1.6s .2s cubic-bezier(.22,1,.36,1); }
.is-ready .watercolor { opacity: 1; transform: none; }
.hero-bear { opacity: 0; translate: 0 -40px; scale: .82; transition: opacity .6s .55s ease, translate 1.1s .55s cubic-bezier(.34,1.56,.64,1), scale 1.1s .55s cubic-bezier(.34,1.56,.64,1); }
.is-ready .hero-bear { opacity: 1; translate: 0 0; scale: 1; }
.hero-art .sparkle { scale: 0; transition: scale .7s cubic-bezier(.34,1.56,.64,1); }
.is-ready .hero-art .sparkle { scale: 1; }
.is-ready .hero-art .sparkle:nth-of-type(1) { transition-delay: 1.3s; } .is-ready .hero-art .sparkle:nth-of-type(2) { transition-delay: 1.45s; }
.is-ready .hero-art .sparkle:nth-of-type(3) { transition-delay: 1.6s; } .is-ready .hero-art .sparkle:nth-of-type(4) { transition-delay: 1.75s; }
.is-ready .hero-art .sparkle:nth-of-type(5) { transition-delay: 1.9s; } .is-ready .hero-art .sparkle:nth-of-type(6) { transition-delay: 2.05s; }
.is-ready .hero-art .sparkle:nth-of-type(7) { transition-delay: 2.2s; } .is-ready .hero-art .sparkle:nth-of-type(8) { transition-delay: 2.35s; }
.float-chip { opacity: 0; translate: 0 20px; transition: opacity .6s ease, translate .9s cubic-bezier(.34,1.56,.64,1), transform .3s var(--ease), box-shadow .3s; }
.is-ready .float-chip { opacity: 1; translate: 0 0; }
.is-ready .float-chip-0 { transition-delay: 1.5s; } .is-ready .float-chip-1 { transition-delay: 1.7s; } .is-ready .float-chip-2 { transition-delay: 1.9s; }
.hero-note { opacity: 0; transition: opacity .8s 2.3s ease; } .is-ready .hero-note { opacity: 1; }
/* floaty у чипов работает через translate — переносим «покачивание» на margin */
@keyframes floaty { 50% { margin-top: -12px; } }

/* Параллакс при прокрутке (переменные задаёт app.js) */
.hero-art { --py: 0px; }
.hero-art .hero-scene { transform: translateY(calc(var(--py) * .35)) rotate(calc(var(--py) * .02deg)); }
.hero-art .hero-bear { transform: translateY(calc(var(--py) * .18)); }
.marquee { transform: rotate(-1.2deg) scale(1.02) skewX(var(--skew, 0deg)); transition: transform .4s ease-out; }

/* Золотые искорки за курсором */
.trail { position: fixed; z-index: 60; pointer-events: none; width: 14px; height: 14px; color: var(--gold); margin: -7px 0 0 -7px; animation: trail 1s ease-out forwards; }
.trail svg { width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(240,200,110,.8)); }
@keyframes trail { 0% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.2) rotate(90deg); } }

/* ==========================================================================
   Подарок на странице «Спасибо»
   ========================================================================== */
.gift-reveal { position: relative; width: 260px; height: 330px; margin: 0 auto -6px; }
.gift-bear { position: absolute; left: 50%; bottom: 52px; width: 170px; translate: -50% 85%; scale: .7; opacity: 0; z-index: 1;
  animation: bearPop 1s 1.25s cubic-bezier(.34,1.56,.64,1) forwards; }
.gift-bear .bear-img { animation: none; }
.gift-box { position: absolute; left: 50%; bottom: 0; width: 200px; height: 150px; translate: -50% 0; z-index: 2; animation: boxShake .9s .2s ease-in-out; }
.gift-body { position: absolute; left: 0; right: 0; bottom: 0; height: 112px; border-radius: 10px 10px 16px 16px;
  background: linear-gradient(90deg, transparent 43%, #F2C4CA 43%, #F2C4CA 57%, transparent 57%), linear-gradient(180deg, #8DB6E6, #4F86C6);
  box-shadow: inset 0 -14px 24px rgba(20,40,80,.18), 0 24px 40px -18px rgba(36,58,98,.6); }
.gift-lid { position: absolute; left: -12px; right: -12px; top: 0; height: 42px; border-radius: 10px;
  background: linear-gradient(90deg, transparent 44%, #F2C4CA 44%, #F2C4CA 56%, transparent 56%), linear-gradient(180deg, #A9CBF2, #6A9AD6);
  box-shadow: 0 6px 12px -4px rgba(20,40,80,.3); transform-origin: 20% 100%; animation: lidOff 1s 1.05s cubic-bezier(.5,0,.3,1) forwards; }
.gift-lid i::before, .gift-lid i::after { content: ""; position: absolute; top: -26px; width: 44px; height: 32px; border: 9px solid #F2C4CA; border-radius: 50% 50% 40% 40%; }
.gift-lid i::before { left: calc(50% - 46px); transform: rotate(-20deg); }
.gift-lid i::after { right: calc(50% - 46px); transform: rotate(20deg); }
@keyframes boxShake { 15%, 45%, 75% { rotate: -5deg; } 30%, 60%, 90% { rotate: 5deg; } }
@keyframes lidOff { 30% { transform: translateY(-30px) rotate(-8deg); } 100% { transform: translate(-150px, -40px) rotate(-70deg); opacity: 0; } }
@keyframes bearPop { to { translate: -50% 0; scale: 1; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .hero-bear, .float-chip, .hero-note, .watercolor, .gold-ring * { opacity: 1 !important; translate: none !important; scale: none !important; stroke-dashoffset: 0 !important; }
  .gift-bear { translate: -50% 0; scale: 1; opacity: 1; }
  .gift-lid { display: none; }
}

/* Плашка «включена заглушка» (видна только тем, кому открыт сайт) */
.maint-badge { position: fixed; left: 12px; bottom: 12px; z-index: 90; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); }
.maint-badge:hover { background: var(--rose-d); }
