/* Новогоднее окно (см. ny-popup.js). 26.11.2026: весь текст — вёрстка поверх фона без надписей,
   один набор строк для телефона и компьютера. Всё в пространстве имён .nyp, со стилями сайта не пересекается. */

@font-face { font-family: "NYP Cormorant"; src: url(fonts/cormorant-cyrillic.woff2) format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "NYP Cormorant"; src: url(fonts/cormorant-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "NYP Manrope"; src: url(fonts/manrope-cyrillic.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "NYP Manrope"; src: url(fonts/manrope-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "NYP Montserrat"; src: url(fonts/Montserrat.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

.nyp { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --gold: #E4C374; --gold-dim: #C9A866; --cream: #F4ECDC;
  position: fixed; inset: 0; z-index: 99980; display: grid; place-items: center; padding: 20px; box-sizing: border-box;
  visibility: hidden; pointer-events: none; text-align: center; line-height: normal; }
.nyp *, .nyp *::before, .nyp *::after { box-sizing: border-box; }
.nyp.is-open { visibility: visible; pointer-events: auto; }
.nyp__backdrop { position: absolute; inset: 0; background: rgba(12, 10, 8, .42); backdrop-filter: blur(22px) saturate(1.4) brightness(.8); -webkit-backdrop-filter: blur(22px) saturate(1.4) brightness(.8);
  opacity: 0; transition: opacity .6s ease; }
.nyp.is-open .nyp__backdrop { opacity: 1; }

.nyp__x { position: absolute; top: 18px; right: 18px; z-index: 2; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; color: #fff;
  opacity: 0; transition: opacity .4s ease .2s; }
.nyp.is-open .nyp__x { opacity: .9; }
.nyp__x svg { width: 30px; height: 30px; }
@media (hover: hover) and (pointer: fine) { .nyp__x:hover { opacity: 1; } }

/* карточка: компьютер — 1120×1200, телефон — 9×16; выезжает снизу */
.nyp__card { position: relative; width: min(560px, 100%, calc((100dvh - 40px) * 1120 / 1200)); aspect-ratio: 1120 / 1200; overflow: hidden;
  border-radius: 10px; background: #0b0705; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); container-type: inline-size;
  --top: 21.5cqw;                                                  /* где кончается логотип на фоне */
  opacity: 0; transform: translateY(60px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.nyp.is-open .nyp__card { opacity: 1; transform: none; }
.nyp.is-closing .nyp__card { opacity: 0; transform: translateY(30px) scale(.98); transition-duration: var(--close, .3s); }
.nyp.is-closing .nyp__backdrop, .nyp.is-closing .nyp__x { opacity: 0; transition-duration: var(--close, .3s); transition-delay: 0s; }

.nyp__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* мягкое затемнение под текстом, чтобы он читался на фото */
.nyp__card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(75% 38% at 50% 46%, rgba(10, 6, 3, .55), transparent 75%), linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, .5)); }

.nyp__content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--top) 8.5cqw 2.5cqw; }
.nyp__info { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2cqw 0 4cqw; }
.nyp__item { white-space: nowrap; }
.nyp__br { display: none; }
.nyp__info p, .nyp__info h2, .nyp__actions p { margin: 0; padding: 0; }
.nyp__date { font: 300 clamp(22px, 6.6cqw, 40px)/1 "NYP Manrope", system-ui, sans-serif; letter-spacing: .02em; text-transform: uppercase; color: var(--gold); }
.nyp__title { margin-top: 4cqw !important; white-space: nowrap; font: 600 clamp(24px, 7.6cqw, 44px)/1 "NYP Cormorant", Georgia, serif; letter-spacing: .01em; text-transform: uppercase; color: var(--cream);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.nyp__subtitle { margin-top: 1.4cqw !important; font: 500 clamp(19px, 5cqw, 28px)/1.1 "NYP Cormorant", Georgia, serif; color: var(--cream); }
.nyp__label { margin-top: 5cqw !important; font: 600 clamp(10px, 2cqw, 12px)/1 "NYP Manrope", system-ui, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-dim); }
.nyp__program { margin-top: 2.2cqw !important; font: 500 clamp(13px, 3.2cqw, 18px)/1.45 "NYP Manrope", system-ui, sans-serif; color: var(--cream); }
.nyp__price { margin-top: 3.4cqw !important; padding-top: 3.4cqw !important; border-top: 1px solid rgba(228, 195, 116, .35);
  font: 600 clamp(14px, 3.3cqw, 19px)/1.3 "NYP Manrope", system-ui, sans-serif; color: var(--cream); }

.nyp__eyebrow { margin: 0 0 2.6cqw !important; font: 500 clamp(10px, 2.2cqw, 12px)/1 "NYP Montserrat", system-ui, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.nyp__venues { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; margin: 0; padding: 0; }
.nyp__venues > li { display: block; width: 100%; margin: 0; padding: 0; list-style: none; }
.nyp__venues > li::before { content: none; }
.nyp .nyp__venue { display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(44px, 8.6cqw, 50px); padding: 0 6px; border-radius: 8px;
  font: 600 clamp(10px, 2.3cqw, 13px)/1.1 "NYP Montserrat", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: #17120A; background: var(--cream); transition: background-color .2s ease, transform .1s ease; }
@media (hover: hover) and (pointer: fine) { .nyp .nyp__venue:hover { background: var(--gold); color: #17120A; } }
.nyp .nyp__venue:active { transform: scale(.98); }
.nyp__later { display: inline-block; margin: 1.4cqw 0 0; padding: 6px 10px; border: 0; background: none; cursor: pointer;
  font: 400 clamp(11px, 2.3cqw, 13px)/1 "NYP Montserrat", system-ui, sans-serif; color: rgba(244, 236, 220, .55); transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .nyp__later:hover { color: var(--cream); } }
.nyp .nyp__venue:focus-visible, .nyp__x:focus-visible, .nyp__later:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* проявление: текст, потом кнопки */
.nyp__info, .nyp__actions { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.nyp.is-in .nyp__info, .nyp.is-in .nyp__actions { opacity: 1; transform: none; }
.nyp.is-in .nyp__actions { transition-delay: .25s; }

/* телефон: вертикальная карточка, тот же текст — крупнее, кнопки столбиком */
@media (max-width: 480px) {
  .nyp { padding: 14px; }
  .nyp__card { width: min(100%, calc((100dvh - 28px) * 9 / 16)); aspect-ratio: 9 / 16; --top: 33cqw; }
  .nyp__card::after { background: radial-gradient(80% 32% at 50% 40%, rgba(10, 6, 3, .6), transparent 75%), linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, .55)); }
  .nyp__x { top: 8px; right: 8px; }
  .nyp__content { padding: var(--top) 9cqw 6cqw; }
  .nyp__date { font-size: 7.6cqw; }
  .nyp__title { font-size: 8cqw; margin-top: 4cqw !important; }
  .nyp__subtitle { font-size: 6.4cqw; }
  .nyp__label { font-size: 2.9cqw; margin-top: 6cqw !important; }
  .nyp__program { font-size: 4.2cqw; margin-top: 2.4cqw !important; }
  .nyp__sep--br { display: none; }
  .nyp__br { display: inline; }
  .nyp__price { font-size: 4.2cqw; margin-top: 4cqw !important; padding-top: 4cqw !important; }
  .nyp__eyebrow { font-size: 2.9cqw; margin-bottom: 3cqw !important; }
  .nyp__venues { grid-template-columns: 1fr; gap: 8px; }
  .nyp .nyp__venue { height: 44px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .nyp__card, .nyp.is-closing .nyp__card { transform: none; transition: opacity .3s ease; }
  .nyp__info, .nyp__actions { transform: none; transition: opacity .3s ease; }
}
