/* АплАрт — театральная дизайн-система.
   Четыре мотива: билет (тарифы, бронь), программка (педагоги), ремарки (CUE, [ВХОД]), свет и кулисы.
   Движение: одна кривая expo-out; наведение 200-300 мс, появление 450-700 мс. */

:root {
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --e-out: cubic-bezier(0.19, 1, 0.22, 1);
  --t-hover: 0.25s;
  --t-reveal: 0.65s;
  --radius: 6px;
  --paper: #efe9e1;
  --ink: #0d0c0b;
}

.mono { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

/* свет и контент в правильных слоях */
main, .footer { position: relative; z-index: 1; }
body::after { opacity: 0.025; }

/* ================= Шапка ================= */

.header {
  height: 88px;
  gap: 28px;
  transition: height 0.4s var(--e-out), background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.header.is-hidden { transform: none; }
.header.is-solid { height: 62px; background: rgba(13, 12, 11, 0.74); box-shadow: 0 1px 0 var(--line); }
.header .logo { margin-right: 0; }
.hdr-meta { display: grid; gap: 4px; margin-right: auto; padding-left: 20px; border-left: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.hdr-note { transition: opacity 0.3s, margin 0.4s var(--e-out); }
.is-solid .hdr-note { opacity: 0; margin-top: -16px; }
.acts { display: flex; align-items: baseline; gap: 9px; }
.acts em { font-style: normal; margin-right: 2px; }
.acts i { font-style: normal; opacity: 0.4; display: inline-block; transition: opacity var(--t-hover), color var(--t-hover), transform 0.4s var(--e-out); }
.acts i.on { opacity: 1; color: var(--fg); transform: translateY(-2px); }

.menu-links { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; gap: 22px; }
.menu-links a { padding: 6px 0; border-radius: 0; background: none !important; color: var(--soft); background-image: linear-gradient(currentColor, currentColor) !important; background-size: 0 1px !important; background-repeat: no-repeat !important; background-position: 0 100% !important; transition: color var(--t-hover), background-size 0.35s var(--e-out); }
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--fg); background-size: 100% 1px !important; }

/* ================= Кнопки ================= */

.btn { border-radius: 2px; height: 54px; padding: 0 24px; gap: 12px; letter-spacing: 0; transition: background var(--t-hover), color var(--t-hover), transform var(--t-hover) var(--e-out); }
.btn:hover { transform: none; }
.btn:active { transform: scale(0.98); }
.btn::after { content: "→"; font-weight: 500; transition: transform 0.3s var(--e-out); }
.btn:hover::after { transform: translateX(3px); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--ghost { box-shadow: inset 0 0 0 1px rgba(239, 233, 225, 0.35); }
.magnet { transform: none !important; }

/* «Войти»: только типографика, без графики */
.door { text-decoration: underline 1px transparent; text-underline-offset: 0.14em; transition: opacity var(--t-hover), transform var(--t-hover) var(--e-out), text-decoration-color var(--t-hover); cursor: pointer; }
.intro .doors:hover .door, .doors:hover .door { opacity: 0.5; }
.intro .doors .door:hover, .doors .door:hover { opacity: 1; transform: translateX(2px); text-decoration-color: currentColor; }
.split-go { border-radius: 2px; }
.split-side:hover .split-go { transform: none; background: var(--fg); color: var(--bg); }

/* ================= Ремарки ================= */

.cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.45s var(--e-out);
}
.cue::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.cue.in { clip-path: inset(0 -1% 0 0); }
.sec-head .cue { margin-bottom: 0; }

/* заголовки открываются горизонтальной шторкой; словами только особенные */
.tw-i { display: block; clip-path: inset(-0.1em 100% -0.25em 0); transform: translateX(-0.12em); transition: clip-path 0.7s var(--e-out) 0.12s, transform 0.7s var(--e-out) 0.12s; }
.tw.in .tw-i { clip-path: inset(-0.1em -0.1em -0.25em -0.1em); transform: none; }
.split-words .w > span { transition-duration: 0.7s; transition-timing-function: var(--e-out); transition-delay: calc(0.12s + var(--i) * 40ms); }
.reveal { transition-duration: var(--t-reveal), 0.7s; transition-timing-function: var(--e-out); transform: translateY(22px); }

/* фото раскрываются из узкой полосы, как из-за кулис */
.img-reveal { clip-path: inset(0 48% 0 48% round var(--radius)); transition: clip-path 0.8s var(--e-out); }
.img-reveal img { transform: scale(1.12); transition: transform 1s var(--e-out); }
.img-reveal.in { clip-path: inset(0 0 0 0 round var(--radius)); }

/* ================= Закулисные пометки на фото ================= */

.marks {
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  --c: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 14px no-repeat;
}
.marks i { font-style: normal; }
.marks--big { inset: calc(var(--header) + 20px) var(--gutter) auto; height: 40vh; z-index: 1; }
.step-photo, .video, .duo-photo { position: relative; }

/* ================= Педагоги: программка ================= */

.teacher { gap: 14px; }
.sheet-top { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); transition: letter-spacing 0.4s var(--e-out), color var(--t-hover); }
.teacher:hover .sheet-top { letter-spacing: 0.2em; color: var(--soft); }
.teacher-photo { transform: none !important; border-radius: 2px; }
.teacher-photo img { translate: none !important; transition: transform 0.6s var(--e-out); }
.teacher:hover .teacher-photo img { transform: scale(1.035); }
.frame { position: absolute; inset: 0; z-index: 3; pointer-events: none; border: 1px solid rgba(239, 233, 225, 0); transition: inset 0.45s var(--e-out), border-color 0.45s; }
.teacher:hover .frame, .teacher:focus-within .frame { inset: 12px; border-color: rgba(239, 233, 225, 0.5); }
.teacher h3 { transition: letter-spacing 0.4s var(--e-out); }
.teacher:hover h3 { letter-spacing: -0.035em; }
/* роли под текстом, а не поверх фото */
.teacher-roles { display: grid; gap: 10px; margin-top: 6px; }
.teacher-roles .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.teacher-roles ul { margin: 0; padding: 0; }
.teacher-roles li { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.3; }
.teacher-roles li:last-child { border-bottom: 1px solid var(--line); }
.teacher-roles li span { max-width: 58%; color: var(--soft); text-align: right; }
.disc { list-style: none; margin: 0; padding: 0; display: grid; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.disc li { padding: 8px 0; border-top: 1px solid var(--line); }
.disc li:last-child { border-bottom: 1px solid var(--line); }

/* ================= Афиша: постеры проходят один поверх другого ================= */

.afisha { padding-top: clamp(96px, 13vh, 170px); }
.posters { padding: 0 var(--gutter) 14vh; }
.poster {
  position: sticky;
  top: calc(var(--header) + 16px + var(--i) * 16px);
  height: min(78svh, 860px);
  margin-bottom: 8vh;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  transform: scale(var(--sc, 1));
  transform-origin: 50% 0;
  filter: brightness(var(--br, 1));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
}
.poster:nth-child(1) { --i: 0; }
.poster:nth-child(2) { --i: 1; }
.poster:nth-child(3) { --i: 2; }
.poster:nth-child(4) { --i: 3; margin-bottom: 0; }
.poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.7) 100%); }
.poster-top, .poster-bottom { position: absolute; z-index: 2; left: 22px; right: 22px; display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.poster-top { top: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.poster-bottom { bottom: 20px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.4); }
.poster-title { position: absolute; z-index: 2; margin: 0; font-weight: 700; font-size: clamp(72px, 12.5vw, 240px); line-height: 0.84; letter-spacing: -0.07em; text-shadow: 0 4px 60px rgba(0, 0, 0, 0.35); }
.poster--a .poster-title { left: 18px; bottom: 64px; }
.poster--b .poster-title { right: 22px; top: 64px; text-align: right; }
.poster--c .poster-title { right: 22px; bottom: 64px; text-align: right; }
.poster--d .poster-title { left: 18px; top: 64px; }

/* ================= Билеты ================= */

.tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.tickets--1 { grid-template-columns: minmax(0, 760px); }
.tk-row { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.tk-row .tickets--1 { grid-template-columns: 1fr; }
.tk-perks { list-style: none; margin: 0; padding: 0; }
.tk-perks li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.tk-perks li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.tk-perks b { font-family: var(--poster); font-weight: 900; font-size: clamp(26px, 2.4vw, 40px); line-height: 0.95; text-transform: uppercase; }
.tk-perks span { font-size: 14px; opacity: 0.85; }
@media (max-width: 980px) { .tk-row { grid-template-columns: 1fr; } }
.tk {
  --notch: 11px;
  --stub: 164px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  color: var(--ink);
  transition: filter 0.3s var(--e-out);
}
.tk-main, .tk-stub { background-color: var(--paper); transition: transform 0.3s var(--e-out); }
.tk-main {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px 26px 24px;
  -webkit-mask: radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.tk-stub {
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 22px 18px;
  background-image: linear-gradient(rgba(13, 12, 11, 0.35) 50%, transparent 0);
  background-size: 1.5px 9px;
  background-repeat: repeat-y;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.tk:hover { filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.4)); }
.tk:hover .tk-main { transform: translateX(-2px); }
.tk:hover .tk-stub { transform: translateX(3px) rotate(0.6deg); }
.tk-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(13, 12, 11, 0.16); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(13, 12, 11, 0.55); transition: letter-spacing 0.35s var(--e-out); }
.tk:hover .tk-top { letter-spacing: 0.19em; }
.tk-title { display: block; font-weight: 600; font-size: clamp(28px, 2.6vw, 42px); line-height: 1; letter-spacing: -0.045em; margin-top: 6px; }
.tk-sub { font-size: 15px; color: rgba(13, 12, 11, 0.62); }
.tk-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; }
.tk-meta dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(13, 12, 11, 0.5); margin-bottom: 3px; }
.tk-meta dd { margin: 0; font-size: 15px; font-weight: 600; }
.tk-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.tk-price b { font-size: clamp(30px, 2.8vw, 44px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.tk-price small { font-size: 13px; color: rgba(13, 12, 11, 0.6); }
.tk-flag { justify-self: start; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--red); padding: 4px 8px; }
.tk-stub-label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; }
.tk-code { display: block; height: 58px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); }
.tk-serial { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(13, 12, 11, 0.6); }
.tk-go { font-size: 13px; font-weight: 700; white-space: nowrap; }
.tk-go i { font-style: normal; display: inline-block; transition: transform 0.3s var(--e-out); }
.tk:hover .tk-go i { transform: translateX(4px); }

