/* «Театр новорічних див» — афіша бажань (01.12.2026 – 14.01.2027). Подключается только при включённой акции
   (local/nblib/teatr/head.php), всё под html.nb-teatr. Значения — токены «Тихої вітрини» (--nb-*), запасные — их же числа.

   1. Квиток вместо закладки — БЕЗ правки разметки: плитка рисует значок маской (::before), карточка и шапка — <svg><use>;
      у svg прячем <use> и красим сам svg маской квитка. Вес селектора выше исходного на класс html.nb-teatr (без).
      Контур — 0.8, как у закладки (§62 nb-sandbox.css); залитый — сплошной с прорезями перфорации. Временная иконка до дизайнера:
      горизонтальный билет 14×10 с вырезами на коротких сторонах и перфорацией (стенд site-teatr-qa/icons/stand.py). */
html.nb-teatr {
  --nb-teatr-tk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-.5 -.5 15 11'%3E%3Cpath d='M1.4.4h11.2c.6 0 1 .4 1 1v2.7a1.1 1.1 0 0 0 0 2.2v2.7c0 .6-.4 1-1 1H1.4c-.6 0-1-.4-1-1V6.3a1.1 1.1 0 0 0 0-2.2V1.4c0-.6.4-1 1-1z' fill='none' stroke='%23000' stroke-width='.8'/%3E%3Cpath d='M10 2.2v1M10 4.7v1M10 7.2v1' stroke='%23000' stroke-width='.7'/%3E%3C/svg%3E");
  --nb-teatr-tk-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-.5 -.5 15 11'%3E%3Cpath fill-rule='evenodd' d='M1.4 0h11.2c.8 0 1.4.6 1.4 1.4v2.7a1.1 1.1 0 0 0 0 2.2v2.7c0 .8-.6 1.4-1.4 1.4H1.4C.6 10.4 0 9.8 0 9V6.3a1.1 1.1 0 0 0 0-2.2V1.4C0 .6.6 0 1.4 0zM9.65 2.1h.7v1.1h-.7zM9.65 4.6h.7v1.1h-.7zM9.65 7.1h.7v1.1h-.7z'/%3E%3C/svg%3E");
  --nb-teatr-accent: #6B1E2A;
}
/* 0. Шрифты и цвета акции — общие для шторки (любая страница) и посадочной. Файл шрифта качается, только когда текст им
      реально рисуется (открыли шторку/посадочную) — остальные страницы его не грузят. */
