/* «Кузьма: Страшно веселий» premiere promo — restrained, cinematic bottom
   strip around the real film poster. Night-stage gradient fading in from
   transparent with a warm amber spotlight glow, a crowd-with-raised-hands
   silhouette edge, two slow crossing spotlight beams, a slow-breathing
   retro-microphone watermark, and a poster + CTA card. No gags — the owner
   asked for a serious tone. Pure CSS; only the CTA + close are clickable. */

.kz-promo {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 188px;
  z-index: 1150;                 /* below the .call-fab (z-index:1200) so «Подзвонити» stays on top */
  pointer-events: none;
  overflow: hidden;
  font-family: inherit;
  --kz-night: #120818;
  --kz-stage: #241330;
  --kz-violet: #3a1c4a;
  --kz-amber: #e8b64c;
  --kz-amber2: #d99a2b;
  --kz-red: #c81e2c;
  --kz-red2: #a3151f;
  /* night stage: transparent at the top → deep violet, amber footlights */
  background:
    radial-gradient(120% 130% at 12% 135%, rgba(232,182,76,.28), transparent 55%),
    radial-gradient(110% 120% at 86% 130%, rgba(200,30,44,.22), transparent 55%),
    linear-gradient(180deg, rgba(18,8,24,0) 0%, rgba(18,8,24,0) 12%, rgba(18,8,24,.74) 42%, var(--kz-stage) 74%, #180c20 100%);
}
.kz-promo.is-hidden { display: none; }

/* two slow crossing spotlight beams */
.kz-promo__spot {
  position: absolute; bottom: -30px; width: 190px; height: 240px;
  background: linear-gradient(180deg, rgba(255,214,130,0), rgba(255,214,130,.14) 35%, rgba(255,214,130,.05));
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  mix-blend-mode: screen;
}
.kz-promo__spot.s1 { left: 16%; animation: kz-spot 11s ease-in-out infinite; }
.kz-promo__spot.s2 { left: 58%; animation: kz-spot 11s ease-in-out -5.5s infinite reverse; }
@keyframes kz-spot { 0%,100%{ transform: rotate(-12deg);} 50%{ transform: rotate(12deg);} }

/* retro microphone watermark, slowly "breathing" */
.kz-promo__mic {
  position: absolute; right: 5%; bottom: -18px; width: 120px; height: 190px;
  opacity: .14; color: #d9b8ea;
  animation: kz-mic-breathe 9s ease-in-out infinite;
  transform: rotate(12deg);
}
.kz-promo__mic svg { width: 100%; height: 100%; display: block; }
@keyframes kz-mic-breathe { 0%,100%{ transform: rotate(12deg) scale(1);} 50%{ transform: rotate(9deg) scale(1.04);} }

/* crowd silhouette (raised hands) along the top edge of the strip */
.kz-promo__crowd { position: absolute; left: 0; bottom: 118px; width: 100%; height: 40px; display: block; }
.kz-promo__crowd .cr { fill: rgba(10,4,14,.88); }

/* CTA card (poster + text + button) */
.kz-promo__cta {
  pointer-events: auto;
  position: absolute; left: 26px; bottom: 22px;   /* left side — keep clear of the bottom-right call button */
  display: flex; align-items: stretch; gap: 16px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: #f6effa;
  background: linear-gradient(180deg, rgba(42,22,54,.92), rgba(20,9,27,.94));
  border: 1px solid rgba(232,182,76,.42);
  box-shadow: 0 16px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(3px);
  animation: kz-cta-in .55s cubic-bezier(.2,.9,.3,1.15) both;
  max-width: min(560px, calc(100vw - 44px));
}
@keyframes kz-cta-in { from{ opacity:0; transform: translateY(26px);} to{ opacity:1; transform: translateY(0);} }

/* the real film poster with a slow shine sweep */
.kz-promo__poster {
  position: relative; flex: 0 0 auto;
  width: 96px; height: 144px; border-radius: 10px; overflow: hidden;
  background: #241330 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='4'><rect width='4' height='4' fill='%232a1636'/></svg>");
  box-shadow: 0 10px 22px rgba(0,0,0,.55);
}
.kz-promo__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kz-promo__poster::after {
  content: ""; position: absolute; top: -60%; left: -120%; width: 60%; height: 220%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.3), transparent);
  transform: rotate(8deg); animation: kz-shine 7s ease-in-out 2s infinite;
}
@keyframes kz-shine { 0%,78%{ left:-120%; } 92%,100%{ left:150%; } }

.kz-promo__info { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.kz-promo__eyebrow {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #3a2508; background: linear-gradient(180deg, var(--kz-amber), var(--kz-amber2));
  padding: .16rem .5rem; border-radius: 999px;
}
.kz-promo__title { font-size: 1.5rem; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.kz-promo__meta { font-size: .82rem; color: #d9c2e8; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kz-promo__age { font-size: .7rem; font-weight: 700; color: #f6effa; border: 1px solid rgba(217,194,232,.5); border-radius: 6px; padding: 0 .35rem; }
.kz-promo__btn {
  align-self: flex-start; margin-top: 4px; white-space: nowrap;
  font-weight: 800; font-size: .9rem; color: #fff;
  background: linear-gradient(180deg, var(--kz-red), var(--kz-red2));
  padding: .5rem 1rem; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(200,30,44,.4);
}

.kz-promo__close {
  pointer-events: auto;
  position: absolute; right: 12px; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  background: rgba(24,11,32,.6); color: #efe3f6; font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.kz-promo__close:hover { background: rgba(24,11,32,.9); transform: scale(1.08); }

@media (max-width: 640px) {
  .kz-promo { height: 158px; }
  /* leave the bottom-right free for the round call button (~54px) */
  .kz-promo__cta { left: 10px; right: auto; bottom: 14px; gap: 12px; padding: 10px 12px 10px 10px; max-width: calc(100vw - 84px); }
  .kz-promo__poster { width: 78px; height: 116px; }
  .kz-promo__title { font-size: 1.2rem; }
  .kz-promo__meta { font-size: .76rem; }
  .kz-promo__btn { font-size: .82rem; padding: .42rem .8rem; }
  .kz-promo__crowd { bottom: 98px; }
  .kz-promo__mic { width: 92px; height: 146px; }
  .kz-promo__spot { width: 130px; height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .kz-promo *, .kz-promo__crowd path { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .kz-promo__cta { animation: kz-cta-in .35s ease both; }
}
