/* Новогодний баннер 2027 — локальная замена hellobar */
.nyb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  padding: 32px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nyb[hidden] { display: none; }

.nyb__overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 10, 8, .58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: nyb-fade .25s ease both;
}

.nyb__dialog {
  position: relative;
  width: min(608px, 100%);
  margin: auto;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
  overflow: hidden;
  animation: nyb-up .32s cubic-bezier(.22, .8, .3, 1) both;
}

@keyframes nyb-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes nyb-up { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) {
  .nyb__overlay, .nyb__dialog { animation: none }
}

/* закрыть */
.nyb__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #1d0c0c;
  font: 400 22px/36px Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  transition: background .18s ease, transform .18s ease;
}
.nyb__close:hover { background: #fff; transform: scale(1.06) }
.nyb__close:focus-visible { outline: 2px solid #b59a63; outline-offset: 2px }

/* картинка */
.nyb__media {
  position: relative;
  aspect-ratio: 936 / 470;
  background: #2a1a12;
}
.nyb__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.nyb__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(72% 68% at 50% 46%, rgba(16, 9, 5, .60) 0%, rgba(16, 9, 5, .30) 58%, rgba(16, 9, 5, 0) 100%),
    linear-gradient(180deg, rgba(16, 9, 5, .34) 0%, rgba(16, 9, 5, .10) 28%, rgba(16, 9, 5, .58) 100%);
  pointer-events: none;
}

.nyb__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 18px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .35);
}

.nyb__brand {
  display: block;
  margin-bottom: 10px;
  font: 500 10px/1 Montserrat, Arial, sans-serif;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}

.nyb__title {
  display: block;
  margin: 0;
  font-weight: 400;
}
.nyb__script {
  display: block;
  font: 400 52px/1 rosamarena, "Cormorant Garamond", serif;
  color: #fff;
  white-space: nowrap;
}
.nyb__year {
  display: block;
  margin-top: 8px;
  font: 600 30px/1 "Cormorant Garamond", serif;
  letter-spacing: .22em;
  text-indent: .22em;
  color: #eed7a8;
}

.nyb__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font: 500 10px/1.4 Montserrat, Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
.nyb__meta svg { flex: 0 0 auto; width: 13px; height: 13px; opacity: .9 }
.nyb__sep { opacity: .55 }

/* текст и кнопка */
.nyb__body { padding: 26px 34px 32px; text-align: center }

.nyb__text {
  margin: 0 0 22px;
  font: 500 25px/1.34 "Cormorant Garamond", Georgia, serif;
  color: #1d0c0c;
}

.nyb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  min-height: 48px;
  padding: 12px 38px;
  background: #b59a63;
  color: #fff !important;
  font: 500 14px/1 Montserrat, Arial, sans-serif;
  letter-spacing: .05em;
  text-decoration: none;
  border-radius: 2px;
  transition: background .18s ease;
}
.nyb__btn:hover { background: #a68a52 }
.nyb__btn:focus-visible { outline: 2px solid #1d0c0c; outline-offset: 3px }

@media (max-width: 640px) {
  .nyb { padding: 16px 12px }
  .nyb__media { aspect-ratio: 4 / 3 }
  .nyb__media img { object-position: center 50% }
  .nyb__caption { padding: 18px 14px 14px }
  .nyb__brand { font-size: 9px; letter-spacing: .24em; margin-bottom: 8px }
  .nyb__script { font-size: 32px }
  .nyb__year { font-size: 22px; letter-spacing: .18em; text-indent: .18em }
  .nyb__meta { margin-top: 10px; font-size: 9px; letter-spacing: .1em; gap: 6px }
  .nyb__meta .nyb__sep { display: none }
  .nyb__meta span { display: block }
  .nyb__body { padding: 20px 20px 24px }
  .nyb__text { font-size: 20px; margin-bottom: 18px }
  .nyb__btn { min-width: 0; width: 100%; min-height: 46px; padding: 12px 20px }
  .nyb__close { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 20px; line-height: 32px }
}

/* блокировка прокрутки под баннером */
.nyb-lock { overflow: hidden }
