/* v2 (05.10): мерч — на белом, как диски у A24; всё ниже — тёмное и контрастное (просьба Светы и Арины).
   Пастель из «Стиль-гид v1» оставлена как акценты, фон блоков — графит и слива */
:root {
  --white: #FBFAF7;
  --night: #18151D;
  --plum: #2B2233;
  --ivory: #F3EEE6;
  --ivory-soft: #CFC6D3;
  --pink: #F2A9C0;
  --pink-deep: #E58AAA;
  --lilac: #CDBDF0;
  --blue: #AFCFEA;
  --sage: #B9D3AE;
  --gold: #E3C68E;
  --ink: #221F27;
  --ink-soft: #57525C;
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Nunito', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--white); padding: .5rem 1rem; }
.eyebrow { font: 700 .75rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; margin-bottom: .9rem; opacity: .75; }

/* ---------- навигация: на белом тёмная, на тёмных блоках светлеет (класс ставит JS) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  transition: background .4s, color .4s;
}
.nav__logo img { height: 3.4rem; width: auto; transition: filter .4s; }
.nav nav { display: flex; gap: clamp(.8rem, 2.5vw, 2rem); }
.nav nav a { text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav.is-dark { background: rgba(24, 21, 29, .88); color: var(--ivory); backdrop-filter: blur(8px); }

@media (max-width: 640px) { .nav nav a[href="#about"] { display: none; } .nav nav { gap: .9rem; } .nav nav a { font-size: .85rem; } }

/* ---------- коллекция: липкая сцена, предмет крутится при прокрутке ---------- */
.collection { position: relative; background: var(--white); }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; perspective: 1400px; }
.stage__intro { position: absolute; left: 50%; top: 8svh; z-index: 2; translate: -50% 0; text-align: center; width: min(90vw, 34rem); transition: opacity .4s; }
.stage__logo { width: clamp(96px, 10vw, 150px); height: auto; margin: 0 auto; }
.lede { margin-top: .4rem; font: italic 500 clamp(1.1rem, 2.2vw, 1.4rem) var(--display); color: var(--ink-soft); }

.stage__items { position: absolute; inset: 0; transform-style: preserve-3d; }
.stage__item {
  all: unset; cursor: pointer;
  position: absolute; left: 50%; top: 61%;
  width: min(62vw, 52svh, 520px);
  translate: -50% -50%;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
.stage__item img { width: 100%; filter: drop-shadow(0 30px 30px rgba(34, 31, 39, .22)); }
.stage__item:focus-visible { outline: 2px dashed var(--ink-soft); outline-offset: 10px; border-radius: 20px; }
/* мягкая тень-«пол» под предметом */
.stage__item::after { content: ''; position: absolute; left: 15%; right: 15%; bottom: -7%; height: 7%; background: radial-gradient(closest-side, rgba(34, 31, 39, .18), transparent); }

.stage__count {
  position: absolute; left: clamp(1rem, 7vw, 6rem); top: 50%; translate: 0 -50%;
  font: 500 clamp(3.5rem, 9vw, 7.5rem)/1 var(--display); color: var(--ink);
}
.stage__count small { font-size: .3em; color: var(--ink-soft); }
.stage__info { position: absolute; right: clamp(1rem, 7vw, 6rem); top: 50%; translate: 0 -50%; width: min(22rem, 30vw); }
.stage__info h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.stage__info p { margin: .5rem 0 1.2rem; color: var(--ink-soft); font-weight: 600; }
.stage__scroll { position: absolute; bottom: 1.4rem; left: 50%; translate: -50% 0; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }
@media (max-width: 800px) {
  .stage__count { left: 1.2rem; top: auto; bottom: 18svh; translate: none; font-size: 3.2rem; }
  .stage__info { right: 1.2rem; left: 1.2rem; width: auto; top: auto; bottom: 4.5rem; translate: none; text-align: right; }
  .stage__info h2 { font-size: 1.7rem; }
  .stage__info p { margin: .3rem 0 .7rem; }
  .stage__item { top: 50%; width: min(70vw, 36svh); }
  .stage__intro { top: 8svh; }
  .stage__scroll { bottom: .8rem; }
}

/* ---------- тёмная часть ---------- */
.dark { background: var(--night); color: var(--ivory); }
.dark .eyebrow { color: var(--pink); opacity: 1; }
.checker { height: 18px; background: repeating-conic-gradient(var(--night) 0 25%, var(--ivory) 0 50%) 0 0 / 18px 18px; }

.section { position: relative; padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.25rem, 6vw, 5rem); }
.section__head { max-width: 42rem; margin-bottom: 2.5rem; }
.section__head p:last-child { color: var(--ivory-soft); margin-top: .8rem; }
.section__head--second { margin-top: clamp(4rem, 9vw, 6rem); }
.section--plum { background: var(--plum); }
.section--bright { background: var(--pink); color: var(--ink); }
.section--bright .eyebrow { color: var(--ink); opacity: .7; }
.section--bright .section__head p:last-child, .section--bright .steps li, .section--bright .terms, .contact p:last-child { color: var(--ink); }

