/* «Заблудшие» — шторка покупки билетов. Палитра, шрифты и размеры — как на их сайте (сняты с оригинала 11.10.2026):
   заголовок формы 32px (телефон 20px), текст 14px (12px), поля и кнопка формы 16px высотой 60px (50px), прямые углы.
   Шрифт — их семейство Zabludshie (100 — TT Ramillas, 300–500 — TT Interphases). На их страницах оно уже загружено,
   «Zabludshie Tickets» — те же файлы для наших страниц (билет, админка). */
@font-face { font-family: "Zabludshie Tickets"; font-weight: 100; font-display: swap; src: url(../assets/s/tild6138-3261-4133-a239-643031386233/TTRAMILLAS-REGULAR.woff) format("woff"); }
@font-face { font-family: "Zabludshie Tickets"; font-weight: 300; font-display: swap; src: url(../assets/s/tild6637-3964-4362-b234-623466623965/TT-Interphases-Pro-L.woff) format("woff"); }
@font-face { font-family: "Zabludshie Tickets"; font-weight: 400; font-display: swap; src: url(../assets/s/tild3634-3335-4162-b963-623437653161/TT-Interphases-Pro-R.woff) format("woff"); }
@font-face { font-family: "Zabludshie Tickets"; font-weight: 500; font-display: swap; src: url(../assets/s/tild3334-3966-4439-a334-643661306262/TT-Interphases-Pro-M.woff) format("woff"); }

.zt {
  --zt-bg: #061e18;
  --zt-raise: #0b2a22;
  --zt-line: rgba(214, 209, 196, .16);
  --zt-line-strong: rgba(214, 209, 196, .42);
  --zt-text: #f1ede3;
  --zt-muted: rgba(241, 237, 227, .64);
  --zt-faint: rgba(241, 237, 227, .28);
  --zt-cream: #d6d1c4;
  --zt-cream-hi: #e3e1d7;
  --zt-ink: #000;
  --zt-error: #f2a896;
  --zt-field: #041612;
  --zt-serif: Zabludshie, "Zabludshie Tickets", Georgia, serif;
  --zt-sans: Zabludshie, "Zabludshie Tickets", Arial, sans-serif;
  --zt-ease: cubic-bezier(.32, .72, 0, 1);
  position: fixed; inset: 0; z-index: 2147483000; visibility: hidden; pointer-events: none;
  font-family: var(--zt-sans); font-weight: 300; font-size: 14px; line-height: 1.55; color: var(--zt-text);
  -webkit-font-smoothing: antialiased; text-align: left; letter-spacing: normal;
}
.zt *, .zt *::before, .zt *::after { box-sizing: border-box; }
.zt.is-open { visibility: visible; pointer-events: auto; }
.zt.is-closing { visibility: visible; }

.zt-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); opacity: 0; transition: opacity .32s ease; }
.zt.is-open .zt-backdrop { opacity: 1; }

.zt-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100vw);
  display: flex; flex-direction: column; background: var(--zt-bg);
  box-shadow: -24px 0 64px rgba(0, 0, 0, .45);
  transform: translateX(100%); transition: transform .5s var(--zt-ease); will-change: transform; outline: none;
}
.zt.is-open .zt-panel { transform: none; }
.zt.is-dragging .zt-panel { transition: none; }

.zt-head { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 10px 14px 0; flex: none; }
.zt-grip { display: none; }
.zt-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: none; color: var(--zt-text); cursor: pointer; border-radius: 0; opacity: .8; transition: opacity .2s;
}
.zt-iconbtn:hover { opacity: 1; }
.zt-iconbtn[hidden] { visibility: hidden; display: inline-flex; }
.zt-iconbtn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.3; fill: none; }

.zt-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 32px 32px; -webkit-overflow-scrolling: touch; }
.zt-step { animation: zt-in .34s var(--zt-ease) both; }
@keyframes zt-in { from { opacity: 0; transform: translateY(10px); } }

.zt-kicker { margin: 0 0 10px; color: var(--zt-muted); font-size: 14px; }
.zt-title {
  margin: 0; font-family: var(--zt-serif); font-weight: 100; font-size: 32px; line-height: 1.3;
  text-transform: uppercase; color: var(--zt-cream-hi); text-wrap: balance;
}
.zt-place { margin: 14px 0 0; color: var(--zt-text); font-size: 14px; }
.zt-place span { color: var(--zt-muted); }

.zt-section { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--zt-line); }
.zt-label { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; color: var(--zt-muted); font-size: 12px; }

