/* ==========================================================
   енсу — стили
   палитра: бумага в горошек, сливовые чернила, жвачно-розовый,
   лиловый и звёздно-жёлтый (её вечные 🌟)
   ========================================================== */

:root {
  --paper: #FFF0F6;
  --paper-2: #FFE1EF;
  --white: #FFFFFF;
  --ink: #3B0A2E;
  --ink-soft: #7A3A66;
  --pink: #FF4FA3;
  --pink-deep: #D61F7A;
  --candy: #FFB3D6;
  --lilac: #B48CFF;
  --lilac-deep: #7B4DE0;
  --star: #FFE14D;
  --plum: #2A0822;
  --plum-2: #3E0F33;

  --f-display: "Dela Gothic One", "M PLUS Rounded 1c", system-ui, sans-serif;
  --f-body: "M PLUS Rounded 1c", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --rhythm: clamp(72px, 10vw, 140px);
  --bounce: cubic-bezier(.3, 1.6, .45, 1);
  --soft: cubic-bezier(.2, .9, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--pink); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--lilac-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .6em 1em; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--rhythm); position: relative; }

/* ---------- кнопки-конфетки ---------- */
.btn {
  --sh: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 800 1rem/1.2 var(--f-body);
  padding: .85em 1.45em;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--sh);
  transition: transform .18s var(--soft), box-shadow .18s var(--soft), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sh); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sh); }
.btn--pink { background: var(--pink); }
.btn--pink:hover { background: #FF66B0; }
.btn--ghost { background: var(--white); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--sm { font-size: .9rem; padding: .6em 1.15em; box-shadow: 0 3px 0 var(--sh); }
.btn--big { font-size: 1.1rem; padding: 1em 1.6em; }

/* ---------- рукописные пометки ---------- */
.note {
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.15;
  color: var(--pink-deep);
  transform: rotate(-2deg);
}

/* ---------- заголовки-наклейки ---------- */
.h2 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--white);
  -webkit-text-stroke: .028em var(--ink);
  paint-order: stroke fill;
  text-shadow:
    .02em .02em 0 var(--pink),
    .04em .04em 0 var(--pink),
    .055em .055em 0 var(--pink),
    .075em .075em 0 var(--ink);
}
.section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 12px 28px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section__head .note { padding-bottom: .5em; max-width: 26ch; }

/* ==========================================================
   НАВИГАЦИЯ
   ========================================================== */
.nav {
  position: fixed; z-index: 50;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 7px 7px 20px;
  border-radius: 999px;
  background: rgba(255, 240, 246, .7);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 2px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
  animation: navIn .7s var(--soft) both .1s;
}
.nav.is-scrolled {
  border-color: var(--ink);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 4px 0 var(--ink);
}
@keyframes navIn { from { opacity: 0; transform: translate(-50%, -30px); } }

.nav__logo {
  font-family: var(--f-display);
  font-size: 1.4rem; line-height: 1;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav__logo svg { width: 16px; height: 16px; fill: var(--pink); transition: transform .6s var(--bounce); }
.nav__logo:hover svg { transform: rotate(180deg) scale(1.3); }

.nav__links { display: flex; gap: 2px; }
.nav__links a {
  font-weight: 700; font-size: .95rem;
  text-decoration: none;
  padding: .45em .9em;
  border-radius: 999px;
  transition: background-color .2s;
}
.nav__links a:hover { background: var(--white); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 110px var(--gutter) 90px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--paper);
  background-image: radial-gradient(var(--paper-2) 2.2px, transparent 2.6px);
  background-size: 28px 28px;
}

