/* ============================================================
   YIAYIA — «Византийский Новый год» (/banket2)
   Ночная синева афиш + фирменный кирпич #AC694F / #A86347,
   олива и кремово-розовый с фирменного свотча. Типографика — Bion-Book.
   Фон-канвас (звёзды, боке, снег) рисует banket2.js.
   ============================================================ */

:root {
    --nb-night:      #03152d;
    --nb-night-2:    #0a2138;
    --nb-panel:      #0d2440;
    --nb-steel:      #7fa8c9;
    --nb-mist:       #9db8d2;
    --nb-snow:       #eaf4fb;
    --nb-cream:      #f2e3c0;
    --nb-gold:       #e8c476;
    --nb-gold-2:     #d9a441;
    --nb-brick:      #AC694F;
    --nb-brick-btn:  #A86347;
    --nb-brick-light:#D7AF9A;
    --nb-olive:      #5E563D;
    --nb-olive-light:#B8AE8C;
    --nb-red:        #c0392b;
    --nb-script:     'Marck Script', cursive;
}

/* ---------- Полотно страницы ---------- */
body.yia-banket {
    background:
        radial-gradient(1100px 600px at 18% 108%, rgba(38, 84, 96, .38), transparent 65%),
        radial-gradient(900px 520px at 85% -8%, rgba(23, 56, 96, .55), transparent 70%),
        linear-gradient(180deg, #03152d 0%, #071c36 34%, #0a2138 62%, #0e2a42 100%) !important;
    background-attachment: fixed !important;
    color: var(--nb-snow);
    scrollbar-color: var(--nb-brick) #06182e;
}
body.yia-banket::-webkit-scrollbar { width: 10px; }
body.yia-banket::-webkit-scrollbar-track { background: #06182e; }
body.yia-banket::-webkit-scrollbar-thumb {
    background: var(--nb-brick);
    border-radius: 90px; border: 2px solid #06182e;
}
body.yia-banket::-webkit-scrollbar-thumb:hover { background: var(--nb-brick-btn); }
body.yia-banket ::selection { background: var(--nb-brick); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
    body.yia-banket { scroll-behavior: smooth; }
}

#nbSky, #nbSnow {
    position: fixed; inset: 0; width: 100%; height: 100%;
    pointer-events: none;
}
#nbSky  { z-index: 0; }
#nbSnow { z-index: 40; }

body.yia-banket .yia-page-main { position: relative; z-index: 1; }
.nb-page { overflow-x: clip; }
.nb-page section { scroll-margin-top: 110px; }
.nb-page [id] { scroll-margin-top: 110px; }
.nb-page img { max-width: 100%; height: auto; }
.nb-page a { text-decoration: none; }
.nb-page *, .nb-page *::before, .nb-page *::after { box-sizing: border-box; }
.nb-page a:focus-visible, .nb-page button:focus-visible {
    outline: 2px solid var(--nb-brick-light); outline-offset: 2px;
}

.nb-ic { width: 16px; height: 16px; flex: none; }

/* ---------- Появление при скролле ---------- */
.nb-reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .7s ease var(--d, 0s), transform .7s ease var(--d, 0s);
}
.nb-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Еловые углы с афиш ---------- */
.nb-fir {
    position: absolute; width: min(30vw, 340px); height: auto;
    pointer-events: none; z-index: 2;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
}
.nb-fir--tl { top: 0; left: 0; transform-origin: top left; }
.nb-fir--tr { top: 0; right: 0; transform-origin: top right; }
.nb-fir--bl { bottom: 0; left: 0; transform-origin: bottom left; }
.nb-fir--br { bottom: 0; right: 0; transform-origin: bottom right; }
@media (prefers-reduced-motion: no-preference) {
    .nb-fir--tl, .nb-fir--br { animation: nbSway 9s ease-in-out infinite alternate; }
    .nb-fir--tr, .nb-fir--bl { animation: nbSway 11s ease-in-out infinite alternate-reverse; }
}
@keyframes nbSway { from { transform: rotate(0deg); } to { transform: rotate(1.1deg); } }