/* волнистый верхний край у ярких блоков (как у apenas) */
.wave { margin-top: 28px; }
.wave::before {
  content: ''; position: absolute; left: 0; right: 0; top: -27px; height: 28px;
  background: radial-gradient(circle at 20px 28px, var(--pink) 20px, transparent 21px) 0 0 / 40px 28px repeat-x;
}

/* разбросанные звёздочки по тёмным блокам — мелко, не мешают читать */
#shop::after, #about::after {
  content: ''; position: absolute; width: clamp(90px, 14vw, 180px); aspect-ratio: 1;
  background: url(../img/stars.webp) center / contain no-repeat; opacity: .55; pointer-events: none;
  animation: twinkle 6s ease-in-out infinite alternate;
}
#shop::after { left: 3%; bottom: 2rem; }
#about::after { right: 6%; bottom: 2rem; }
@keyframes twinkle { from { opacity: .3; rotate: -6deg; } to { opacity: .7; rotate: 6deg; } }

.banners { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); }
.banner { margin: 0; }
.banner img { border-radius: 8px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); transition: transform .5s var(--ease); }
.banner:hover img { transform: translateY(-4px) rotate(-.6deg); }
.banner figcaption { margin-top: .8rem; font-size: .92rem; color: var(--ivory-soft); }
.banner b { color: var(--ivory); }
.note { margin-top: 1.2rem; font-size: .85rem; color: var(--ivory-soft); }