.hero__center {
  position: relative; z-index: 3;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.hero__center a, .hero__center .wordmark { pointer-events: auto; }

/* «а где енсу??» */
.hero__where {
  align-self: flex-start;
  position: relative;
  margin: 0 0 -.15em 4%;
  font-family: var(--f-hand); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--pink-deep);
  transform: rotate(-7deg);
  animation: write 1s steps(14, end) both .15s;
}
@keyframes write { from { clip-path: inset(-60% 100% -200% -20%); } to { clip-path: inset(-60% -120% -200% -20%); } }
.hero__arrow {
  position: absolute; left: 100%; top: 40%;
  width: clamp(56px, 6vw, 90px); height: auto;
  margin-left: 4px;
  color: var(--pink-deep);
  transform: rotate(8deg);
}
.hero__arrow path {
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: draw .7s ease-out forwards 1.1s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* вордмарк */
.wordmark {
  position: relative;
  display: inline-flex;
  font-family: var(--f-display);
  font-size: clamp(5.2rem, 19vw, 15.5rem);
  line-height: 1;
  letter-spacing: -.015em;
  padding: 0 .12em .36em 0;
  cursor: default;
  user-select: none;
}
.wordmark__ch {
  display: inline-block;
  animation: drop .9s var(--bounce) both calc(.35s + var(--i) * .1s);
}
.wordmark__ch > span {
  display: inline-block;
  color: #FFF6FB;
  -webkit-text-stroke: .03em var(--ink);
  paint-order: stroke fill;
  text-shadow:
    .008em .008em 0 var(--pink), .016em .016em 0 var(--pink),
    .024em .024em 0 var(--pink), .032em .032em 0 var(--pink),
    .04em .04em 0 var(--pink), .048em .048em 0 var(--pink),
    .056em .056em 0 var(--pink-deep), .064em .064em 0 var(--pink-deep),
    .074em .074em 0 var(--ink), .082em .082em 0 var(--ink),
    .1em .14em .12em rgba(59, 10, 46, .22);
  transform-origin: 50% 90%;
}
.wordmark__ch:hover > span,
.wordmark__ch.is-boing > span { animation: boing .7s var(--bounce); }

@keyframes drop {
  from { opacity: 0; transform: translateY(-110%) rotate(-14deg); }
  60% { opacity: 1; }
}
@keyframes boing {
  0% { transform: none; }
  30% { transform: translateY(-16%) rotate(-7deg) scale(1.06); }
  55% { transform: translateY(3%) scale(1.06, .92); }
  75% { transform: translateY(-4%) rotate(3deg); }
  100% { transform: none; }
}

.twinkle {
  position: absolute;
  fill: var(--star);
  stroke: var(--ink); stroke-width: 1.4px;
  overflow: visible;
  animation: twinkle 2.6s ease-in-out infinite;
  pointer-events: none;
}
.twinkle.t1 { width: .22em; height: .22em; top: -.06em; right: -.04em; animation-delay: 1.4s; }
.twinkle.t2 { width: .14em; height: .14em; bottom: .4em; left: -.16em; animation-delay: 1.9s; fill: var(--candy); }
.twinkle.t3 { width: .1em; height: .1em; top: .1em; left: 33%; animation-delay: 2.4s; fill: var(--white); }
@keyframes twinkle {
  0%, 100% { transform: scale(.55) rotate(0deg); opacity: .6; }
  50% { transform: scale(1.1) rotate(45deg); opacity: 1; }
}

.hero__lead {
  max-width: 36ch;
  margin-top: 0;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: var(--ink-soft);
  animation: rise .8s var(--soft) both 1s;
}
.hero__cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 26px;
  animation: rise .8s var(--soft) both 1.12s;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.status-chip {
  display: inline-flex; align-items: center; gap: .55em;
  margin-top: 22px;
  padding: .35em .95em .35em .75em;
  border-radius: 999px;
  background: var(--white);
  border: 2px dashed var(--ink);
  font-weight: 800; font-size: .9rem;
  transform: rotate(-2deg);
  animation: rise .8s var(--soft) both 1.25s;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(255, 79, 163, .6);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255, 79, 163, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 79, 163, 0); } }

.hero__hint {
  position: absolute; z-index: 3;
  left: 50%; bottom: 22px;
  transform: translateX(-50%) rotate(-2deg);
  font-family: var(--f-hand); font-weight: 700; font-size: 1.25rem;
  color: var(--ink-soft);
  animation: rise .8s var(--soft) both 2.2s;
  pointer-events: none;
}

/* наклейки */
.hero__stickers { position: absolute; inset: 0; z-index: 2; }
.sticker {
  position: absolute;
  left: var(--xm, var(--x)); top: var(--ym, var(--y));
  width: clamp(92px, var(--w), 270px);
  transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--rm, var(--r)));
  will-change: transform;
  touch-action: none;
  cursor: grab;
}
.sticker.is-drag { cursor: grabbing; }
.sticker__float {
  position: relative;
  padding: 7px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(59, 10, 46, .1), 0 16px 30px -12px rgba(59, 10, 46, .45);
  animation:
    slap .75s var(--bounce) both calc(.8s + var(--i) * .13s),
    bob 5.5s ease-in-out calc(1.6s + var(--i) * .13s) infinite alternate;
  transition: box-shadow .25s, scale .25s var(--bounce);
}
.sticker__float img { border-radius: 10px; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.sticker:hover .sticker__float { scale: 1.04; }
.sticker.is-drag .sticker__float {
  scale: 1.1;
  box-shadow: 0 1px 0 rgba(59, 10, 46, .1), 0 34px 50px -16px rgba(59, 10, 46, .5);
}
.sticker.is-drop .sticker__float { animation: wobble .6s var(--bounce); }

.tape .sticker__float::before {
  content: "";
  position: absolute; z-index: 1;
  top: -11px; left: 50%;
  width: 46%; height: 24px;
  transform: translateX(-50%) rotate(-5deg);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px),
    rgba(255, 225, 77, .78);
  box-shadow: 0 1px 2px rgba(59, 10, 46, .15);
}
.tape--r .sticker__float::before { background-color: rgba(180, 140, 255, .75); transform: translateX(-50%) rotate(6deg); }

.sticker--charm .sticker__float { border-radius: 40%; padding: 6px; }
.sticker--charm .sticker__float img { border-radius: 38%; }

@keyframes slap {
  from { opacity: 0; transform: scale(1.9) rotate(16deg); }
  55% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes bob {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-12px) rotate(1.6deg); }
}
@keyframes wobble {
  0% { transform: rotate(0); }
  30% { transform: rotate(-5deg) scale(.96); }
  60% { transform: rotate(3deg); }
  100% { transform: rotate(0); }
}

