/*
Theme Name: ZT Puppet v3
Theme URI: https://teatrkukolzt.org
Author: AI Agent
Description: v3: новий хедер і hero (палітра «Сніг і калина»). Копія v2 для безпечних змін.
Version: 1.0.0
Text Domain: zt-puppet-v3
*/

/* Design System - Source: src/index.css */
:root {
  /* Primary - Deep Burgundy (hsl(var(--primary))) */
  --primary: 0 100% 15%;
  --primary-foreground: 40 30% 95%;

  /* Background - Warm cream/parchment */
  --background: 43 37% 96%;
  --foreground: 25 35% 15%;

  /* Card - Slightly warmer cream */
  --card: 38 40% 98%;
  --card-foreground: 25 35% 15%;

  /* Popover */
  --popover: 38 40% 98%;
  --popover-foreground: 25 35% 15%;

  /* Secondary - Warm Brown (wood texture) */
  --secondary: 20 35% 25%;
  --secondary-foreground: 40 30% 95%;

  /* Muted - Light ochre */
  --muted: 38 30% 90%;
  --muted-foreground: 25 20% 45%;

  /* Accent - Warm Gold */
  --accent: 43 70% 47%;
  --accent-foreground: 25 35% 10%;

  /* Destructive */
  --destructive: 0 70% 45%;
  --destructive-foreground: 40 30% 95%;

  /* Border & Input */
  --border: 30 25% 82%;
  --input: 30 25% 82%;
  --ring: 0 100% 15%;

  --radius: 0.375rem;

  /* Custom Palette vars for direct usage if needed */
  --burgundy: 0 100% 15%;
  --burgundy-dark: 0 100% 10%;
  --burgundy-light: 0 100% 25%;
  --brown: 20 35% 25%;
  --gold: 43 70% 47%;
  --gold-light: 43 60% 60%;
  --gold-dark: 43 75% 35%;

  /* Shadows */
  --shadow-theatrical: 0 10px 40px -10px hsl(25 35% 15% / 0.15);
  --shadow-card: 0 4px 20px -4px hsl(25 35% 15% / 0.1);
  --shadow-hover: 0 8px 30px -6px hsl(25 35% 15% / 0.18);
}

/* Цвет холста — он же цвет системной панели навигации на Android: Chrome
   красит её фоном документа. Пока фон приходил от body, панель в точности
   повторяла страницу и на её фоне терялась. Отдаём холст html и держим его
   на тон темнее текущей темы: светлая страница — светлая панель, бордовая —
   бордовая, но в обоих случаях панель видно отдельно от сайта.
   Класс page-dark вешает на html тот же код, что и на body (front-page.php).
   Сам сайт этого не замечает — body закрывает вьюпорт своим фоном. */
html {
  scroll-behavior: auto;
  background-color: hsl(43 37% 91%);
  transition: background-color 0.5s ease;
}
/* Тёмных зон две: сцена вверху (over-hero) и низ страницы (page-dark) */
html.page-dark,
html.over-hero {
  background-color: #3b0909;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Source Sans 3", system-ui, sans-serif;
  margin: 0;
  /* Страховка для коротких страниц: без неё под body проглядывал бы холст */
  min-height: 100svh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", Georgia, serif;
}