/* ---------- Птичка вместо центральных звёзд ---------- */
.nb-bird {
    display: block; width: 40px; height: 40px; object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(215, 175, 154, .55));
}
.nb-bird--hero { width: 50px; height: 50px; margin: 0 auto 14px; }
.nb-bird--head { margin: 0 auto 12px; }
@media (prefers-reduced-motion: no-preference) {
    .nb-bird { animation: nbBirdBob 3.6s ease-in-out infinite; }
}
@keyframes nbBirdBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

/* ---------- Кнопки / чипы ---------- */
.nb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600;
    letter-spacing: .4px; line-height: 1; border-radius: 90px; cursor: pointer;
    padding: 16px 30px; border: 0;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.nb-btn .nb-ic { width: 15px; height: 15px; }
.nb-btn--gold {
    background: var(--nb-brick-btn);
    color: #fff;
    box-shadow: 0 6px 24px rgba(168, 99, 71, .35);
}
.nb-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(168, 99, 71, .5); background: #b5714f; }
.nb-btn--ghost {
    border: 1px solid rgba(172, 105, 79, .65); color: var(--nb-cream);
    background: rgba(8, 24, 44, .4);
}
.nb-btn--ghost:hover { background: rgba(172, 105, 79, .22); transform: translateY(-2px); }

.nb-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 18px; border-radius: 90px;
    border: 0; background: rgba(10, 30, 54, .6);
    font-family: 'Montserrat', sans-serif; font-size: 12px; color: #cfdcea;
    transition: background .2s, transform .2s;
}
.nb-chip b { color: var(--nb-cream); font-weight: 600; }
.nb-chip:hover { background: rgba(172, 105, 79, .22); transform: translateY(-1px); }

/* ---------- Главный экран ---------- */
.nb-hero {
    position: relative; min-height: calc(100vh - 80px); min-height: calc(100svh - 80px);
    display: grid; place-items: center; text-align: center;
    padding: 96px 20px 84px;
}
.nb-hero__in { position: relative; z-index: 3; max-width: 860px; }
.nb-title {
    margin: 0 0 22px; font-family: var(--yia-font-body);
    font-weight: 400; font-size: clamp(36px, 6vw, 66px);
    line-height: 1.16; letter-spacing: 0; color: var(--nb-cream);
    text-shadow: 0 2px 30px rgba(3, 21, 45, .8);
}
.nb-title__script {
    display: inline-block; font-family: var(--nb-script); font-weight: 400;
    font-size: 1.12em; line-height: 1; transform: rotate(-2deg);
    color: var(--nb-gold);
    filter: drop-shadow(0 0 18px rgba(232, 196, 118, .35));
    padding-right: .12em;
}
.nb-title__rest { display: inline-block; letter-spacing: -0.02em; }
.nb-lead {
    margin: 0 auto 26px; max-width: 640px;
    font-family: var(--yia-font-body); font-size: 17px; line-height: 1.7;
    color: #cfdcea;
}
.nb-hero__dates { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.nb-count { margin: 36px auto 0; }
.nb-count__label {
    margin: 0 0 12px; font-family: 'Montserrat', sans-serif;
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--nb-mist);
}
.nb-count__grid { display: flex; gap: 14px; justify-content: center; }
.nb-count__unit {
    min-width: 82px; padding: 14px 10px 12px; border-radius: 14px;
    background: rgba(10, 30, 54, .72);
    display: flex; flex-direction: column; gap: 4px;
}
.nb-count__num {
    font-family: var(--yia-font-body); font-weight: 400; font-size: 38px;
    line-height: 1; color: var(--nb-gold); font-variant-numeric: tabular-nums;
}
.nb-count__cap {
    font-family: 'Montserrat', sans-serif; font-size: 10px;
    letter-spacing: 2px; text-transform: uppercase; color: #8fa8c4;
}
.nb-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ---------- Заголовки секций ---------- */
.nb-sechead { text-align: center; margin: 0 auto 44px; max-width: 720px; }
.nb-sechead h2 {
    margin: 0 0 12px; font-family: var(--yia-font-body); font-weight: 400;
    font-size: clamp(28px, 4.2vw, 42px); line-height: 1.2;
    letter-spacing: .4px; color: var(--nb-cream);
}
.nb-sechead p {
    margin: 0; font-family: var(--yia-font-body); font-size: 15px;
    line-height: 1.65; color: #b9c9dc;
}

