/* ============================================================
   Фитнес Парк Измайлово — новогодний баннер
   Компонент самодостаточный: все размеры в cqw от контейнера.
   ============================================================ */

.nyb-wrap {
  container-type: inline-size;
  container-name: nyb;
  width: 100%;
}

.nyb {
  --ink: #08090c;
  --orange: #f4630e;
  --orange-2: #ff8a2a;
  --ice: #93dcff;
  --snow: #f4faff;
  --gold: #ffc24b;
  --drift: 0px;

  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2.2cqw;
  background: transparent;
  color: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2.4cqw 6cqw rgba(0, 0, 0, 0.45);
}

.nyb *,
.nyb *::before,
.nyb *::after {
  box-sizing: border-box;
}

.nyb button {
  font: inherit;
  color: inherit;
}

/* ---------- фон ---------- */

.nyb__bg {
  position: absolute;
  inset: -2%;
  z-index: 0;
  display: none;
  background: none;
  filter: brightness(0.38) saturate(0.74) contrast(1.08);
  transform: scale(1.04);
}

.nyb__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(6, 7, 10, 0.97) 0%,
      rgba(6, 7, 10, 0.91) 33%,
      rgba(6, 7, 10, 0.56) 55%,
      rgba(6, 7, 10, 0.1) 76%,
      rgba(6, 7, 10, 0.34) 100%
    ),
    radial-gradient(50% 72% at 84% 62%, rgba(244, 99, 14, 0.33), transparent 66%),
    radial-gradient(42% 52% at 92% 14%, rgba(84, 168, 255, 0.2), transparent 70%),
    linear-gradient(0deg, rgba(6, 7, 10, 0.92) 0%, transparent 30%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.62) 0%, transparent 32%);
}