/* ==========================================================
   ЛЕНТЫ
   ========================================================== */
.tapes {
  position: relative;
  height: clamp(130px, 14vw, 190px);
  margin-block: -40px -20px;
  z-index: 4;
  pointer-events: none;
  overflow-x: clip;
}
.tape-band {
  position: absolute; left: -6%; right: -6%; top: 50%;
  padding: .6em 0;
  border-block: 2.5px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
}
.tape-band--pink { background: var(--pink); transform: translateY(-62%) rotate(-3deg); }
.tape-band--yellow { background: var(--star); transform: translateY(-20%) rotate(2.4deg); }
.tape-band__track {
  display: inline-flex; align-items: center; gap: 1.3rem;
  padding-right: 1.3rem;
  animation: marquee 42s linear infinite;
}
.tape-band__track--rev { animation-direction: reverse; animation-duration: 52s; }
.tape-band span {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.1vw, 1.7rem);
  line-height: 1.2;
}
.tape-band--pink span { color: var(--white); -webkit-text-stroke: .045em var(--ink); paint-order: stroke fill; }
.tape-band svg { width: 1.35em; height: 1.35em; flex: none; fill: var(--ink); }
.tape-band--pink svg { fill: var(--star); stroke: var(--ink); stroke-width: 1.5px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   О СЕБЕ
   ========================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.about__lead { margin-top: 26px; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }

.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.facts li {
  font-weight: 700; font-size: .92rem;
  padding: .38em .95em;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--ink);
  transition: transform .3s var(--bounce), background-color .2s;
}
.facts li:nth-child(odd) { transform: rotate(-1.5deg); }
.facts li:nth-child(3n) { transform: rotate(2deg); background: var(--paper-2); }
.facts li:hover { transform: rotate(0) scale(1.08); background: var(--candy); }

.board {
  margin-top: 34px;
  max-width: 460px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 18px 22px 12px;
}
.board__title { font-family: var(--f-display); font-size: 1.25rem; margin-bottom: 6px; }
.board dl { margin: 0; }
.board__row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 2px dashed var(--paper-2);
}
.board__row dt { font-weight: 800; }
.board__row dd {
  margin: 0;
  font-weight: 700; font-size: .88rem;
  padding: .2em .8em;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: .45em;
}
.is-on dd { background: var(--pink); color: var(--ink); }
.is-on dd::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); animation: ping 1.8s ease-out infinite; }
.is-maybe dd { background: #E9DDFF; color: var(--lilac-deep); }
.is-pause dd { background: #FFF4B8; color: #7A5A00; }
.is-off dt { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-soft); }
.is-off dd { background: #F1E6EC; color: var(--ink-soft); }

/* сравнение 2025 / 2026 */
.compare {
  position: relative;
  width: min(100%, 430px);
  justify-self: center;
  aspect-ratio: 3 / 4;
  border: 9px solid var(--white);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 30px 50px -24px rgba(59, 10, 46, .45);
  transform: rotate(2.5deg);
  margin-bottom: 64px;
}
.compare__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 15px;
  user-select: none;
}
.compare__img--top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__tag {
  position: absolute; top: 14px; z-index: 2;
  font-family: var(--f-display); font-size: 1rem;
  padding: .25em .7em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--white);
  pointer-events: none;
}
.compare__tag--l { left: 14px; transform: rotate(-6deg); }
.compare__tag--r { right: 14px; transform: rotate(5deg); background: var(--star); }
.compare__handle {
  position: absolute; z-index: 2;
  top: 0; bottom: 0; left: clamp(2px, var(--pos), calc(100% - 2px));
  width: 4px; margin-left: -2px;
  background: var(--white);
  box-shadow: 0 0 0 1.5px var(--ink);
  pointer-events: none;
}
/* звёздочка живёт отдельно от линии: у краёв она упирается внутрь карточки
   и не вылезает за экран (иначе мобильный браузер раздвигает всю страницу) */
