/* ============================================================
   HERO без картинки — контент по центру
   ============================================================ */
.hero__layout {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
}
.hero__inner { text-align: center; }
.hero__actions, .hero__stats { justify-content: center; }
.hero__sub { margin-left: auto; margin-right: auto; }

/* ============================================================
   Выглядывающий Ам Ням
   ============================================================ */
.omnom {
  position: fixed;
  z-index: 150;
  width: 110px;
  pointer-events: none;
  transition: transform .7s cubic-bezier(.34,1.56,.64,1);
}
.omnom.is-in { pointer-events: auto; cursor: pointer; }

.omnom__body { position: relative; width: 110px; }
.omnom__svg  { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(110,70,0,0.3)); }
.omnom.is-in .omnom__svg { animation: omnomBob 1.8s ease-in-out infinite; }

@keyframes omnomBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-5px) scale(1.03); }
}

.omnom__eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: omnomBlink 3.6s infinite;
}
@keyframes omnomBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(0.08); }
}

/* реплика */
.omnom__bubble {
  position: absolute;
  background: #fff;
  color: var(--text, #3a2c14);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.35;
  padding: 10px 16px;
  border-radius: 16px;
  width: max-content;
  max-width: 170px;
  box-shadow: 0 8px 22px rgba(110,70,0,0.25);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity .3s .5s, transform .4s .5s cubic-bezier(.34,1.56,.64,1);
}
.omnom.is-in .omnom__bubble { opacity: 1; transform: scale(1); }
.omnom__bubble::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: #fff;
  transform: rotate(45deg);
}

.omnom__thread { display: none; }

/* --- справа --- */
.omnom--right {
  right: 0;
  top: var(--y, 50%);
  transform: translateX(110%) rotate(-12deg);
}
.omnom--right.is-in { transform: translateX(16%) rotate(-12deg); }
.omnom--right .omnom__bubble { right: 88%; top: 6%; transform-origin: right center; }
.omnom--right .omnom__bubble::after { right: -5px; top: 18px; }

/* --- слева --- */
.omnom--left {
  left: 0;
  top: var(--y, 50%);
  transform: translateX(-110%) rotate(12deg);
}
.omnom--left.is-in { transform: translateX(-16%) rotate(12deg); }
.omnom--left .omnom__bubble { left: 88%; top: 6%; transform-origin: left center; }
.omnom--left .omnom__bubble::after { left: -5px; top: 18px; }

/* --- сверху, на верёвочке --- */
.omnom--top {
  top: 0;
  left: var(--x, 50%);
  transform: translateY(-110%);
}
.omnom--top.is-in { transform: translateY(0); }
.omnom--top .omnom__swing { transform-origin: 50% 0; }
.omnom--top.is-in .omnom__swing { animation: omnomSwing 3s ease-in-out infinite; }
.omnom--top .omnom__thread {
  display: block;
  width: 3px;
  height: 60px;
  margin: 0 auto;
  background: linear-gradient(#b07a43, #8a5a2b);
  border-radius: 2px;
}
.omnom--top .omnom__bubble { left: 92%; top: 30px; transform-origin: left center; }
.omnom--top .omnom__bubble::after { left: -5px; top: 18px; }

@keyframes omnomSwing {
  0%, 100% { transform: rotate(-5deg); }
  50%      { transform: rotate(5deg); }
}

@media (max-width: 600px) {
  .omnom, .omnom__body { width: 85px; }
  .omnom__bubble { font-size: 12px; max-width: 140px; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .omnom__eye, .omnom.is-in .omnom__svg, .omnom--top.is-in .omnom__swing { animation: none; }
}

/* --- снизу (единственный вариант появления) --- */
.omnom--bottom {
  bottom: 0;
  left: var(--x, 50%);
  transform: translateY(115%);
}
.omnom--bottom.is-in { transform: translateY(3%); }
.omnom--bottom .omnom__bubble {
  bottom: 96%;
  left: 62%;
  transform-origin: left bottom;
}
.omnom--bottom .omnom__bubble::after { left: 18px; bottom: -5px; }
.omnom--bottom, .omnom--bottom .omnom__body { width: 130px; }
@media (max-width: 600px) { .omnom--bottom, .omnom--bottom .omnom__body { width: 95px; } }

/* --- поймал конфету ртом --- */
.omnom__body { transform-origin: 50% 100%; }
.omnom--chomp .omnom__body { animation: omnomChomp .5s ease; }
@keyframes omnomChomp {
  0%   { transform: scale(1, 1); }
  25%  { transform: scale(1.14, 0.86); }
  55%  { transform: scale(0.94, 1.1); }
  80%  { transform: scale(1.04, 0.97); }
  100% { transform: scale(1, 1); }
}
/* --- картинка + веки + рот покачиваются вместе --- */
.omnom__pic { position: relative; }
.omnom.is-in .omnom__svg { animation: none; }
.omnom.is-in .omnom__pic { animation: omnomBob 1.8s ease-in-out infinite; }

/* веки: координаты глаз на omnom.png (390x399): x 53-327, y 64-210 */
.omnom__lid {
  position: absolute;
  top: 15%;
  width: 37%;
  height: 38.6%;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.omnom__lid--l { left: 12.6%; }
.omnom__lid--r { left: 47.7%; }
.omnom__lid i {
  position: absolute;
  inset: 0;
  background: linear-gradient(#a9dc22, #8cc006);
  border-bottom: 4px solid #3b6e0b;
  border-radius: 0 0 50% 50% / 0 0 35% 35%;
  transform: translateY(-105%);
}
.omnom--blink .omnom__lid i { animation: omnomLid .3s ease-in-out; }
@keyframes omnomLid {
  0%, 100% { transform: translateY(-105%); }
  45%, 60% { transform: translateY(0); }
}

/* открытый пустой рот поверх конфеты в зубах: x 106-289, y 277-399 */
.omnom__mouth {
  position: absolute;
  left: 26.5%;
  width: 48%;
  top: 69.5%;
  height: 30.5%;
  background: radial-gradient(ellipse at 50% 25%, #8a1420 0%, #4a060d 70%);
  border: 3px solid #2f5a08;
  border-radius: 46% 46% 50% 50% / 35% 35% 65% 65%;
  overflow: hidden;
  pointer-events: none;
  transform-origin: 50% 0;
  transform: scaleY(0.15);
  opacity: 0;
  transition: transform .25s ease, opacity .2s ease;
}
.omnom__mouth::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -12%;
  height: 48%;
  background: radial-gradient(ellipse at 50% 30%, #ff8090, #ff5d6e 70%);
  border-radius: 50% 50% 0 0;
}
.omnom--open .omnom__mouth { transform: scaleY(1); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .omnom.is-in .omnom__pic { animation: none; }
}
/* рот — чёрная дыра, без языка */
.omnom__mouth { background: radial-gradient(ellipse at 50% 40%, #1c1c1c 0%, #000 65%); }
.omnom__mouth::after { display: none; }
/* --- мешочек вместо конфеты в лапках --- */
.omnom__mouth { display: none; }          /* рот закрыт мешочком */
.omnom__sack {
  position: absolute;
  left: 24%;
  width: 52%;
  top: 62%;
  height: auto;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 4px 4px rgba(60, 30, 0, 0.3));
}
.omnom__sack-hole {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .25s ease;
}
.omnom--open .omnom__sack-hole { transform: scale(1.12, 1.7); }   /* горловина раскрылась */