/* Utilities */
.container-theatre {
  width: 100%;
  max-width: 100rem; /* 1600px — comfortable on Full HD, reasonable on 2K/4K */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container-theatre {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .container-theatre {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1440px) {
  .container-theatre {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* ── Запас под фиксированную шапку ────────────────
   Одно значение на все страницы: и распорка на «Афіші», и верхний отступ у
   main берут его отсюда. На телефоне шапка ужата до высоты ламбрекена — тем же
   выражением, что и в правиле .header-bar ниже, — а запас оставался в 6rem, и
   между шапкой и заголовком страницы зияли лишние тридцать пикселей. */
:root {
  --zt-header-h: calc(6rem + 1px);
}

@media (min-width: 768px) {
  :root {
    --zt-header-h: calc(7rem + 1px);
  }
}

@media (max-width: 767px) {
  :root {
    --zt-header-h: max(2.75rem, calc(100vw * var(--valance-h) / var(--crop-w, 1440) - 1px));
  }

  /* Tailwind'овский pt-24 перебиваем: селектор с атрибутом специфичнее класса */
  main[class*="pt-24"],
  main[class*="pt-20"] {
    padding-top: var(--zt-header-h);
  }
}

/* Afisha / schedule calendar page */
.schedule-page__header-offset {
  height: var(--zt-header-h);
}

/* ── Единая шапка внутренних страниц ─────────────
   Афіша, Репертуар, Новини, Колектив и Контакти были набраны каждая по-своему:
   кегль заголовка гулял от 16 до 60px, у трёх висел третий абзац с длинным
   описанием, выравнивание где по левому краю, где по центру. Здесь один блок
   на все пять: надзаголовок, название, симметричные отступы. */
.zt-page-hero {
  padding: 3rem 0;
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  text-align: center;
}

.zt-page-hero__eyebrow {
  margin: 0 0 0.6rem;
  color: hsl(var(--primary));
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.zt-page-hero__title {
  /* Заголовок последний в блоке, поэтому без нижней отбивки: она сложилась бы
     с падингом секции и снизу стало бы больше, чем сверху. */
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  color: hsl(var(--foreground));
  font-size: clamp(1.9rem, 6vw, 3.25rem);
}

.schedule-page {
  min-height: 70vh;
  padding: 2.5rem 0 4rem;
  background: hsl(var(--card));
}

/* Match the wider calendar container used on the front page. */
.container-theatre.schedule-page__container {
  max-width: 120rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.schedule-nav {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid hsl(var(--foreground) / 0.11);
  border-radius: 8px;
  background: #fff;
}

.schedule-nav__period {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: 0.75rem;
  max-width: 32rem;
  margin: 0 auto 1rem;
}

.schedule-nav__current {
  margin: 0;
  color: hsl(var(--foreground));
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 600;
  text-align: center;
}

.schedule-nav__arrow {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--primary) / 0.25);
  border-radius: 50%;
  color: hsl(var(--primary));
  font-size: 1.25rem;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.schedule-nav__arrow:hover,
.schedule-nav__arrow:focus-visible {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: #fff;
}

.schedule-nav__arrow--disabled {
  opacity: 0.25;
}

.schedule-nav__months,
.schedule-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.schedule-nav__selectors {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid hsl(var(--foreground) / 0.08);
}

.schedule-nav__year-picker {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
}

.schedule-nav__year-picker label {
  color: hsl(var(--foreground) / 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-nav__year-picker select {
  min-width: 6.25rem;
  height: 2.35rem;
  padding: 0 2.25rem 0 0.8rem;
  border: 1px solid hsl(var(--foreground) / 0.2);
  border-radius: 6px;
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.schedule-nav__year-picker select:hover,
.schedule-nav__year-picker select:focus {
  border-color: hsl(var(--primary));
  outline-color: hsl(var(--primary));
}

.schedule-nav__month,
.schedule-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: hsl(var(--muted-foreground));
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.schedule-nav__month {
  padding: 0.65rem 1rem;
  border-color: hsl(var(--foreground) / 0.12);
  background: hsl(var(--card));
}

.schedule-nav__month:hover,
.schedule-nav__month:focus-visible {
  border-color: hsl(var(--primary) / 0.35);
  background: hsl(var(--primary) / 0.06);
  color: hsl(var(--primary));
}

.schedule-nav__month--active {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: #fff;
}

.schedule-filters {
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.schedule-filter {
  padding: 0.65rem 1.15rem;
  border-color: hsl(var(--foreground) / 0.2);
  color: hsl(var(--foreground));
}

.schedule-filter:hover,
.schedule-filter:focus-visible {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.06);
}

.schedule-filter--active {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: #fff;
}

.schedule-page__empty {
  padding: 4rem 0;
  color: hsl(var(--foreground) / 0.55);
  text-align: center;
}

.schedule-page__empty p {
  margin: 0.35rem 0;
}

.schedule-page__empty-title {
  color: hsl(var(--foreground));
  font-size: 1.15rem;
  font-weight: 600;
}

@media (max-width: 639px) {
  .schedule-page {
    padding-top: 1.75rem;
  }

  .schedule-nav {
    padding: 0.85rem;
  }

  .schedule-nav__months {
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.4rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .schedule-nav__month {
    flex: 0 0 auto;
  }
}

/* Nav Link Styles */
.nav-link {
  position: relative;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition-property: color;
  transition-duration: 200ms;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.125rem;
  width: 0;
  background-color: hsl(var(--primary));
  transition: width 300ms;
}

.nav-link:hover::after,
.nav-link.current-menu-item::after {
  width: 100%;
}

.nav-link.current-menu-item {
  color: hsl(var(--primary));
}

/* ── Выпадающее подменю (десктоп) ─────────────── */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Внешний слой — мост под курсором: он прозрачный и своим верхним отступом
   перекрывает зазор между ссылкой и панелью. Без него курсор по дороге вниз
   выходит из .nav-item, и подменю закрывается прямо под рукой. */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.85rem;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}

/* У правого края панель по центру пункта вылезает за вьюпорт: на 1024px
   подменю «Контактів» уходило за экран на 129px. Двум последним пунктам
   прижимаем её правым краем. */
#site-header nav .nav-item--parent:nth-last-child(-n + 2) > .nav-dropdown {
  left: auto;
  right: 0;
  transform: none;
}

.nav-dropdown__inner {
  min-width: 13.5rem;
  padding: 0.4rem 0;
  border-radius: 10px;
  /* Тот же бордовый, что у мобильной панели: одна карточка на весь сайт
     вместо трёх вариантов под светлую, тёмную и прозрачную шапку. */
  background: #2e0000;
  border: 1px solid rgba(246, 244, 238, 0.2);
  /* Над сценой панель ложится на бордовый занавес: без заметной рамки и
     плотной тени её край просто растворяется в фоне. */
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 18px 44px rgba(0, 0, 0, 0.5);
  transform: translateY(-6px);
  transition: transform 0.18s ease;
}

.nav-item--parent:hover > .nav-dropdown,
.nav-item--parent:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-item--parent:hover > .nav-dropdown > .nav-dropdown__inner,
.nav-item--parent:focus-within > .nav-dropdown > .nav-dropdown__inner {
  transform: translateY(0);
}

.nav-dropdown__link {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: nowrap;
  color: rgba(246, 244, 238, 0.85);
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}
.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
  color: #fff1f4;
  background: rgba(246, 244, 238, 0.08);
}
.nav-dropdown__link.current-menu-item {
  color: #ffc069;
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown,
  .nav-dropdown__inner {
    transition: none;
  }
}

/* Card Theatrical */
.card-theatrical {
  background-color: hsl(var(--card));
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-card);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.card-theatrical:hover {
  box-shadow: var(--shadow-hover);
}

/* Team directory cards */
.team-page-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .team-page-title {
    font-size: 3rem;
  }
}

.team-item:hover,
.team-item:focus-within {
  box-shadow: 0 16px 36px hsl(var(--foreground) / 0.14);
  transform: translateY(-6px);
}

/* Карточка без ссылки не выделяется совсем: ни подъёма, ни тени. */
.team-item:not(:has(.team-card-overlay)):hover,
.team-item:not(:has(.team-card-overlay)):focus-within {
  box-shadow: var(--shadow-card);
  transform: none;
}

/* Карточка без ссылки: та же раскладка, но без подчёркиваний при наведении —
   кликать по ней некуда. Ссылка-накладка у таких карточек не выводится,
   по её отсутствию и отличаем. */
.team-item:not(:has(.team-card-overlay)):hover .team-card-media::after,
.team-item:not(:has(.team-card-overlay)):focus-within .team-card-media::after {
  transform: scaleX(0);
}
.team-item:not(:has(.team-card-overlay)):hover .team-card-image {
  filter: none;
}

/* Кадр под фото. Раньше высоту задавала сама картинка: карточки выходили
   разной высоты (597, 598, 618 и 658px в одной сетке), а без фото блок
   схлопывался до 80px — высоты иконки — и карточка разъезжалась. Пропорция
   3:4 взята из зарегистрированного размера team-card (480x640). */
.team-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: hsl(var(--muted));
}

.team-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Заглушка занимает тот же кадр, иконка — по центру обеих осей */
.team-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground) / 0.16);
}

.team-card-placeholder svg,
.team-card-placeholder i {
  width: 5rem;
  height: 5rem;
}

.team-card-media::after {
  background: hsl(var(--primary));
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.team-card-image {
  transition: filter 0.3s ease;
}

.team-item:hover .team-card-media::after,
.team-item:focus-within .team-card-media::after {
  transform: scaleX(1);
}

.team-item:hover .team-card-image,
.team-item:focus-within .team-card-image {
  filter: brightness(0.9) saturate(0.9);
}

.team-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.team-card-more {
  color: hsl(var(--primary));
  margin-top: auto;
  padding-top: 1rem;
}

.team-card-more svg {
  transition: transform 0.3s ease;
}

.team-item:hover .team-card-more svg,
.team-item:focus-within .team-card-more svg {
  transform: translateX(5px);
}

.team-filter-scroll {
  margin-inline: -1rem;
  overflow-x: auto;
  padding-inline: 1rem;
}

.team-filter-bar {
  background: hsl(var(--background));
  top: 6rem;
  transition: top 0.2s ease;
}

#site-header.header--hidden + main .team-filter-bar {
  top: 0;
}

@media (min-width: 768px) {
  .team-filter-bar {
    top: 7rem;
  }
}

body.admin-bar .team-filter-bar {
  top: calc(6rem + 32px);
}

body.admin-bar #site-header.header--hidden + main .team-filter-bar {
  top: 32px;
}