.compare__knob {
  position: absolute; z-index: 2;
  top: 50%; left: clamp(31px, var(--pos), calc(100% - 31px));
  width: 54px; height: 54px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform .3s var(--bounce);
}
.compare__knob svg {
  display: block;
  width: 100%; height: 100%;
  fill: var(--star); stroke: var(--ink); stroke-width: 1.4px;
  overflow: visible;
  filter: drop-shadow(0 4px 6px rgba(59, 10, 46, .3));
}
.compare:hover .compare__knob,
.compare:focus-within .compare__knob { transform: translate(-50%, -50%) rotate(45deg) scale(1.15); }
.compare__range {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:has(.compare__range:focus-visible) { outline: 3px solid var(--lilac-deep); outline-offset: 6px; }
.note--compare {
  position: absolute; left: 0; right: 0; top: calc(100% + 18px);
  text-align: center;
  transform: rotate(-2.5deg);
}

/* ==========================================================
   РАБОТЫ
   ========================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font-weight: 800; font-size: .95rem;
  padding: .5em 1.15em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--white);
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .3s var(--bounce);
}
.chip:hover { transform: translateY(-2px) rotate(-2deg); }
.chip.is-active { background: var(--ink); color: var(--paper); }

.masonry { columns: 4 230px; column-gap: 18px; }
.work {
  position: relative;
  display: block;
  margin-bottom: 18px;
  break-inside: avoid;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
  text-decoration: none;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transition: transform .5s var(--soft), box-shadow .3s;
  box-shadow: 0 0 0 0 transparent;
}
.work.is-hidden { display: none; }
.work img {
  width: 100%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .6s, transform .8s var(--soft);
}
.work img.is-loaded { opacity: 1; transform: none; }
.work::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .45), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.work:hover { --sc: 1.025; box-shadow: 0 22px 40px -18px rgba(59, 10, 46, .55); z-index: 1; }
.work:hover::after { opacity: 1; }
.work.is-tilting { transition: transform .12s linear, box-shadow .3s; }

.work__label {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--white);
  border: 2px solid var(--ink);
  font-size: .82rem; font-weight: 700; line-height: 1.3;
  transform: translateY(calc(100% + 14px)) rotate(-2deg);
  transition: transform .45s var(--bounce);
}
.work:hover .work__label,
.work:focus-visible .work__label { transform: translateY(0) rotate(-1deg); }
.work__tag {
  flex: none;
  font-size: .72rem; font-weight: 800;
  padding: .1em .6em;
  border-radius: 999px;
  background: var(--candy);
}
.work__tag[data-c="kmm"] { background: var(--pink); }
.work__tag[data-c="sketch"] { background: var(--star); }
.work__tag[data-c="gift"] { background: #E9DDFF; }

.works__more { display: flex; justify-content: center; margin-top: 24px; }
.works__more[hidden] { display: none; }

/* ==========================================================
   ПРАЙС
   ========================================================== */
.price { background: linear-gradient(var(--paper), var(--paper-2) 30%, var(--paper-2) 70%, var(--paper)); }
.price__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.price__left { position: sticky; top: 100px; display: grid; gap: 34px; }

/* превью кадра */
.preview__stack {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
}
.preview__card {
  position: absolute; inset: 0;
  border: 8px solid var(--white);
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 26px 44px -22px rgba(59, 10, 46, .5);
  transition: transform .6s var(--bounce), opacity .4s;
}
.preview__card--ghost {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: rotate(0) translate(0, 0) scale(.9);
}
.preview__card--ghost::after { content: ""; position: absolute; inset: 0; background: rgba(255, 225, 239, .45); }
.preview[data-chars="2"] .g1,
.preview[data-chars="3"] .g1,
.preview[data-chars="4"] .g1,
.preview[data-chars="5"] .g1 { opacity: 1; transform: rotate(-7deg) translate(-9%, 2%) scale(.94); }
.preview[data-chars="3"] .g2,
.preview[data-chars="4"] .g2,
.preview[data-chars="5"] .g2 { opacity: 1; transform: rotate(8deg) translate(10%, 3%) scale(.92); }

.preview__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: opacity .5s, transform .6s var(--soft), filter .5s;
}
.preview[data-kind="render"] .is-sketch,
.preview[data-kind="sketch"] .is-render { opacity: 0; transform: scale(1.05); }

.preview__cut {
  --cut: 100%;
  position: absolute; left: 0; right: 0; bottom: 0;
  top: var(--cut);
  background: rgba(255, 240, 246, .78);
  backdrop-filter: grayscale(1) blur(2px);
  -webkit-backdrop-filter: grayscale(1) blur(2px);
  border-top: 3px dashed var(--ink);
  transition: top .7s var(--bounce);
}
.preview[data-crop="half"] .preview__cut { top: 47%; }
.preview[data-crop="34"] .preview__cut { top: 66%; }
.preview[data-crop="full"] .preview__cut { top: 100%; border-top-color: transparent; }
.preview__scissors {
  position: absolute; left: 10px; top: 0;
  transform: translateY(-58%) rotate(180deg);
  font-size: 1.7rem; line-height: 1;
  color: var(--ink);
  background: var(--paper);
  border-radius: 50%;
  padding: 0 4px;
}
.preview[data-crop="full"] .preview__scissors { opacity: 0; }
.preview__cutlabel {
  position: absolute; right: 12px; top: 10px;
  font-family: var(--f-hand); font-weight: 700; font-size: 1.35rem;
  color: var(--pink-deep);
  transform: rotate(-3deg);
}
.preview__nsfw {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pink);
  border: 2.5px solid var(--ink);
  font-family: var(--f-display); font-size: 1.05rem; color: var(--white);
  -webkit-text-stroke: .04em var(--ink); paint-order: stroke fill;
  transform: scale(0) rotate(-40deg);
  transition: transform .5s var(--bounce);
}
.preview.is-nsfw .preview__nsfw { transform: scale(1) rotate(12deg); }

