/* =========================================================
   Санкт-Петербургский балет — дизайн-система
   Светлая редакционная эстетика: пергамент, графит,
   крупный серифный шрифт, один акцент — карминный.
   ========================================================= */

:root {
  /* Цвет */
  --canvas: #f6f5f0;          /* пергамент — основной фон */
  --surface: #fffdf8;         /* приподнятые поверхности */
  --ink: #232427;             /* основной текст */
  --ink-soft: #5d5b55;        /* вторичный текст */
  --ink-faint: #99968c;       /* подписи, мета */
  --hairline: rgba(35, 36, 39, 0.14);
  --hairline-soft: rgba(35, 36, 39, 0.08);
  --crimson: #a3132e;         /* единственный цветовой акцент */
  --crimson-deep: #871026;
  --night: #1d1c1a;           /* тёмные фотоблоки */

  /* Шрифт */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;

  /* Сетка */
  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(96px, 12vw, 176px);
  --maxw: 1560px;

  /* Движение */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--crimson); color: #fff; }

/* Зерно плёнки поверх всего — фиксированный слой */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Типографика ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.015em;
  font-size: clamp(56px, 9.5vw, 152px);
  text-wrap: balance;
}

.display em, .h2 em { font-style: italic; font-weight: 400; }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  font-size: clamp(40px, 5.4vw, 84px);
  text-wrap: balance;
}

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  font-size: clamp(26px, 2.6vw, 38px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--crimson);
}

.lead {
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.55;
  font-weight: 450;
  color: var(--ink-soft);
  max-width: 56ch;
}

.muted { color: var(--ink-faint); }
.small { font-size: 16px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.5s var(--ease), transform 0.5s var(--ease);
}
.btn .btn-ico {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform 0.5s var(--ease);
}
.btn:hover { background: var(--crimson-deep); }
.btn:hover .btn-ico { transform: translate(2px, -1px) scale(1.05); }
.btn:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.btn--ghost .btn-ico { background: rgba(35, 36, 39, 0.06); }
.btn--ghost:hover { background: var(--ink); color: var(--canvas); }
.btn--ghost:hover .btn-ico { background: rgba(255, 255, 255, 0.14); }

.btn--sm { padding: 5px 5px 5px 20px; font-size: 14px; gap: 10px; }
.btn--sm .btn-ico { width: 30px; height: 30px; font-size: 14px; }

.link-line {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.link-line:hover { color: var(--crimson); border-color: var(--crimson); }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 245, 240, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.brand span { display: block; font-size: 11px; font-family: var(--sans); font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }

.nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 40px);
}
.nav a {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  transition: color 0.4s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--crimson);
  transition: right 0.5s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger i { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease), opacity 0.3s; }

/* ---------- Переключатель языка ---------- */

.header-cta { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.lang-switch button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 6px 7px;
  color: var(--ink-faint);
  position: relative;
  transition: color 0.35s var(--ease);
}
.lang-switch button::after {
  content: "";
  position: absolute;
  left: 7px; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--crimson);
  transition: right 0.4s var(--ease);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active { color: var(--ink); }
.lang-switch button.is-active::after { right: 7px; }
/* В выпадающем мобильном меню — своя копия переключателя */
.nav-lang { display: none; }

/* Брейкпоинт шапки шире остальных: крупное меню (16px) не помещается до ~1140px */
@media (max-width: 1139px) {
  /* Шапка имеет backdrop-filter и потому становится containing block
     для fixed-потомков — меню позиционируем absolute от шапки */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - 76px);
    overflow-y: auto;
    z-index: 59;
    flex-direction: column;
    gap: 0;
    background: var(--canvas);
    border-top: 1px solid var(--hairline-soft);
    padding: 24px var(--gutter) 56px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s 0.45s;
  }
  .nav a { font-size: 22px; padding: 18px 0; border-bottom: 1px solid var(--hairline-soft); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  body.nav-open .burger i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .burger i:nth-child(2) { opacity: 0; }
  body.nav-open .burger i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .burger { display: flex; }
  .header-cta { display: none; }
  .nav-lang { display: block; padding: 24px 0 8px; }
  .nav-lang .lang-switch { gap: 10px; }
  .nav-lang .lang-switch button { font-size: 17px; padding: 8px 10px; }
  .nav-lang .lang-switch button::after { left: 10px; bottom: 4px; }
  .nav-lang .lang-switch button.is-active::after { right: 10px; }
}