@media screen and (min-width: 768px) {
  body.admin-bar .team-filter-bar {
    top: calc(7rem + 32px);
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .team-filter-bar {
    top: calc(6rem + 46px);
  }

  body.admin-bar #site-header.header--hidden + main .team-filter-bar {
    top: 46px;
  }
}

.filter-btn {
  border: 1px solid transparent;
  white-space: nowrap;
}

.filter-btn:not(.active):hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.filter-btn.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.filter-btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* News archive cards */
.news-archive-card-wrap:hover,
.news-archive-card-wrap:focus-within {
  box-shadow: 0 16px 36px hsl(var(--foreground) / 0.14);
  transform: translateY(-6px);
}

.news-archive-card {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  outline: none;
  text-decoration: none;
}

.news-archive-card:focus-visible {
  box-shadow: inset 0 0 0 3px hsl(var(--primary));
}

.news-archive-card__media::after {
  background: hsl(var(--primary));
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.news-archive-card__image {
  transition: filter 0.3s ease;
}

.news-archive-card-wrap:hover .news-archive-card__media::after,
.news-archive-card-wrap:focus-within .news-archive-card__media::after {
  transform: scaleX(1);
}

.news-archive-card-wrap:hover .news-archive-card__image,
.news-archive-card-wrap:focus-within .news-archive-card__image {
  filter: brightness(0.88) saturate(0.9);
}

.news-archive-card h2 {
  transition: color 0.3s ease;
}

.news-archive-card-wrap:hover h2,
.news-archive-card-wrap:focus-within h2 {
  color: hsl(var(--primary));
}

.news-archive-card__more svg {
  transition: transform 0.3s ease;
}

.news-archive-card-wrap:hover .news-archive-card__more svg,
.news-archive-card-wrap:focus-within .news-archive-card__more svg {
  transform: translateX(5px);
}

/* Scrollbar Hiding Utility */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── WP Admin Bar offset for fixed header ── */
/* !important beats Tailwind CDN's top-0 utility class */
/* Смещение под админ-бар WordPress.
   Ниже 783px бар у WP становится position:absolute и уезжает вместе со
   страницей, а шапка оставалась смещённой на его высоту — над ней открывался
   просвет, сквозь который был виден контент. Величину смещения держит
   --admin-bar-offset: её пересчитывает header.js по реально видимой части
   бара. Значения в fallback повторяют прежнее поведение на случай без JS. */
body.admin-bar #site-header {
  top: var(--admin-bar-offset, 32px) !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar #site-header {
    top: var(--admin-bar-offset, 46px) !important;
  }
}

/* ── Smart Header ─────────────────────────────── */
#site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  will-change: transform;
  /* Уезжает шапка дольше, чем раньше (было 0.2 s): на таком ходу движение
     читается как намеренное, а не как рывок. Кривая — стандартная
     «ease-out-ish», та же, что в material-интерфейсах. */
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.5s ease,
    border-color 0.5s ease;
}
#site-header.header--hidden {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  #site-header {
    transition:
      background 0.5s ease,
      border-color 0.5s ease;
  }
}

#site-header .nav-link,
#site-header .header-phone,
#site-header .header-logo-top,
#site-header .header-logo-main,
#site-header #mobile-menu-toggle {
  transition: color 0.5s ease;
}

/* ── Dark mode header ─────────────────────────── */
/* Тёмной шапка бывает в двух местах: над сценой (кроме самого верха, где она
   прозрачная) и внизу страницы под page-dark. Цвет один и тот же — #3b0909,
   он же у системной панели навигации, см. правило для html выше. */
body.page-dark #site-header:not(.header--transparent),
#site-header.header--over-hero:not(.header--transparent) {
  background: #3b0909 !important;
  border-color: rgba(246, 244, 238, 0.1) !important;
}
body.page-dark #site-header:not(.header--transparent) .nav-link,
body.page-dark #site-header:not(.header--transparent) .header-phone,
#site-header.header--over-hero:not(.header--transparent) .nav-link,
#site-header.header--over-hero:not(.header--transparent) .header-phone {
  color: rgba(246, 244, 238, 0.8) !important;
}
body.page-dark #site-header:not(.header--transparent) .header-logo-top,
#site-header.header--over-hero:not(.header--transparent) .header-logo-top {
  color: rgba(246, 244, 238, 0.55) !important;
}
body.page-dark #site-header:not(.header--transparent) .header-logo-main,
#site-header.header--over-hero:not(.header--transparent) .header-logo-main {
  color: #f6f4ee !important;
}
body.page-dark #site-header:not(.header--transparent) .nav-link::after,
#site-header.header--over-hero:not(.header--transparent) .nav-link::after {
  background-color: rgba(246, 244, 238, 0.6) !important;
}
body.page-dark #site-header:not(.header--transparent) #mobile-menu-toggle,
#site-header.header--over-hero:not(.header--transparent) #mobile-menu-toggle {
  color: rgba(246, 244, 238, 0.8) !important;
}

/* Шапка при открытом меню подхватывает цвет панели, но только там, где та
   бордовая: над сценой и в тёмной теме внизу. В светлой середине страницы
   шапка остаётся светлой. */
#site-header.header--menu-open.header--over-hero,
body.page-dark #site-header.header--menu-open {
  background: rgba(62, 1, 1, 0.93) !important;
  border-color: rgba(246, 244, 238, 0.1) !important;
}
#site-header.header--menu-open.header--over-hero .nav-link,
#site-header.header--menu-open.header--over-hero .header-phone,
body.page-dark #site-header.header--menu-open .nav-link,
body.page-dark #site-header.header--menu-open .header-phone {
  color: rgba(246, 244, 238, 0.8) !important;
}
#site-header.header--menu-open.header--over-hero .header-logo-top,
body.page-dark #site-header.header--menu-open .header-logo-top {
  color: rgba(246, 244, 238, 0.55) !important;
}
#site-header.header--menu-open.header--over-hero .header-logo-main,
body.page-dark #site-header.header--menu-open .header-logo-main {
  color: #f6f4ee !important;
}
#site-header.header--menu-open.header--over-hero #mobile-menu-toggle,
body.page-dark #site-header.header--menu-open #mobile-menu-toggle {
  color: rgba(246, 244, 238, 0.8) !important;
}

/* Панель меню идёт за фоном страницы: над сценой бордовая, в светлой
   середине светлая, внизу под page-dark снова бордовая. !important здесь
   ради Tailwind'овских hover:text-primary на самих ссылках. */