/* ---------- Карточки вечеров ---------- */
.nb-events { padding: 90px 20px 70px; }
.nb-cards {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px; max-width: 1060px; margin: 0 auto; align-items: stretch;
}
.nb-card {
    position: relative; overflow: hidden; border-radius: 20px;
    padding: 34px 30px 30px;
    background: rgba(9, 26, 46, .92);
    border: 1px solid rgba(172, 105, 79, .45);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    display: flex; flex-direction: column;
}
.nb-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.8) 50%, transparent 51%),
        radial-gradient(1px 1px at 34% 64%, rgba(255,255,255,.6) 50%, transparent 51%),
        radial-gradient(1.4px 1.4px at 58% 30%, rgba(255,255,255,.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 76% 78%, rgba(255,255,255,.55) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 88% 12%, rgba(255,255,255,.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 22% 88%, rgba(255,255,255,.5) 50%, transparent 51%),
        radial-gradient(1.1px 1.1px at 66% 52%, rgba(255,255,255,.6) 50%, transparent 51%);
}
.nb-card::after {
    content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
    background: rgba(172, 105, 79, .65);
}
.nb-card > * { position: relative; }
.nb-card__badge {
    position: absolute; top: 18px; right: 18px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 90px;
    background: var(--nb-brick-btn);
    color: #fff; font-family: 'Montserrat', sans-serif;
    font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.nb-card__date { display: flex; align-items: baseline; gap: 10px; }
.nb-card__days {
    font-family: var(--yia-font-body); font-weight: 400; font-size: 52px;
    line-height: 1; color: var(--nb-cream);
}
.nb-card__month {
    font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; color: var(--nb-mist);
}
.nb-card__title {
    margin: 10px 0 12px; font-family: var(--nb-script); font-weight: 400;
    font-size: 28px; line-height: 1.25; color: var(--nb-gold);
}
.nb-card__time {
    display: flex; align-items: center; gap: 7px; margin: 0 0 18px;
    font-family: 'Montserrat', sans-serif; font-size: 12px; color: #8fa8c4;
}
.nb-card__time .nb-ic { width: 14px; height: 14px; color: var(--nb-brick-light); }
.nb-prog {
    list-style: none; margin: 0 0 22px; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.nb-prog li {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 12px; border-radius: 10px;
    background: rgba(172, 105, 79, .45);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-family: var(--yia-font-body); font-size: 13.5px; color: #fff7ec;
    transition: background .2s;
}
.nb-prog li:hover { background: rgba(172, 105, 79, .62); }
.nb-prog .nb-ic { color: var(--nb-cream); }
.nb-deposit {
    margin-top: auto; padding-top: 18px;
    border-top: 1px dashed rgba(215, 175, 154, .4);
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.nb-deposit__label { font-family: var(--nb-script); font-size: 23px; color: var(--nb-brick-light); }
.nb-deposit__sum {
    font-family: var(--yia-font-body); font-weight: 400; font-size: 32px;
    line-height: 1; letter-spacing: -0.02em; color: var(--nb-gold);
    text-shadow: 0 0 24px rgba(232, 196, 118, .35);
}
.nb-deposit__per { font-family: 'Montserrat', sans-serif; font-size: 12px; color: var(--nb-mist); }

.nb-trad {
    display: flex; gap: 14px; align-items: flex-start;
    max-width: 760px; margin: 34px auto 0; padding: 18px 22px;
    border-radius: 14px; background: rgba(94, 86, 61, .22);
    border: 1px solid rgba(184, 174, 140, .4);
    font-family: var(--yia-font-body); font-size: 14.5px; line-height: 1.65; color: #e9e4d0;
}
.nb-trad .nb-ic { width: 22px; height: 22px; margin-top: 2px; color: var(--nb-olive-light); }
.nb-trad b { color: #f0ead2; }

/* ---------- Расположение ---------- */
.nb-loc { padding: 40px 20px 90px; }
.nb-loc__grid {
    display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 48px; align-items: center; max-width: 1100px; margin: 0 auto;
}
.nb-slider__frame {
    position: relative; overflow: hidden; border-radius: 18px;
    aspect-ratio: 4 / 5; background: var(--nb-night-2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    outline: none;
}
.nb-slider__frame:focus-visible { box-shadow: 0 0 0 3px rgba(215, 175, 154, .6), 0 24px 60px rgba(0, 0, 0, .45); }
.nb-slide {
    position: absolute; inset: 0; margin: 0; opacity: 0;
    transition: opacity .7s ease;
}
.nb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .nb-slide.is-active img { animation: nbKen 5s linear forwards; }
}
@keyframes nbKen { from { transform: scale(1.02); } to { transform: scale(1.08); } }

.nb-slider__progress {
    position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: rgba(3, 21, 45, .6); z-index: 3;
}
.nb-slider__progress span {
    display: block; height: 100%; width: 0;
    background: var(--nb-brick);
    box-shadow: 0 0 12px rgba(172, 105, 79, .9);
}
.nb-slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: rgba(6, 20, 38, .68); color: var(--nb-cream);
    border: 1px solid rgba(172, 105, 79, .55);
    opacity: 0; transition: opacity .25s, background .2s, color .2s;
}
.nb-slider__arrow .nb-ic { width: 18px; height: 18px; }
.nb-slider__arrow--prev { left: 10px; }
.nb-slider__arrow--next { right: 10px; }
.nb-slider:hover .nb-slider__arrow,
.nb-slider__frame:focus-within .nb-slider__arrow { opacity: 1; }
.nb-slider__arrow:hover { background: var(--nb-brick-btn); color: #fff; }
@media (hover: none) { .nb-slider__arrow { opacity: .9; } }

.nb-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.nb-slider__dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 90px;
    background: rgba(157, 184, 210, .35); cursor: pointer;
    transition: width .3s, background .3s;
}
.nb-slider__dots button.is-active { width: 26px; background: var(--nb-brick); }
.nb-slider__dots button:hover { background: var(--nb-brick-light); }
.nb-slider__caption {
    margin: 10px 0 0; min-height: 16px; text-align: center;
    font-family: 'Montserrat', sans-serif; font-size: 11px;
    letter-spacing: 2px; text-transform: uppercase; color: #8fa8c4;
    transition: opacity .3s;
}

.nb-loc__text h3 {
    margin: 0 0 16px; font-family: var(--yia-font-body); font-weight: 400;
    font-size: 30px; line-height: 1.25; letter-spacing: .3px; color: var(--nb-cream);
}
.nb-loc__text p {
    margin: 0 0 14px; font-family: var(--yia-font-body);
    font-size: 15.5px; line-height: 1.75; color: #cfdcea;
}
.nb-facts { list-style: none; margin: 22px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.nb-facts li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 0;
    background: transparent; border: 0;
    font-family: var(--yia-font-body); font-size: 14.5px; line-height: 1.55; color: #dce7f2;
}
.nb-facts .nb-ic { width: 18px; height: 18px; margin-top: 2px; color: var(--nb-brick-light); }
.nb-facts b { color: var(--nb-cream); font-weight: 400; }
.nb-facts a { color: var(--nb-cream); transition: color .2s; }
.nb-facts a:hover { color: var(--nb-brick-light); }
.nb-copy {
    margin-left: auto; flex: none; width: 32px; height: 32px;
    display: grid; place-items: center; cursor: pointer;
    border-radius: 8px; background: transparent; color: var(--nb-cream);
    border: 0;
    transition: background .2s, color .2s;
}
.nb-copy .nb-ic { width: 14px; height: 14px; }
.nb-copy .nb-ic:last-child { display: none; color: #7fd6a4; }
.nb-copy:hover { background: rgba(172, 105, 79, .25); }
.nb-copy.is-done .nb-ic:first-child { display: none; }
.nb-copy.is-done .nb-ic:last-child { display: block; }
.nb-copy.is-done { color: #7fd6a4; }
.nb-loc .nb-btn--ghost { border: 0; background: transparent; }
.nb-loc .nb-btn--ghost:hover { background: transparent; color: var(--nb-brick-light); }

/* ---------- Бронирование ---------- */
.nb-book { position: relative; padding: 100px 20px 130px; text-align: center; overflow: hidden; }
.nb-book__in { position: relative; z-index: 3; max-width: 760px; margin: 0 auto; }
.nb-book h2 {
    margin: 0 0 22px; font-family: var(--yia-font-body); font-weight: 400;
    font-size: clamp(26px, 4vw, 38px); line-height: 1.25;
    letter-spacing: .3px; color: var(--nb-cream);
}
.nb-phone {
    display: inline-block; font-family: var(--yia-font-body); font-weight: 400;
    font-size: clamp(32px, 5.6vw, 56px); line-height: 1.1; color: var(--nb-gold);
    text-shadow: 0 0 34px rgba(232, 196, 118, .45);
    transition: color .2s, text-shadow .2s;
}
.nb-phone:hover { color: #f6e2b0; text-shadow: 0 0 44px rgba(246, 226, 176, .7); }
.nb-book__addr {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 16px 0 0; font-family: 'Montserrat', sans-serif; font-size: 14px; color: #cfdcea;
}
.nb-book__addr .nb-ic { color: var(--nb-brick-light); }
.nb-book__note {
    margin: 12px 0 0; font-family: var(--yia-font-body); font-size: 14.5px; color: var(--nb-mist);
}
.nb-book__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* ---------- Тост ---------- */
.nb-toast {
    position: fixed; left: 50%; bottom: 26px; z-index: 10050;
    transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
    padding: 12px 22px; border-radius: 90px;
    background: rgba(13, 36, 64, .95); color: var(--nb-cream);
    border: 1px solid rgba(172, 105, 79, .55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    font-family: 'Montserrat', sans-serif; font-size: 12.5px;
    transition: opacity .3s, transform .3s;
}
.nb-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .nb-hero { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); padding: 80px 18px 70px; }
    .nb-fir { width: min(38vw, 260px); }
    .nb-cards { grid-template-columns: 1fr; max-width: 560px; }
    .nb-loc__grid { grid-template-columns: 1fr; gap: 34px; max-width: 560px; }
    .nb-slider { max-width: 440px; margin: 0 auto; width: 100%; }
    .nb-events { padding: 70px 18px 50px; }
    .nb-loc { padding: 20px 18px 70px; }
    .nb-book { padding: 80px 18px 110px; }
}
@media (max-width: 560px) {
    .nb-hero { padding-top: 140px; }
    .nb-count__grid { gap: 8px; }
    .nb-count__unit { min-width: 0; flex: 1; padding: 12px 6px 10px; }
    .nb-count__num { font-size: 28px; }
    .nb-count__cap { font-size: 9px; letter-spacing: 1px; }
    .nb-prog { grid-template-columns: 1fr; }
    .nb-card { padding: 28px 22px 24px; }
    .nb-card__days { font-size: 42px; }
    .nb-card__title { font-size: 24px; }
    .nb-deposit__sum { font-size: 27px; }
    .nb-card__badge { top: 14px; right: 14px; }
    .nb-hero__cta .nb-btn, .nb-book__cta .nb-btn { width: 100%; }
    .nb-fir { width: 36vw; }
    .nb-book { padding-bottom: 130px; }
    .nb-trad { flex-direction: column; gap: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .nb-reveal { opacity: 1; transform: none; transition: none; }
    .nb-slide { transition: none; }
    .nb-btn, .nb-chip, .nb-phone { transition: none; }
}

/* ---------- Совместимость с продакшеном ----------
   Общесайтовый nbc-overrides.css форсит Montserrat и белый фон через !important.
   Возвращаем фирменную типографику только внутри /banket2, не трогая остальные страницы. */
body.yia-banket .nb-page,
body.yia-banket .nb-page * {
    font-family: var(--yia-font-body) !important;
}
body.yia-banket .nb-page .nb-title__script,
body.yia-banket .nb-page .nb-card__title,
body.yia-banket .nb-page .nb-deposit__label {
    font-family: var(--nb-script) !important;
}
body.yia-banket .nb-page .nb-btn,
body.yia-banket .nb-page .nb-chip,
body.yia-banket .nb-page .nb-count__label,
body.yia-banket .nb-page .nb-count__cap,
body.yia-banket .nb-page .nb-card__badge,
body.yia-banket .nb-page .nb-card__month,
body.yia-banket .nb-page .nb-card__time,
body.yia-banket .nb-page .nb-deposit__per,
body.yia-banket .nb-page .nb-slider__caption,
body.yia-banket .nb-page .nb-book__addr,
body.yia-banket .nb-toast {
    font-family: 'Montserrat', sans-serif !important;
}