/* ---------- Плейсхолдеры фото / видео ---------- */
/* Заменяются реальными кадрами: к .ph добавляется <img> */

.ph {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tone, #e7e2d6);
  width: 100%;
  height: 100%;
}
.ph .ph-letter {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 9vw, 170px);
  line-height: 1;
  opacity: 0.16;
  user-select: none;
}
.ph.ph--dark { color: #f6f5f0; }
.ph.ph--dark .ph-letter { opacity: 0.22; }
.ph .ph-cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.45;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Реальные фото никогда не обрезаются: вписываются целиком на тёмном паспарту */
.ph.ph--img { background: #1d1c1a; color: #f6f5f0; }
.ph.ph--img img { object-fit: contain; }
/* Круглые аватарки в составах — единственное исключение (кадр круглый по определению) */
.cast-photo .ph.ph--img img { object-fit: cover; }
/* Чёрно-белая подача: реальное фото автоматически обесцвечивается */
.ph--bw img { filter: grayscale(1) contrast(1.07); }

.frame { padding: 10px; background: rgba(35, 36, 39, 0.04); border: 1px solid var(--hairline-soft); }
.frame > * { border: 1px solid var(--hairline-soft); }

/* ---------- Герой ---------- */

.hero { padding-top: clamp(64px, 9vw, 130px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero-media { margin-top: clamp(48px, 6vw, 96px); }
.hero-media .ph { aspect-ratio: 21 / 9; }
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-media .ph { aspect-ratio: 16 / 10; }
}
/* Вертикальная ориентация экрана — вертикальное фото в герое */
@media (orientation: portrait) {
  .hero-media .ph { aspect-ratio: 3 / 4; }
  /* Если в герое реальное фото — блок принимает его пропорцию: ни обрезки, ни полей */
  .hero-media .ph.ph--img,
  .perf-hero-media .ph.ph--img { aspect-ratio: auto; }
  .hero-media .ph.ph--img img,
  .perf-hero-media .ph.ph--img img {
    position: static;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
  }
}

.play-badge {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}
.play-badge .play-circle {
  width: 76px; height: 76px;
  border-radius: 999px;
  border: 1px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(4px);
  transition: transform 0.6s var(--ease), background 0.6s var(--ease);
}
.play-badge:hover .play-circle { transform: scale(1.08); background: rgba(255,255,255,0.1); }
.play-badge .small { letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; font-size: 12px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 72px);
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  margin-top: clamp(48px, 6vw, 88px);
}
.stat .stat-num { font-family: var(--serif); font-size: clamp(36px, 3.4vw, 54px); line-height: 1; font-weight: 400; }
.stat .stat-cap { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-top: 8px; }

/* ---------- Секции ---------- */

.section { padding-top: var(--section); }
.section:last-of-type, .section--footer-gap { padding-bottom: var(--section); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .h2 { margin-top: 18px; }

/* ---------- Афиша (структура Большого) ---------- */

.afisha-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.chip {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: all 0.45s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--canvas); }

.afisha-month {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
  font-style: italic;
  padding: clamp(32px, 4vw, 56px) 0 18px;
  border-bottom: 1px solid var(--hairline);
}

.afisha-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.5fr) minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 56px);
  align-items: center;
  padding: clamp(26px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition: background 0.45s var(--ease);
  position: relative;
}
.afisha-row:hover { background: rgba(255, 253, 248, 0.9); }