.nyb__bokeh {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.nyb__bokeh i {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(1.1cqw);
  animation: nyb-float 13s ease-in-out infinite alternate;
}

.nyb__bokeh i:nth-child(1) {
  right: 12%;
  top: 12%;
  width: 10cqw;
  height: 10cqw;
  background: radial-gradient(circle, #ff8a2a, transparent 66%);
}

.nyb__bokeh i:nth-child(2) {
  right: 30%;
  top: 55%;
  width: 7cqw;
  height: 7cqw;
  background: radial-gradient(circle, #7fd0ff, transparent 65%);
  animation-delay: -5s;
}

.nyb__bokeh i:nth-child(3) {
  right: 4%;
  bottom: 12%;
  width: 13cqw;
  height: 13cqw;
  background: radial-gradient(circle, #ff6a1c, transparent 68%);
  animation-delay: -8s;
}

/* ---------- ёлка и сани ---------- */

.nyb__tree {
  position: absolute;
  right: 17cqw;
  bottom: -1cqw;
  height: 90%;
  z-index: 2;
  opacity: 0.9;
  filter: blur(0.15cqw) brightness(0.86);
  pointer-events: none;
}

.nyb__tree svg {
  height: 100%;
  width: auto;
  display: block;
}

.nyb__tree .lk {
  animation: nyb-twinkle 2.8s ease-in-out infinite;
}

@keyframes nyb-twinkle {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.nyb__sleigh {
  position: absolute;
  top: 0.6%;
  left: 0;
  width: 20%;
  z-index: 2;
  opacity: 0.82;
  pointer-events: none;
  transform: translateX(120cqw);
  will-change: transform;
}

.nyb__sleigh svg {
  display: block;
  width: 100%;
  height: auto;
  /* разворачиваем упряжку: олени слева, сани справа — движение влево, олени впереди */
  transform: scaleX(-1);
  filter: drop-shadow(0 0 1.2cqw rgba(255, 150, 50, 0.55)) drop-shadow(0 0.2cqw 0.4cqw rgba(0, 0, 0, 0.5));
}

.nyb--fly .nyb__sleigh {
  animation: nyb-fly-left 14s linear 0.9s forwards;
}

@keyframes nyb-fly-left {
  from {
    transform: translateX(120cqw);
  }
  to {
    transform: translateX(-30cqw);
  }
}

/* ---------- снег ---------- */

.nyb__snow {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- контент ---------- */

.nyb__content {
  position: absolute;
  left: 4.8cqw;
  top: 4.4cqw;
  z-index: 6;
  width: 55cqw;
}

.nyb__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55cqw;
  padding: 0.72cqw 1.15cqw;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #e9eff7;
  font-size: 1.02cqw;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: nyb-stamp 0.75s cubic-bezier(0.2, 1.4, 0.4, 1) both 0.2s;
}

.nyb__badge svg {
  width: 1.35cqw;
  height: 1.35cqw;
  flex: none;
  color: var(--gold);
}

.nyb__title {
  margin: 2.1cqw 0 0;
  font-family: Oswald, Inter, sans-serif;
  font-weight: 700;
  font-size: 4.15cqw;
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0.3cqw 1.4cqw rgba(0, 0, 0, 0.45);
  animation: nyb-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.34s;
}

.nyb__title span {
  display: block;
}

.nyb__title em {
  display: block;
  margin-top: 0.035em;
  font-style: normal;
  font-size: 2.34em;
  line-height: 0.94;
  letter-spacing: -0.01em;
  background: linear-gradient(94deg, #ffc06e 0%, #ff8a2a 36%, #f4630e 68%, #ff9b3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 1.1cqw rgba(244, 99, 14, 0.38));
}

.nyb__sub {
  margin: 2.25cqw 0 0;
  max-width: 46cqw;
  color: #dbe5f1;
  font-size: 1.62cqw;
  font-weight: 560;
  line-height: 1.32;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  animation: nyb-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.48s;
}

.nyb__sub b {
  color: #fff;
  font-weight: 750;
}

.nyb__sub .ice {
  color: var(--ice);
  text-shadow: 0 0 1.4cqw rgba(147, 220, 255, 0.35);
}

.nyb__cta-wrap {
  margin-top: 1.9cqw;
  animation: nyb-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.62s;
}

.nyb__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  height: 4.55cqw;
  padding: 0 2.2cqw;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7d25 0%, #f4630e 62%, #e25407 100%);
  box-shadow:
    0 1cqw 2.4cqw rgba(244, 99, 14, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  color: #fff;
  font-size: 1.34cqw;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nyb__cta::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -55%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-22deg);
  animation: nyb-shine 4.8s ease-in-out infinite;
}

.nyb__cta svg {
  width: 1.15cqw;
  height: 1.15cqw;
  flex: none;
}

.nyb__cta.is-hit {
  animation: nyb-cta-hit 0.62s ease;
}

.nyb__note {
  margin: 1.15cqw 0 0;
  color: rgba(230, 239, 250, 0.58);
  font-size: 0.98cqw;
  font-weight: 500;
  letter-spacing: 0.01em;
  animation: nyb-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.72s;
}

/* ---------- Дед Мороз ---------- */

.nyb__hero {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.nyb__santa {
  position: absolute;
  right: 2.1cqw;
  bottom: 0;
  height: 95%;
  aspect-ratio: 300 / 545;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: 50% 100%;
  filter:
    drop-shadow(0 1.1cqw 1.8cqw rgba(0, 0, 0, 0.42))
    drop-shadow(-0.18cqw 0 0.35cqw rgba(255, 140, 40, 0.32));
  transition: filter 0.3s ease;
}

.nyb__santa::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 4% 0;
  height: 74%;
  background: radial-gradient(50% 50% at 50% 62%, rgba(244, 99, 14, 0.34), transparent 72%);
  filter: blur(1.6cqw);
}

.nyb__santa:hover {
  filter:
    drop-shadow(0 1.3cqw 2.4cqw rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 2.1cqw rgba(244, 99, 14, 0.58));
}

.nyb__santa:focus-visible {
  outline: 0.3cqw solid var(--gold);
  outline-offset: 0.6cqw;
  border-radius: 2cqw;
}

.nyb__santa-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: nyb-santa-in 1s cubic-bezier(0.2, 0.9, 0.2, 1) both 0.12s;
}

.nyb__santa.is-squat {
  animation: nyb-squat 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.nyb__santa.is-jump {
  animation: nyb-jump 0.82s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.nyb__santa.is-throw {
  animation: nyb-throw 0.72s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.nyb__santa.is-lift {
  animation: nyb-lift-body 0.82s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.nyb-santa__arm {
  transform-box: fill-box;
  transform-origin: 82% 10%;
}

.nyb__santa.is-lift .nyb-santa__arm {
  animation: nyb-arm 0.82s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* ---------- карточки ---------- */

.nyb__cards {
  position: absolute;
  left: 4.8cqw;
  bottom: 3.2cqw;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  animation: nyb-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.78s;
}

.nyb-card {
  position: relative;
  width: 17.1cqw;
  aspect-ratio: 1.6;
  border: 0;
  border-radius: 1.15cqw;
  padding: 0;
  color: #fff;
  text-align: left;
  box-shadow: 0 1.3cqw 2.6cqw rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
}

.nyb-card--club {
  z-index: 1;
  transform: rotate(-9deg) translateX(-0.8cqw) translateY(1.3cqw);
  animation: nyb-card-float 7s ease-in-out infinite alternate;
}

.nyb-card--pool {
  z-index: 2;
  margin-left: -4.6cqw;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 700px;
  transform: rotate(6deg) translateY(-0.5cqw);
  animation: nyb-card-float 8s ease-in-out -2.2s infinite alternate;
  pointer-events: auto;
}

.nyb-card--pool:hover,
.nyb-card--pool:focus-visible {
  z-index: 5;
}

.nyb-card--pool:focus-visible {
  outline: 0.3cqw solid var(--gold);
  outline-offset: 0.5cqw;
}

.nyb-card__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nyb-card--pool.is-flipped .nyb-card__inner {
  transform: rotateY(180deg);
}

.nyb-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: inherit;
  padding: 1.15cqw;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.nyb-card--club .nyb-card__face {
  background: linear-gradient(136deg, #2a2f3a 0%, #14171d 48%, #08090c 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.nyb-card--club .nyb-card__face::after {
  content: "";
  position: absolute;
  right: -22%;
  top: -44%;
  width: 88%;
  height: 130%;
  background: radial-gradient(circle, rgba(244, 99, 14, 0.38), transparent 66%);
}

.nyb-card--pool .nyb-card__face--front {
  background: linear-gradient(136deg, #12688f 0%, #0a2d48 52%, #0d5d79 100%);
  border: 1px solid rgba(147, 220, 255, 0.3);
}

.nyb-card--pool .nyb-card__face--front::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -34%;
  height: 78%;
  background: radial-gradient(ellipse at 50% 100%, rgba(125, 220, 255, 0.42), transparent 64%);
}

.nyb-card__brand {
  position: relative;
  z-index: 1;
  color: #ffb25b;
  font-size: 0.92cqw;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nyb-card__brand span {
  display: block;
  line-height: 1.12;
}

.nyb-card--pool .nyb-card__brand {
  color: rgba(226, 245, 255, 0.78);
}

.nyb-card__title {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-family: Oswald, Inter, sans-serif;
  font-size: 1.75cqw;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.nyb-card__chip {
  position: absolute;
  right: 1.15cqw;
  bottom: 1.15cqw;
  width: 2.4cqw;
  height: 1.75cqw;
  border-radius: 0.35cqw;
  background: linear-gradient(135deg, #f1cf7d, #b98a2e);
  opacity: 0.9;
}

.nyb-card__badge {
  position: absolute;
  z-index: 2;
  right: 0.95cqw;
  top: 0.95cqw;
  padding: 0.32cqw 0.58cqw;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a2a, #f4630e);
  box-shadow: 0 0 1.3cqw rgba(244, 99, 14, 0.55);
  color: #fff;
  font-size: 0.76cqw;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nyb-card__waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 44%;
  opacity: 0.4;
}

.nyb-card__waves svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nyb-card__face--back {
  align-items: center;
  justify-content: center;
  gap: 0.45cqw;
  background: linear-gradient(136deg, #ff9b3d 0%, #f4630e 58%, #d94f04 100%);
  text-align: center;
  transform: rotateY(180deg);
}

.nyb-card__back-icon {
  width: 3.2cqw;
  height: 3.2cqw;
  color: #fff;
}

.nyb-card__back-small {
  font-size: 0.82cqw;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
}

.nyb-card__back-big {
  font-family: Oswald, Inter, sans-serif;
  font-size: 2.1cqw;
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
}

/* ---------- подсказка / счётчик ---------- */

.nyb__hint {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 3.2cqw;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 0.55cqw;
  padding: 0.72cqw 1.05cqw;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(9, 11, 15, 0.74);
  box-shadow: 0 0.8cqw 1.8cqw rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
  color: #eaf1fa;
  font-size: 1cqw;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nyb__hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, 0.5cqw);
}

.nyb__hint svg {
  width: 1.5cqw;
  height: 1.5cqw;
  flex: none;
  color: var(--gold);
  animation: nyb-tap 1.6s ease-in-out infinite;
}

.nyb__hint.is-count svg {
  animation: none;
}

.nyb__hint-arrow {
  color: var(--gold);
  font-size: 1.2em;
  font-weight: 800;
  line-height: 1;
}

.nyb__hint.is-count .nyb__hint-arrow {
  display: none;
}

/* ---------- сугроб ---------- */

.nyb__drift {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -1px;
  z-index: 8;
  height: 9cqw;
  /* Волна (округлые горки) + минимальное основание, без «плато».
     --drift-show — максимум; текущая высота берётся из --drift,
     поэтому снег растёт и уменьшается, когда Дед бросает снежки. */
  --drift-show: 4.7cqw;
  pointer-events: none;
  transform: translateY(calc(100% - min(var(--drift, 0px), var(--drift-show))));
}

.nyb__drift svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- салют и частицы ---------- */

.nyb__salute {
  position: absolute;
  left: 50%;
  top: 66%;
  z-index: 9;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  padding: 1.1cqw 1.8cqw;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.5cqw;
  background: rgba(8, 9, 12, 0.62);
  box-shadow: 0 0.8cqw 2.4cqw rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: Oswald, Inter, sans-serif;
  font-size: 3.9cqw;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-align: center;
  text-transform: uppercase;
  max-width: 80%;
  text-shadow:
    0 0 2.2cqw rgba(255, 140, 40, 0.85),
    0 0.45cqw 1cqw rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.36s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.nyb__salute.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.nyb__puff {
  position: absolute;
  z-index: 7;
  width: 2.2cqw;
  height: 2.2cqw;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(221, 241, 255, 0.45) 52%, transparent 72%);
  filter: blur(0.18cqw);
  pointer-events: none;
  animation: nyb-puff 0.72s ease-out forwards;
}

.nyb__spark {
  position: absolute;
  z-index: 8;
  width: 1.1cqw;
  height: 1.1cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff, var(--c, #bfe9ff) 62%, transparent 78%);
  pointer-events: none;
  animation: nyb-spark 0.82s ease-out forwards;
}

.nyb__snowball {
  position: absolute;
  z-index: 8;
  width: 1.7cqw;
  height: 1.7cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0%, #d9efff 56%, #8fd8ff 100%);
  box-shadow: 0 0 1.4cqw rgba(170, 225, 255, 0.9);
  pointer-events: none;
}

.nyb__toast {
  position: absolute;
  left: 50%;
  bottom: 15cqw;
  z-index: 10;
  opacity: 0;
  transform: translate(-50%, 1cqw);
  padding: 1cqw 1.8cqw;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(9, 11, 15, 0.86);
  box-shadow: 0 0.8cqw 2cqw rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #eaf1fa;
  font-size: 2cqw;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nyb__toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- ключевые кадры ---------- */

@keyframes nyb-up {
  from {
    opacity: 0;
    transform: translateY(1.4cqw);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes nyb-stamp {
  0% {
    opacity: 0;
    transform: scale(1.65) rotate(-9deg);
  }
  62% {
    opacity: 1;
    transform: scale(0.96) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes nyb-santa-in {
  from {
    opacity: 0;
    transform: translateY(3cqw) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes nyb-squat {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
  34% {
    transform: translateY(3.8%) scale(1.045, 0.9);
  }
  62% {
    transform: translateY(-1.2%) scale(0.985, 1.025);
  }
  80% {
    transform: translateY(0.6%) scale(1.012, 0.99);
  }
}

@keyframes nyb-jump {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
  18% {
    transform: translateY(1.8%) scale(1.05, 0.955);
  }
  54% {
    transform: translateY(-7.5%) scale(0.985, 1.02);
  }
  76% {
    transform: translateY(1%) scale(1.03, 0.975);
  }
}

@keyframes nyb-throw {
  0%,
  100% {
    transform: rotate(0deg);
  }
  28% {
    transform: rotate(-5deg) translateX(-1.4%);
  }
  55% {
    transform: rotate(3.2deg) translateX(0.7%);
  }
  76% {
    transform: rotate(-1deg);
  }
}

@keyframes nyb-arm {
  0%,
  100% {
    transform: rotate(0deg);
  }
  32% {
    transform: rotate(-26deg);
  }
  58% {
    transform: rotate(7deg);
  }
}

@keyframes nyb-lift-body {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
  30% {
    transform: translateY(1.4%) scale(1.018, 0.982);
  }
  58% {
    transform: translateY(-0.7%) scale(0.995, 1.008);
  }
}

@keyframes nyb-float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-1.6cqw, 1.2cqw, 0) scale(1.12);
  }
}

@keyframes nyb-card-float {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -0.9cqw;
  }
}

@keyframes nyb-shine {
  0%,
  55% {
    left: -55%;
  }
  85%,
  100% {
    left: 125%;
  }
}

@keyframes nyb-tap {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.28cqw);
  }
}

@keyframes nyb-cta-hit {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.07);
    box-shadow: 0 0 3cqw rgba(255, 140, 40, 0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes nyb-puff {
  from {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.35);
  }
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -2cqw))) scale(2.5);
  }
}

@keyframes nyb-spark {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.7);
  }
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(1.5);
  }
}

/* ---------- мобильная композиция ---------- */

@container nyb (max-width: 700px) {
  .nyb {
    aspect-ratio: 2 / 3;
    border-radius: 4.2cqw;
    background: #0a0b0f;
  }

  .nyb__bg {
    display: block;
    background: url("/wp-content/uploads/ny-banner/img/gym.jpg") center / cover no-repeat;
  }

  .nyb__shade {
    background:
      linear-gradient(
        180deg,
        rgba(6, 7, 10, 0.97) 0%,
        rgba(6, 7, 10, 0.92) 34%,
        rgba(6, 7, 10, 0.62) 56%,
        rgba(6, 7, 10, 0.4) 70%,
        rgba(6, 7, 10, 0.86) 100%
      ),
      radial-gradient(52% 38% at 80% 58%, rgba(244, 99, 14, 0.34), transparent 70%),
      radial-gradient(46% 30% at 88% 18%, rgba(84, 168, 255, 0.18), transparent 72%);
  }

  .nyb__bokeh i:nth-child(1) {
    width: 20cqw;
    height: 20cqw;
  }

  .nyb__bokeh i:nth-child(2) {
    width: 14cqw;
    height: 14cqw;
  }

  .nyb__bokeh i:nth-child(3) {
    width: 26cqw;
    height: 26cqw;
  }

  .nyb__content {
    left: 6cqw;
    top: 5.2cqw;
    width: 88cqw;
  }

  .nyb__badge {
    gap: 0.9cqw;
    padding: 1.15cqw 1.9cqw;
    font-size: 2.32cqw;
  }

  .nyb__badge svg {
    width: 3.2cqw;
    height: 3.2cqw;
  }

  .nyb__title {
    margin-top: 3.4cqw;
    font-size: 8.2cqw;
  }

  .nyb__title em {
    font-size: 1.88em;
  }

  .nyb__sub {
    max-width: none;
    margin-top: 4.1cqw;
    font-size: 4.05cqw;
    line-height: 1.28;
  }

  .nyb__cta-wrap {
    margin-top: 4.2cqw;
  }

  .nyb__cta {
    width: 100%;
    height: 11.8cqw;
    padding: 0 4cqw;
    font-size: 4.1cqw;
  }

  .nyb__cta svg {
    width: 3.4cqw;
    height: 3.4cqw;
  }

  .nyb__note {
    margin-top: 2.2cqw;
    font-size: 2.75cqw;
  }

  .nyb__tree {
    right: 34cqw;
    bottom: -1cqw;
    height: 38%;
    opacity: 0.4;
    filter: blur(0.3cqw) brightness(0.8);
  }

  .nyb__sleigh {
    display: none;
  }

  .nyb__santa {
    right: -3.5cqw;
    height: 44%;
  }

  .nyb__santa::before {
    filter: blur(4cqw);
  }

  .nyb__cards {
    left: 6cqw;
    bottom: 7.6cqw;
  }

  .nyb-card {
    width: 28.6cqw;
    border-radius: 2.1cqw;
    box-shadow: 0 2.4cqw 4.6cqw rgba(0, 0, 0, 0.5);
  }

  .nyb-card--club {
    transform: rotate(-9deg) translateX(-1.2cqw) translateY(2.4cqw);
  }

  .nyb-card--pool {
    margin-left: -7.4cqw;
    transform: rotate(6deg) translateY(-0.8cqw);
  }

  .nyb-card__face {
    padding: 2.1cqw;
  }

  .nyb-card__brand {
    font-size: 1.85cqw;
  }

  .nyb-card__title {
    font-size: 3.45cqw;
  }

  .nyb-card__chip {
    right: 2.1cqw;
    bottom: 2.1cqw;
    width: 4.6cqw;
    height: 3.4cqw;
    border-radius: 0.7cqw;
  }

  .nyb-card__badge {
    right: 1.7cqw;
    top: 1.7cqw;
    padding: 0.65cqw 1.05cqw;
    font-size: 1.55cqw;
  }

  .nyb-card__back-icon {
    width: 6cqw;
    height: 6cqw;
  }

  .nyb-card__back-small {
    font-size: 1.7cqw;
  }

  .nyb-card__back-big {
    font-size: 4.3cqw;
  }

  .nyb__hint {
    left: 6cqw;
    right: auto;
    bottom: 37cqw;
    gap: 1.1cqw;
    padding: 1.65cqw 2.4cqw;
    font-size: 2.65cqw;
    transform: none;
  }

  .nyb__hint.is-hidden {
    transform: translateY(0.5cqw);
  }

  .nyb__hint svg {
    width: 3.6cqw;
    height: 3.6cqw;
  }

  .nyb__toast {
    bottom: 25cqw;
    padding: 2.2cqw 3.4cqw;
    font-size: 5.2cqw;
  }

  .nyb__drift {
    height: 13cqw;
    --drift-show: 6.8cqw;
  }
  .nyb__salute {
    top: 58%;
    font-size: 9.2cqw;
    padding: 3cqw 4.4cqw;
    border-radius: 3.4cqw;
  }

  .nyb__puff {
    width: 4.4cqw;
    height: 4.4cqw;
  }

  .nyb__spark {
    width: 2.2cqw;
    height: 2.2cqw;
  }

  .nyb__snowball {
    width: 3.4cqw;
    height: 3.4cqw;
  }
}

/* ---------- уменьшенное движение ---------- */

@media (prefers-reduced-motion: reduce) {
  .nyb *,
  .nyb *::before,
  .nyb *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .nyb__snow,
  .nyb__sleigh {
    display: none;
  }
}

/* ---------- Восток: двухстрочный подзаголовок, карточки чуть ниже ---------- */

.nyb--vostok .nyb__cards {
  bottom: 4.5cqw;
}

.nyb--vostok .nyb__title {
  font-size: 4cqw;
}

.nyb--vostok .nyb__title span {
  white-space: nowrap;
}

.nyb--vostok .nyb__note {
  margin-top: 0.6cqw;
}

.nyb--vostok .nyb-card__brand {
  letter-spacing: 0.11em;
  line-height: 1.15;
}

/* ---------- Восток (ПК): кнопка и подпись крупнее, без наезда на карточки ---------- */

@container nyb (min-width: 701px) {
  /* компактнее по вертикали, чтобы подпись не залезала под карточки */
  .nyb--vostok .nyb__title {
    margin-top: 1.4cqw;
  }

  .nyb--vostok .nyb__sub {
    margin-top: 1.6cqw;
  }

  .nyb--vostok .nyb__cta-wrap {
    margin-top: 1.2cqw;
  }

  .nyb--vostok .nyb__cta {
    width: 46cqw;
    max-width: 46cqw;
    height: 5.8cqw;
    font-size: 2.6cqw;
  }

  .nyb--vostok .nyb__cta svg {
    width: 2.3cqw;
    height: 2.3cqw;
  }

  .nyb--vostok .nyb__note {
    font-size: 1.96cqw;
    margin-top: 0.3cqw;
  }

  /* тема перекрашивает ссылку в цвет акцента — возвращаем белый, иначе текст исчезает */
  .nyb--vostok .nyb__cta:hover,
  .nyb--vostok .nyb__cta:focus {
    color: #fff !important;
  }
}

@container nyb (max-width: 700px) {
  .nyb--vostok .nyb__cards {
    bottom: 7.6cqw;
  }

  .nyb--vostok .nyb-card--pool .nyb-card__badge {
    display: none;
  }

  .nyb--vostok .nyb__title {
    font-size: 6.8cqw;
  }

  .nyb--vostok .nyb__sub {
    margin-top: 3.4cqw;
    font-size: 3.15cqw;
    line-height: 1.26;
  }
}

/* ---------- Планшет: 501–700 px контейнера — текст по центру ---------- */

.nyb-contacts {
  display: none;
}

@container nyb (max-width: 700px) {
  .nyb {
    background: transparent;
    box-shadow: none;
  }

  .nyb__bg,
  .nyb__shade {
    display: none;
  }

  .nyb__content {
    left: 50%;
    width: 88cqw;
    transform: translateX(-50%);
    text-align: center;
  }

  .nyb__badge {
    display: flex;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
  }

  .nyb__title,
  .nyb__sub,
  .nyb__note {
    text-align: center;
  }

  .nyb__sub,
  .nyb__note {
    text-shadow: 0 0.12cqw 0.7cqw rgba(0, 0, 0, 0.7);
  }

  .nyb__sub {
    max-width: 82cqw;
    margin-left: auto;
    margin-right: auto;
  }

  .nyb__cta-wrap {
    text-align: center;
  }

  .nyb--vostok .nyb__title {
    font-size: 6.4cqw;
  }

  .nyb-contacts {
    display: flex;
    flex-direction: column;
    gap: 1.4cqw;
    padding: 3.4cqw 5cqw;
    background: #0a0b0f;
    border-radius: 4.2cqw;
  }

  .nyb-contacts a {
    display: flex;
    align-items: center;
    gap: 2.4cqw;
    color: #fff;
    font-size: 3.4cqw;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
  }

  .nyb-contacts img {
    width: 5.8cqw;
    height: 5.8cqw;
    object-fit: contain;
    flex: none;
  }
}

/* На планшете блок мессенджеров не нужен — только на телефоне */
@container nyb (min-width: 501px) and (max-width: 700px) {
  .nyb-contacts {
    display: none;
  }
}

/* На телефоне фон баннера оставляем: hero там светло-серый */
@container nyb (max-width: 500px) {
  .nyb {
    background: #0a0b0f;
  }

  .nyb__bg {
    display: block;
    background: url("/wp-content/uploads/ny-banner/img/gym.jpg") center / cover no-repeat;
  }

  .nyb__shade {
    display: block;
  }
}

/* Elementor: убрать светло-серый зазор под баннером */

.e-con:has(.nyb-wrap) {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
  row-gap: 0 !important;
  background: transparent !important;
}

.elementor-widget-html:has(.nyb-wrap),
.elementor-widget-html:has(.nyb-wrap) .elementor-widget-container {
  margin: 0 !important;
  padding: 0 !important;
}

/* КРИТИЧНО: .nyb-wrap имеет container-type:inline-size (size containment),
   поэтому его собственная ширина не зависит от содержимого. Если родитель
   «сжимается по содержимому» (flex-контейнер Elementor на мобильном/планшете),
   ширина получается 0 → баннер схлопывается в ноль.
   Принудительно растягиваем всю цепочку родителей. */

.e-con:has(.nyb-wrap),
.e-con-inner:has(.nyb-wrap) {
  align-items: stretch !important;
}

.elementor-widget-html:has(.nyb-wrap),
.elementor-widget-html:has(.nyb-wrap) .elementor-widget-container,
.e-con:has(.nyb-wrap) > .elementor-widget-html {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 100% !important;
  align-self: stretch !important;
}
