/* ============================================================
   NY — страница «Новогоднее предложение» (/novyj-god.html)
   Подключается после style.css и program.css: шапка, кнопки, крафт-плашки,
   тёмная «стена» (.pp__other) и форма — от страницы программы.
   Здесь только новые блоки в неймспейсе .ny-*.
   ============================================================ */

.page-ny { --ny-red: #7A1F24; --ny-red-2: #9A2A30; }

/* Портретное фото в «полароиде» шапки — уже, чтобы шапка не вытягивалась */
.page-ny .pp__photo { width: min(100%, 400px); }

/* ---------- Снег в шапке ---------- */
.ny-snow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(3px 3px at 120px 80px, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(2px 2px at 200px 150px, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(4px 4px at 60px 200px, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(2px 2px at 170px 240px, rgba(255,255,255,.75) 50%, transparent 51%);
  background-size: 240px 260px;
  animation: nySnow 16s linear infinite;
  opacity: .8;
}
@keyframes nySnow {
  to { background-position: 60px 260px, -40px 260px, 30px 260px, -20px 260px, 50px 260px; }
}

/* ---------- Три направления — карточки, наезжающие на рваный край шапки ---------- */
.ny-nav {
  position: relative;
  z-index: 3;
  margin-top: -44px;
}
.ny-nav__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  list-style: none;
}
.ny-nav__item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px 22px;
  background: #FFFDF8;
  border: 1px solid rgba(159, 100, 41, 0.20);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(59, 35, 20, 0.14);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--color-brown-dark);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.ny-nav__item:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  box-shadow: 0 16px 32px rgba(59, 35, 20, 0.2);
}
.ny-nav__num {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ny-red);
  color: #FFE3AC;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
}

/* ---------- Спектакли ---------- */
.ny-shows {
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 7vw, 100px);
}
.ny-shows__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}
.ny-shows__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
  margin-top: 8px;
}
.ny-show {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  overflow: hidden;
  background: #FFFDF8;
  border: 1px solid rgba(159, 100, 41, 0.2);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(59, 35, 20, 0.14);
}
.ny-show__poster { display: block; background: #2A170C; }
.ny-show__poster img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: transform .5s var(--ease-soft);
}
.ny-show:hover .ny-show__poster img { transform: scale(1.03); }
.ny-show__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px);
}
.ny-show__date {
  margin: 0 0 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--ny-red);
  color: #FFE3AC;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .02em;
}
.ny-show__title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--color-brown-dark);
}
.ny-show__text {
  margin: 0 0 16px;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: #4A3527;
}
.ny-show__meta {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ny-show__meta li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.45;
  color: #4A3527;
}
.ny-show__meta li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(245, 177, 67, .25);
}
.ny-show__price {
  margin: auto 0 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--ny-red);
}
.ny-show__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}
.ny-show__book {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-brown-mid);
  text-decoration: underline;
  text-decoration-color: rgba(159, 100, 41, .4);
  text-underline-offset: 4px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.ny-show__book:hover { color: var(--ny-red); text-decoration-color: currentColor; }

/* ---------- Дед Мороз и Снегурочка ---------- */
.ny-dm {
  padding: 0 0 clamp(72px, 8vw, 120px);
}
.ny-dm__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}
.ny-dm__list { margin-top: 8px; }
.ny-dm__photos {
  position: relative;
  min-height: 520px;
}
.ny-dm__photo {
  position: absolute;
  margin: 0;
  width: 62%;
  padding: 12px 12px 34px;
  background: #F4E8D0 url('../assets/img/v2/paper-strip.webp') center / cover;
  border-radius: 3px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.38);
}
.ny-dm__photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
.ny-dm__photo--a { left: 0; top: 0; transform: rotate(-4deg); z-index: 1; }
.ny-dm__photo--b { right: 0; top: 70px; transform: rotate(3.5deg); z-index: 2; }

/* ---------- Вечеринка для классов и групп (тёмная стена .pp__other) ----------
   Постер слева, его текст — справа разметкой (поиск и скринридеры постер не читают). */
.ny-class__inner {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  text-align: left;
}
.ny-class__poster {
  margin: 0;
  justify-self: center;
  width: min(100%, 460px);
  border-radius: 14px;
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: 0 0 0 1px rgba(255, 70, 80, .35), 0 24px 60px rgba(0, 0, 0, .55), 0 0 60px rgba(214, 34, 52, .35);
}
.ny-class__poster img { display: block; width: 100%; height: auto; }
.ny-class .pp__h2 { margin-bottom: 18px; }
.ny-class__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}
.ny-class__age,
.ny-class__offer {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
}
.ny-class__age { background: #C8202F; color: #fff; }
.ny-class__offer {
  border: 1.5px solid rgba(245, 177, 67, 0.8);
  background: rgba(59, 35, 20, 0.35);
  color: var(--color-gold);
}
.ny-class__text {
  margin: 0 0 18px;
  max-width: 560px;
  font-family: var(--font-text);
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.62;
  color: rgba(245, 238, 224, 0.92);
}
.ny-class__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.ny-class__list li {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--color-cream-light);
}
.ny-class__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 14px;
  background: #E2323F;
  transform: skewX(-18deg);
  box-shadow: 0 0 8px rgba(226, 50, 63, .8);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .ny-nav__list { grid-template-columns: 1fr; gap: 10px; }
  .ny-nav__item { padding: 14px 18px; }
  .ny-dm__inner { grid-template-columns: 1fr; }
  .ny-dm__photos { min-height: 0; display: flex; justify-content: center; gap: 0; padding: 10px 0 20px; }
  .ny-dm__photo { position: relative; width: min(48%, 260px); left: auto; right: auto; top: auto; }
  .ny-dm__photo--b { margin-left: -6%; margin-top: 40px; }
  .ny-class__inner { grid-template-columns: 1fr; }
  .ny-class__poster { width: min(100%, 400px); transform: none; }
}
@media (max-width: 480px) {
  .ny-class__list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .ny-nav__list, .ny-shows__inner, .ny-dm__inner { padding: 0 20px; }
  .ny-show { grid-template-columns: 1fr; }
  .ny-show__poster img { height: auto; max-height: 560px; }
  .ny-show__price { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ny-snow { animation: none; }
}