/* календарь */
.zt-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.zt-month { margin: 0; font-family: var(--zt-serif); font-weight: 100; font-size: 20px; line-height: 1.3; color: var(--zt-cream-hi); text-transform: capitalize; }
.zt-cal-nav { display: flex; gap: 4px; }
.zt-cal-nav .zt-iconbtn:disabled { opacity: .2; cursor: default; }
.zt-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.zt-wd { padding: 4px 0 6px; text-align: center; color: var(--zt-faint); font-size: 12px; }
.zt-day {
  position: relative; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: none; color: var(--zt-faint); font: inherit; font-size: 14px; padding: 0; border-radius: 0;
}
.zt-day.is-on { border-color: var(--zt-line-strong); color: var(--zt-text); cursor: pointer; transition: border-color .2s, background-color .2s; }
.zt-day.is-on:hover { border-color: var(--zt-cream); }
.zt-day.is-sel { background: var(--zt-cream); border-color: var(--zt-cream); color: var(--zt-ink); font-weight: 400; }
.zt-day.is-today::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; opacity: .7; }

/* сеансы */
.zt-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.zt-time {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; min-height: 56px;
  border: 1px solid var(--zt-line-strong); background: none; color: var(--zt-text); font: inherit; text-align: left; cursor: pointer; border-radius: 0;
  transition: border-color .2s, background-color .2s;
}
.zt-time b { font-family: var(--zt-serif); font-weight: 100; font-size: 20px; line-height: 1.3; }
.zt-time small { color: var(--zt-muted); font-size: 12px; line-height: 1.3; }
.zt-time:hover { border-color: var(--zt-cream); }
.zt-time.is-sel { background: var(--zt-cream); border-color: var(--zt-cream); color: var(--zt-ink); }
.zt-time.is-sel small { color: rgba(0, 0, 0, .62); }
.zt-time:disabled { border-color: var(--zt-line); color: var(--zt-faint); cursor: default; }
.zt-time:disabled small { color: var(--zt-faint); }

/* билеты */
.zt-tariff { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--zt-line); }
.zt-tariff:first-of-type { border-top: 1px solid var(--zt-line); }
.zt-tariff-name { flex: 1; min-width: 0; }
.zt-tariff-name b { display: block; font-weight: 400; font-size: 14px; }
.zt-tariff-name small { color: var(--zt-muted); font-size: 12px; }
.zt-stepper { display: flex; align-items: center; flex: none; }
.zt-stepper button {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid var(--zt-line-strong); background: none; color: var(--zt-text); cursor: pointer; border-radius: 0; font: inherit; font-size: 20px; line-height: 1;
}
.zt-stepper button:hover:not(:disabled) { border-color: var(--zt-cream); }
.zt-stepper button:disabled { opacity: .3; cursor: default; }
.zt-stepper output { width: 40px; text-align: center; font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; }