.afisha-date .d-num { font-family: var(--serif); font-size: clamp(34px, 3.2vw, 50px); line-height: 1; font-weight: 400; }
.afisha-date .d-day { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-top: 6px; }

.afisha-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.05;
  font-weight: 500;
  transition: color 0.4s var(--ease);
}
a:hover .afisha-title, .afisha-row a.afisha-link:hover .afisha-title { color: var(--crimson); }
.afisha-sub { font-size: 16px; color: var(--ink-soft); margin-top: 8px; }
.afisha-sub b { font-weight: 700; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }

.afisha-meta { display: flex; flex-direction: column; gap: 4px; font-size: 16px; color: var(--ink-soft); }
.afisha-meta .a-time { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.afisha-meta .a-tickets { font-size: 14px; letter-spacing: 0.06em; color: var(--ink-faint); }
.afisha-meta .a-tickets.is-few { color: var(--crimson); font-weight: 700; }

@media (max-width: 1023px) {
  .afisha-row { grid-template-columns: 104px 1fr; grid-template-rows: auto auto; row-gap: 16px; }
  .afisha-date .d-num { font-size: 30px; line-height: 1.1; }
  .afisha-date { grid-row: span 2; align-self: start; }
  .afisha-meta { flex-direction: row; align-items: baseline; gap: 16px; }
  .afisha-actions { grid-column: 2; }
}

/* ---------- Репертуар: редакционный список ---------- */

.rep-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: center;
  padding: clamp(40px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.rep-row:nth-child(even) .rep-media { order: 2; }
.rep-media .ph { aspect-ratio: 4 / 3; }
.rep-num { font-size: 14px; font-weight: 700; letter-spacing: 0.24em; color: var(--ink-faint); }
.rep-title {
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 0.98;
  font-weight: 400;
  margin: 14px 0 16px;
  transition: color 0.4s var(--ease);
}
a:hover .rep-title { color: var(--crimson); }
.rep-info { font-size: 16px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px; }
.rep-desc { color: var(--ink-soft); max-width: 52ch; margin-bottom: 26px; }

@media (max-width: 767px) {
  .rep-row { grid-template-columns: 1fr; }
  .rep-row:nth-child(even) .rep-media { order: 0; }
}

/* ---------- Труппа ---------- */

.troupe-rank {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  padding: clamp(40px, 5vw, 64px) 0 24px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(24px, 3vw, 40px);
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.troupe-rank .muted { font-family: var(--sans); font-style: normal; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; }

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 32px);
}
@media (max-width: 1023px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }

.person-card { display: block; }
/* 2:3 — родная пропорция портретов: фото занимает карточку целиком, без полей */
.person-card .ph { aspect-ratio: 2 / 3; transition: transform 0.7s var(--ease); }
.person-card .ph .ph-letter { font-size: clamp(48px, 6vw, 96px); }
.person-media { overflow: hidden; }
.person-card:hover .ph { transform: scale(1.03); }
.person-name {
  font-family: var(--serif);
  font-size: clamp(21px, 1.9vw, 28px);
  font-weight: 500;
  margin-top: 16px;
  line-height: 1.1;
  transition: color 0.4s var(--ease);
}
.person-card:hover .person-name { color: var(--crimson); }
.person-rank { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-top: 6px; }

/* Горизонтальная лента труппы на главной */
.people-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 22vw, 320px);
  gap: clamp(16px, 2vw, 32px);
  overflow-x: auto;
  padding-bottom: 18px;
  scrollbar-width: none;
}
.people-strip::-webkit-scrollbar { display: none; }

/* ---------- Страница постановки ---------- */

.perf-hero { padding-top: clamp(56px, 7vw, 110px); }
.perf-kicker { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; font-size: 16px; color: var(--ink-soft); }
.perf-kicker b { font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; color: var(--crimson); }
.perf-hero-media { margin-top: clamp(40px, 5vw, 72px); }
.perf-hero-media .ph { aspect-ratio: 16 / 9; }