.world { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(1rem, 3vw, 2rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .world { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .world { grid-template-columns: repeat(6, 1fr); } }
.world figure { margin: 0; text-align: center; }
.world img {
  aspect-ratio: 1; object-fit: contain; width: 100%; padding: 12%;
  background: radial-gradient(circle, rgba(242, 169, 192, .28), rgba(242, 169, 192, 0) 68%);
  transition: transform .6s var(--ease);
}
.world li:hover img { transform: translateY(-8px) rotate(-3deg) scale(1.04); }
.world figcaption { font: italic 500 1.4rem var(--display); margin-top: .2rem; }

.services { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.services li { background: var(--white); padding: 1.6rem 1.5rem; border-radius: 18px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.services li:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.services img { height: 4.5rem; width: auto; margin-bottom: .8rem; }
.services p { margin-top: .6rem; color: var(--ink-soft); }
.price { font: 600 1.35rem var(--display); color: var(--ink) !important; margin-top: 1rem !important; }
.steps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; color: var(--ink-soft); }
.steps span { grid-row: span 2; font: italic 500 2.8rem/1 var(--display); color: var(--ink); }
.steps b { color: var(--ink); }
.terms { font-size: .9rem; color: var(--ink-soft); margin-bottom: 2rem; }

.btn { display: inline-block; cursor: pointer; border: 0; font: 700 1rem var(--body); padding: .95rem 1.7rem; border-radius: 999px; text-decoration: none; transition: transform .3s var(--ease), background .3s, color .3s; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #3a3542; }
.btn--light { background: var(--pink); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1.5px var(--ivory); }
.btn--ghost:hover { background: var(--ivory); color: var(--ink); }

.cats { list-style: none; padding: 0; margin: 0 0 3.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(46%, 10rem), 1fr)); }
.cats li { border-radius: 18px; padding: 1rem 1rem 1.1rem; display: grid; gap: .5rem; justify-items: center; color: var(--ink); font: 700 1rem var(--body); transition: transform .3s var(--ease); }
.cats li:hover { transform: rotate(-2deg) scale(1.03); }
.cats img { height: 6.5rem; width: 100%; object-fit: contain; }
.c1 { background: var(--pink); } .c2 { background: var(--lilac); } .c3 { background: var(--blue); } .c4 { background: var(--sage); } .c5 { background: var(--gold); }

.shop { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(1rem, 3vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(46%, 14rem), 1fr)); }
.shop button { all: unset; cursor: pointer; display: block; width: 100%; background: var(--white); color: var(--ink); border-radius: 18px; padding: .8rem .8rem 1.1rem; text-align: center; transition: transform .3s var(--ease); }
.shop button:hover { transform: translateY(-5px); }
.shop button:focus-visible { outline: 2px dashed var(--pink); outline-offset: 4px; }
.shop .thumb { display: block; aspect-ratio: 1; }
.shop img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.shop button:hover img { transform: rotate(-5deg) scale(1.06); }
.shop h3 { font-size: 1.3rem; margin-top: .4rem; }
.shop .soon { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }

.support, .about { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(6rem, 13rem) 1fr; align-items: center; }
.support p, .about p { max-width: 36rem; margin-top: 1rem; color: var(--ivory-soft); }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.about .small { font-size: .85rem; }
@media (max-width: 640px) { .support, .about { grid-template-columns: 1fr; } .support > img, .about__icon { width: 8rem; } }
.contact { text-align: center; }
.contact p:last-child { margin-top: 1rem; }

.footer { padding: 3rem 1.25rem 3.5rem; text-align: center; color: var(--ivory-soft); font-size: .9rem; }
.footer img { width: 120px; height: auto; margin: 0 auto .8rem; opacity: .9; }

/* ---------- карточка товара ---------- */
.card { border: 0; padding: 0; background: transparent; width: min(94vw, 64rem); max-height: 94svh; overflow: visible; }
.card::backdrop { background: rgba(24, 21, 29, .82); backdrop-filter: blur(6px); }
.card__inner {
  background: var(--white); color: var(--ink); border-radius: 22px;
  display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 1.5rem; align-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem); max-height: 94svh; overflow: auto;
}
.card[open] .card__inner { animation: spin-in .9s var(--ease); }
@keyframes spin-in { from { transform: perspective(900px) rotateY(-110deg) scale(.55); opacity: 0; } to { transform: none; opacity: 1; } }
.card__img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.card__life { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.card__text h3 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.card__desc { margin-top: .8rem; color: var(--ink-soft); }
.card__text .btn { margin-top: 1.4rem; }
.card__close { all: unset; cursor: pointer; position: absolute; right: -.4rem; top: -.4rem; z-index: 2; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--pink); color: var(--ink); display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
@media (max-width: 800px) {
  .card__inner { grid-template-columns: 1fr 1fr; }
  .card__text { grid-column: 1 / -1; }
}

/* искорки при нажатии на кнопку (создаёт JS) */
.spark { position: fixed; z-index: 99; pointer-events: none; font-size: 14px; color: var(--pink-deep); animation: spark .8s var(--ease) forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.4) rotate(160deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- «висящие» элементы мира (как пчёлка и звёзды у apenas):
   стоят на краях блоков и заходят на соседний, тихо покачиваются; JS добавляет лёгкий параллакс ---------- */
.deco { position: absolute; z-index: 3; pointer-events: none; height: auto; animation: hang 7s ease-in-out infinite alternate; will-change: transform; }
.deco:nth-of-type(2n) { animation-duration: 9s; animation-delay: -3s; }
@keyframes hang { from { rotate: -5deg; translate: 0 -6px; } to { rotate: 5deg; translate: 0 8px; } }
.d-tiara  { width: clamp(110px, 14vw, 210px); right: 5%; top: -60px; }
.d-rabbit { width: clamp(130px, 16vw, 240px); left: -1%; bottom: -70px; }
.d-watch  { width: clamp(100px, 12vw, 180px); right: 4%; top: -80px; }
.d-mush   { width: clamp(90px, 10vw, 150px); left: 2%; bottom: -30px; }
.d-drink  { width: clamp(80px, 9vw, 140px); right: 22%; top: -70px; }
.d-card   { width: clamp(80px, 9vw, 140px); right: 4%; top: 30%; }
.d-key    { width: clamp(40px, 5vw, 70px); right: 8%; top: -50px; }
.d-eye    { width: clamp(100px, 12vw, 170px); right: 5%; top: -40px; }
.d-cat    { width: clamp(110px, 13vw, 190px); left: 4%; top: -90px; }
.d-stars  { width: clamp(110px, 14vw, 200px); right: 4%; bottom: 10px; }
.section > *:not(.deco) { position: relative; z-index: 2; }
@media (max-width: 700px) {
  .d-card, .d-mush, .d-stars { display: none; }
  .d-tiara { top: -40px; } .d-watch { top: -60px; } .d-cat { top: -70px; left: auto; right: 4%; }
  .d-rabbit { bottom: -50px; }
}