#mobile-menu {
  background: hsl(var(--card));
}

#site-header.header--over-hero #mobile-menu,
body.page-dark #mobile-menu {
  background: #3e0101;
  border-color: rgba(246, 244, 238, 0.1) !important;
}
#site-header.header--over-hero #mobile-menu a,
body.page-dark #mobile-menu a {
  color: rgba(246, 244, 238, 0.85) !important;
}
#site-header.header--over-hero #mobile-menu .border-t,
#site-header.header--over-hero #mobile-menu [class*="border"],
body.page-dark #mobile-menu .border-t,
body.page-dark #mobile-menu [class*="border"] {
  border-color: rgba(246, 244, 238, 0.12) !important;
}

/* Прокрутка страницы под открытым меню */
html.zt-scroll-locked,
html.zt-scroll-locked body {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Высота ламбрекена в пикселях мастера 4096. Отсюда её берут и сцена на
   главной, и шапка на телефонах — см. ниже. */
:root {
  --valance-h: 253;
}

/* ── Шапка на телефонах ─────────────────────────────
   Высота равна высоте верхнего ламбрекена: 96px были выше него, и шапка
   наезжала на сцену. Пропорция та же, что у самого ламбрекена — доля ширины
   экрана, — поэтому они совпадают на любом телефоне. --crop-w на главной
   задаёт инлайновый блок из functions.php, на остальных страницах берётся
   запасное 1440: мобильный кроп всегда такой. */
@media (max-width: 767px) {
  #site-header .header-bar {
    position: relative;
    /* Минус пиксель: высота самой картинки ламбрекена — целое число, и после
       округления она бывает на пиксель ниже расчётной. Без этого шапка местами
       оказывалась на пиксель выше него. */
    height: calc(100vw * var(--valance-h) / var(--crop-w, 1440) - 1px);
    min-height: 2.75rem;
  }

  /* ссылка растянута на высоту строки, иначе проценту логотипа не от чего
     считаться и он раздувается до натуральных 275px */
  #site-header .header-brand {
    height: 100%;
  }

  #site-header .header-logo {
    width: auto;
    height: 78%;
    aspect-ratio: 1;
    flex: 0 0 auto;
  }

  /* Заголовок по центру ширины экрана, а не по остатку места рядом с
     логотипом. Поэтому он вынут из потока строки и центрирован абсолютно. */
  #site-header .header-wordmark {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  #site-header .header-logo-top {
    font-size: clamp(0.5rem, 2.3vw, 0.72rem);
    line-height: 1.25;
  }

  #site-header .header-logo-main {
    font-size: clamp(0.8rem, 3.6vw, 1.1rem);
    line-height: 1.2;
  }

  #site-header #mobile-menu-toggle {
    padding: 0.25rem;
  }
}

.header-logo-top {
  font-size: clamp(0.85rem, 3vw, 1.33rem);
  line-height: 1.8rem;
}

.header-logo-main {
  font-size: clamp(1.1rem, 4vw, 1.75rem);
  line-height: 1.75rem;
  letter-spacing: 0.05em;
}

@media (min-width: 1024px) {
  #site-header .nav-link {
    font-size: 1.5rem;
  }
}

#mobile-menu nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Подпункты ступеньками: сдвиг по глубине плюс полоска слева, чтобы шаг
   читался как вложенность, а не как пункт с большим отступом. */
#mobile-menu .mobile-nav__link--sub {
  position: relative;
  font-size: 0.95rem;
  color: hsl(var(--foreground) / 0.55) !important;
}
#mobile-menu .mobile-nav__link--sub::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 1px;
  background: hsl(var(--foreground) / 0.18);
}
#site-header.header--over-hero #mobile-menu .mobile-nav__link--sub,
body.page-dark #mobile-menu .mobile-nav__link--sub {
  color: rgba(246, 244, 238, 0.7) !important;
}
#site-header.header--over-hero #mobile-menu .mobile-nav__link--sub::before,
body.page-dark #mobile-menu .mobile-nav__link--sub::before {
  background: rgba(246, 244, 238, 0.22);
}
#mobile-menu .mobile-nav__link--depth-1 {
  padding-left: 1.15rem;
}
#mobile-menu .mobile-nav__link--depth-1::before {
  left: 0.25rem;
}
#mobile-menu .mobile-nav__link--depth-2 {
  padding-left: 2.3rem;
  font-size: 0.9rem;
}
#mobile-menu .mobile-nav__link--depth-2::before {
  left: 1.4rem;
}
#mobile-menu .mobile-nav__link--depth-3 {
  padding-left: 3.45rem;
  font-size: 0.9rem;
}
#mobile-menu .mobile-nav__link--depth-3::before {
  left: 2.55rem;
}

/* В футере столбец узкий — те же ступеньки, только мельче */
.footer-nav__link--sub {
  position: relative;
  padding-left: 0.85rem;
  opacity: 0.85;
}
.footer-nav__link--sub::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 1px;
  background: rgba(246, 244, 238, 0.25);
}
.footer-nav__link--depth-2 {
  padding-left: 1.7rem;
}
.footer-nav__link--depth-2::before {
  left: 0.85rem;
}

/* Прозрачной шапка остаётся только в самом верху страницы — класс ставит
   header.js. Переход на #3b0909 и обратно идёт 0.5 s, поэтому собственный
   transition здесь больше не объявляем: он перебивал общий и гасил плавность
   фона, оставляя только движение. */
#site-header.header--transparent {
  background: transparent !important;
  backdrop-filter: none !important;
  border-color: transparent !important;
}
#site-header.header--transparent .nav-link,
#site-header.header--transparent .header-phone,
#site-header.header--transparent .header-logo-top,
#site-header.header--transparent .header-logo-main {
  color: rgba(255, 255, 255, 0.9) !important;
}

#site-header.header--transparent .nav-link:hover,
#site-header.header--transparent .header-phone:hover {
  color: #ffffff !important;
}
#site-header.header--transparent #mobile-menu-toggle {
  color: white;
}

#site-header.header--transparent .nav-link::after {
  background: white !important;
}

/* ── Pagination ────────────────────────────────── */
.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}
.nav-links span.current {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

/* ── Footer fade-in ────────────────────────────── */
/* Footer fades in over 1 s as it enters the viewport (IntersectionObserver in header.js) */
footer {
  opacity: 0;
  transition: opacity 0.5s ease;
}
footer.footer--visible {
  opacity: 1;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-column {
  width: max-content;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.footer-column--about,
.footer-column--contact {
  width: auto;
  max-width: 17rem;
}
.footer-theatre-name {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  font-size: 1.25rem;
  line-height: 1.08;
}
.footer-theatre-name span {
  display: block;
}

@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    row-gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(2.5rem, 4vw, 5rem);
  }
}

/* ════════════════════════════════════════════════════
   SINGLE SHOW PAGE  (single-event.php)  — se-* namespace
════════════════════════════════════════════════════ */

/* ── Shared buttons ────────────────────────────── */
.se-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.2s;
}
.se-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35);
}
.se-btn--gold {
  background: hsl(var(--gold));
  color: #fff;
}
.se-btn--gold:hover {
  background: hsl(var(--gold-dark));
}
.se-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.se-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}
.se-btn--full {
  width: 100%;
  justify-content: center;
}