/* Заглавные фото (герой страницы, обложка спектакля, карточки репертуара,
   портрет артиста): блок принимает пропорции самого кадра —
   никаких полей и чёрных полос */
.hero-media .frame,
.perf-hero-media .frame,
.rep-media .frame,
.artist-hero .frame { width: fit-content; max-width: 100%; margin-inline: auto; }
.rep-media .frame > a { display: block; }
.hero-media .ph.ph--img,
.perf-hero-media .ph.ph--img,
.rep-media .ph.ph--img,
.artist-hero .ph.ph--img { aspect-ratio: auto; width: auto; height: auto; background: none; }
.hero-media .ph.ph--img picture { display: contents; }
.hero-media .ph.ph--img img,
.perf-hero-media .ph.ph--img img,
.rep-media .ph.ph--img img,
.artist-hero .ph.ph--img img {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.anchor-nav {
  position: sticky;
  top: 76px;
  z-index: 50;
  background: rgba(246, 245, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
  margin-top: clamp(48px, 6vw, 88px);
}
.anchor-nav .wrap { display: flex; gap: clamp(20px, 3vw, 48px); overflow-x: auto; scrollbar-width: none; }
.anchor-nav .wrap::-webkit-scrollbar { display: none; }
.anchor-nav a {
  padding: 18px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.anchor-nav a:hover, .anchor-nav a.is-active { color: var(--ink); border-color: var(--crimson); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
}
@media (max-width: 1023px) { .about-grid { grid-template-columns: 1fr; } }

.team-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; margin-top: 36px; }
.team-item .t-pos { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.team-item .t-name { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-top: 4px; }

/* Галерея */
.gallery-scroller { position: relative; }
.gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 8px)); /* компенсация padding-bottom ленты */
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  z-index: 5;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(35, 36, 39, 0.14);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), opacity 0.35s var(--ease);
}
.gal-arrow--prev { left: 14px; }
.gal-arrow--next { right: 14px; }
.gal-arrow:hover:not(:disabled) { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.gal-arrow:disabled { opacity: 0; pointer-events: none; }
.gallery-scroller.no-nav .gal-arrow { display: none; }
@media (max-width: 1023px) {
  .gal-arrow { width: 44px; height: 44px; font-size: 16px; }
  .gal-arrow--prev { left: 8px; }
  .gal-arrow--next { right: 8px; }
}

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 36vw, 560px);
  gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }
/* Единый блок галереи 4:3 — тёмное паспарту, фото вписывается целиком без обрезки */
.gallery-strip .ph { aspect-ratio: 4 / 3; background: #1d1c1a; color: #f6f5f0; }
.gallery-strip .ph img { object-fit: contain; }
.gallery-strip .ph.ph--img { cursor: zoom-in; }

/* Лайтбокс: фото из галереи на весь экран */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 56px);
  background: rgba(22, 21, 19, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.lightbox .lb-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: #efece4;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}
.lightbox .lb-close:hover { opacity: 1; }
/* Видео постановки (файлы с нашего VPS и YouTube) */
.gal-video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #1d1c1a;
}