/* чек с условиями */
.receipt-wrap { filter: drop-shadow(0 14px 18px rgba(59, 10, 46, .16)); }
.receipt {
  --z: 9px;
  background: var(--white);
  padding: 30px 26px;
  transform: rotate(-1.2deg);
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--z)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--z)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) 51% repeat-x;
}
.receipt__title { font-family: var(--f-display); font-size: 1.3rem; text-align: center; margin-bottom: 10px; }
.receipt li {
  display: flex; align-items: baseline; gap: 8px;
  padding: 7px 0;
  border-bottom: 2px dotted #EBC9DA;
}
.receipt li span { color: var(--ink-soft); }
.receipt li b { margin-left: auto; font-weight: 800; }
.receipt__foot { margin-top: 14px; font-size: .9rem; color: var(--ink-soft); text-align: center; }
.receipt__foot a { color: var(--pink-deep); font-weight: 800; }

/* калькулятор */
.calc { min-width: 0; }
.menu {
  border: 0; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
.menu__title {
  font-family: var(--f-display);
  font-size: 1.5rem; line-height: 1.1;
  margin: 0 0 10px 12px;
}
.menu__title small {
  display: block;
  font-family: var(--f-body); font-weight: 700;
  font-size: .85rem; color: var(--ink-soft);
  margin-top: 4px;
}
.row {
  position: relative;
  display: grid;
  grid-template-columns: 18px auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border-radius: 16px;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .25s, transform .3s var(--bounce);
}
.row input { position: absolute; opacity: 0; pointer-events: none; }
.row:hover { background: rgba(255, 255, 255, .7); }
.row:has(input:checked) {
  background: var(--white);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1deg);
}
.row:has(input:focus-visible) { outline: 3px solid var(--lilac-deep); outline-offset: 2px; }
.row__fig {
  --lvl: 100%;
  width: 18px; height: 34px;
  background: linear-gradient(to bottom, var(--pink) var(--lvl), rgba(59, 10, 46, .16) var(--lvl));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 38'%3E%3Ccircle cx='10' cy='5.5' r='5'/%3E%3Cpath d='M3.5 12h13a2 2 0 0 1 2 2l1 10h-3l-1-7v20h-3.5V26h-2v11H6.5V17l-1 7h-3l1-10a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 38'%3E%3Ccircle cx='10' cy='5.5' r='5'/%3E%3Cpath d='M3.5 12h13a2 2 0 0 1 2 2l1 10h-3l-1-7v20h-3.5V26h-2v11H6.5V17l-1 7h-3l1-10a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.row__fig[data-c="half"] { --lvl: 50%; }
.row__fig[data-c="34"] { --lvl: 70%; }
.row:has(input:checked) .row__fig { background: linear-gradient(to bottom, var(--pink-deep) var(--lvl), rgba(59, 10, 46, .16) var(--lvl)); }
.row__name { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.row__name small { font-weight: 600; font-size: .78rem; color: var(--ink-soft); }
.row__dots { border-bottom: 2.5px dotted rgba(59, 10, 46, .3); align-self: end; margin-bottom: .55em; min-width: 12px; }
.row__price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

.opt { border: 0; margin: 26px 0 0; padding: 0; min-width: 0; transition: opacity .3s; }
.opt legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.opt__hint { font-weight: 600; font-size: .82rem; color: var(--ink-soft); margin-left: .4em; }
.opt:disabled { opacity: .42; }
.opt:not(:disabled) .opt__hint { display: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-block;
  padding: .5em 1em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-weight: 700; font-size: .92rem;
  transition: background-color .2s, color .2s, transform .3s var(--bounce);
}
.seg span b { color: var(--pink-deep); font-weight: 800; }
.seg label:hover span { transform: translateY(-2px); }
.seg input:checked + span { background: var(--ink); color: var(--paper); transform: rotate(-2deg); }
.seg input:checked + span b { color: var(--candy); }
.seg input:focus-visible + span { outline: 3px solid var(--lilac-deep); outline-offset: 2px; }
.opt:disabled .seg label { cursor: not-allowed; }

.opt--row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 24px;
}
.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 800; position: relative; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle b { color: var(--pink-deep); }
.toggle__ui {
  position: relative;
  width: 52px; height: 30px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--white);
  transition: background-color .25s;
}
.toggle__ui::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform .4s var(--bounce), background-color .25s;
}
.toggle input:checked + .toggle__ui { background: var(--pink); }
.toggle input:checked + .toggle__ui::after { transform: translateX(22px); background: var(--white); box-shadow: 0 0 0 2px var(--ink); }
.toggle input:focus-visible + .toggle__ui { outline: 3px solid var(--lilac-deep); outline-offset: 2px; }

.stepper { display: grid; grid-template-columns: auto auto auto auto; align-items: center; gap: 4px 10px; }
.stepper__label { font-weight: 800; }
.stepper__btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--white);
  font-weight: 800; font-size: 1.3rem; line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .15s, box-shadow .15s, background-color .2s;
}
.stepper__btn:hover { background: var(--candy); }
.stepper__btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.stepper__btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper__val { font-family: var(--f-display); font-size: 1.5rem; min-width: 1ch; text-align: center; }
.stepper__hint { grid-column: 1 / -1; font-size: .8rem; color: var(--ink-soft); font-weight: 600; }