/* ── Hero ──────────────────────────────────────── */
.se-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.se-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: blur(10px) brightness(0.35);
  transform: scale(1.1);
  transition: opacity 0.6s;
}

.se-hero__curtain {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    hsl(0 100% 10% / 0.92) 0%,
    hsl(0 80% 15% / 0.75) 55%,
    hsl(20 40% 10% / 0.4) 100%
  );
}

.se-hero__body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 4rem;
  align-items: center;
  padding-top: clamp(7rem, 14vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
@media (max-width: 900px) {
  .se-hero__body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.se-hero__text {
  color: hsl(var(--primary-foreground));
}

/* Premier badge */
.se-premier-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--gold));
  border: 1px solid hsl(var(--gold) / 0.6);
  border-radius: 2px;
  padding: 4px 12px;
  margin-bottom: 1.25rem;
}

.se-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1.5rem;
  text-shadow: 0 4px 40px hsl(0 0% 0% / 0.4);
}

.se-rule {
  width: 3.5rem;
  height: 3px;
  background: linear-gradient(90deg, hsl(var(--gold)), hsl(var(--gold) / 0));
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

/* Meta chips */
.se-chips {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.se-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  font-weight: 500;
  color: hsl(0 0% 100% / 0.82);
  background: hsl(0 0% 100% / 0.08);
  border: 1px solid hsl(0 0% 100% / 0.18);
  border-radius: 100px;
  padding: 5px 13px;
  backdrop-filter: blur(6px);
}
.se-chip__ico {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.se-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Poster */
.se-hero__poster-wrap {
  position: relative;
  justify-self: end;
}
@media (max-width: 900px) {
  .se-hero__poster-wrap {
    justify-self: center;
    order: -1;
  }
}

.se-poster-glow {
  position: absolute;
  inset: -20px;
  background: hsl(var(--gold) / 0.15);
  border-radius: 12px;
  filter: blur(30px);
  z-index: 0;
}
.se-poster {
  position: relative;
  z-index: 1;
  width: clamp(160px, 20vw, 290px);
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.12),
    0 32px 80px -12px hsl(0 0% 0% / 0.65);
}

/* Scroll indicator */
.se-hero__scroll {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
}
.se-hero__scroll-line {
  display: block;
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, hsl(var(--gold) / 0.7), transparent);
  animation: se-scroll-pulse 2s ease-in-out infinite;
}
@keyframes se-scroll-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ── Sections ──────────────────────────────────── */
.se-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.se-section--alt {
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

/* Ghost-number section heading */
.se-heading {
  position: relative;
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
}
.se-heading--center {
  text-align: center;
}

.se-heading__num {
  position: absolute;
  top: -0.35em;
  left: -0.15em;
  font-family: "Playfair Display", serif;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px hsl(var(--primary) / 0.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.se-heading--center .se-heading__num {
  left: 50%;
  transform: translateX(-50%);
}

.se-heading__title {
  position: relative;
  z-index: 1;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: hsl(var(--primary));
  margin: 0;
  padding-top: 0.75rem;
}

/* ── Description ───────────────────────────────── */
.se-description {
  background: hsl(var(--background));
}
.se-prose {
  max-width: 72ch;
  margin: 0 auto;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  color: hsl(var(--foreground) / 0.88);
  columns: 1;
}
.se-prose p {
  margin-bottom: 1.1em;
}
@media (min-width: 1024px) {
  .se-prose {
    max-width: none;
    columns: 2;
    column-gap: 4rem;
  }
}

/* ── Split layout ──────────────────────────────── */
.se-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
@media (max-width: 900px) {
  .se-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
.se-split--center {
  align-items: center;
}
.se-split--video-info {
  align-items: start;
}
.se-desc-only {
  width: 66%;
  margin: 0 auto;
}

.se-panel {
}

/* ── Crew / Cast (dotted leaders) ──────────────── */
.se-crew {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.se-crew__row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  font-size: 0.95rem;
}
.se-crew__row:last-child {
  border-bottom: none;
}

.se-crew__role {
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  max-width: 48%;
}
.se-crew__dots {
  flex: 1;
  border-bottom: 1px dotted hsl(var(--border));
  margin: 0 0.35rem;
  margin-bottom: 0.2em;
  min-width: 1rem;
}
.se-crew__name {
  font-weight: 600;
  color: hsl(var(--foreground));
  text-align: right;
  flex-shrink: 0;
  max-width: 52%;
}
.se-crew__name--link {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 0.2s;
}
.se-crew__name--link:hover {
  color: hsl(var(--gold));
}

/* ── Gallery ───────────────────────────────────── */
.se-gallery-section {
  padding-bottom: 0;
}

.se-gallery {
  margin-top: 2rem;
}

.se-swiper-main .swiper-slide {
  overflow: hidden;
}
.se-swiper-main img,
.se-gallery__slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.se-gallery__slide {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.se-gallery__slide img {
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.se-gallery__slide:hover img {
  transform: scale(1.04);
}
.se-gallery__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(0 0% 0% / 0.3);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}
.se-gallery__slide:hover .se-gallery__zoom {
  opacity: 1;
}
.se-gallery__zoom i {
  width: 2.5rem;
  height: 2.5rem;
}

/* Thumbs */
.se-swiper-thumbs {
  margin-top: 8px;
  padding: 4px 0;
}
.se-swiper-thumbs .swiper-slide {
  width: 80px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.se-swiper-thumbs .swiper-slide.se-thumb-active,
.se-swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}
.se-thumb-img {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

/* Swiper overrides */
.se-gallery-prev,
.se-gallery-next {
  color: #fff;
}
.se-gallery-prev::after,
.se-gallery-next::after {
  font-size: 1.25rem;
}
.se-gallery-pagination .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.4;
}
.se-gallery-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* ── Video ─────────────────────────────────────── */
.se-video__frame {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 48px -8px hsl(0 0% 0% / 0.35);
}
.se-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.se-video__caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.9rem;
}
.se-video__name {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.se-video__dur {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}
.se-video__yt {
  font-size: 0.82rem;
  color: hsl(var(--primary));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.se-video__yt:hover {
  text-decoration: underline;
}

/* ── Practical info card ───────────────────────── */
.se-info-card {
  background: hsl(var(--primary));
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px -12px hsl(var(--primary) / 0.4);
}
.se-info-block {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid hsl(0 0% 100% / 0.1);
}
.se-info-block:last-child {
  border-bottom: none;
}
.se-info-block--ticket {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}
.se-info-block--tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1.25rem;
}

.se-info-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--gold));
  margin-bottom: 0.9rem;
}
.se-info-label__ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.se-dates {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.se-date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: hsl(0 0% 100% / 0.82);
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(0 0% 100% / 0.08);
}
.se-date-row:last-child {
  border-bottom: none;
}
.se-date-row__time {
  font-weight: 700;
  color: #fff;
}

.se-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: hsl(var(--gold) / 0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.se-more-link:hover {
  color: hsl(var(--gold));
}

.se-ticket-note {
  font-size: 0.87rem;
  color: hsl(0 0% 100% / 0.65);
  margin: 0;
  line-height: 1.5;
}
.se-ticket-embed {
  margin-top: 0.5rem;
}

/* Tags inside card */
.se-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(0 0% 100% / 0.75);
  border: 1px solid hsl(0 0% 100% / 0.2);
  border-radius: 100px;
  padding: 3px 10px;
}
.se-tag__ico {
  width: 12px;
  height: 12px;
}

/* ── Awards ────────────────────────────────────── */
.se-awards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.25rem;
}
.se-award {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1.25rem 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--card));
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.se-award:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.se-award__ico-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: hsl(var(--gold) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.se-award__ico {
  width: 28px;
  height: 28px;
  color: hsl(var(--gold));
}
.se-award__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.4;
  margin: 0;
}
.se-award__year {
  font-size: 0.8rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* ── Footer nav ────────────────────────────────── */
.se-footnav {
  background: hsl(var(--primary));
  border-top: 1px solid hsl(0 0% 100% / 0.08);
}
.se-footnav__inner {
  display: flex;
  justify-content: center;
  gap: 0;
}
.se-footnav__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  max-width: 220px;
  padding: 1.5rem 1rem;
  color: var(--zt-accent-contrast, #fff);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-right: 1px solid hsl(0 0% 100% / 0.08);
  transition:
    color 0.2s,
    background 0.2s;
}
.se-footnav__btn:last-child {
  border-right: none;
}
.se-footnav__btn:hover {
  color: var(--zt-accent-contrast, #fff);
  background: hsl(0 0% 100% / 0.07);
}
.se-footnav__ico {
  width: 20px;
  height: 20px;
}

/* ── Lightbox ──────────────────────────────────── */
.se-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: hsl(0 0% 0% / 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.se-lightbox[hidden] {
  display: none;
}
.se-lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px -8px hsl(0 0% 0% / 0.7);
}
.se-lightbox__close,
.se-lightbox__prev,
.se-lightbox__next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(0 0% 100% / 0.1);
  border: 1px solid hsl(0 0% 100% / 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  width: 48px;
  height: 48px;
}
.se-lightbox__close:hover,
.se-lightbox__prev:hover,
.se-lightbox__next:hover {
  background: hsl(0 0% 100% / 0.22);
}
.se-lightbox__close {
  top: 1rem;
  right: 1rem;
}
.se-lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.se-lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.se-lightbox__close i,
.se-lightbox__prev i,
.se-lightbox__next i {
  width: 22px;
  height: 22px;
}

/* ════════════════════════════════════════════════════
   ACTOR / TEAM PROFILE PAGE (single-team.php)
════════════════════════════════════════════════════ */
.actor-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}
@media (max-width: 767px) {
  .actor-profile {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.actor-photo-wrap {
  flex-shrink: 0;
}

.actor-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-theatrical);
}

.actor-role {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.5rem;
}

.actor-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: hsl(var(--primary));
  margin: 0 0 0.5rem;
}