/* форма */
.zt-summary { margin: 26px 0 0; padding: 16px 18px; background: var(--zt-raise); }
.zt-summary p { margin: 0; }
.zt-summary p + p { margin-top: 4px; color: var(--zt-muted); }
.zt-link { padding: 0; border: 0; background: none; color: var(--zt-cream); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.zt-field { display: block; margin-top: 18px; }
.zt-field > span { display: block; margin-bottom: 6px; color: var(--zt-muted); font-size: 12px; }
.zt-input {
  display: block; width: 100%; height: 60px; padding: 0 20px; border: 0; border-radius: 0;
  background: var(--zt-field); color: var(--zt-cream); font: inherit; font-size: 16px; font-weight: 300; outline: none; transition: box-shadow .2s;
  -webkit-appearance: none; appearance: none; box-shadow: none; margin: 0;
}
textarea.zt-input { height: 96px; padding-top: 18px; resize: vertical; line-height: 1.33; }
.zt-input:focus { box-shadow: inset 0 0 0 1px var(--zt-cream); }
.zt-input::placeholder { color: var(--zt-faint); }
.zt-field.is-bad .zt-input { box-shadow: inset 0 0 0 1px var(--zt-error); }
.zt-field em { display: block; margin-top: 6px; color: var(--zt-error); font-style: normal; font-size: 12px; }
.zt-check { display: flex; gap: 12px; margin-top: 22px; color: var(--zt-muted); font-size: 12px; line-height: 1.55; cursor: pointer; }
.zt-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.zt-check i { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--zt-line-strong); display: flex; align-items: center; justify-content: center; }
.zt-check i svg { width: 14px; height: 14px; stroke: var(--zt-ink); stroke-width: 2; fill: none; opacity: 0; }
.zt-check input:checked + i { background: var(--zt-cream); border-color: var(--zt-cream); }
.zt-check input:checked + i svg { opacity: 1; }
.zt-check input:focus-visible + i { outline: 2px solid var(--zt-cream); outline-offset: 2px; }
.zt-check.is-bad i { border-color: var(--zt-error); }
.zt-check a { color: var(--zt-cream); text-underline-offset: 3px; }
.zt-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* подвал с действием */
.zt-foot { flex: none; padding: 16px 32px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--zt-line); background: var(--zt-bg); }
.zt-foot[hidden] { display: none; }
.zt-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 14px; }
.zt-total span { color: var(--zt-muted); }
.zt-total b { font-family: var(--zt-serif); font-weight: 100; font-size: 20px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.zt-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 60px; padding: 0 24px;
  border: 0; border-radius: 0; background: var(--zt-cream); color: var(--zt-ink); font: inherit; font-size: 16px; font-weight: 400;
  text-decoration: none; cursor: pointer; transition: background-color .2s, opacity .2s;
}
.zt-btn:hover { background: var(--zt-cream-hi); }
.zt-btn:active { background: #c9c3b5; }
.zt-btn:disabled { opacity: .35; cursor: default; background: var(--zt-cream); }
.zt-btn.is-ghost { background: none; color: var(--zt-text); border: 1px solid var(--zt-line-strong); }
.zt-btn.is-ghost:hover { border-color: var(--zt-cream); }
.zt-btn + .zt-btn { margin-top: 10px; }
.zt-note { margin: 10px 0 0; color: var(--zt-muted); font-size: 12px; text-align: center; }
.zt-spin { width: 18px; height: 18px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: zt-spin .8s linear infinite; }
@keyframes zt-spin { to { transform: rotate(360deg); } }

.zt-alert { margin: 18px 0 0; padding: 12px 16px; border: 1px solid var(--zt-error); color: var(--zt-error); font-size: 14px; }
.zt-alert:empty { display: none; }
.zt-empty { margin: 20px 0 0; color: var(--zt-muted); }

/* выбор события */
.zt-events { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--zt-line); }
.zt-event {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 0; border: 0; border-bottom: 1px solid var(--zt-line);
  background: none; color: var(--zt-text); font: inherit; text-align: left; cursor: pointer;
}
.zt-event b { display: block; font-family: var(--zt-serif); font-weight: 100; font-size: 18px; line-height: 1.3; color: var(--zt-cream-hi); }
.zt-event small { display: block; margin-top: 4px; color: var(--zt-muted); font-size: 14px; }
.zt-event > span { flex: 1; min-width: 0; }
.zt-event svg { flex: none; width: 20px; height: 20px; stroke: var(--zt-muted); stroke-width: 1.3; fill: none; transition: transform .2s, stroke .2s; }
.zt-event:hover svg { transform: translateX(3px); stroke: var(--zt-cream); }

/* готово */
.zt-done { padding-top: 8px; }
.zt-qr { display: block; width: 216px; height: 216px; margin: 28px 0 0; padding: 10px; background: #fff; }
.zt-code { margin: 14px 0 0; font-size: 14px; }
.zt-code b { font-weight: 400; letter-spacing: .04em; }
.zt-actions { margin-top: 28px; }

.zt :focus-visible { outline: 2px solid var(--zt-cream); outline-offset: 2px; }
.zt-time.is-sel:focus-visible, .zt-day.is-sel:focus-visible, .zt-btn:focus-visible { outline-color: var(--zt-cream-hi); outline-offset: 3px; }

@media (max-width: 640px) {
  .zt-panel {
    top: auto; left: 0; width: 100%; height: 92vh; height: 92dvh; transform: translateY(100%);
    box-shadow: 0 -16px 48px rgba(0, 0, 0, .5);
  }
  .zt-head { min-height: 56px; padding-top: 14px; touch-action: none; }
  .zt-grip { display: block; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; background: var(--zt-line-strong); }
  .zt-body { padding: 0 20px 28px; }
  .zt-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
  .zt-grid { gap: 4px; }
  /* шкала мобильной версии их сайта: заголовок попапа 20px, текст 12px, мелкий 10px, поля и кнопка 16px высотой 50px */
  .zt { font-size: 12px; }
  .zt-title { font-size: 20px; line-height: 1.23; }
  .zt-kicker, .zt-place, .zt-summary, .zt-total, .zt-tariff-name b, .zt-stepper output, .zt-code, .zt-alert, .zt-field > span, .zt-event small { font-size: 12px; }
  .zt-label, .zt-wd, .zt-time small, .zt-tariff-name small, .zt-note, .zt-field em, .zt-check { font-size: 10px; }
  .zt-month, .zt-time b, .zt-total b { font-size: 16px; }
  .zt-input, .zt-btn { height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .zt-panel { transition: opacity .2s ease; transform: none !important; opacity: 0; }
  .zt.is-open .zt-panel { opacity: 1; }
  .zt-step { animation: none; }
  .zt-event svg { transition: none; }
}