.total {
  margin-top: 30px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 24px;
  padding: 22px 26px;
  border-radius: 26px;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.total::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 179, 214, .12) 2px, transparent 2.4px);
  background-size: 22px 22px;
  pointer-events: none;
}
.total > * { position: relative; }
.total__label { font-family: var(--f-hand); font-weight: 700; font-size: 1.4rem; color: var(--candy); line-height: 1; }
.total__sum {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.05;
  color: var(--white);
  text-shadow: .04em .04em 0 var(--pink);
  font-variant-numeric: tabular-nums;
}
.total__sum.is-bump { animation: bump .45s var(--bounce); }
@keyframes bump { 40% { transform: scale(1.08) rotate(-2deg); } }
.total__pre { font-size: .92rem; color: var(--candy); font-weight: 700; }
.total .btn { --sh: var(--pink-deep); border-color: var(--paper); }
.calc__fine { margin-top: 14px; font-size: .9rem; color: var(--ink-soft); max-width: 60ch; }

/* ==========================================================
   БРЕЛКИ
   ========================================================== */
.charms__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.charm-stage {
  position: relative;
  display: grid; place-items: center;
  padding: 110px 20px 40px;
}
.charm-stage::before {
  content: "";
  position: absolute; inset: 6% 4%;
  border-radius: 50%;
  background-image: radial-gradient(var(--candy) 2.4px, transparent 2.8px);
  background-size: 24px 24px;
  -webkit-mask: radial-gradient(closest-side, #000 60%, transparent);
  mask: radial-gradient(closest-side, #000 60%, transparent);
}
.charm {
  position: relative;
  width: min(100%, 360px);
  transform-origin: 50% -78px;
  animation: swing 3.4s ease-in-out infinite alternate;
}
.charm.is-kick { animation: kick 1.6s ease-out; }
@keyframes swing { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@keyframes kick {
  0% { transform: rotate(0); }
  15% { transform: rotate(16deg); }
  35% { transform: rotate(-11deg); }
  55% { transform: rotate(6deg); }
  75% { transform: rotate(-3deg); }
  100% { transform: rotate(-3.5deg); }
}
.charm img {
  position: relative;
  border-radius: 34px;
  border: 7px solid rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 2px rgba(59, 10, 46, .12), 0 30px 50px -22px rgba(59, 10, 46, .55);
}
.charm::after {
  content: "";
  position: absolute; inset: 7px;
  border-radius: 28px;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .6) 47%, transparent 58%);
  background-size: 260% 100%;
  background-position: 100% 0;
  pointer-events: none;
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { background-position: 100% 0; } 100% { background-position: -60% 0; } }
.charm__ring {
  position: absolute; z-index: 2;
  top: -40px; left: 50%;
  width: 42px; height: 42px;
  margin-left: -21px;
  border-radius: 50%;
  border: 6px solid #D9D3E2;
  box-shadow: inset 0 0 0 1.5px rgba(59, 10, 46, .35), 0 0 0 1.5px rgba(59, 10, 46, .35);
}
.charm__chain {
  position: absolute; z-index: 1;
  top: -78px; left: 50%;
  width: 6px; height: 44px;
  margin-left: -3px;
  border-radius: 3px;
  background: repeating-linear-gradient(to bottom, #CFC8DA 0 7px, #9F94B0 7px 9px);
}
.charm-stage::after {
  content: "";
  position: absolute; top: 18px; left: 50%;
  width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px var(--ink);
}

.charms__text p { max-width: 40ch; }
.charms__price { margin: 18px 0 12px; font-size: 1.1rem; }
.charms__price b {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--pink-deep);
  margin-right: .15em;
}
.charms__text .btn { margin-top: 28px; }

/* ==========================================================
   ПРИВАТКА
   ========================================================== */
.private {
  background: var(--plum);
  color: #FFE3F0;
  margin-block: 40px;
  background-image: radial-gradient(rgba(255, 179, 214, .09) 2px, transparent 2.4px);
  background-size: 26px 26px;
}
.private::before,
.private::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 22px;
  background: radial-gradient(circle at 22px 0, var(--paper) 21px, transparent 22px) 0 0 / 44px 22px repeat-x;
}
.private::before { top: 0; }
.private::after { bottom: 0; transform: scaleY(-1); }
.private__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.h2--light {
  color: #FFE3F0;
  -webkit-text-stroke-color: var(--plum);
  text-shadow: .02em .02em 0 var(--pink), .04em .04em 0 var(--pink), .055em .055em 0 var(--pink), .075em .075em 0 #12030E;
}
.private__lead { margin-top: 22px; max-width: 40ch; font-size: 1.12rem; }
.perks { margin: 22px 0 30px; display: grid; gap: 10px; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.perks svg { width: 20px; height: 20px; flex: none; fill: var(--pink); }
.private .btn { --sh: #12030E; border-color: #12030E; }
.private__fine { margin-top: 18px; font-size: .9rem; color: rgba(255, 227, 240, .7); }
.private__fine a { color: var(--candy); font-weight: 800; }

.peek {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 26px;
  overflow: hidden;
  border: 3px solid rgba(255, 179, 214, .35);
  cursor: none;
  transform: rotate(-2deg);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7);
  touch-action: none;
}
.peek img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.peek__blur { filter: blur(22px) saturate(1.3); transform: scale(1.15); }
.peek__sharp {
  opacity: 0;
  transition: opacity .3s;
  -webkit-mask: radial-gradient(circle 74px at var(--mx, 50%) var(--my, 50%), #000 62%, transparent 100%);
  mask: radial-gradient(circle 74px at var(--mx, 50%) var(--my, 50%), #000 62%, transparent 100%);
}
.peek.is-peek .peek__sharp { opacity: 1; }
.peek__lock {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .5em;
  padding: .6em 1.2em;
  border-radius: 999px;
  background: rgba(42, 8, 34, .78);
  color: #FFE3F0;
  font-weight: 800;
  border: 2px solid rgba(255, 179, 214, .5);
  transition: opacity .3s, transform .4s var(--bounce);
  pointer-events: none;
}
.peek__lock svg { width: 18px; height: 18px; fill: var(--candy); }
.peek.is-peek .peek__lock { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
.peek__badge {
  position: absolute; top: 16px; right: 16px;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pink);
  border: 3px solid #12030E;
  font-family: var(--f-display); font-size: 1.15rem; color: var(--white);
  transform: rotate(12deg);
  pointer-events: none;
}

/* ==========================================================
   ССЫЛКИ
   ========================================================== */
.links__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.profile {
  position: sticky; top: 100px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  text-align: center;
  padding-bottom: 28px;
}
.profile__banner { height: 170px; overflow: hidden; border-bottom: 2.5px solid var(--ink); }
.profile__banner img { width: 100%; height: 100%; object-fit: cover; }
.profile__ava {
  width: 120px; height: 120px;
  margin: -60px auto 0;
  position: relative;
  border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: 0 0 0 2.5px var(--ink);
  transition: transform .6s var(--bounce);
}
.profile:hover .profile__ava { transform: rotate(-10deg) scale(1.05); }
.profile__name { font-family: var(--f-display); font-size: 1.9rem; margin-top: 12px; }
.profile__handle { font-weight: 800; color: var(--pink-deep); }
.profile__bio { margin: 8px auto 0; max-width: 30ch; color: var(--ink-soft); font-size: .95rem; }

.linklist { display: grid; gap: 12px; }
.link {
  display: grid;
  grid-template-columns: 54px 1fr 26px;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 10px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .25s var(--soft), box-shadow .25s var(--soft), background-color .2s;
}
.link:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); background: #FFF7FB; }
.link:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.link__ico {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  transition: transform .5s var(--bounce);
}
.link__ico svg { width: 26px; height: 26px; fill: var(--ink); }
.link:hover .link__ico { transform: rotate(-14deg) scale(1.08); }
.link--tg .link__ico { background: var(--candy); }
.link--dm .link__ico { background: var(--pink); }
.link--dm .link__ico svg { fill: var(--white); }
.link--priv .link__ico { background: var(--plum); }
.link--priv .link__ico svg { fill: var(--candy); }
.link__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.link__txt b { font-weight: 800; font-size: 1.08rem; }
.link__txt small { color: var(--ink-soft); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link__go { width: 22px; height: 22px; color: var(--ink); transition: transform .3s var(--bounce); }
.link:hover .link__go { transform: translate(3px, -3px); }
.linklist__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.link--mini { grid-template-columns: 1fr; border-radius: 20px; padding: 12px 20px; }

/* ==========================================================
   ФУТЕР
   ========================================================== */
.links { padding-bottom: clamp(40px, 5vw, 72px); }
.footer { overflow: hidden; }
.footer__mark {
  font-family: var(--f-display);
  font-size: 31vw;
  line-height: .8;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 2px var(--candy);
  margin-bottom: -3.5vw;
  user-select: none;
  letter-spacing: -.02em;
  transition: color .6s;
}
.footer:hover .footer__mark { color: var(--paper-2); }
.footer__row {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding-block: 22px 36px;
  border-top: 2px dashed var(--candy);
  font-size: .9rem; color: var(--ink-soft);
  background: var(--paper);
}

/* ==========================================================
   ЛАЙТБОКС
   ========================================================== */
.lightbox {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(36, 6, 28, .9);
  color: var(--paper);
  overscroll-behavior: contain;
}
.lightbox[open] {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  animation: fade .3s ease-out;
}
.lightbox::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } }
.lightbox__fig {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  min-width: 0;
  grid-column: 2;
}
.lightbox__fig img {
  max-height: calc(100dvh - 140px);
  max-width: 100%;
  width: auto;
  border: 8px solid var(--white);
  border-radius: 18px;
  animation: pop .45s var(--bounce);
}
.lightbox__fig img.is-swap { animation: none; }
@keyframes pop { from { transform: scale(.88) rotate(-2deg); opacity: 0; } }
.lightbox figcaption {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 16px;
  text-align: center;
  font-weight: 700;
  max-width: 60ch;
}
.lightbox figcaption a { color: var(--candy); font-weight: 800; }
.lightbox__nav, .lightbox__close {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.8rem; line-height: 1;
  cursor: pointer;
  justify-self: center;
  transition: transform .3s var(--bounce), background-color .2s;
}
.lightbox__nav:hover, .lightbox__close:hover { background: var(--candy); transform: scale(1.1); }
.lightbox__nav--prev { grid-column: 1; grid-row: 1; }
.lightbox__nav--next { grid-column: 3; grid-row: 1; }
.lightbox__close { position: absolute; top: 16px; right: 16px; z-index: 2; }

/* ==========================================================
   ТОСТ, ИСКРЫ, ПОЯВЛЕНИЕ
   ========================================================== */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 80;
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  padding: .8em 1.3em;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 700;
  box-shadow: 0 4px 0 var(--pink);
  transition: transform .5s var(--bounce), visibility 0s .5s;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--bounce), visibility 0s; }