.actor-honor {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
  margin: 0;
}

.actor-bio {
  font-size: 1rem;
  line-height: 1.75;
  color: hsl(var(--foreground) / 0.9);
}

/* Actor's shows grid */
.actor-shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.actor-show-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.actor-show-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.actor-show-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.actor-show-thumb--placeholder {
  aspect-ratio: 3/4;
  background: hsl(var(--muted));
}

.actor-show-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.actor-show-badge {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--gold));
  font-weight: 600;
}

.actor-show-title {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
  line-height: 1.3;
}

.actor-show-age {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ════════════════════════════════════════════════════
   SINGLE EVENT — extended se-* styles (rewrite 2026)
════════════════════════════════════════════════════ */

/* ── Light hero (two-column, white bg) ───────────── */
.se-hero-light {
  background: hsl(var(--muted));
  padding-top: clamp(6rem, 12vw, 9rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid hsl(var(--border));
}
.se-hero-light__grid {
  display: grid;
  grid-template-columns: minmax(0, 700px) 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .se-hero-light__grid {
    grid-template-columns: 1fr;
  }
}
.se-hero-light__poster-col {
  position: sticky;
  top: 5rem;
}
@media (max-width: 900px) {
  .se-hero-light__poster-col {
    position: static;
  }
}
.se-hero-light__poster {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow-theatrical);
  display: block;
}
.se-hero-light__premiere {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 0.6rem;
}
.se-hero-light__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: hsl(var(--primary));
  margin: 0 0 4rem;
}
.se-hero-light__subtitle {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1.25rem;
}
.se-hero-light__lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: hsl(var(--foreground) / 0.85);
  margin-bottom: 1.25rem;
}
.se-hero-light__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* ── Meta row (icon + label + value) ─────────────── */
.se-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-bottom: 1.25rem;
}
.se-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.se-meta-item__ico {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin-top: 6px;
  color: hsl(var(--muted-foreground));
}
.se-meta-item__label {
  display: block;
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.se-meta-item__value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.4;
}

/* ── CTA button: burgundy ────────────────────────── */
.se-btn--burgundy {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
}
.se-btn--burgundy:hover {
  background: hsl(var(--burgundy-dark));
  box-shadow: 0 8px 24px -6px hsl(var(--primary) / 0.4);
}

/* ── Hero social share ───────────────────────────── */
.se-hero__share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.se-hero__share-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: hsl(0 0% 100% / 0.6);
}
.se-hero__share-label--dark {
  color: hsl(var(--muted-foreground));
}
.se-hero__share-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(0 0% 100% / 0.1);
  color: hsl(0 0% 100% / 0.8);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.se-hero__share-ico:hover {
  background: hsl(0 0% 100% / 0.2);
  color: #fff;
}
.se-hero__share-ico--dark {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}
.se-hero__share-ico--dark:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