/* три билета в ряд: вертикальные, корешок снизу */
.tickets--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tickets--3 .tk, .tk--v { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
.tickets--3 .tk-main, .tk--v .tk-main {
  -webkit-mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.tickets--3 .tk-stub, .tk--v .tk-stub {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  align-content: center;
  padding: 16px 22px;
  background-image: linear-gradient(90deg, rgba(13, 12, 11, 0.35) 50%, transparent 0);
  background-size: 9px 1.5px;
  background-repeat: repeat-x;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
}
.tickets--3 .tk-code, .tk--v .tk-code { height: 34px; }
.tickets--3 .tk-serial, .tk--v .tk-serial { display: none; }
.tickets--3 .tk:hover .tk-main { transform: translateY(-2px); }
.tickets--3 .tk:hover .tk-stub { transform: translateY(3px) rotate(0.4deg); }

/* ================= Плавающий билет записи ================= */

.tcta { position: fixed; z-index: 40; right: var(--gutter); bottom: var(--gutter); display: grid; grid-template-columns: auto 48px; color: var(--ink); transition: opacity 0.3s, transform 0.4s var(--e-out), filter 0.3s; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.4)); }
.tcta.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.tcta-main, .tcta-stub { background: var(--paper); transition: transform 0.3s var(--e-out); }
.tcta-main { display: grid; gap: 2px; padding: 10px 16px 11px; -webkit-mask: radial-gradient(circle 7px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 7px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.tcta-main small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(13, 12, 11, 0.55); }
.tcta-main b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.tcta-stub { display: grid; place-items: center; font-size: 18px; background-color: var(--red); color: #fff; -webkit-mask: radial-gradient(circle 7px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 7px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.tcta:hover .tcta-stub { transform: translateX(3px); }
.tcta:hover .tcta-main { transform: translateX(-1px); }

/* ================= Форма и бронь ================= */

.form { border-radius: var(--radius); gap: 26px; }
.form-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--faint); }
.field label, .field legend { display: flex; align-items: baseline; gap: 10px; }
.num { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.08em; }
.field input { height: 48px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; border-bottom: 1px solid rgba(239, 233, 225, 0.3); transition: border-color var(--t-hover); }
.field input:focus { box-shadow: none; border-bottom-color: var(--fg); }
.field.bad input { box-shadow: none; border-bottom-color: #ff8b7a; }
.seg span { border-radius: 2px; background: transparent; }
.form .btn { height: 58px; }

.booked { display: grid; grid-template-columns: minmax(0, 1fr) 96px; color: var(--ink); animation: print 0.8s var(--e-out) both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-12px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.booked-main, .booked-stub { background: var(--paper); }
.booked-main { display: grid; gap: 10px; padding: 20px 22px; -webkit-mask: radial-gradient(circle 10px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 10px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.booked-title { font-size: clamp(26px, 2.4vw, 36px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.booked-stub { position: relative; display: grid; align-content: center; padding: 16px 14px; background-image: linear-gradient(rgba(13, 12, 11, 0.35) 50%, transparent 0); background-size: 1.5px 9px; background-repeat: repeat-y; -webkit-mask: radial-gradient(circle 10px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 10px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.booked-stub .tk-code { height: 70px; }
.stamp { position: absolute; right: 8px; bottom: 14px; padding: 4px 7px; border: 1.5px solid var(--red); color: var(--red); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; transform: rotate(-8deg); opacity: 0; animation: stamp 0.3s var(--e-out) 0.75s forwards; background: var(--paper); }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(1.5); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
.form-done { gap: 16px; }

/* ================= Прочие детали системы ================= */

.split-side, .offer, .rv, .video, .step, .plan, .gallery figure, .age-photo, .program-aside .photo, .duo-photo, .step-photo { border-radius: var(--radius); }
.split-list span, .filters button, .rep-group, .teacher .tags span { border-radius: 2px; }
.rv { border-radius: var(--radius); }
.rep:hover .rep-row:hover { padding-left: 8px; }
.now .label i { animation: none; }
.ticker-track { animation: ticker 45s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.intro-tag::after { animation-iteration-count: 1; animation-fill-mode: forwards; }
.wipe { background: var(--bg); }
.wipe.cover { transition-duration: 0.45s; }
.wipe.leave { transition-duration: 0.6s; transition-delay: 0.05s; }
.video .play { border-radius: 2px; }
.video:hover .play { transform: none; }

/* подвал: финальная реплика */
.curtain-line { grid-column: 1 / -1; display: grid; gap: 10px; padding: clamp(40px, 8vh, 100px) 0 clamp(40px, 6vh, 70px); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.curtain-word { font-weight: 700; font-size: clamp(88px, 17vw, 330px); line-height: 0.82; letter-spacing: -0.075em; margin: 0; }

/* ================= Свет и кулисы ================= */

.stage-light {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(640px circle at var(--lx, 72%) var(--ly, 18%), rgba(255, 220, 180, 0.065), transparent 62%),
    radial-gradient(900px circle at 12% calc(20% + var(--ls, 0) * 60%), rgba(232, 65, 44, 0.045), transparent 60%);
}
.wings {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: var(--wings, 0);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, 0.9) 100%);
}

/* ================= Адаптив ================= */

@media (max-width: 1180px) {
  .hdr-note { display: none; }
}

@media (max-width: 980px) {
  .tickets, .tickets--3 { grid-template-columns: 1fr; }
  .tickets--3 .tk { max-width: 560px; }
}

@media (max-width: 767px) {
  .header { height: 64px; gap: 14px; }
  .header.is-solid { height: 56px; }
  .hdr-meta { padding-left: 12px; font-size: 10px; }
  .acts em { display: none; }
  .acts { gap: 7px; }
  .cue { font-size: 10px; margin-bottom: 14px; }
  .marks { font-size: 9.5px; inset: 8px; padding: 8px 10px; }
  .marks--big { inset: calc(var(--header) + 12px) var(--gutter) auto; }
  .poster { height: 68svh; margin-bottom: 5vh; top: calc(var(--header) + 10px + var(--i) * 10px); }
  .poster-top, .poster-bottom { font-size: 9.5px; left: 14px; right: 14px; }
  .poster-top span:nth-child(3), .poster-bottom span:nth-child(2) { display: none; }
  .poster-title { font-size: 17vw; }
  .poster--a .poster-title, .poster--d .poster-title { left: 12px; }
  .poster--b .poster-title, .poster--c .poster-title { right: 14px; }

  /* билеты вертикальные */
  .tk { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .tk-main {
    padding: 20px 20px 22px;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .tk-stub {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 14px 20px;
    background-image: linear-gradient(90deg, rgba(13, 12, 11, 0.35) 50%, transparent 0);
    background-size: 9px 1.5px;
    background-repeat: repeat-x;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .tk-code { height: 30px; }
  .tk-serial { display: none; }
  .tk-meta dd { font-size: 14px; }
  .tcta { right: 14px; bottom: 14px; grid-template-columns: auto 42px; }
  .tcta-main { padding: 8px 12px 9px; }
  .tcta-main b { font-size: 14px; }
  .booked { grid-template-columns: minmax(0, 1fr) 72px; }
  .form-head { flex-direction: column; gap: 4px; }
  .wings { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cue, .tw-i, .img-reveal { clip-path: none !important; transform: none !important; }
  .poster { position: relative; top: auto; transform: none; filter: none; }
  .booked, .stamp { animation: none; opacity: 1; }
}