.spark {
  position: fixed; z-index: 90;
  left: 0; top: 0;
  width: var(--s); height: var(--s);
  fill: var(--c);
  pointer-events: none;
  animation: spark .9s ease-out forwards;
}
@keyframes spark {
  0% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 1; }
  25% { transform: translate(-50%, -50%) scale(1) rotate(40deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.2) rotate(200deg); opacity: 0; }
}

.reveal { opacity: 0; translate: 0 34px; transition: opacity .8s var(--soft), translate .9s var(--soft); }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* ==========================================================
   АДАПТИВ
   ========================================================== */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .about__grid, .charms__grid, .private__grid, .links__grid { grid-template-columns: 1fr; }
  .price__grid { grid-template-columns: 1fr; }
  .price__left { position: static; grid-template-columns: 1fr 1fr; align-items: center; }
  .profile { position: static; max-width: 520px; width: 100%; margin-inline: auto; }
  .charms__text { text-align: center; }
  .charms__text p { margin-inline: auto; }
  .private__text { order: -1; }
}

@media (max-width: 720px) {
  .hero { place-items: end center; padding: 250px 16px 150px; }
  .sticker { width: var(--wm, 28vw); }
  .sticker:nth-child(1) { --xm: -4%; --ym: 10%; --wm: 30vw; --rm: -9deg; }
  .sticker:nth-child(2) { --xm: -8%; --ym: 83%; --wm: 42vw; }
  .sticker:nth-child(3) { display: none; }
  .sticker:nth-child(4) { --xm: 72%; --ym: 9%; --wm: 30vw; }
  .sticker:nth-child(5) { --xm: 64%; --ym: 84%; --wm: 38vw; }
  .sticker:nth-child(6) { --xm: 37%; --ym: 13%; --wm: 22vw; --rm: 6deg; }
  .sticker:nth-child(7) { display: none; }
  .hero__where { margin-left: 4%; }
  .hero__arrow { width: 52px; }
  .hero__hint { display: none; }
  .hero__lead { font-size: 1rem; }
  .hero__cta { gap: 10px; margin-top: 20px; }
  .hero__cta .btn { font-size: .95rem; padding: .8em 1.15em; }
  .wordmark { font-size: 23.5vw; }
  .tapes { margin-top: -70px; }
  .masonry { columns: 2; column-gap: 10px; }
  .work { margin-bottom: 10px; border-radius: 14px; }
  .work__label { display: none; }
  .price__left { display: contents; }
  .preview { order: 1; }
  .calc { order: 2; }
  .receipt-wrap { order: 3; }
  .menu { grid-template-columns: 1fr; }
  .preview__stack { width: min(100%, 250px); }
  .total { padding: 20px; }
  .total .btn { width: 100%; }
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 60px 12px 16px; gap: 12px; }
  .lightbox__fig { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__fig img { max-height: calc(100dvh - 230px); }
  .lightbox__nav--prev { grid-column: 1; grid-row: 2; }
  .lightbox__nav--next { grid-column: 2; grid-row: 2; }
  .link { padding-right: 16px; gap: 12px; grid-template-columns: 48px 1fr 22px; }
  .link.link--mini { grid-template-columns: 1fr; }
  .link__ico { width: 48px; height: 48px; }
  .compare { margin-bottom: 70px; }
  .charm-stage { padding-top: 96px; }
}

@media (max-width: 420px) {
  .linklist__duo { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: auto auto auto auto; }
}

@media (hover: none) {
  .sticker { cursor: default; touch-action: auto; }
  .peek { cursor: default; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; translate: none; }
}

/* ==========================================================
   CONTENT.JS: СТАТУСЫ И ОШИБКИ
   ========================================================== */
.status-chip:not(.is-on) .dot { background: #C9B6C2; animation: none; box-shadow: none; }

.work.is-gone { display: none; }
.work--broken {
  display: grid; place-items: center;
  min-height: 180px;
  padding: 16px;
  border: 2.5px dashed var(--pink);
  background: var(--white);
  cursor: default;
}
.work--broken img, .work--broken .work__label { display: none; }
.work__err { font-weight: 800; font-size: .9rem; text-align: center; color: var(--pink-deep); }

.site-error {
  position: fixed; z-index: 200;
  left: 50%; top: 86px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  display: grid; gap: 6px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 2.5px solid var(--ink);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--pink);
  font-size: .95rem;
}
.site-error b { font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; color: var(--pink-deep); }