/* Составы по датам */
.cast-dates {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.cast-date-tab {
  text-align: left;
  padding: 16px 22px;
  border: 1px solid var(--hairline);
  min-width: 132px;
  transition: all 0.45s var(--ease);
}
.cast-date-tab .cd-num { font-family: var(--serif); font-size: 26px; line-height: 1; }
.cast-date-tab .cd-sub { font-size: 13px; letter-spacing: 0.08em; color: var(--ink-faint); margin-top: 6px; }
.cast-date-tab:hover { border-color: var(--ink); }
.cast-date-tab.is-active { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.cast-date-tab.is-active .cd-sub { color: rgba(246, 245, 240, 0.6); }

.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
}
@media (max-width: 1023px) { .cast-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cast-grid { grid-template-columns: 1fr; } }

.cast-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.cast-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.cast-card .cast-photo { width: 84px; height: 84px; flex: none; border-radius: 999px; overflow: hidden; position: relative; }
.cast-card .cast-photo .ph { border-radius: 999px; }
.cast-card .cast-photo .ph .ph-letter { font-size: 34px; }
.cast-role { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.cast-name { font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.1; margin-top: 4px; }

/* Краткое содержание */
.synopsis-item { border-bottom: 1px solid var(--hairline-soft); padding: clamp(24px, 3vw, 36px) 0; display: grid; grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr); gap: clamp(20px, 3vw, 64px); }
@media (max-width: 767px) { .synopsis-item { grid-template-columns: 1fr; } }
.synopsis-item h4 { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 34px); font-weight: 500; font-style: italic; }
.synopsis-item p { color: var(--ink-soft); }

/* Расписание на странице постановки — как у Большого */
.sched-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: clamp(20px, 3vw, 56px);
  align-items: center;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--hairline-soft);
}
@media (max-width: 767px) {
  .sched-item { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Страница артиста ---------- */

.artist-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  padding-top: clamp(56px, 7vw, 100px);
}
@media (max-width: 1023px) { .artist-hero { grid-template-columns: 1fr; } }
.artist-hero .ph { aspect-ratio: 3 / 4; }

/* Соцсети артиста */
.artist-socials {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.social-link {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease), background 0.35s var(--ease);
}
.social-link:hover { border-color: var(--ink); color: var(--canvas); background: var(--ink); }
.social-note {
  width: 100%;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-faint);
  margin-top: 4px;
}

.role-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.role-row .r-title { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); font-weight: 500; transition: color 0.4s var(--ease); }
.role-row:hover .r-title { color: var(--crimson); }
.role-row .r-role { font-size: 16px; color: var(--ink-soft); text-align: right; }

/* ---------- Тёмная секция (инвесторам / о театре) ---------- */

.dark-band {
  background: var(--night);
  color: #efece4;
  margin-top: var(--section);
  padding: var(--section) 0;
}
.dark-band .eyebrow { color: rgba(239, 236, 228, 0.55); }
.dark-band .lead { color: rgba(239, 236, 228, 0.72); }
.dark-band .hairline-list > div { border-color: rgba(239, 236, 228, 0.14); }

.hairline-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 28px);
}
.hairline-list .muted { font-family: var(--sans); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }

/* ---------- Цитаты прессы ---------- */

.press-quote {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.18;
  text-wrap: balance;
}
.press-src { margin-top: 22px; }

/* ---------- Футер ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  /* Отступ до футера даёт padding-bottom последней секции — свой margin не нужен */
  padding: clamp(56px, 7vw, 96px) 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 17px; color: var(--ink-soft); padding: 5px 0; transition: color 0.35s var(--ease); }
.footer-col a:hover { color: var(--crimson); }
.footer-brand { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; font-weight: 500; max-width: 12ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- Модальное окно (виджет кассы) ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(29, 28, 26, 0.55); backdrop-filter: blur(10px); }
.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  max-width: 560px;
  width: 100%;
  padding: clamp(32px, 4vw, 56px);
  transform: translateY(24px);
  transition: transform 0.55s var(--ease);
}
.modal.is-open .modal-card { transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; font-size: 22px; padding: 8px; color: var(--ink-faint); transition: color 0.3s; }
.modal-close:hover { color: var(--ink); }
.widget-slot {
  margin-top: 28px;
  border: 1px dashed var(--hairline);
  padding: 36px 28px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 15px;
  letter-spacing: 0.06em;
}

/* ---------- Появление при скролле ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(5px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft), filter 0.9s var(--ease-soft);
  transition-delay: var(--rd, 0ms);
  will-change: transform, opacity;
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Вспомогательное ---------- */

.tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