/* ── Chip variants ───────────────────────────────── */
.se-chip--tag {
  background: hsl(var(--gold) / 0.15);
  border-color: hsl(var(--gold) / 0.35);
  color: hsl(var(--gold));
}
.se-chips--light {
  margin-top: 0.25rem;
}
.se-chip--light {
  background: hsl(var(--muted));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
  backdrop-filter: none;
}

/* ── Section title ───────────────────────────────── */
.se-section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: hsl(var(--primary));
  margin: 0 0 1.25rem;
}
.se-section-title--center { text-align: center; }

/* ── Prose override inside split ─────────────────── */
.se-prose--single-col {
  columns: 1 !important;
  max-width: none !important;
}

/* ── Button variants ─────────────────────────────── */
.se-btn--sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.se-btn--outline {
  background: transparent;
  color: hsl(var(--primary));
  border: 1.5px solid hsl(var(--primary));
}
.se-btn--outline:hover {
  background: hsl(var(--primary));
  color: #fff;
}

/* ── More link on light bg ───────────────────────── */
.se-more-link--dark {
  color: hsl(var(--primary));
  display: inline-flex;
}
.se-more-link--dark:hover {
  color: hsl(var(--burgundy-dark));
}

/* ── Three-column layout ─────────────────────────── */
.se-three-col {
  display: flex;
  gap: 3rem;
  align-items: start;
  justify-content: space-around;
}
@media (max-width: 640px) {
  .se-three-col {
    flex-direction: column;
  }
}

/* ── Schedule table ──────────────────────────────── */
.se-schedule-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.se-schedule-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  padding: 8px 12px;
  background: hsl(var(--card));
  border-radius: 6px;
  flex-wrap: wrap;
}
.se-schedule-date {
  font-weight: 500;
  min-width: 140px;
}
.se-schedule-time {
  color: hsl(var(--muted-foreground));
  min-width: 48px;
}
.se-schedule-venue {
  flex: 1;
}
.se-schedule-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: hsl(var(--burgundy));
  color: #fff;
}
.se-schedule-ticket-note {
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground));
}

