/* Билеты главной (из tickets-prototype.html). Классы с префиксом zt-tk / tk-. */
.zt-tickets-wrap {
  --tk-ink: #3a0f0c; --tk-frame: #7a3b2e; --tk-paper-1: #f8e8d9; --tk-paper-2: #ecccb4; --tk-paper-3: #d9ab90;
  --tk-stamp: #a3241c; --tk-muted: #c9a596; --tk-notch: 9px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 2rem;
  font-family: "Fira Sans", system-ui, sans-serif;
}
/* ---------- Ticket ---------- */
  .zt-tk {
    --i: 0;
    position: relative; display: flex; height: 170px;
    color: var(--tk-ink); text-decoration: none;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s;
  }
  .zt-tk-js .zt-tk { opacity: 0; }
  .zt-tk-js .zt-tk.is-in { opacity: 1; animation: dealIn .6s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 80ms); }
  @keyframes dealIn { from { opacity: 0; transform: translateY(34px) rotate(1.5deg); } }

  .zt-tk:hover, .zt-tk:focus-visible {
    transform: translateY(-6px) rotate(-.8deg);
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .55));
  }
  .zt-tk:focus-visible { outline: 2px solid #f3c7a3; outline-offset: 5px; }

  .tk-paper {
    position: relative;
    background:
      repeating-linear-gradient(45deg, rgba(122, 59, 46, .035) 0 2px, transparent 2px 6px),
      radial-gradient(ellipse 85% 95% at 50% 50%, var(--tk-paper-1), var(--tk-paper-2) 68%, var(--tk-paper-3));
  }

  /* main part (right): notches top/bottom left + scalloped right edge (stub already torn off there) */
  .tk-main {
    flex: 1; min-width: 0;
    -webkit-mask:
      radial-gradient(circle var(--tk-notch) at 0 0, #0000 97%, #000) 0 0 / 100% 100% no-repeat,
      radial-gradient(circle var(--tk-notch) at 0 100%, #0000 97%, #000) 0 0 / 100% 100% no-repeat,
      radial-gradient(circle 4px at 100% 50%, #0000 95%, #000) 0 0 / 100% 11px repeat-y;
    -webkit-mask-composite: source-in;
            mask:
      radial-gradient(circle var(--tk-notch) at 0 0, #0000 97%, #000) 0 0 / 100% 100% no-repeat,
      radial-gradient(circle var(--tk-notch) at 0 100%, #0000 97%, #000) 0 0 / 100% 100% no-repeat,
      radial-gradient(circle 4px at 100% 50%, #0000 95%, #000) 0 0 / 100% 11px repeat-y;
            mask-composite: intersect;
  }
  /* stub (left): notches top/bottom right, perforation on its right edge */
  .tk-stub {
    order: -1;
    width: 82px; flex: none;
    border-right: 2px dashed rgba(122, 59, 46, .55);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transform-origin: 100% 100%;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
    -webkit-mask:
      radial-gradient(circle var(--tk-notch) at 100% 0, #0000 97%, #000),
      radial-gradient(circle var(--tk-notch) at 100% 100%, #0000 97%, #000);
    -webkit-mask-composite: source-in;
            mask:
      radial-gradient(circle var(--tk-notch) at 100% 0, #0000 97%, #000),
      radial-gradient(circle var(--tk-notch) at 100% 100%, #0000 97%, #000);
            mask-composite: intersect;
  }
  /* tear-off on hover — stub peels to the left */
  .zt-tk:hover .tk-stub, .zt-tk:focus-visible .tk-stub { transform: translate(-7px, -2px) rotate(-5deg); }

  /* ornamental frame: busy edges, clean center */
  .tk-frame {
    position: absolute; inset: 9px; pointer-events: none;
    border: 3px double var(--tk-frame); border-radius: 3px;
    box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px rgba(122, 59, 46, .3);
  }
  .tk-main .tk-frame::before {
    content: ""; position: absolute; inset: 6px;
    background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(122, 59, 46, .12) 0 6deg, transparent 6deg 12deg);
    -webkit-mask: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 55%, #000 100%);
            mask: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 55%, #000 100%);
  }
  .tk-main .tk-frame { inset: 9px 13px 9px 9px; }
  .tk-stub .tk-frame { inset: 8px; }

  /* foil sheen */
  .tk-paper::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 246, 228, .6) 50%, transparent 65%);
    transform: translateX(-130%);
  }
  .zt-tk:hover .tk-paper::after, .zt-tk:focus-visible .tk-paper::after { transform: translateX(130%); transition: transform .9s ease; }

  /* content */
  .tk-content { position: relative; height: 100%; display: grid; place-items: center; text-align: center; padding: 0 26px; }
  .tk-title { font-weight: 700; font-size: 17px; line-height: 1.25; text-wrap: balance; }
  .tk-meta { margin-top: 7px; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8a5747; }

  .tk-age {
    position: absolute; top: 17px; left: 17px;
    width: 28px; height: 28px; border-radius: 50%;
    border: 1.5px solid var(--tk-frame); background: rgba(255, 255, 255, .3);
    font: 700 12px/25px "Fira Sans", sans-serif; text-align: center; color: var(--tk-frame);
  }

  .tk-stamp {
    position: absolute; top: 15px; right: 16px;
    padding: 3px 7px; border: 2px solid var(--tk-stamp); border-radius: 3px;
    outline: 1px solid var(--tk-stamp); outline-offset: 2px;
    font: 800 8.5px/1 "Fira Sans", sans-serif; letter-spacing: .18em; text-transform: uppercase;
    color: var(--tk-stamp); opacity: .8; mix-blend-mode: multiply;
    transform: rotate(-11deg);
  }
  .zt-tk-js .zt-tk.is-in .tk-stamp { animation: stamp .4s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--i) * 80ms + 550ms); }
  @keyframes stamp { from { opacity: 0; transform: rotate(-11deg) scale(2); } }

  /* stub content */
  .tk-month { font-size: 8px; letter-spacing: .14em; text-transform: lowercase; color: #8a5747; }
  .tk-dow { margin-top: 3px; font-size: 8.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
  .tk-dow.tk-soon { color: #fff; background: var(--tk-stamp); padding: 2px 5px 1px; border-radius: 2px; }
  .tk-day { font-family: "Playfair Display", serif; font-size: 36px; line-height: 1; margin: 8px 0 9px; }
  .tk-time { font-size: 11px; font-weight: 700; letter-spacing: .14em; font-variant-numeric: tabular-nums; padding-left: .14em; }

  /* sold out */
  .zt-tk--soldout .tk-paper { filter: saturate(.55) brightness(.94); }
  .zt-tk--soldout .tk-title { opacity: .75; }

  /* "all shows" card — ticket back */
  :is(#fp-schedule.fp-schedule-dark, body.page-dark) .zt-tk--more { color: #f3e2d6; }
  :is(#fp-schedule.fp-schedule-dark, body.page-dark) .zt-tk--more .tk-paper {
    background:
      repeating-linear-gradient(45deg, rgba(233, 199, 175, .07) 0 6px, transparent 6px 12px),
      rgba(233, 199, 175, .05);
  }
  :is(#fp-schedule.fp-schedule-dark, body.page-dark) .zt-tk--more .tk-stub { border-right-color: rgba(233, 199, 175, .35); }
  :is(#fp-schedule.fp-schedule-dark, body.page-dark) .zt-tk--more .tk-frame { border-color: rgba(233, 199, 175, .4); box-shadow: none; }
  :is(#fp-schedule.fp-schedule-dark, body.page-dark) .zt-tk--more .tk-frame::before { display: none; }
  .zt-tk--more .tk-title { font-family: "Unbounded", sans-serif; font-size: 16px; }
  :is(#fp-schedule.fp-schedule-dark, body.page-dark) .zt-tk--more .tk-meta { color: var(--tk-muted); }
  .zt-tk--more .tk-day { font-size: 32px; transition: transform .35s; }
  .zt-tk--more:hover .tk-day { transform: translateX(4px); }
  /* у карточки «Вся афіша» перелив убран: на светлом фоне при наведении он выглядел грязной полосой */
  .zt-tk--more .tk-paper::after { display: none; }
  /* no tear-off on the "all shows" card */
  .zt-tk--more:hover .tk-stub, .zt-tk--more:focus-visible .tk-stub { transform: none !important; }

  
/* «Вся афіша» на светлом фоне */
.zt-tk--more { color: #3a0f0c; }
.zt-tk--more .tk-paper { background: repeating-linear-gradient(45deg, rgba(122,59,46,.06) 0 6px, transparent 6px 12px), rgba(122,59,46,.05); }
.zt-tk--more .tk-stub { border-right-color: rgba(122,59,46,.4); }
.zt-tk--more .tk-frame { border-color: rgba(122,59,46,.45); box-shadow: none; }
.zt-tk--more .tk-frame::before { display: none; }
.zt-tk--more .tk-meta { color: #8a5747; }
.zt-tk--more .tk-title { font-family: "Unbounded", sans-serif; font-size: 16px; }
/* ---------- Responsive ---------- */
  @media (max-width: 940px) { .zt-tickets-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) {
    /* билеты — колонкой на всю ширину, без горизонтальной прокрутки */
    .zt-tickets-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 1.5rem 0 0; padding: 0; }
    .zt-tk { width: 100%; }
  }

  @media (prefers-reduced-motion: reduce) {
    .zt-tk, .tk-stub, .tk-paper::after { transition: none !important; }
    .zt-tk-js .zt-tk.is-in, .zt-tk-js .zt-tk.is-in .tk-stamp { animation: none !important; }
    .zt-tk:hover, .zt-tk:focus-visible { transform: none; }
    .zt-tk:hover .tk-stub, .zt-tk:focus-visible .tk-stub { transform: translateX(-4px); }
  }

/* ── Временная заглушка вместо «Купити квиток»: пунктирная рамка, цвета как у дней недели календаря ── */
.zt-notice {
  position: relative; max-width: 880px; margin: 0 auto; box-sizing: border-box;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 56px) clamp(26px, 4vw, 40px);
  background: #fffaf2; color: #2a1a14; text-align: center;
  border: 3px dashed #C08729; border-radius: 28px;
  box-shadow: 0 0 0 8px rgba(192, 135, 41, .12), 0 18px 40px rgba(0, 0, 0, .25);
}
.zt-notice__pill {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  font: 800 .72rem/1 'Manrope', system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #C08729, #98620C); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.zt-notice__title {
  margin: 16px 0 14px; font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.15; color: #192842;
}
.zt-notice__lead { margin: 0 0 10px; font-size: clamp(1.02rem, 2.2vw, 1.2rem); font-weight: 700; line-height: 1.4; color: #750E17; }
.zt-notice__text { margin: 0 auto 20px; max-width: 62ch; font-size: clamp(.95rem, 1.9vw, 1.05rem); line-height: 1.6; color: #4a3a33; }
.zt-notice__valid {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 9px 18px; border-radius: 999px;
  font: 800 .9rem/1.2 'Manrope', system-ui, sans-serif; color: #fff;
  background: linear-gradient(180deg, #37518C, #192842); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.zt-notice__phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.zt-notice__phone {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 240px; padding: 12px 22px 14px;
  border-radius: 16px; text-decoration: none; color: #fff; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 10px rgba(0, 0, 0, .18);
}
.zt-notice__phone--box  { background: linear-gradient(180deg, #B6313A, #750E17); }
.zt-notice__phone--info { background: linear-gradient(180deg, #37518C, #192842); }
.zt-notice__phone:hover, .zt-notice__phone:focus-visible { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 16px rgba(0, 0, 0, .28); }
.zt-notice__label { font: 700 .72rem/1.2 'Manrope', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.zt-notice__num { font: 800 1.2rem/1.2 'Manrope', system-ui, sans-serif; letter-spacing: .01em; white-space: nowrap; }
@media (max-width: 520px) {
  .zt-notice { border-width: 2px; border-radius: 22px; box-shadow: 0 0 0 5px rgba(192, 135, 41, .12), 0 12px 28px rgba(0, 0, 0, .25); }
  .zt-notice__phone { width: 100%; min-width: 0; }
}
/* пока продаж нет — значки «Квитки» в календаре тоже прячем */
body.zt-tickets-paused .ts-day__item-ticket { display: none !important; }
#fp-schedule .zt-notice a.zt-notice__phone, #fp-schedule .zt-notice a.zt-notice__phone * { color: #fff !important; opacity: 1; }
#fp-schedule .zt-notice .zt-notice__label { opacity: .88; }
.zt-notice { border-width: 4px; }
@media (max-width: 520px) { .zt-notice { border-width: 3px; } }

/* перенос строк: заголовок и абзацы балансируем, «Шановні глядачі!» — отдельной строкой */
.zt-notice__title, .zt-notice__lead, .zt-notice__text { text-wrap: balance; }
.zt-notice__l1 { display: block; margin-bottom: 4px; font-size: 1.12em; }
.zt-notice__l2 { display: block; max-width: 34ch; margin-inline: auto; font-weight: 600; }
.zt-notice__text { margin: 0 auto 12px; max-width: 54ch; }
.zt-notice__text + .zt-notice__text { margin-bottom: 22px; }
.zt-notice__chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.zt-notice__chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 18px; border-radius: 999px; text-wrap: balance; text-align: left;
  font: 800 .9rem/1.25 'Manrope', system-ui, sans-serif; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.zt-notice__chip--box   { background: linear-gradient(180deg, #C08729, #98620C); }
.zt-notice__chip--valid { background: linear-gradient(180deg, #37518C, #192842); }
@media (max-width: 520px) { .zt-notice__chip { width: 100%; justify-content: center; text-align: center; } }
.zt-notice__l2 { max-width: 46ch; }
.zt-notice__text { max-width: 64ch; }
@media (min-width: 900px) { .zt-notice__l2 { max-width: none; } }