@font-face { font-family: 'NB Teatr Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/local/templates/redesign_nb/fonts/teatr/PlayfairDisplay-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'NB Teatr Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/local/templates/redesign_nb/fonts/teatr/PlayfairDisplay-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'NB Teatr Script'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/local/templates/redesign_nb/fonts/teatr/GreatVibes-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'NB Teatr Script'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/local/templates/redesign_nb/fonts/teatr/GreatVibes-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'NB Teatr Wide'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('/local/templates/redesign_nb/fonts/teatr/Unbounded-var-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'NB Teatr Wide'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('/local/templates/redesign_nb/fonts/teatr/Unbounded-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
html.nb-teatr {
  --teatr-serif: 'NB Teatr Serif', Georgia, serif;
  --teatr-script: 'NB Teatr Script', cursive;
  --teatr-wide: 'NB Teatr Wide', system-ui, sans-serif;
  --teatr-wine: #9E0542; --teatr-wine-deep: #7C0333; --teatr-wine-ink: #4A0A22;
  --teatr-cream: #FBEFDC; --teatr-cream-2: #F3E3CB; --teatr-cream-line: #E4CFB0;
  --teatr-ease: cubic-bezier(.16, 1, .3, 1);
}
/* :is(body, #…) — вес id на ЛЮБОЙ странице: значок плитки во всех списках (каталог, главная, ряды карточки, магазины, поиск,
   шторка) рисуют маской на ::before правила вида «:is(#хост) .product-card__icon-box--fav::before» — перебиваем их все. */
html.nb-teatr :is(body, #nb-teatr-any) .product-card__icon-box--fav::before {
  width: 15px; height: 11px;   /* горизонтальный билет (вариант C стенда 28.11): вертикальный на 10×14 читался как плашка */
  -webkit-mask-image: var(--nb-teatr-tk); mask-image: var(--nb-teatr-tk);
}
html.nb-teatr :is(body, #nb-teatr-any) .product-card__fav.is-active .product-card__icon-box--fav::before {
  -webkit-mask-image: var(--nb-teatr-tk-on); mask-image: var(--nb-teatr-tk-on);
  background-color: var(--teatr-wine);   /* залитый — бордо (дирижёр 30.11, как в макете); контур — цвет иконок сайта */
}
html.nb-teatr .product-summary__fav .product-summary__fav-icon > use,
html.nb-teatr .header .header__action--wishlist .header__action-icon--wishlist > use { display: none; }
html.nb-teatr .product-summary__fav .product-summary__fav-icon,
html.nb-teatr .header .header__action--wishlist .header__action-icon--wishlist {
  background-color: currentColor;
  -webkit-mask: var(--nb-teatr-tk) center / contain no-repeat; mask: var(--nb-teatr-tk) center / contain no-repeat;
}
/* размеры: карточка — как значок плитки; шапка — уже, с зазором от счётчика (закладка была 8.7 px, билет шире) */
html.nb-teatr :is(body, #nb-teatr-any) .product-summary__fav .product-summary__fav-icon { width: 15px; height: 11px; }
html.nb-teatr .header .header__action--wishlist .header__action-icon--wishlist { width: 12.5px; height: 9.2px; margin-left: 3px; }
html.nb-teatr .product-summary__fav:is(.in-favorite, .is-active) .product-summary__fav-icon,
html.nb-teatr.nb-teatr-has .header .header__action--wishlist .header__action-icon--wishlist {
  -webkit-mask-image: var(--nb-teatr-tk-on); mask-image: var(--nb-teatr-tk-on);
  background-color: var(--teatr-wine);
}
/* посадочная: шапка бордо / поверх сцены — бордовый квиток там не виден, берёт цвет шапки */
html.nb-teatr.nb-teatr-has.nb-teatr-landing .header .header__action--wishlist .header__action-icon--wishlist { background-color: currentColor; }

/* абзацы окна и афиши — без полей темы */
:where(.nb-teatr-sheet, .nb-teatr-pane, div.nb-teatr-toast) p, :where(.nb-teatr-sheet, .nb-teatr-pane, div.nb-teatr-toast) h2 { margin: 0; }

/* 1б. ПК: квиток на плитке виден всегда, а не по наведению (Val 30.11) — каталог, поиск, «Схожі», подборки, ряды главной, магазины.
   Прятанье живёт в CSS разделов (`:is(#nb-catalog,.nb-cat-host).nb-cat .product-card__fav:not(.is-active)` — вес 1,3,0); здесь 1,4,1.
   Только квиток: «+» быстрой покупки и стрелки фото — по наведению, как были. Акция выключена — файла нет, поведение main. */
@media (hover: hover) and (pointer: fine) {
  html.nb-teatr :is(body, #nb-teatr-any) .product-card .product-card__fav.product-card__fav { opacity: 1; }
}

/* 2. Окно (шторка снизу на телефоне, по центру на ПК) и плашка */
.nb-teatr-scrim {
  position: fixed; inset: 0; z-index: calc(var(--nb-z-panel, 2000) + 10);
  background: var(--nb-overlay-solid, rgb(0 0 0 / .22)); opacity: 0; transition: opacity var(--nb-motion, 200ms ease);
}
.nb-teatr-scrim.is-open { opacity: 1; }
.nb-teatr-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--nb-z-panel, 2000) + 11);
  max-height: min(92dvh, 720px); overflow: auto; overscroll-behavior: contain;
  background: var(--nb-paper, #fff); color: var(--nb-ink, #000);
  font-family: var(--nb-font, inherit); font-size: var(--nb-fs-base, 14px); line-height: var(--nb-lh, 1.46);
  padding: var(--nb-space-6, 30px) var(--nb-space-3, 15px) calc(var(--nb-space-4, 20px) + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform var(--nb-motion-drawer, 320ms cubic-bezier(.22, 1, .36, 1));
  outline: none;
}
.nb-teatr-sheet.is-open { transform: none; }
/* закрытие быстрее открытия: отвечает система, а не решает человек */
.nb-teatr-sheet:not(.is-open), .nb-teatr-scrim:not(.is-open), div.nb-teatr-toast:not(.is-open) { transition-duration: 200ms; transition-timing-function: cubic-bezier(.23, 1, .32, 1); }
@media (min-width: 768px) {
  .nb-teatr-sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; width: 440px; max-height: 86vh;
    padding: var(--nb-space-8, 40px) var(--nb-space-6, 30px) var(--nb-space-6, 30px);
    transform: translate(-50%, -50%) scale(.97); opacity: 0;
    transition: transform var(--nb-motion, 200ms ease), opacity var(--nb-motion, 200ms ease);
  }
  .nb-teatr-sheet.is-open { transform: translate(-50%, -50%); opacity: 1; }
}
html.nb-teatr-lock, html.nb-teatr-lock body { overflow: hidden; }
.nb-teatr-sheet__x {
  position: absolute; top: 0; right: 0; width: var(--nb-tap, 50px); height: var(--nb-tap, 50px);
  display: grid; place-items: center; background: none; border: 0; color: inherit; cursor: pointer;
}
.nb-teatr-sheet__x svg, .nb-teatr-slot__x svg { width: 12px; height: 12px; }

.nb-teatr-h { margin: var(--nb-space-4, 20px) 0 var(--nb-space-1, 5px); font-size: var(--nb-fs-lg, 16px); font-weight: var(--nb-fw-regular, 400); line-height: var(--nb-lh-tight, 1.2); text-wrap: balance; }
.nb-teatr-sheet > .nb-teatr-h:first-of-type { margin-top: 0; }
.nb-teatr-added + .nb-teatr-bars + .nb-teatr-h { margin-top: var(--nb-space-4, 20px); }
.nb-teatr-p { margin: 0 0 var(--nb-space-3, 15px); text-wrap: pretty; }
.nb-teatr-p--muted, .nb-teatr-note { color: var(--nb-gray-700, #757575); font-size: var(--nb-fs-sm, 12px); }
.nb-teatr-kicker { font-size: var(--nb-fs-sm, 12px); letter-spacing: .06em; text-transform: uppercase; color: var(--nb-teatr-accent); font-weight: var(--nb-fw-regular, 400); }

.nb-teatr-added { display: flex; gap: var(--nb-space-3, 15px); align-items: center; padding-right: var(--nb-tap, 50px); }
.nb-teatr-added__ok { font-weight: var(--nb-fw-regular, 400); }
.nb-teatr-added__name { color: var(--nb-gray-900, #5A5A5A); font-size: var(--nb-fs-sm, 12px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-teatr-added__role { font-size: var(--nb-fs-sm, 12px); color: var(--nb-teatr-accent); margin-top: 2px; }
.nb-teatr-th { width: 44px; height: 66px; flex: none; object-fit: cover; background: var(--nb-gray-100, #F5F5F5); display: block; }
.nb-teatr-th--empty { display: block; }

.nb-teatr-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--nb-space-1, 5px); margin: var(--nb-space-3, 15px) 0 0; }
.nb-teatr-bars i { height: 3px; background: var(--nb-gray-300, #D9D9D9); }
.nb-teatr-bars i.on { background: var(--nb-ink, #000); }
div.nb-teatr-toast .nb-teatr-bars { margin-top: var(--nb-space-2, 10px); }
div.nb-teatr-toast .nb-teatr-bars i { background: rgb(255 255 255 / .3); }
div.nb-teatr-toast .nb-teatr-bars i.on { background: var(--nb-paper, #fff); }

.nb-teatr-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--nb-tap, 50px);
  margin-top: var(--nb-space-2, 10px); padding: 0 var(--nb-space-3, 15px);
  background: var(--nb-ink, #000); color: var(--nb-paper, #fff); border: var(--nb-border, 1px) solid var(--nb-ink, #000);
  border-radius: var(--nb-r-sm, 3px); font: inherit; font-size: var(--nb-fs-base, 14px); font-weight: var(--nb-fw-regular, 400);
  cursor: pointer; transition: transform var(--nb-motion-press, 160ms cubic-bezier(.23, 1, .32, 1));
}
.nb-teatr-btn:active { transform: scale(.98); }
.nb-teatr-btn[disabled] { opacity: var(--nb-opacity-faint, .4); cursor: default; transform: none; }
.nb-teatr-btn--ghost { background: transparent; color: var(--nb-ink, #000); }
.nb-teatr-link {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--nb-tap, 50px);
  background: none; border: 0; padding: 0; color: inherit; font: inherit; font-size: var(--nb-fs-md, 13px);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.nb-teatr-inline { background: none; border: 0; padding: 0 2px; min-height: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.nb-teatr-sheet :focus-visible, .nb-teatr-pane :focus-visible, .nb-teatr-tabs :focus-visible { outline: 2px solid var(--nb-ink, #000); outline-offset: 2px; }

.nb-teatr-lbl { display: block; margin-top: var(--nb-space-3, 15px); font-size: var(--nb-fs-sm, 12px); color: var(--nb-gray-700, #757575); }
.nb-teatr-in {
  display: block; width: 100%; height: var(--nb-tap, 50px); margin-top: var(--nb-space-1, 5px); padding: 0 var(--nb-space-3, 15px);
  border: var(--nb-border, 1px) solid var(--nb-gray-300, #D9D9D9); border-radius: var(--nb-r-sm, 3px);
  font: inherit; font-size: 16px; /* 16 — iOS не увеличивает страницу при фокусе */ background: var(--nb-paper, #fff); color: inherit;
}
.nb-teatr-in:focus { border-color: var(--nb-ink, #000); outline: none; }
/* маска телефона сайта (js/nb-phone.js) оборачивает поле и рисует «скелет» номера поверх — раскладка как у поля */
.nb-teatr-sheet .nb-input-wrap { position: relative; display: block; margin-top: var(--nb-space-1, 5px); }
.nb-teatr-sheet .nb-input-wrap > .nb-teatr-in { margin-top: 0; }
.nb-teatr-sheet .nb-input-ghost {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 calc(var(--nb-space-3, 15px) + 1px);
  font-size: 16px; color: var(--nb-gray-400, #B2B2B2); white-space: pre; pointer-events: none;
}
.nb-teatr-sheet .nb-input-ghost[hidden] { display: none; }
.nb-teatr-sheet .nb-input-ghost i { visibility: hidden; font-style: normal; }
.nb-teatr-codebox { margin-top: var(--nb-space-1, 5px); }
.nb-teatr-codebox .nb-otp__cell { border: var(--nb-border, 1px) solid var(--nb-gray-300, #D9D9D9); border-radius: var(--nb-r-sm, 3px); font: inherit; font-size: var(--nb-fs-2xl, 20px); }
.nb-teatr-chk { display: flex; gap: var(--nb-space-2, 10px); align-items: center; min-height: var(--nb-tap, 50px); font-size: var(--nb-fs-md, 13px); cursor: pointer; }
.nb-teatr-chk input { width: 18px; height: 18px; flex: none; accent-color: var(--nb-ink, #000); margin: 0; }
.nb-teatr-chk a { color: inherit; text-decoration: underline; }
.nb-teatr-err { color: var(--nb-discount, #B3261E); font-size: var(--nb-fs-md, 13px); margin-top: var(--nb-space-2, 10px); }

.nb-teatr-swap { display: grid; grid-template-columns: minmax(0, 156px) auto minmax(0, 156px); justify-content: center; gap: var(--nb-space-2, 10px); align-items: center; margin-bottom: var(--nb-space-2, 10px); }
.nb-teatr-swap figure { margin: 0; }
.nb-teatr-swap__img { display: block; width: 100%; aspect-ratio: 2 / 3; height: auto; object-fit: cover; background: var(--nb-gray-100, #F5F5F5); }
.nb-teatr-swap .is-new .nb-teatr-swap__img { outline: 1px solid var(--nb-ink, #000); outline-offset: 2px; }
.nb-teatr-swap figcaption { margin-top: var(--nb-space-1, 5px); font-size: var(--nb-fs-sm, 12px); color: var(--nb-gray-900, #5A5A5A); text-wrap: balance; }
.nb-teatr-swap__lbl { display: block; color: var(--nb-gray-700, #757575); }
.nb-teatr-swap__arrow { font-size: var(--nb-fs-lg, 16px); }

div.nb-teatr-toast {
  position: fixed; left: var(--nb-space-2, 10px); right: var(--nb-space-2, 10px); bottom: calc(var(--nb-space-2, 10px) + env(safe-area-inset-bottom, 0px));
  z-index: calc(var(--nb-z-panel, 2000) + 12); background: var(--nb-ink, #000); color: var(--nb-paper, #fff);
  padding: var(--nb-space-2, 10px) var(--nb-space-2, 10px) var(--nb-space-2, 10px) var(--nb-space-3, 15px); border-radius: var(--nb-r-sm, 3px);
  font-family: var(--nb-font, inherit); font-size: var(--nb-fs-md, 13px);
  transform: translateY(calc(100% + 20px)); transition: transform var(--nb-motion-drawer, 320ms cubic-bezier(.22, 1, .36, 1));
}
div.nb-teatr-toast.is-open { transform: none; }
@media (min-width: 768px) { div.nb-teatr-toast { left: auto; right: var(--nb-space-4, 20px); bottom: var(--nb-space-4, 20px); width: 380px; } }
.nb-teatr-toast__row { display: flex; align-items: center; gap: var(--nb-space-2, 10px); }
.nb-teatr-toast__text { flex: 1; margin: 0; }
.nb-teatr-toast__act { flex: none; min-height: 44px; padding: 0 var(--nb-space-2, 10px); background: none; border: 0; color: inherit; font: inherit; font-weight: var(--nb-fw-regular, 400); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* 2а. Окна афиши в театральном виде (первая вещь, упор в лимит; дирижёр 30.11): кремовый лист, зубчатый верх, бордо, места-билетики.
       Окна входа (телефон/код/имя) — прежний вид до п.5 «Вхід до зали». */
.nb-teatr-sheet.nb-teatr-sheet--play {
  background: var(--teatr-cream); color: var(--teatr-wine-ink); border-bottom: 3px solid var(--teatr-wine);
  -webkit-mask: radial-gradient(circle 7px at 50% 0, transparent 97%, #000) 50% 0 / 22px 100% repeat-x;
          mask: radial-gradient(circle 7px at 50% 0, transparent 97%, #000) 50% 0 / 22px 100% repeat-x;
}
.nb-teatr-sheet--play .nb-teatr-h { font: 400 26px/1.15 var(--teatr-serif); color: var(--teatr-wine); }
.nb-teatr-sheet--play .nb-teatr-added__ok { color: var(--teatr-wine); }
.nb-teatr-sheet--play .nb-teatr-added__name { color: var(--nb-ink, #1B1215); }
.nb-teatr-sheet--play .nb-teatr-added__role { color: #6B4B55; }
.nb-teatr-sheet--play .nb-teatr-th { background: var(--teatr-cream-2); }
.nb-teatr-sheet--play .nb-teatr-seats { margin: 14px 0 4px; }
.nb-teatr-sheet--play .nb-teatr-added + .nb-teatr-seats + .nb-teatr-h { margin-top: 14px; }
html.nb-teatr .nb-teatr-sheet--play .nb-teatr-btn { background: var(--teatr-wine); border-color: var(--teatr-wine); color: var(--teatr-cream); border-radius: 0; }
html.nb-teatr .nb-teatr-sheet--play .nb-teatr-btn:not(:disabled):hover { background: var(--teatr-wine-deep); }
html.nb-teatr .nb-teatr-sheet--play .nb-teatr-btn--ghost { background: transparent; color: var(--teatr-wine); }
html.nb-teatr .nb-teatr-sheet--play .nb-teatr-btn--ghost:hover { background: transparent; color: var(--teatr-wine-deep); }
.nb-teatr-sheet--play .nb-teatr-link { color: var(--teatr-wine); }
.nb-teatr-sheet--play .nb-teatr-sheet__x { color: var(--teatr-wine-ink); }
.nb-teatr-sheet--play .nb-teatr-cand { border-top-color: var(--teatr-cream-line); }
.nb-teatr-sheet--play .nb-teatr-slot__role { color: var(--teatr-wine); }
.nb-teatr-sheet--play .nb-teatr-slot__name { color: var(--nb-ink, #1B1215); }
html.nb-teatr .nb-teatr-sheet--play .nb-teatr-pill { background: var(--teatr-wine); color: var(--teatr-cream); border-radius: 0; }
.nb-teatr-sheet--play :focus-visible { outline-color: var(--teatr-wine); }

/* 2в. «Вхід до зали» (п.5, макет kasa.html): окошко каси (фото) сверху с зубчатым краем, затем шаги входа; на телефоне при
       открытой клавиатуре фото сжимается (класс is-kb — visualViewport), поле остаётся на виду. */
.nb-teatr-sheet.nb-teatr-sheet--hall { -webkit-mask: none; mask: none; padding-top: 0; }
.nb-teatr-win {
  position: relative; height: 176px; margin: 0 calc(-1 * var(--nb-space-3, 15px)) 8px;
  background: #3a0717 url('/local/templates/redesign_nb/images/teatr/kasa-880.webp') 50% 34% / cover no-repeat;
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 97%, #000) 50% 0 / 22px 100% repeat-x;
          mask: radial-gradient(circle 7px at 50% 100%, transparent 97%, #000) 50% 0 / 22px 100% repeat-x;
  transition: height .25s var(--teatr-ease);
}
.nb-teatr-win::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 8 12 / .35), transparent 40%, rgb(74 10 34 / .35)); }
@media (min-width: 768px) { .nb-teatr-win { margin: 0 calc(-1 * var(--nb-space-6, 30px)) 8px; } }
.nb-teatr-sheet--hall.is-kb .nb-teatr-win { height: 48px; }
.nb-teatr-sheet--hall .nb-teatr-sheet__x { z-index: 2; color: var(--teatr-cream); }
.nb-teatr-hall { text-align: left; }
.nb-teatr-sheet--hall .nb-teatr-h { margin-top: 8px; text-align: center; }
.nb-teatr-scr { margin: -2px 0 0; text-align: center; font: 400 26px/1.1 var(--teatr-script); color: var(--teatr-wine); }
.nb-teatr-sheet--hall .nb-teatr-sub { text-align: center; max-width: 32ch; margin: 10px auto 16px; color: #6B4B55; font-size: var(--nb-fs-base, 14px); }
.nb-teatr-ways { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--teatr-wine); margin-bottom: 16px; }
html.nb-teatr .nb-teatr-ways button { min-height: 44px; padding: 0 6px; background: none; border: 0; font: inherit; font-size: 13px; color: var(--teatr-wine); cursor: pointer; }
html.nb-teatr .nb-teatr-ways button[aria-pressed="true"] { background: var(--teatr-wine); color: var(--teatr-cream); cursor: default; }
.nb-teatr-sheet--hall .nb-teatr-lbl { color: #6B4B55; font-size: 12px; }
html.nb-teatr .nb-teatr-sheet--hall .nb-teatr-in { background: #fff; border-color: var(--teatr-cream-line); border-radius: 0; caret-color: var(--teatr-wine); }
html.nb-teatr .nb-teatr-sheet--hall .nb-teatr-in:focus { border-color: var(--teatr-wine); outline: none; }
.nb-teatr-sheet--hall .nb-teatr-chk input { accent-color: var(--teatr-wine); }
.nb-teatr-sheet--hall .nb-teatr-chk a, .nb-teatr-sheet--hall .nb-teatr-inline { color: var(--teatr-wine); }
/* вход: кнопки «выключены», пока нет согласия (Val 30.11) — нажатие подсвечивает галочку; нажимаемы, чтобы подсказать */
html.nb-teatr .nb-teatr-sheet--hall .nb-teatr-btn[aria-disabled="true"] { opacity: var(--nb-opacity-faint, .4); cursor: default; }
html.nb-teatr .nb-teatr-sheet--hall .nb-teatr-btn[aria-disabled="true"]:hover { background: var(--teatr-wine); }
.nb-teatr-sheet--hall .nb-teatr-chk { margin: 4px 0 2px; }
.nb-teatr-sheet--hall .nb-teatr-chk.is-need { color: var(--teatr-wine); animation: nb-teatr-need .5s ease 2; }
.nb-teatr-sheet--hall .nb-teatr-chk.is-need input { outline: 2px solid var(--teatr-wine); outline-offset: 2px; }
@keyframes nb-teatr-need { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .nb-teatr-sheet--hall .nb-teatr-chk.is-need { animation: none; } }
.nb-teatr-sheet--hall .nb-teatr-tgline { margin: 4px 0 8px; text-align: center; }
.nb-teatr-sheet [data-teatr-way][hidden] { display: none; }
.nb-teatr-sheet--hall .nb-teatr-tgnum { color: var(--teatr-wine); font-family: var(--teatr-wide); }
.nb-teatr-sheet--hall .nb-teatr-tix { margin: 6px 0 4px; }
.nb-teatr-tix--issue { animation: nb-teatr-issue 1s var(--teatr-ease) both; }
@keyframes nb-teatr-issue { from { opacity: 0; transform: translateY(-46px) rotate(-2deg); clip-path: inset(60% 0 0 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) { .nb-teatr-tix--issue { animation: none; } .nb-teatr-win { transition: none; } }


.nb-teatr-seatok { margin: 12px 0 0; text-align: center; font-size: var(--nb-fs-base, 14px); color: var(--teatr-wine); }

/* 2б. Окошко прогресса после добавления 2–5-й вещи (дирижёр 30.11): кремовый лист, бордо, зубчатый верх, 5 мест-билетиков.
       Телефон — снизу над нижней панелью страницы (--nb-teatr-prog-bottom считает JS), ПК — справа внизу 360px. */
.nb-teatr-prog {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--nb-teatr-prog-bottom, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: calc(var(--nb-z-panel, 2000) + 12); color: var(--teatr-wine-ink); font-family: var(--nb-font, inherit); font-size: var(--nb-fs-md, 13px);
  filter: drop-shadow(0 10px 24px rgb(74 10 34 / .22)); opacity: 0; transform: translateY(16px);
  transition: opacity .22s var(--teatr-ease), transform .32s var(--teatr-ease);
}
.nb-teatr-prog.is-open { opacity: 1; transform: none; }
@media (min-width: 768px) { .nb-teatr-prog { left: auto; right: 20px; bottom: calc(20px + var(--nb-teatr-prog-bottom, 0px)); width: 360px; } }
.nb-teatr-prog__in {
  position: relative; padding: 18px 16px 14px; background: var(--teatr-cream); border-bottom: 2px solid var(--teatr-wine);
  -webkit-mask: radial-gradient(circle 6px at 50% 0, transparent 97%, #000) 50% 0 / 18px 100% repeat-x;
          mask: radial-gradient(circle 6px at 50% 0, transparent 97%, #000) 50% 0 / 18px 100% repeat-x;
}
.nb-teatr-prog__t { margin: 0; padding-right: 40px; font: 400 22px/1.1 var(--teatr-serif); color: var(--teatr-wine); font-variant-numeric: lining-nums tabular-nums; }
.nb-teatr-seats { display: flex; gap: 6px; margin: 10px 0 8px; }
.nb-teatr-seats i { width: 28px; height: 20px; background: var(--teatr-cream-line); -webkit-mask: var(--nb-teatr-tk) center / contain no-repeat; mask: var(--nb-teatr-tk) center / contain no-repeat; }
.nb-teatr-seats i.on { background: var(--teatr-wine); -webkit-mask-image: var(--nb-teatr-tk-on); mask-image: var(--nb-teatr-tk-on); }
.nb-teatr-prog__it { margin: 0; color: var(--nb-ink, #1B1215); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nb-teatr-prog__hint { margin: 4px 0 0; color: #6B4B55; font-size: 12px; }
html.nb-teatr .nb-teatr-prog__btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 12px; padding: 0 14px;
  background: var(--teatr-wine); color: var(--teatr-cream); border: 1px solid var(--teatr-wine); border-radius: 0; font: inherit; font-size: var(--nb-fs-base, 14px); cursor: pointer;
}
html.nb-teatr .nb-teatr-prog__btn.is-ghost { background: none; color: var(--teatr-wine); }
html.nb-teatr .nb-teatr-prog__btn:hover { background: var(--teatr-wine-deep); color: var(--teatr-cream); }
html.nb-teatr .nb-teatr-prog__x { position: absolute; top: 8px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: none; border: 0; color: var(--teatr-wine-ink); cursor: pointer; }
.nb-teatr-prog__x svg { width: 14px; height: 14px; stroke-width: 1.3; }
.nb-teatr-prog :focus-visible { outline: 2px solid var(--teatr-wine); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .nb-teatr-prog { transition: none; transform: none; } }

/* 3. Шторка «Обране»: бордовая полоса «Театр · ваша афіша» с зубчатым краем и вкладками «Афіша · N з 5» / «Обране · K»;
      вкладка афиши — плакат (макет teatr/shtorka.html, Val 30.11), «Обране» — как на main. Шрифты/цвета — §0 (переменные --teatr-*). */
.nb-teatr-dh {
  position: sticky; top: 0; z-index: 3; margin: 0 calc(-1 * var(--nb-gutter, 40px)) var(--nb-space-3, 15px);
  padding: 14px var(--nb-gutter, 40px) 18px; background: var(--teatr-wine); color: var(--teatr-cream);
  /* зубцы — залитые цветом фона вкладки, а не прорези маской: в прорезях просвечивал прокрученный плакат («У ролях» под фестоном, Val 30.11) */
  background: radial-gradient(circle 7px at 50% 100%, var(--nb-teatr-hole, var(--nb-paper, #fff)) 96%, transparent 100%) 50% 0 / 22px 100% repeat-x, var(--teatr-wine);
}
[data-nb-pane="fav"].nb-teatr-on-afisha .nb-teatr-dh { --nb-teatr-hole: var(--teatr-cream); }
.nb-teatr-dh__t { margin: 0; font: 400 22px/1.1 var(--teatr-serif); }
.nb-teatr-dh__t i { margin-left: 6px; font: 400 24px/1 var(--teatr-script); font-style: normal; }
.nb-teatr-dh__tabs { display: flex; gap: 22px; margin-top: 4px; }
html.nb-teatr .nb-teatr-dh .nb-teatr-tab {
  min-height: 44px; padding: 0; background: none; border: 0; border-bottom: 1px solid transparent; font: inherit;
  font-size: var(--nb-fs-base, 14px); color: #F0CFC6; cursor: pointer; font-variant-numeric: tabular-nums;
}
html.nb-teatr .nb-teatr-dh .nb-teatr-tab.is-on { color: var(--teatr-cream); border-bottom-color: var(--teatr-cream); }
.nb-teatr-dh :focus-visible { outline: 2px solid var(--teatr-cream); outline-offset: 3px; }
[data-nb-pane="fav"].nb-teatr-on-afisha > :not(.nb-teatr-tabs):not(.nb-teatr-pane) { display: none; }
[data-nb-pane="fav"].nb-teatr-on-afisha { background: var(--teatr-cream); }
/* строка «Обране (N)» над полосой — убрать, пока в открытом «Обране» стоят вкладки Театра (Val 30.11: счётчик есть во вкладке «Обране · N»);
   акция выключена → вкладок нет → заголовок как на main */
#nb-cart:has([data-nb-pane="fav"]:not([hidden]) [data-teatr-tabs]) .nb-cart__head { display: none; }
/* подвал гостя «Збережіть обране · Увійти» — про обране; на вкладке «Театр» своя кнопка сохранения */
#nb-cart.nb-teatr-on-afisha .nb-cart__favfoot { display: none; }
.nb-teatr-pane { font-size: var(--nb-fs-base, 14px); padding-bottom: var(--nb-space-8, 40px); color: var(--nb-ink, #1B1215); }
.nb-teatr-pane :focus-visible { outline-color: var(--teatr-wine); }

.nb-teatr-poster { position: relative; margin-top: var(--nb-space-1, 5px); padding: 28px 18px 18px; border: 1px solid var(--teatr-wine); background: var(--teatr-cream); }
.nb-teatr-poster > i { position: absolute; width: 22px; height: 22px; background: var(--teatr-cream); border: 0 solid var(--teatr-wine); }
.nb-teatr-poster > i:nth-child(1) { top: -1px; left: -1px; border-right-width: 1px; border-bottom-width: 1px; border-bottom-right-radius: 100%; }
.nb-teatr-poster > i:nth-child(2) { top: -1px; right: -1px; border-left-width: 1px; border-bottom-width: 1px; border-bottom-left-radius: 100%; }
.nb-teatr-poster > i:nth-child(3) { bottom: -1px; left: -1px; border-right-width: 1px; border-top-width: 1px; border-top-right-radius: 100%; }
.nb-teatr-poster > i:nth-child(4) { bottom: -1px; right: -1px; border-left-width: 1px; border-top-width: 1px; border-top-left-radius: 100%; }
.nb-teatr-poster__h { margin: 0; text-align: center; font: 400 30px/1.15 var(--teatr-serif); color: var(--teatr-wine); text-wrap: balance; }
.nb-teatr-poster__who { margin: 2px 0 0; text-align: center; font: 400 30px/1.1 var(--teatr-script); color: var(--teatr-wine); overflow-wrap: anywhere; }
.nb-teatr-poster__cast { margin: 18px 0 6px; text-align: center; font: 400 12px/1.2 var(--nb-font, inherit); letter-spacing: .04em; color: var(--teatr-wine); }
.nb-teatr-poster__foot {
  display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--teatr-wine);
  font: 400 12px/1.2 var(--nb-font, inherit); letter-spacing: .02em; color: var(--teatr-wine-ink); font-variant-numeric: tabular-nums;
}
.nb-teatr-role { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--teatr-cream-line); }
.nb-teatr-role > a:first-child { display: block; }
.nb-teatr-role__img { display: block; width: 56px; height: 74px; object-fit: cover; background: var(--teatr-cream-2); }
.nb-teatr-role__img.is-cut { object-fit: contain; padding: 4px; box-sizing: border-box; }
.nb-teatr-role__body { min-width: 0; }
/* подписи ролей — шрифт сайта, бордо 12px, обычный регистр (Val 30.11: разреженные заглавные с засечками не читались) */
.nb-teatr-role__r { margin: 0; font: 400 12px/1.25 var(--nb-font, inherit); letter-spacing: .02em; color: var(--teatr-wine); }
.nb-teatr-role__n { display: block; margin: 3px 0 0; max-height: calc(2 * 1.3em); overflow: hidden; font-size: 14px; line-height: 1.3; color: var(--nb-ink, #1B1215); text-decoration: none; text-wrap: balance; }
a.nb-teatr-role__n:hover { text-decoration: underline; text-underline-offset: 3px; }
.nb-teatr-role__p { margin: 2px 0 0; font-size: 12px; color: #6B4B55; font-variant-numeric: tabular-nums; }
.nb-teatr-role.is-gone img { opacity: var(--nb-opacity-faint, .4); }
.nb-teatr-role.is-gone .nb-teatr-role__p { color: var(--nb-discount, #B3261E); }
.nb-teatr-role__x { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: none; border: 0; color: var(--teatr-wine-ink); cursor: pointer; }
.nb-teatr-role__x svg { width: 14px; height: 14px; stroke-width: 1.3; }
html.nb-teatr .nb-teatr-pane .nb-teatr-role__ph { width: 56px; height: 74px; display: grid; place-items: center; border: 1px dashed var(--teatr-wine); color: var(--teatr-wine); }
.nb-teatr-role__ph svg { width: 16px; height: 16px; stroke-width: 1.2; }
.nb-teatr-role__ex { margin: 2px 0 0; font-size: 12px; color: #6B4B55; }
.nb-teatr-role.is-free .nb-teatr-role__r { font-size: 13px; }
html.nb-teatr .nb-teatr-pane .nb-teatr-role__pick {
  display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; padding: 0 2px; white-space: nowrap;
  color: var(--teatr-wine); font-size: 13px; text-decoration: none;
}
html.nb-teatr .nb-teatr-pane .nb-teatr-role__pick:hover { text-decoration: underline; text-underline-offset: 3px; }
/* «Вільне місце» и «Не стали в афішу…» в окне замены — те же подписи, что раньше (окно не плакат) */
.nb-teatr-slot__role { font-size: var(--nb-fs-sm, 12px); color: var(--nb-gray-700, #757575); }
.nb-teatr-slot__name { display: block; max-height: calc(2 * 1.46em); overflow: hidden; text-wrap: balance; color: inherit; text-decoration: none; font-size: var(--nb-fs-md, 13px); line-height: 1.46; }

/* личный квиток: бордо + кремовый корешок; «Займи місце в залі» отрывает корешок */
.nb-teatr-tix { display: flex; margin-top: 26px; filter: drop-shadow(0 10px 18px rgb(74 10 34 / .18)); }
.nb-teatr-tix__main {
  flex: 1; min-width: 0; padding: 18px 16px 16px; background: var(--teatr-wine); color: var(--teatr-cream);
  -webkit-mask: radial-gradient(circle 8px at 100% 0, transparent 97%, #000) 0 0 / 100% 51% no-repeat, radial-gradient(circle 8px at 100% 100%, transparent 97%, #000) 0 100% / 100% 51% no-repeat;
          mask: radial-gradient(circle 8px at 100% 0, transparent 97%, #000) 0 0 / 100% 51% no-repeat, radial-gradient(circle 8px at 100% 100%, transparent 97%, #000) 0 100% / 100% 51% no-repeat;
}
.nb-teatr-tix__t { margin: 0; font: 400 24px/1 var(--teatr-serif); letter-spacing: .03em; text-transform: uppercase; }
.nb-teatr-tix__s { margin: -2px 0 0; font: 400 24px/1.1 var(--teatr-script); }
.nb-teatr-tix__m { margin: 14px 0 0; font: 400 10px/1.4 var(--teatr-serif); letter-spacing: .14em; text-transform: uppercase; color: #F6DFD0; overflow-wrap: anywhere; }
.nb-teatr-tix__stub {
  width: 104px; flex: none; margin: 0; padding: 14px 12px; background: #FFF8EC; color: var(--teatr-wine); border-left: 1px dashed var(--teatr-wine);
  -webkit-mask: radial-gradient(circle 8px at 0 0, transparent 97%, #000) 0 0 / 100% 51% no-repeat, radial-gradient(circle 8px at 0 100%, transparent 97%, #000) 0 100% / 100% 51% no-repeat;
          mask: radial-gradient(circle 8px at 0 0, transparent 97%, #000) 0 0 / 100% 51% no-repeat, radial-gradient(circle 8px at 0 100%, transparent 97%, #000) 0 100% / 100% 51% no-repeat;
}
.nb-teatr-tix__stub dt { font: 500 8px/1 var(--teatr-wide); letter-spacing: .1em; text-transform: uppercase; }
.nb-teatr-tix__stub dd { margin: 4px 0 10px; font: 400 13px/1 var(--teatr-wide); color: var(--teatr-wine-ink); font-variant-numeric: tabular-nums; }
.nb-teatr-tix__stub dd:last-child { margin-bottom: 0; }
html.nb-teatr .nb-teatr-pane .nb-teatr-btn { margin-top: var(--nb-space-3, 15px); background: var(--teatr-wine); border-color: var(--teatr-wine); color: var(--teatr-cream); }
html.nb-teatr .nb-teatr-pane .nb-teatr-btn:not(:disabled):hover { background: var(--teatr-wine-deep); }
.nb-teatr-pane .nb-teatr-note { text-align: center; margin-top: var(--nb-space-2, 10px); font-size: 12px; color: #6B4B55; }
.nb-teatr-pane .nb-teatr-link { color: var(--teatr-wine); }
.nb-teatr-tix { position: relative; }
/* штамп-гашение «У ЗАЛІ · 6.12» поверх корешка (Val 30.11: корешок всегда, не отрываем) */
.nb-teatr-tix__stamp {
  position: absolute; right: -10px; bottom: -18px; width: 64px; height: 64px; display: none; opacity: .85;   /* угол корешка, наполовину за краем — цифры читаются */
  flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 50%;
  border: 1.5px solid var(--teatr-wine); box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px rgb(158 5 66 / .55);
  color: var(--teatr-wine); background: none; transform: rotate(-8deg); pointer-events: none;
  font: 500 8px/1 var(--teatr-wide); letter-spacing: .12em; text-transform: uppercase;
}
.nb-teatr-tix__stamp b { font: 500 13px/1 var(--teatr-wide); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.nb-teatr-tix.is-seat .nb-teatr-tix__stamp { display: flex; }
.nb-teatr-tix.is-stamping .nb-teatr-tix__stamp { animation: nb-teatr-stamp .28s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes nb-teatr-stamp { 0% { opacity: 0; transform: rotate(-8deg) scale(1.6); } 70% { opacity: .85; transform: rotate(-8deg) scale(.94); } 100% { transform: rotate(-8deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .nb-teatr-tix.is-stamping .nb-teatr-tix__stamp { animation: none; } }

html.nb-teatr :is(body, #nb-teatr-any) .nb-teatr-chip {   /* вес id: стили плиток шторки (скоуп .nb-pdp-host с id) обнуляли рамку и высоту кнопки */
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: var(--nb-space-2, 10px);
  background: var(--nb-paper, #fff); color: var(--nb-ink, #000); border: var(--nb-border, 1px) solid var(--nb-ink, #000);
  border-radius: var(--nb-r-sm, 3px); font: inherit; font-size: var(--nb-fs-sm, 12px); cursor: pointer;
}
html.nb-teatr :is(body, #nb-teatr-any) .nb-teatr-chip.is-in { border-color: var(--nb-gray-300, #D9D9D9); color: var(--nb-gray-700, #757575); cursor: default; }


@media (prefers-reduced-motion: reduce) {
  .nb-teatr-sheet, .nb-teatr-scrim, div.nb-teatr-toast, .nb-teatr-btn { transition: none; }
}

/* 4. Посадочная /teatr/ */
/* поля и шрифт — явными значениями: с 30.11 на /teatr/ приезжают токены (CSS карточки для шторок), и --nb-gutter стал бы 40px на ПК —
   посадочная обязана выглядеть как до этого (решение дирижёра 30.11) */
.nb-teatr-land { max-width: 640px; margin: 0 auto; padding: var(--nb-space-6, 30px) 15px var(--nb-space-12, 60px); font-family: inherit; font-size: var(--nb-fs-base, 14px); line-height: var(--nb-lh, 1.46); }
.nb-teatr-land :where(p, h1, h2, ol, ul) { margin: 0; }
.nb-teatr-land__h1 { margin: var(--nb-space-1, 5px) 0 var(--nb-space-2, 10px); font-size: var(--nb-fs-3xl, 24px); font-weight: var(--nb-fw-regular, 400); line-height: var(--nb-lh-tight, 1.2); text-wrap: balance; }
.nb-teatr-land__lead { color: var(--nb-gray-900, #5A5A5A); text-wrap: pretty; }
.nb-teatr-land__cta { display: grid; gap: 0; margin-top: var(--nb-space-3, 15px); }
.nb-teatr-land__cta .nb-teatr-btn { text-decoration: none; }
@media (min-width: 560px) { .nb-teatr-land__cta { grid-template-columns: 1fr 1fr; gap: var(--nb-space-2, 10px); } }
.nb-teatr-land__sec { margin-top: var(--nb-space-8, 40px); }
.nb-teatr-land__h2 { font-size: var(--nb-fs-lg, 16px); font-weight: var(--nb-fw-regular, 400); margin-bottom: var(--nb-space-2, 10px); }
.nb-teatr-steps { list-style: none; padding: 0; counter-reset: s; }
.nb-teatr-steps li { text-wrap: pretty; counter-increment: s; display: flex; gap: var(--nb-space-3, 15px); padding: var(--nb-space-3, 15px) 0; border-top: var(--nb-border, 1px) solid var(--nb-gray-300, #D9D9D9); }
.nb-teatr-steps li::before { content: counter(s); flex: none; width: 20px; font-size: var(--nb-fs-xl, 18px); line-height: 1.1; color: var(--nb-teatr-accent); }
.nb-teatr-dates { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--nb-space-1, 5px); }
.nb-teatr-dates li { border: var(--nb-border, 1px) solid var(--nb-gray-300, #D9D9D9); padding: var(--nb-space-2, 10px) var(--nb-space-1, 5px); text-align: center; font-size: var(--nb-fs-sm, 12px); color: var(--nb-gray-700, #757575); }
.nb-teatr-dates b { display: block; font-size: var(--nb-fs-lg, 16px); font-weight: var(--nb-fw-regular, 400); color: var(--nb-ink, #000); }
.nb-teatr-dates li.is-big { border-color: var(--nb-teatr-accent); }
.nb-teatr-dates li.is-big b { color: var(--nb-teatr-accent); }
.nb-teatr-land__soon { color: var(--nb-gray-700, #757575); font-size: var(--nb-fs-md, 13px); padding: var(--nb-space-3, 15px); background: var(--nb-gray-100, #F5F5F5); }
/* выжимка правил (5 строк) + ссылка на полный текст /teatr/pravyla/ */
.nb-teatr-rules { list-style: none; padding: 0; margin: 0; }
.nb-teatr-rules li { position: relative; padding: var(--nb-space-2, 10px) 0 var(--nb-space-2, 10px) 18px; border-top: var(--nb-border, 1px) solid var(--nb-gray-300, #D9D9D9); text-wrap: pretty; }
.nb-teatr-rules li::before { content: ""; position: absolute; left: 2px; top: calc(var(--nb-space-2, 10px) + .55em); width: 6px; height: 6px; background: var(--nb-teatr-accent); transform: rotate(45deg); }
.nb-teatr-rules__more { margin-top: var(--nb-space-3, 15px); }
.nb-teatr-rules__more a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* 5. v3: окно упора в лимит — причина и вещи, которые можно заменить (бриф roles-v3) */
.nb-teatr-why { margin-top: var(--nb-space-3, 15px); }
.nb-teatr-cand { display: flex; gap: var(--nb-space-3, 15px); align-items: center; padding: var(--nb-space-2, 10px) 0;
  border-top: var(--nb-border, 1px) solid var(--nb-gray-100, #F5F5F5); }
.nb-teatr-cand__body { flex: 1; min-width: 0; }
.nb-teatr-pill { flex: none; min-height: 44px; padding: 0 var(--nb-space-3, 15px); background: var(--nb-ink, #000); color: var(--nb-paper, #fff);
  border: 0; border-radius: var(--nb-r-sm, 3px); font: inherit; font-size: var(--nb-fs-md, 13px); cursor: pointer;
  transition: transform var(--nb-motion-press, 160ms cubic-bezier(.23, 1, .32, 1)); }
.nb-teatr-pill:active { transform: scale(.97); }
.nb-teatr-cand + .nb-teatr-btn { margin-top: var(--nb-space-3, 15px); }

/* 6. Вход через Telegram: число, которое клиентка выбирает в боте */
.nb-teatr-tgnum { margin: var(--nb-space-1, 5px) 0 var(--nb-space-3, 15px); font-size: var(--nb-fs-3xl, 24px); letter-spacing: .12em; text-align: center;
  font-variant-numeric: tabular-nums; padding: var(--nb-space-3, 15px); background: var(--nb-cream, #F6F2ED); }
.nb-teatr-sheet a.nb-teatr-btn { text-decoration: none; }
.nb-teatr-tgwarn { margin-top: var(--nb-space-3, 15px); }

/* «В афішу» в «Обране» — на одной высоте в ряду (Val 30.11: карточки с кружками цветов выше, кнопки «скакали»).
   Карточка с кнопкой — колонка, кнопка прижата вниз; ряд сетки и так тянет карточки на одну высоту. Проба: site-teatr-qa/chip_align.py */
html.nb-teatr :is(body, #nb-teatr-any) [data-nb-fav-list] .product-card:has(> [data-teatr-chip]) { display: flex; flex-direction: column; }
html.nb-teatr :is(body, #nb-teatr-any) [data-nb-fav-list] .product-card > [data-teatr-chip] { margin-top: auto; }
html.nb-teatr :is(body, #nb-teatr-any) [data-nb-fav-list] .product-card:has(> [data-teatr-chip]) > :nth-last-child(2) { margin-bottom: var(--nb-space-2, 10px); }


/* 5. Страница правил /teatr/pravyla/ — типографика nb-doc.css (как оферта); своё — только «назад» */
.nb-teatr-legal__back a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* 6. Плавающая кнопка афиши справа — снята (Val 30.11) */

/* 7. Прокрутка (Val 30.11): пока html.nb-teatr-scrolling (скролл + 200 мс), анимации Театра стоят на паузе */
html.nb-teatr-scrolling :is(.nb-teatr-tix--issue, .nb-teatr-tix.is-stamping .nb-teatr-tix__stamp) { animation-play-state: paused; }   /* сцену (stage) ставит на паузу сессия главной */

/* 8. Двери Фойє / Зала на посадочной (только если Зала выложена) */
.nb-teatr-doors { display: flex; justify-content: center; gap: 0; margin: 0 auto var(--nb-space-6, 30px); max-width: 320px; border: 1px solid var(--teatr-wine); }
.nb-teatr-doors a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--teatr-wine); text-decoration: none; font-size: var(--nb-fs-base, 14px); }
.nb-teatr-doors a[aria-current="page"] { background: var(--teatr-wine); color: var(--teatr-cream); }
.nb-teatr-doors a:not([aria-current]):hover { background: var(--teatr-cream); }

/* 9. Шторка «Обране»: квиток снимает вещь — карточка гаснет и сжимается, потом тема убирает её из списка (Val 30.11) */
/* тост поверх открытой шторки (z 2100): иначе «Повернути» под ней не видно */
body:has(#nb-cart:not([hidden])) div.nb-teatr-toast { z-index: calc(var(--nb-z-panel, 2000) + 120); }
[data-nb-fav-list] .product-card.nb-teatr-gone { opacity: 0; transform: scale(.94); transition: opacity .2s var(--teatr-ease, ease), transform .2s var(--teatr-ease, ease); pointer-events: none; }

/* 10. Окно выбора раздела для пустого места афиши (Val 30.11): поверх шторки «Обране» (она 2100), под тостом (+120) */
.nb-teatr-scrim.nb-teatr-scrim--over { z-index: calc(var(--nb-z-panel, 2000) + 112); }
.nb-teatr-scrim.nb-teatr-scrim--over { background: rgb(27 18 21 / .5); }
.nb-teatr-sheet.nb-teatr-sheet--pick { z-index: calc(var(--nb-z-panel, 2000) + 113); display: flex; flex-direction: column; overflow: hidden; }
.nb-teatr-sheet--pick.is-drag { transition: none; }
.nb-teatr-pick__head { flex: none; }
.nb-teatr-pick__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.nb-teatr-grab { display: none; }
.nb-teatr-pick__h { margin: 0 34px 12px 0; font: 400 22px/1.2 var(--teatr-serif); color: var(--teatr-wine); text-align: left; text-wrap: balance; }
.nb-teatr-pick__role { display: block; margin-top: 3px; font: 400 14px/1.3 var(--nb-font, inherit); color: #6B4B55; }
/* телефон: классический нижний лист — по содержимому, не выше 78 % экрана, скруглённый верх без фестона, ручка внутри (Val 30.11) */
@media (max-width: 767px) {
  .nb-teatr-sheet.nb-teatr-sheet--play.nb-teatr-sheet--pick {
    -webkit-mask: none; mask: none; border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px rgb(27 18 21 / .18);
    max-height: calc((100dvh - var(--nb-teatr-pick-top, 0px)) * .78); padding: 0;   /* 78 % области под шапкой шторки */
  }
  .nb-teatr-scrim.nb-teatr-scrim--over { top: var(--nb-teatr-pick-top, 0px); }   /* затемняем только тело шторки */
  .nb-teatr-sheet--pick .nb-teatr-pick__head { padding: 10px 52px 0 var(--nb-space-3, 15px); }
  .nb-teatr-grab { display: block; width: 36px; height: 4px; margin: 0 auto 8px; border-radius: 2px; background: rgb(107 75 85 / .35); transform: translateX(18px); }
  .nb-teatr-sheet--pick .nb-teatr-sheet__x { top: 12px; right: 2px; width: 44px; height: 44px; z-index: 1; }
  .nb-teatr-sheet--pick .nb-teatr-pick__h { margin: 0 0 10px; font-size: 21px; }
  .nb-teatr-sheet--pick .nb-teatr-pick__body { padding: 0 var(--nb-space-3, 15px) calc(var(--nb-space-4, 20px) + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 768px) { .nb-teatr-sheet.nb-teatr-sheet--pick { max-height: min(86vh, 640px); } }
.nb-teatr-secg { margin: 16px 0 2px; font-size: 12px; letter-spacing: .04em; color: var(--teatr-wine); }
.nb-teatr-secs { list-style: none; margin: 0; padding: 0; }
.nb-teatr-secs li { border-top: 1px solid var(--teatr-cream-line, #E8D5C4); }
.nb-teatr-secs li:last-child { border-bottom: 1px solid var(--teatr-cream-line, #E8D5C4); }
html.nb-teatr .nb-teatr-sheet--pick .nb-teatr-sec { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 2px; font-size: 15px; color: var(--nb-ink, #1B1215); text-decoration: none; }
html.nb-teatr .nb-teatr-sheet--pick a.nb-teatr-sec span { color: var(--teatr-wine); font-size: 18px; }
html.nb-teatr .nb-teatr-sheet--pick a.nb-teatr-sec:hover { color: var(--teatr-wine); }
html.nb-teatr .nb-teatr-sheet--pick .nb-teatr-sec.is-have { color: #7A6168; cursor: default; }
.nb-teatr-sec.is-have small { font-size: 12px; color: #7A6168; }
/* пустое место плаката — кнопка целиком */
html.nb-teatr .nb-teatr-pane button.nb-teatr-role.is-free {
  width: 100%; margin: 0; padding: 10px 0; background: none; border: 0; border-top: 1px solid var(--teatr-cream-line); border-radius: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nb-teatr-role.is-free .nb-teatr-role__r, .nb-teatr-role.is-free .nb-teatr-role__ex { display: block; }
html.nb-teatr .nb-teatr-pane button.nb-teatr-role.is-free:hover .nb-teatr-role__pick { text-decoration: underline; text-underline-offset: 3px; }
html.nb-teatr .nb-teatr-pane button.nb-teatr-role.is-free:focus-visible { outline: 2px solid var(--teatr-wine); outline-offset: 2px; }

/* ---------- §11 Фойє «Як це працює»: аккордеон с мини-демо (Val 30.11) ----------
   Демо — из классов сайта (квиток, вкладки входа, корешок со штампом). Анимации — только transform/opacity и только под .is-run
   (ставит nb-teatr.js: шаг раскрыт И демо на экране). Без .is-run и при reduced-motion — статичный конечный кадр. */
.nb-teatr-acc li::before { padding-top: 1px; }
.nb-teatr-step { flex: 1; min-width: 0; }
html.nb-teatr .nb-teatr-step__more { display: flex; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 -10px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--teatr-wine, #9E0542); cursor: pointer; text-decoration: none; }
  font: inherit; font-size: 13px; color: var(--teatr-wine, #9E0542); cursor: pointer; }
html.nb-teatr .nb-teatr-step__more:hover .nb-teatr-step__lbl { text-decoration: underline; text-underline-offset: 3px; }   /* шеврон вне подчёркивания (Val 30.11) */
html.nb-teatr .nb-teatr-step__more:focus-visible { outline: 2px solid var(--teatr-wine, #9E0542); outline-offset: 2px; }
.nb-teatr-step__chev { flex: none; width: 6px; height: 6px; margin: 0 3px 0 2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .25s var(--teatr-ease, ease); }
.nb-teatr-step__more[aria-expanded="true"] .nb-teatr-step__chev { transform: translateY(-2px) rotate(45deg); }
.nb-teatr-demo { margin: 14px 0 0; padding: 16px 10px; background: var(--teatr-cream, #FBEFDC); overflow: hidden; animation: nb-teatr-demo-in .3s var(--teatr-ease, ease) both; }
@keyframes nb-teatr-demo-in { from { opacity: 0; transform: translateY(-6px); } }
.nb-teatr-demo__stage { position: relative; width: 300px; max-width: 100%; margin: 0 auto; font-size: 12px; line-height: 1.3; color: var(--teatr-wine-ink, #4A0A22); }
.nb-teatr-demo__stage :where(span, i, b) { display: block; font-style: normal; }
.nb-teatr-demo__stage img { display: block; max-width: none; }

/* 1 — квиток на карточке → вещь летит в счётчик шапки → встаёт в слот по роли */
.nb-teatr-d1 { height: 312px; }
.nb-teatr-d1__hdr { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #fff; border: 1px solid var(--teatr-cream-line, #E4CFB0); border-radius: 15px; }
.nb-teatr-d1__tk { width: 15px; height: 11px; background: var(--teatr-wine, #9E0542); -webkit-mask: var(--nb-teatr-tk-on) center / contain no-repeat; mask: var(--nb-teatr-tk-on) center / contain no-repeat; }
.nb-teatr-d1__n { position: relative; width: 26px; height: 14px; }
.nb-teatr-d1__n b { position: absolute; inset: 0; font: 500 12px/14px var(--teatr-wide, inherit); font-variant-numeric: tabular-nums; color: var(--teatr-wine, #9E0542); }
.nb-teatr-d1__was { opacity: 0; }
.nb-teatr-d1__card { position: absolute; left: 8px; top: 4px; width: 170px; }   /* ~57 % блока на 390 (Val 30.11) */
.nb-teatr-d1__card img { box-sizing: border-box; width: 170px; height: 200px; padding: 20px 17px; object-fit: contain; background: #fff; }   /* вещь ~80 % поля, воздух как на плитке (Val 30.11) */
.nb-teatr-d1__nm { margin-top: 6px; font-size: 12px; }
.nb-teatr-d1__fav { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.nb-teatr-d1__fav i { position: absolute; left: 5px; top: 7px; width: 16px; height: 12px; -webkit-mask: var(--nb-teatr-tk) center / contain no-repeat; mask: var(--nb-teatr-tk) center / contain no-repeat; background: var(--nb-ink, #000); }
.nb-teatr-d1__fav .nb-teatr-d1__on { -webkit-mask-image: var(--nb-teatr-tk-on); mask-image: var(--nb-teatr-tk-on); background: var(--teatr-wine, #9E0542); }
.nb-teatr-d1__fav .nb-teatr-d1__tap { left: -6px; top: -6px; width: 38px; height: 38px; border-radius: 50%; -webkit-mask: none; mask: none; background: rgb(158 5 66 / .25); opacity: 0; }
.nb-teatr-d1__fly { position: absolute; z-index: 3; left: 83px; top: 241px; width: 38px; height: 48px; object-fit: contain; opacity: 0; pointer-events: none; }   /* конечная точка — слот «верх»; поверх ряда слотов */
.nb-teatr-d1__slots { position: absolute; z-index: 1; left: 34px; top: 240px; display: flex; gap: 8px; }
.nb-teatr-d1__slot { width: 40px; height: 50px; overflow: hidden; background: #fff; border: 1px dashed var(--teatr-cream-line, #E4CFB0); }
.nb-teatr-d1__slot.is-full, .nb-teatr-d1__slot.is-new { border-style: solid; }
.nb-teatr-d1__slot img { width: 38px; height: 48px; object-fit: contain; }
.nb-teatr-d1__roles { position: absolute; left: 30px; top: 296px; display: flex; gap: 0; }
.nb-teatr-d1__roles span { width: 48px; text-align: center; font-size: 9px; color: #6B4B55; }
.nb-teatr-demo.is-run .nb-teatr-d1__on { animation: nb-teatr-d1-on 5s linear infinite; }
.nb-teatr-demo.is-run .nb-teatr-d1__tap { animation: nb-teatr-d1-tap 5s ease-out infinite; }
.nb-teatr-demo.is-run .nb-teatr-d1__fly { animation: nb-teatr-d1-fly 5s var(--teatr-ease, ease) infinite; }
.nb-teatr-demo.is-run .nb-teatr-d1__was { animation: nb-teatr-d1-was 5s linear infinite; }
.nb-teatr-demo.is-run .nb-teatr-d1__now { animation: nb-teatr-d1-now 5s linear infinite; }
.nb-teatr-demo.is-run .nb-teatr-d1__hdr { animation: nb-teatr-d1-hdr 5s ease infinite; }
.nb-teatr-demo.is-run .nb-teatr-d1__slot.is-new img { animation: nb-teatr-d1-slot 5s linear infinite; }
@keyframes nb-teatr-d1-tap { 0%, 8% { opacity: 0; transform: scale(.4); } 12% { opacity: 1; transform: scale(1); } 20%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes nb-teatr-d1-on { 0%, 12% { opacity: 0; } 14%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes nb-teatr-d1-fly {   /* дуга сверху: квиток карточки → вверх-вбок к счётчику N/5 → вниз в слот «верх» (Val 30.11) */
  0%, 16% { opacity: 0; transform: translate(57px, -236px) scale(.4); animation-timing-function: ease-out; }   /* выпрыгивает из квитка карточки */
  21% { opacity: 1; transform: translate(70px, -244px) scale(.9); animation-timing-function: ease-in-out; }
  31% { opacity: 1; transform: translate(112px, -262px) scale(.6); animation-timing-function: ease-in; }
  42%, 50% { opacity: 1; transform: translate(157px, -245px) scale(.3); animation-timing-function: ease-in-out; }
  60% { opacity: 1; transform: translate(105px, -170px) scale(.7); animation-timing-function: ease-out; }
  70%, 72% { opacity: 1; transform: none; } 75%, 100% { opacity: 0; transform: none; } }
@keyframes nb-teatr-d1-was { 0%, 41% { opacity: 1; } 43%, 95% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes nb-teatr-d1-now { 0%, 41% { opacity: 0; } 43%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes nb-teatr-d1-hdr { 0%, 40% { transform: none; } 44% { transform: scale(1.12); } 50%, 100% { transform: none; } }
@keyframes nb-teatr-d1-slot { 0%, 69% { opacity: 0; } 71%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* 2 — «Вхід до зали»: вкладки, одна галочка на обе, кнопка «включается» с галочкой */
.nb-teatr-d2 { padding: 14px; background: #fff; }
.nb-teatr-d2 .nb-teatr-d2__ways { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.nb-teatr-d2__ways > span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 36px; font-size: 12px; color: var(--teatr-wine, #9E0542); text-align: center; }
.nb-teatr-d2__pill { position: absolute; left: 0; bottom: 0; width: 50%; height: 3px; background: var(--teatr-wine, #9E0542); }
.nb-teatr-d2__body { display: grid; min-height: 66px; }
.nb-teatr-d2__body > span { grid-area: 1 / 1; }
.nb-teatr-d2 .nb-teatr-lbl { margin-top: 0; color: #6B4B55; }
.nb-teatr-d2 .nb-teatr-in { display: flex; align-items: center; margin-top: 4px; height: 40px; padding: 0 10px; border: 1px solid var(--teatr-cream-line, #E4CFB0); font-size: 13px; color: var(--nb-ink, #000); }
.nb-teatr-d2__tg { opacity: 0; align-self: center; font-size: 13px; }
.nb-teatr-d2 .nb-teatr-chk { display: flex; margin: 4px 0; min-height: 40px; font-size: 12px; }
.nb-teatr-d2__box { position: relative; width: 18px; height: 18px; flex: none; border: 1.5px solid var(--teatr-wine, #9E0542); }
.nb-teatr-d2__box i { position: absolute; inset: 2px; background: var(--teatr-wine, #9E0542); }
.nb-teatr-d2 .nb-teatr-btn { position: relative; display: block; min-height: 44px; background: var(--teatr-wine, #9E0542); border-color: var(--teatr-wine, #9E0542); color: var(--teatr-cream, #FBEFDC); }
.nb-teatr-d2__btn > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.nb-teatr-d2__b2 { opacity: 0; }
.nb-teatr-demo.is-run .nb-teatr-d2__box i { animation: nb-teatr-d2-tick 7s linear infinite; }
.nb-teatr-demo.is-run .nb-teatr-d2__btn { animation: nb-teatr-d2-btn 7s linear infinite; }
.nb-teatr-demo.is-run .nb-teatr-d2__pill { animation: nb-teatr-d2-pill 7s var(--teatr-ease, ease) infinite; }
.nb-teatr-demo.is-run .nb-teatr-d2__ph, .nb-teatr-demo.is-run .nb-teatr-d2__b1 { animation: nb-teatr-d2-a 7s linear infinite; }
.nb-teatr-demo.is-run .nb-teatr-d2__tg, .nb-teatr-demo.is-run .nb-teatr-d2__b2 { animation: nb-teatr-d2-b 7s linear infinite; }
@keyframes nb-teatr-d2-tick { 0%, 20% { opacity: 0; transform: scale(.3); } 23%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes nb-teatr-d2-btn { 0%, 21% { opacity: .4; } 24%, 95% { opacity: 1; } 99%, 100% { opacity: .4; } }
@keyframes nb-teatr-d2-pill { 0%, 40% { transform: none; } 46%, 74% { transform: translateX(100%); } 80%, 100% { transform: none; } }
@keyframes nb-teatr-d2-a { 0%, 40% { opacity: 1; } 44%, 76% { opacity: 0; } 80%, 100% { opacity: 1; } }
@keyframes nb-teatr-d2-b { 0%, 40% { opacity: 0; } 44%, 76% { opacity: 1; } 80%, 100% { opacity: 0; } }

/* 3 — «Займи місце в залі» → штамп «У ЗАЛІ» на корешок */
.nb-teatr-d3 { padding-bottom: 4px; }
.nb-teatr-d3 .nb-teatr-tix { display: flex; margin: 0 6px 22px 0; }
.nb-teatr-d3 .nb-teatr-tix__main { display: block; }
.nb-teatr-d3 .nb-teatr-tix__t, .nb-teatr-d3 .nb-teatr-tix__s { font-size: 20px; }
.nb-teatr-d3 .nb-teatr-tix__stub { width: 90px; }
.nb-teatr-d3 .nb-teatr-tix__stamp { display: flex; }
.nb-teatr-d3 .nb-teatr-btn { display: block; min-height: 44px; line-height: 44px; padding: 0; text-align: center; background: var(--teatr-wine, #9E0542); color: var(--teatr-cream, #FBEFDC); }
.nb-teatr-demo.is-run .nb-teatr-d3 .nb-teatr-tix__stamp { animation: nb-teatr-d3-stamp 4.5s linear infinite; }
.nb-teatr-demo.is-run .nb-teatr-d3__btn { animation: nb-teatr-d3-btn 4.5s ease infinite; }
@keyframes nb-teatr-d3-btn { 0%, 18% { transform: none; opacity: 1; } 22% { transform: scale(.96); } 27% { transform: none; opacity: 1; } 32%, 92% { opacity: .4; } 100% { opacity: 1; } }
@keyframes nb-teatr-d3-stamp { 0%, 28% { opacity: 0; transform: rotate(-8deg) scale(1.6); } 33% { opacity: .85; transform: rotate(-8deg) scale(.94); } 36%, 90% { opacity: .85; transform: rotate(-8deg) scale(1); } 97%, 100% { opacity: 0; transform: rotate(-8deg) scale(1); } }

/* 4 — большой розыгрыш: каждые 1 000 ₴ — ещё один квиток */
.nb-teatr-d4__row { display: flex; justify-content: space-between; }
.nb-teatr-d4__tk { width: 32px; text-align: center; }
.nb-teatr-d4__tk i { width: 28px; height: 20px; margin: 0 auto; background: var(--teatr-wine, #9E0542); -webkit-mask: var(--nb-teatr-tk-on) center / contain no-repeat; mask: var(--nb-teatr-tk-on) center / contain no-repeat; }
.nb-teatr-d4__tk b { margin-top: 4px; font: 500 8px/1 var(--teatr-wide, inherit); color: #6B4B55; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb-teatr-d4__bar { position: relative; height: 6px; margin: 12px 0 8px; background: var(--teatr-cream-line, #E4CFB0); }
.nb-teatr-d4__bar i { position: absolute; inset: 0; background: var(--teatr-wine, #9E0542); transform-origin: 0 50%; }
.nb-teatr-d4__mark { position: absolute; left: 62.5%; top: -5px; width: 2px; height: 16px; background: var(--teatr-wine-ink, #4A0A22); }
.nb-teatr-d4__lbl { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #6B4B55; }
.nb-teatr-demo.is-run .nb-teatr-d4__bar i { animation: nb-teatr-d4-bar 7s linear infinite; }
@keyframes nb-teatr-d4-bar { 0% { transform: scaleX(0); } 80%, 92% { transform: scaleX(1); opacity: 1; } 99% { opacity: 0; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(0); } }
@keyframes nb-teatr-d4-1 { 0%, 9% { opacity: .18; transform: none; } 12% { opacity: 1; transform: translateY(-3px); } 15%, 92% { opacity: 1; transform: none; } 100% { opacity: .18; } }
.nb-teatr-demo.is-run .nb-teatr-d4__tk:nth-child(1) { animation: nb-teatr-d4-1 7s linear infinite; }
@keyframes nb-teatr-d4-2 { 0%, 19% { opacity: .18; transform: none; } 22% { opacity: 1; transform: translateY(-3px); } 25%, 92% { opacity: 1; transform: none; } 100% { opacity: .18; } }
.nb-teatr-demo.is-run .nb-teatr-d4__tk:nth-child(2) { animation: nb-teatr-d4-2 7s linear infinite; }
@keyframes nb-teatr-d4-3 { 0%, 29% { opacity: .18; transform: none; } 32% { opacity: 1; transform: translateY(-3px); } 35%, 92% { opacity: 1; transform: none; } 100% { opacity: .18; } }
.nb-teatr-demo.is-run .nb-teatr-d4__tk:nth-child(3) { animation: nb-teatr-d4-3 7s linear infinite; }
@keyframes nb-teatr-d4-4 { 0%, 39% { opacity: .18; transform: none; } 42% { opacity: 1; transform: translateY(-3px); } 45%, 92% { opacity: 1; transform: none; } 100% { opacity: .18; } }
.nb-teatr-demo.is-run .nb-teatr-d4__tk:nth-child(4) { animation: nb-teatr-d4-4 7s linear infinite; }
@keyframes nb-teatr-d4-5 { 0%, 49% { opacity: .18; transform: none; } 52% { opacity: 1; transform: translateY(-3px); } 55%, 92% { opacity: 1; transform: none; } 100% { opacity: .18; } }
.nb-teatr-demo.is-run .nb-teatr-d4__tk:nth-child(5) { animation: nb-teatr-d4-5 7s linear infinite; }
@keyframes nb-teatr-d4-6 { 0%, 59% { opacity: .18; transform: none; } 62% { opacity: 1; transform: translateY(-3px); } 65%, 92% { opacity: 1; transform: none; } 100% { opacity: .18; } }
.nb-teatr-demo.is-run .nb-teatr-d4__tk:nth-child(6) { animation: nb-teatr-d4-6 7s linear infinite; }
@keyframes nb-teatr-d4-7 { 0%, 69% { opacity: .18; transform: none; } 72% { opacity: 1; transform: translateY(-3px); } 75%, 92% { opacity: 1; transform: none; } 100% { opacity: .18; } }
.nb-teatr-demo.is-run .nb-teatr-d4__tk:nth-child(7) { animation: nb-teatr-d4-7 7s linear infinite; }
@keyframes nb-teatr-d4-8 { 0%, 79% { opacity: .18; transform: none; } 82% { opacity: 1; transform: translateY(-3px); } 85%, 92% { opacity: 1; transform: none; } 100% { opacity: .18; } }
.nb-teatr-demo.is-run .nb-teatr-d4__tk:nth-child(8) { animation: nb-teatr-d4-8 7s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .nb-teatr-acc .nb-teatr-demo, .nb-teatr-step__chev { animation: none; transition: none; }
  .nb-teatr-acc .nb-teatr-demo.is-run .nb-teatr-demo__stage :is(*, #nb-teatr-any) { animation: none; }   /* вес id — перебивает все .is-run (в т.ч. 0,4,1); JS при reduce и так не ставит .is-run */
}
html.nb-teatr-scrolling .nb-teatr-acc .nb-teatr-demo.is-run .nb-teatr-demo__stage * { animation-play-state: paused; }

/* ---------- §12 Фойє: пустые состояния в стиле Театра (Val 30.11) — CSS, без картинок и запросов ---------- */
.nb-teatr-soon { padding: 0 0 20px; background: var(--teatr-cream, #FBEFDC); text-align: center; }
.nb-teatr-soon__stage { position: relative; display: block; height: 172px; overflow: hidden;
  background: radial-gradient(ellipse 70% 90% at 50% 100%, #FFF8EC 0, var(--teatr-cream-2, #F3E3CB) 100%); border-bottom: 5px solid var(--teatr-wine-deep, #7C0333); }
.nb-teatr-soon__val { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 28px;
  background: linear-gradient(var(--teatr-wine, #9E0542), var(--teatr-wine, #9E0542)) top / 100% 12px no-repeat,
              radial-gradient(circle at 14px 12px, var(--teatr-wine, #9E0542) 13px, transparent 13.5px) 0 0 / 28px 28px repeat-x; }
.nb-teatr-soon__drape { position: absolute; z-index: 2; top: 0; bottom: 0; width: 20%;
  background: repeating-linear-gradient(90deg, var(--teatr-wine-deep, #7C0333) 0 7px, var(--teatr-wine, #9E0542) 7px 15px); }
.nb-teatr-soon__drape.is-l { left: 0; border-bottom-right-radius: 100% 38%; }
.nb-teatr-soon__drape.is-r { right: 0; border-bottom-left-radius: 100% 38%; }
.nb-teatr-soon__cards { position: absolute; z-index: 1; left: 50%; bottom: 14px; display: flex; align-items: flex-end; gap: 10px; transform: translateX(-50%); }
.nb-teatr-soon__cards i { position: relative; display: block; width: 58px; height: 78px; background: #fff; border: 1px solid var(--teatr-cream-line, #E4CFB0); box-shadow: 0 6px 14px rgb(74 10 34 / .12); }
.nb-teatr-soon__cards i.is-coat { width: 66px; height: 92px; }
.nb-teatr-soon__cards i::before { content: ""; position: absolute; inset: 12px 10px 10px; background: var(--teatr-cream-line, #E4CFB0); }
.nb-teatr-soon__cards i::after { content: "?"; position: absolute; left: 0; right: 0; top: 40%; font: 400 18px/1 var(--teatr-serif, serif); color: #fff; }
.nb-teatr-soon__cards .is-dress::before { clip-path: polygon(40% 0, 60% 0, 63% 28%, 84% 100%, 16% 100%, 37% 28%); }
.nb-teatr-soon__cards .is-coat::before { clip-path: polygon(32% 0, 68% 0, 96% 18%, 88% 100%, 12% 100%, 4% 18%); }
.nb-teatr-soon__cards .is-bag::before { inset: 26px 8px 14px; clip-path: polygon(14% 26%, 30% 26%, 32% 0, 68% 0, 70% 26%, 86% 26%, 96% 100%, 4% 100%); }
.nb-teatr-soon__t { margin: 16px 18px 0; color: var(--teatr-wine-ink, #4A0A22); font-size: 14px; text-wrap: pretty; }
html.nb-teatr .nb-teatr-soon .nb-teatr-soon__btn { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 44px; margin-top: 14px; padding: 0 28px;
  background: transparent; border: 1px solid var(--teatr-wine, #9E0542); color: var(--teatr-wine, #9E0542); text-decoration: none; }
html.nb-teatr .nb-teatr-soon .nb-teatr-soon__btn:hover { background: var(--teatr-wine, #9E0542); color: var(--teatr-cream, #FBEFDC); }
.nb-teatr-bill { position: relative; padding: 20px 18px; background: #FFF8EC; border: 1px solid var(--teatr-wine, #9E0542); outline: 1px solid var(--teatr-wine, #9E0542); outline-offset: -6px; text-align: center; color: var(--teatr-wine-ink, #4A0A22); }
.nb-teatr-land .nb-teatr-bill__k { font: 500 9px/1 var(--teatr-wide, inherit); letter-spacing: .22em; text-transform: uppercase; color: var(--teatr-wine, #9E0542); }
.nb-teatr-land .nb-teatr-bill__h { margin-top: 10px; font: 400 26px/1.1 var(--teatr-serif, serif); color: var(--teatr-wine, #9E0542); }
.nb-teatr-land .nb-teatr-bill__d { margin-top: 6px; font-size: 13px; }
.nb-teatr-land .nb-teatr-bill__c { display: inline-flex; align-items: baseline; gap: 4px; margin-top: 12px; padding: 6px 14px; border-top: 1px dashed var(--teatr-wine, #9E0542); border-bottom: 1px dashed var(--teatr-wine, #9E0542); font: 400 11px/1 var(--teatr-wide, inherit); color: var(--teatr-wine, #9E0542); }
.nb-teatr-bill__c b { font: 500 20px/1 var(--teatr-wide, inherit); font-variant-numeric: tabular-nums; }
.nb-teatr-bill__c b + b, .nb-teatr-bill__c span + b { margin-left: 6px; }
.nb-teatr-land .nb-teatr-bill__t { margin-top: 12px; font-size: 13px; color: #6B4B55; }

/* ---------- §13 Фойє: «Що таке афіша бажань» (Val 30.11) ---------- */
.nb-teatr-what { padding: 22px 18px 20px; background: var(--teatr-cream, #FBEFDC); border-top: 3px solid var(--teatr-wine, #9E0542); color: var(--teatr-wine-ink, #4A0A22); }
.nb-teatr-land .nb-teatr-what__h { font: 400 24px/1.15 var(--teatr-serif, serif); color: var(--teatr-wine, #9E0542); }
.nb-teatr-land .nb-teatr-what__p { margin-top: 10px; font-size: 14px; text-wrap: pretty; }
.nb-teatr-land .nb-teatr-path { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; margin-top: 18px; padding: 0; list-style: none; }
.nb-teatr-path li { flex: 1 1 0; min-width: 0; text-align: center; font-size: 12px; line-height: 1.25; color: var(--teatr-wine, #9E0542); }
.nb-teatr-path .nb-teatr-path__ar { flex: 0 0 22px; padding-top: 13px; }
.nb-teatr-path__ar svg { display: block; width: 22px; height: 8px; }
.nb-teatr-path__i { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 auto 6px; border: 1px solid var(--teatr-wine, #9E0542); border-radius: 50%; background: #FFF8EC; }
.nb-teatr-path__i svg { width: 22px; height: 22px; }

.nb-teatr-sheet .nb-teatr-sec.is-all { font-weight: 500; }   /* общий раздел роли — первым и чуть жирнее (Val 30.11) */

/* ---------- §14 Шапка сайта над шторкой «Театр · ваша афіша» (Val 30.11): пока шторка Театра открыта (вкладки Афіша/Обране) — винная, как на /teatr/,
   иконки, квиток, счётчик и крестик кремовые; закрыли — шапка страницы как была. :is(body, #…) — вес id над правилами темы. */
html.nb-teatr :is(body, #nb-teatr-any).is-cart-open:has(#nb-cart.is-open .nb-teatr-dh) .header {
  background-color: var(--teatr-wine, #9E0542); color: var(--teatr-cream, #FBEFDC); border-bottom-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
html.nb-teatr :is(body, #nb-teatr-any).is-cart-open:has(#nb-cart.is-open .nb-teatr-dh) .header :is(.header__action, .header__menu-btn, .header__count, .header__logo, a, button) {
  color: inherit; background-color: transparent; border-color: currentColor; }
html.nb-teatr :is(body, #nb-teatr-any).is-cart-open:has(#nb-cart.is-open .nb-teatr-dh) .header .header__action--wishlist .header__action-icon--wishlist { background-color: currentColor; }
html.nb-teatr :is(body, #nb-teatr-any).is-cart-open:has(#nb-cart.is-open .nb-teatr-dh) .header :focus-visible { outline-color: var(--teatr-cream, #FBEFDC); }

/* ---------- §15 клавиатура на телефоне (Val 30.11, Android Chrome): лист над клавиатурой, в пределах видимой высоты (kbCheck в nb-teatr.js) ---------- */
@media (max-width: 767px) {
  .nb-teatr-sheet.is-kb { bottom: var(--nb-teatr-kb, 0px); max-height: calc(var(--nb-teatr-vvh, 100dvh) - 8px); transition: none; }
  .nb-teatr-sheet.is-kb .nb-teatr-scr { display: none; }
}

/* ---------- §16 ожидание входа через Telegram (Val 30.11): индикатор, крупный статус, шаги с текущим ---------- */
.nb-teatr-tgwait { margin: 14px 0 6px; padding: 16px 14px; background: #FFF8EC; border: 1px solid var(--teatr-cream-line, #E4CFB0); text-align: center; }
.nb-teatr-dots { display: inline-flex; gap: 6px; margin-bottom: 8px; }
.nb-teatr-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--teatr-wine, #9E0542); animation: nb-teatr-dot 1.2s ease-in-out infinite; }
.nb-teatr-dots i:nth-child(2) { animation-delay: .15s; } .nb-teatr-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes nb-teatr-dot { 0%, 80%, 100% { opacity: .3; transform: scale(.7); } 40% { opacity: 1; transform: none; } }
.nb-teatr-tgwait.is-end .nb-teatr-dots { display: none; }
.nb-teatr-sheet .nb-teatr-tgwait__h { margin: 0 0 10px; font: 400 20px/1.2 var(--teatr-serif, serif); color: var(--teatr-wine, #9E0542); }
.nb-teatr-sheet .nb-teatr-tgsteps { margin: 0; padding: 0 0 0 22px; text-align: left; font-size: 13px; color: #6B4B55; }
.nb-teatr-tgsteps li { padding: 3px 0; }
.nb-teatr-tgsteps__ok { display: none; color: var(--teatr-wine, #9E0542); }
.nb-teatr-tgwait[data-step="1"] .nb-teatr-tgsteps li:nth-child(1),
.nb-teatr-tgwait[data-step="2"] .nb-teatr-tgsteps li:nth-child(2),
.nb-teatr-tgwait[data-step="3"] .nb-teatr-tgsteps li:nth-child(3) { color: var(--teatr-wine-ink, #4A0A22); font-weight: 500; }
.nb-teatr-tgwait:not([data-step="1"]) .nb-teatr-tgsteps__ok { display: inline; }
.nb-teatr-tgwait__late { margin-top: 10px; }
.nb-teatr-sheet .nb-teatr-link--quiet { font-size: 12px; color: #6B4B55; }
@media (prefers-reduced-motion: reduce) { .nb-teatr-dots i { animation: none; opacity: .8; } }

/* «До зали ›» главной кнопкой в шторке «Афіша» (Val 30.11) */
html.nb-teatr .nb-teatr-pane a.nb-teatr-btn--zal { display: flex; align-items: center; justify-content: center; text-decoration: none; }