/* ── Awards grid ─────────────────────────────────── */
.se-awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .se-awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.se-award-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 1.25rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--background));
}
.se-award-card__ico-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: hsl(var(--gold) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.se-award-card__ico {
  width: 24px;
  height: 24px;
  color: hsl(var(--gold));
}
.se-award-card__title {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}
/* Назва заходу, на якому отримано нагороду, — під самою нагородою. */
.se-award-card__event {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
  margin: 0;
}
.se-award-card__year {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* ── Media cards ─────────────────────────────────── */
.se-media-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.se-media-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.se-media-card:hover {
  border-color: hsl(var(--burgundy));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.se-media-card__source {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.se-media-card__title {
  font-size: 0.95rem;
  font-weight: 500;
}
.se-media-card__ico {
  width: 14px;
  height: 14px;
  color: hsl(var(--muted-foreground));
  margin-top: 4px;
}

/* ── Puppet table ────────────────────────────────── */
.se-puppet-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.9rem;
}
.se-puppet-label {
  color: hsl(var(--muted-foreground));
}
.se-puppet-value {
  font-weight: 500;
  text-align: right;
}

/* ── Facts & features lists ──────────────────────── */
.se-facts-list,
.se-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.se-facts-list li,
.se-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.se-facts-list__ico,
.se-features-list__ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: hsl(var(--gold));
}
.se-features-list__ico {
  color: hsl(var(--primary));
}

/* ── Audience list ───────────────────────────────── */
.se-audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.se-audience-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.95rem;
}
.se-audience-list li:last-child {
  border-bottom: none;
}

/* ── Parents items ───────────────────────────────── */
.se-parents-item {
  /* Сетка вместо флекса: иконка и метка файла стоят в одной строке, а текст
     ниже занимает всю ширину. Раньше он был третьей колонкой и всегда начинался
     с отступом под иконку. */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid hsl(var(--border));
}
.se-parents-item > i {
  grid-column: 1;
  grid-row: 1;
}
.se-parents-item__file {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}
.se-parents-item__text {
  grid-column: 1 / -1;
  grid-row: 2;
}
.se-parents-item__actions {
  grid-column: 1 / -1;
}
.se-parents-item:last-child {
  border-bottom: none;
}
.se-parents-item__text {
  display: block;
  font-size: 0.9rem;
}
.se-parents-item__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Ссылка на файл — меткой, как «Прем'єра» в календаре: раньше это была
   неприметная кнопка сбоку, которая отъедала ширину у самого текста. */
.se-parents-item__file {
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: hsl(var(--burgundy));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.se-parents-item__file:hover,
.se-parents-item__file:focus-visible {
  opacity: 0.85;
}
.se-parents-item__file svg {
  width: 0.85rem;
  height: 0.85rem;
}

/* Дата, время, место и «Прем'єра» — одной строкой */
.se-schedule-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  flex: 1 1 100%;
}

/* Билеты — отдельной строкой, меткой по центру. Зелёный сдержанный, чтобы
   читался как «можно купить», но не спорил с бордовой «Прем'єрою». */
.se-schedule-tickets {
  display: block;
  width: fit-content;
  margin: 6px auto 0;
  padding: 2px 12px;
  border-radius: 999px;
  background: #3f6b4f;
  color: #eef5ef;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
}
.se-schedule-tickets--link:hover,
.se-schedule-tickets--link:focus-visible {
  background: #355a43;
  color: #fff;
}

/* ── Страница спектакля на телефоне ──────────────── */
@media (max-width: 640px) {
  /* Отступ от афиши до «Прем'єра» был вдвое меньше, чем от названия до
     подзаголовка, и шапка выглядела сбитой. Уравниваем с ним. */
  .se-hero-light__grid {
    gap: 4rem;
  }

  /* «Вік», «Тривалість», «Мова» в одну строку. Иконки возвращены: без них
     три пары «подпись/значение», разогнанные по ширине через space-between,
     читались как случайно рассыпанный текст. Теперь это компактный ряд —
     пункты стоят вплотную друг к другу, а не по краям. */
  .se-meta-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .se-meta-item {
    gap: 6px;
    align-items: center;
    min-width: 0;
  }
  .se-meta-item__ico {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }
  .se-meta-item__label {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }
  .se-meta-item__value {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Время занимало отдельную широкую колонку рядом с датой */
  .se-schedule-row {
    gap: 6px 10px;
  }
  /* Дата, время, место и «Прем'єра» должны уместиться в одну строку: при
     базовых 0.9rem четыре куска переваливали за ширину экрана и место с
     меткой уезжали вниз. */
  .se-schedule-row {
    font-size: 0.78rem;
  }
  .se-schedule-main {
    gap: 2px 8px;
    flex-wrap: nowrap;
  }
  .se-schedule-date,
  .se-schedule-time {
    min-width: 0;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .se-schedule-venue {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .se-schedule-tag {
    flex: 0 0 auto;
    font-size: 0.66rem;
    padding: 1px 7px;
  }

  .se-parents-item {
    column-gap: 8px;
  }
}

/* ── Modal ───────────────────────────────────────── */
.se-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.se-modal[hidden] {
  display: none;
}
.se-modal__inner {
  background: #fff;
  border-radius: 8px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  padding: 32px;
}
.se-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.2s;
}
.se-modal__close:hover {
  background: hsl(var(--muted));
}
.se-modal__body {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Crew table (new flat class names) ───────────── */
.se-crew-table {
  display: flex;
  flex-direction: column;
}
.se-crew-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  font-size: 0.95rem;
}
.se-crew-row:last-child {
  border-bottom: none;
}
.se-crew-role {
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  max-width: 48%;
}
.se-crew-dots {
  flex: 1;
  border-bottom: 1px dotted hsl(var(--border));
  margin: 0 0.35rem 0.2em;
  min-width: 1rem;
}
.se-crew-name {
  font-weight: 600;
  color: hsl(var(--foreground));
  text-align: right;
  flex-shrink: 0;
  max-width: 52%;
}
.se-crew-name--solo { text-align: left; max-width: none; }

/* ── Гастролі: «Хто приїжджає» ───────────────────── */
.se-guests {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.se-guest {
  flex: 1 1 320px;
  max-width: 540px;
  padding: 1.5rem 1.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
}
.se-guest__name {
  margin: 0 0 0.25rem;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: hsl(var(--primary));
}
.se-guest__city {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}
.se-crew-name--link {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 0.2s;
}
.se-crew-name--link:hover {
  color: hsl(var(--gold));
}

/* ── FAQ accordion ───────────────────────────────── */
.se-faq-item {
  border-bottom: 1px solid hsl(var(--border));
}
.se-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
  font-family: inherit;
  color: hsl(var(--foreground));
}
.se-faq-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.se-faq-answer {
  padding: 0 0 14px;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

/* ── Cast grid ───────────────────────────────────── */
/* Flex вместо grid: неполный ряд (3 актёра из 5 колонок) стоит по центру */
.se-cast-grid {
  --cols: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
@media (max-width: 1024px) {
  .se-cast-grid { --cols: 3; }
}
@media (max-width: 640px) {
  .se-cast-grid { --cols: 2; }
}
.se-cast-card {
  flex: 0 0 calc((100% - (var(--cols) - 1) * 16px) / var(--cols));
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.se-cast-card__photo {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.se-cast-card__avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: hsl(var(--burgundy));
}
.se-cast-card__name {
  font-size: 0.875rem;
  text-align: center;
}

/* ── Gallery grid ────────────────────────────────── */
.se-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 1024px) {
  .se-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .se-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.se-gallery-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.se-gallery-cell__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.se-gallery-cell:hover .se-gallery-cell__img {
  transform: scale(1.05);
}
.se-gallery-cell--hidden {
  display: none;
}

/* ======================================================================
   Спеціалізації: теги-посилання, вибір категорії на «Колективі»
   ====================================================================== */

/* Один вигляд тега і на сторінці учасника, і на картці списку. Раніше
   правило жило в cast-creative.css, який на «Колективі» не підключається. */
.zt-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zt-spec-chip {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--primary));
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.3rem 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  /* Довгі назви на кшталт «Керівник літературно-драматургічної частини»
     переносяться у два рядки: без інтервалу рядки злипалися, а короткий
     останній рядок, притиснутий ліворуч, виглядав обрізаним. */
  line-height: 1.35;
  max-width: 100%;
  text-align: center;
}

a.zt-spec-chip:hover,
a.zt-spec-chip:focus-visible {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  outline: none;
}

.zt-spec-chip--current {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* ── Теги на картці списку ─────────────────────────────────────────── */
/* На картці місця менше, тому внутрішні відступи вдвічі менші. */
.team-card-specs {
  margin-bottom: 0.65rem;
  margin-top: 0.4rem;
  position: relative; /* над посиланням-накладкою картки */
  z-index: 2;
}

.team-card-specs .zt-spec-chip {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.45rem 0.22rem 0.45rem;
}

/* Клік по картці веде на сторінку учасника, але тег має працювати окремо,
   тому посилання картки — накладка під вмістом, а не обгортка тексту. */
.team-card-overlay {
  border-radius: inherit;
  inset: 0;
  position: absolute;
  z-index: 1;
}

.team-card-overlay:focus-visible {
  box-shadow: inset 0 0 0 3px hsl(var(--primary));
  outline: none;
}

.team-item {
  position: relative;
}

.team-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ── Обрана спеціалізація + вибір іншої ───────────────────────────── */
.zt-spec-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.zt-spec-bar__current {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.95rem;
  color: hsl(var(--foreground) / 0.75);
}

.zt-spec-bar__current strong {
  color: hsl(var(--primary));
}

.zt-spec-picker {
  position: relative;
}

.zt-spec-picker__toggle {
  align-items: center;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  cursor: pointer;
  display: inline-flex;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.zt-spec-picker__toggle:hover,
.zt-spec-picker__toggle[aria-expanded="true"] {
  background: hsl(var(--muted));
  border-color: hsl(var(--primary) / 0.5);
}

.zt-spec-picker__toggle svg,
.zt-spec-picker__toggle i {
  height: 1rem;
  width: 1rem;
  transition: transform 0.2s ease;
}

.zt-spec-picker__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.zt-spec-picker__panel {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 18px 40px hsl(var(--foreground) / 0.16);
  left: 50%;
  margin: 0;
  max-height: 60vh;
  min-width: 15rem;
  overflow-y: auto;
  padding: 0.35rem;
  position: absolute;
  top: calc(100% + 0.4rem);
  transform: translateX(-50%);
  z-index: 60;
}

.zt-spec-picker:not([data-open]) .zt-spec-picker__panel {
  display: none;
}

.zt-spec-picker__item {
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--foreground));
  display: block;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.875rem;
  padding: 0.45rem 0.6rem;
  text-decoration: none;
  white-space: nowrap;
}

.zt-spec-picker__item:hover,
.zt-spec-picker__item:focus-visible {
  background: hsl(var(--muted));
  color: hsl(var(--primary));
  outline: none;
}

.zt-spec-picker__item[aria-current="true"] {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Скидання фільтра стоїть праворуч від списку — як і просили. */
.zt-spec-reset {
  align-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  color: hsl(var(--foreground) / 0.65);
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  width: 2rem;
}

.zt-spec-reset:hover,
.zt-spec-reset:focus-visible {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  outline: none;
}

@media (max-width: 639px) {
  .zt-spec-bar {
    justify-content: flex-start;
  }

  .zt-spec-picker__panel {
    left: 0;
    transform: none;
  }
}
