/* ==========================================================================
   erkat.am — главная
   Палитра: чёрный фон, белый текст, акцент #DCAD76 (меню, ссылки, заголовки)
   Шрифты: Google Sans (текст, меню) + Noto Serif / Noto Serif Armenian (заголовки)
   ========================================================================== */

:root {
  --black: #000;
  --white: #fff;
  --gold: #DCAD76;
  --ash: rgba(255, 255, 255, .66);
  --faint: rgba(255, 255, 255, .4);
  --line: rgba(255, 255, 255, .14);
  --surface: rgba(255, 255, 255, .045);
  --gold-wash: rgba(220, 173, 118, .11);
  --r: 5px;           /* скругление кнопок, афиш и картинок (кроме слайдера) */
  --fw-strong: 600;   /* единая «жирная» толщина: заголовок hero и заголовки секций (шрифты подключены с 600) */

  --ff-text: "Google Sans", "Noto Sans Armenian", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-display: "Noto Serif", "Noto Serif Armenian", Georgia, "Times New Roman", serif;
  --ff-armenian: "Noto Serif Armenian", "Noto Serif", Georgia, serif;

  --ease: cubic-bezier(.2, .7, .15, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);

  --pad: clamp(20px, 4.4vw, 72px);
  --maxw: 1680px;
  --header-h: 84px;
  --page-top: calc(var(--header-h) + clamp(20px, 3vw, 44px));   /* отступ заголовка внутренней страницы от верха (эталон — страница спектакля) */
}

/* Для армянской версии заголовки набираются Noto Serif Armenian */
html[lang="hy"] { --ff-display: "Noto Serif Armenian", "Noto Serif", Georgia, serif; }

/* ---------- Reset / база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;   /* iOS Safari учитывает именно html: страницу нельзя растянуть/сдвинуть вбок, справа не появится пустое поле */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  scrollbar-color: var(--gold) #000;
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font: 400 17px/1.55 var(--ff-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="hy"] body { line-height: 1.62; }
html.has-intro:not(.is-ready) body { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 400;
  padding: 12px 18px; background: var(--gold); color: #000; font-weight: 500;
  transition: top .3s;
}
.skip:focus { top: 16px; }

/* ==========================================================================
   Media: картинка + плейсхолдер, пока файла нет
   ========================================================================== */
.media { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s var(--ease);
}
.media.is-loaded img { opacity: 1; }

.media__ph {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); background: rgba(255, 255, 255, .035);
  transition: opacity .6s, visibility .6s;
}
.media__ph::after {   /* мягкий бегущий блик, пока картинка грузится */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%);
  transform: translateX(-100%); animation: phShine 1.8s ease-in-out infinite;
}
@keyframes phShine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .media__ph::after { animation: none; } }
.media.is-loaded .media__ph { opacity: 0; visibility: hidden; }
.media__ph svg { width: clamp(26px, 22%, 72px); height: auto; aspect-ratio: 190 / 179; opacity: .22; fill: currentColor; }

/* ==========================================================================
   Интро: занавес
   ========================================================================== */
#curtain { position: fixed; inset: 0; z-index: 300; display: none; pointer-events: none; }
.has-intro #curtain { display: block; }
#curtain.is-done { display: none; }

.curtain__half {
  position: absolute; top: 0; bottom: 0; width: 50.2%;
  overflow: hidden; background: #000; will-change: transform;
  transition: transform 1.5s var(--ease-io);
  --mh: clamp(120px, 24vh, 200px);
}
.curtain__half--l { left: 0; }
.curtain__half--r { right: 0; }
.curtain__half::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,
    rgba(220, 173, 118, .06) 0 1px, transparent 1px 46px,
    rgba(255, 255, 255, .022) 46px 48px, transparent 48px 92px);
}
.curtain__mark {
  position: absolute; top: 50%;
  height: var(--mh); width: calc(var(--mh) * 190 / 179);
  color: var(--gold);
  transform: translateY(-50%);
  clip-path: inset(0 0 100% 0);
  animation: markIn 1.15s .25s var(--ease) forwards;
}
/* центр знака ровно на стыке половин: каждая половина показывает свою часть */
.curtain__half--l .curtain__mark { right: calc(var(--mh) * -.5307); }
.curtain__half--r .curtain__mark { left: calc(var(--mh) * -.5307); }
@keyframes markIn { to { clip-path: inset(0 0 0 0); } }

#curtain.is-open .curtain__half--l { transform: translateX(-101%); }
#curtain.is-open .curtain__half--r { transform: translateX(101%); }

/* ==========================================================================
   Шапка
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center; gap: clamp(14px, 1.4vw, 24px);
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: opacity 1s var(--ease) .35s, transform .6s var(--ease), background .5s, border-color .5s, backdrop-filter .5s;
}
.js .site-header { opacity: 0; }
.is-ready .site-header { opacity: 1; }
.site-header.is-solid {
  background: rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }

/* Логотип: знак + название */
.brand { --mh: 46px; display: inline-flex; align-items: center; gap: 14px; color: var(--gold); flex: none; }
.brand__mark { height: var(--mh); width: calc(var(--mh) * 1.0615); flex: none; }
.brand__name {
  display: flex; flex-direction: column; gap: 2px; line-height: 1.22; white-space: nowrap;
  font-family: var(--ff-display); font-weight: 400; font-size: 13.5px;
  letter-spacing: .02em;
}
.brand__l { display: block; }

/* Навигация */
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 1.5vw, 34px); }
.nav__item { position: relative; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 0; color: var(--gold); font-weight: 500; font-size: 15px; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease);
}
.nav__item:hover > .nav__link::after,
.nav__item:focus-within > .nav__link::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__caret { width: 9px; height: 6px; transition: transform .45s var(--ease); }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }

.nav__sub {
  position: absolute; top: 100%; left: -20px; min-width: 270px; padding: 10px 0;
  background: rgba(0, 0, 0, .94);
  border: 1px solid var(--line); border-top-color: var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .35s, transform .5s var(--ease), visibility .35s;
}
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a {
  display: block; padding: 11px 22px; font-size: 15px; color: var(--white); white-space: nowrap;
  transition: color .3s, background .3s, padding .45s var(--ease);
}
.nav__sub a:hover, .nav__sub a:focus-visible { color: var(--gold); background: var(--gold-wash); padding-left: 30px; }

/* Переключатель языка */
.lang { display: flex; align-items: center; gap: 2px; margin-left: clamp(8px, 1.4vw, 28px); }
.lang a {
  position: relative; display: inline-block; padding: 9px 9px; font-size: 13px; font-weight: 500; letter-spacing: .06em;
  color: var(--ash); transition: color .3s;
}
.lang a:hover { color: var(--white); }
.lang a[aria-current="true"] { color: var(--gold); }
.lang a::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .45s var(--ease);
}
.lang a[aria-current="true"]::after { transform: scaleX(1); }

/* Правая часть шапки: «Поддержка» + язык. Обе рамки одной высоты (--ctl-h) */
.site-header { --ctl-h: 42px; }
.hdr-tools { display: flex; align-items: center; gap: 10px; margin-left: clamp(10px, 1.2vw, 28px); flex: none; }

/* Кнопка «Поддержка»: поведение как у .btn (заливка снизу вверх + инверсия), по наведению — выпадающее меню */
.sup { position: relative; }
.sup__btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px; height: var(--ctl-h); padding: 0 14px;
  border: 1px solid var(--gold); border-radius: var(--r); color: var(--gold);
  font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.sup__btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease);
}
.sup:hover .sup__btn, .sup:focus-within .sup__btn, .sup.is-open .sup__btn { color: #000; }
.sup:hover .sup__btn::before, .sup:focus-within .sup__btn::before, .sup.is-open .sup__btn::before { transform: scaleY(1); }
.sup:hover .nav__caret, .sup:focus-within .nav__caret, .sup.is-open .nav__caret { transform: rotate(180deg); }
.sup__heart { width: 16px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; transition: fill .45s var(--ease), transform .45s var(--ease); }
.sup:hover .sup__heart, .sup:focus-within .sup__heart, .sup.is-open .sup__heart { fill: currentColor; animation: heartbeat 1.1s var(--ease) .1s; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 22% { transform: scale(1.22); } 40% { transform: scale(.96); } 58% { transform: scale(1.12); } }
.sup__sub { left: auto; right: 0; top: calc(100% + 6px); min-width: 250px; border-radius: var(--r); }
.sup__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }   /* мостик: меню не закрывается, пока мышь едет от кнопки */
.sup:hover .sup__sub, .sup:focus-within .sup__sub, .sup.is-open .sup__sub { opacity: 1; visibility: visible; transform: none; }

/* Язык: рамка свёрнута до текущего языка, по наведению остальные раскрываются вниз */
.lang-dd { position: relative; width: 64px; height: var(--ctl-h); --row: calc(var(--ctl-h) - 2px); }
.lang-dd__box {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: var(--ctl-h); overflow: hidden;
  border: 1px solid var(--gold); border-radius: var(--r); background: transparent;
  transition: height .5s var(--ease), background .35s, box-shadow .5s;
}
.lang-dd:hover .lang-dd__box, .lang-dd:focus-within .lang-dd__box, .lang-dd.is-open .lang-dd__box {
  height: calc(var(--row) * 3 + 2px); background: rgba(0, 0, 0, .94); box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.lang-dd__cur, .lang-dd__box a {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: var(--row);
  font-size: 14px; font-weight: 500; letter-spacing: .08em; color: var(--gold);
  transition: color .3s, background .3s;
}
.lang-dd__box a { color: var(--ash); }
.lang-dd__box a:hover, .lang-dd__box a:focus-visible { color: var(--gold); background: var(--gold-wash); }
.lang-dd:hover .nav__caret, .lang-dd:focus-within .nav__caret, .lang-dd.is-open .nav__caret { transform: rotate(180deg); }

/* Чуть компактнее на средних экранах, чтобы меню + «Поддержка» + язык помещались и на армянском (там пункты длиннее) */
@media (max-width: 1600px) {
  .nav__link { font-size: 14px; }
  .brand__name { font-size: 12.5px; }
  .sup__btn { font-size: 14px; }
}

/* Бургер — три линии, как в знаке */
.burger { display: none; width: 44px; height: 44px; position: relative; flex: none; color: var(--gold); }
.burger span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: currentColor;
  transition: transform .5s var(--ease), opacity .3s, top .5s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Мобильное меню */
.drawer {
  position: fixed; inset: 0; z-index: 80; background: #000;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--pad) 28px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.drawer.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__item > a {
  display: block; padding: 8px 0;
  font-family: var(--ff-display); font-weight: 300; font-size: clamp(1.9rem, 8vw, 3rem); line-height: 1.12; color: var(--gold);
}
.drawer__sub { display: flex; flex-direction: column; margin: 0 0 8px 2px; }
.drawer__sub a { padding: 5px 0 5px 16px; border-left: 1px solid var(--line); font-size: 16px; color: var(--ash); }
.drawer__item, .drawer__foot { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.drawer.is-open .drawer__item, .drawer.is-open .drawer__foot { opacity: 1; transform: none; transition-delay: calc(.35s + var(--i, 0) * .06s); }
.drawer__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; margin-top: 24px; border-top: 1px solid var(--line); }
.drawer .lang--drawer { margin-left: -9px; }   /* специфичнее, чем .lang { margin-left:auto } из медиазапроса */
.drawer__tel { color: var(--gold); font-weight: 500; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  overflow: hidden; isolation: isolate; background: #000;
}
.hero__slides { position: absolute; inset: -5% 0; z-index: -4; will-change: transform; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide .media { position: absolute; inset: 0; border-radius: 0; }   /* слайдер без скруглений */
.hero__slide.is-active img { animation: kenburns 8s var(--ease) both; }
@keyframes kenburns {
  from { transform: scale(1.14) translate3d(1.4%, .8%, 0); }
  to   { transform: scale(1) translate3d(0, 0, 0); }
}
/* плейсхолдер в hero — спокойный, с крупным знаком */
.hero .media__ph { align-items: flex-end; justify-content: flex-start; text-align: right; padding: calc(var(--header-h) + 22px) var(--pad); }
.hero .media__ph svg { position: absolute; left: 50%; top: 42%; width: clamp(110px, 16vw, 230px); opacity: .08; transform: translate(-50%, -50%); }
.hero .media__ph b { font-size: 13px; }

.hero__shade {
  position: absolute; inset: 0; z-index: -3;
  /* почти ровная вуаль (≈55–65%), в пятне прожектора за курсором — заметно светлее */
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 38%),
    rgba(0, 0, 0, .06) 0, rgba(0, 0, 0, .22) 16%, rgba(0, 0, 0, .52) 40%, rgba(0, 0, 0, .64) 75%);
}
.hero__shade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4%; background: linear-gradient(180deg, transparent, #000); }   /* узкий стык с чёрным блоком ниже */
/* «луч прожектора»: вокруг курсора светлее, по краям темнее */
.hero__light {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; mix-blend-mode: screen;
  /* тёплое свечение в центре пятна */
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 38%),
    rgba(255, 224, 176, .22) 0, rgba(255, 224, 176, .10) 14%, rgba(255, 224, 176, 0) 34%);
}
.hero__grain {
  position: absolute; inset: -60%; z-index: -1; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-3%, 4%); } 33% { transform: translate(4%, -2%); }
  50% { transform: translate(-2%, -4%); } 67% { transform: translate(3%, 3%); } 83% { transform: translate(-4%, 1%); } 100% { transform: translate(0, 0); }
}

.hero__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;   /* текстовый блок прижат к низу слайдера */
  padding: calc(var(--header-h) + 24px) var(--pad) calc(clamp(28px, 5.5vh, 60px) + clamp(18px, 4vh, 40px));   /* текст приподнят над нижним краем */
}
.hero__caps { display: grid; pointer-events: none; }
.hero__cap { grid-area: 1 / 1; align-self: end; max-width: 65%; margin: 0; }   /* текст не шире 65% экрана, до счётчика слайдов не доходит */
.hero__title {
  font-family: var(--ff-display); font-weight: var(--fw-strong); color: var(--gold);
  font-size: clamp(1.35rem, 3.2vw, 2.85rem); line-height: 1.18; letter-spacing: 0; text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .45);
}
html[lang="hy"] .hero__title { letter-spacing: .02em; }
/* текст слайда появляется вместе со слайдом: строки по очереди поднимаются и проявляются */
.hero__cap .l {
  display: block; width: fit-content; max-width: 100%; color: inherit;
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.hero__cap.is-active .l {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease) calc(.4s + var(--i) * .14s), transform 1.3s var(--ease) calc(.4s + var(--i) * .14s), color .3s;
}
.hero__cap.is-active a.l { pointer-events: auto; }
.hero__cap a.l:hover, .hero__cap a.l:focus-visible { color: var(--white); }

.hero__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(28px, 5.5vh, 60px);
  display: flex; align-items: flex-end; justify-content: flex-end;
}

.js [data-hero] { opacity: 0; transform: translate3d(0, 18px, 0); }
.is-ready [data-hero] {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease) var(--d, .2s), transform 1.2s var(--ease) var(--d, .2s);
}

.hero__ctrl { display: flex; align-items: center; gap: 22px; }
.hero__count { font-family: var(--ff-display); font-size: 15px; color: var(--ash); }
.hero__count b { font-weight: 400; color: var(--white); font-size: 22px; }
.hero__bars { display: flex; gap: 8px; }
.hero__bar { position: relative; width: clamp(30px, 4.4vw, 60px); height: 26px; }
.hero__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(255, 255, 255, .28); }
.hero__bar i {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
}
.hero__bar.is-active i { animation: barFill var(--slide-ms, 6500ms) linear forwards; }
.hero__bar.is-done i { transform: scaleX(1); }
@keyframes barFill { to { transform: scaleX(1); } }

.hero__cue {
  position: absolute; right: var(--pad); top: 50%; width: 1px; height: 90px; margin-top: -45px;
  background: rgba(255, 255, 255, .22); overflow: hidden;
}
.hero__cue i { position: absolute; left: 0; top: 0; width: 1px; height: 36px; background: var(--gold); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { from { transform: translateY(-40px); } to { transform: translateY(100px); } }

/* ==========================================================================
   Кнопка и ссылка-линия
   ========================================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 32px; border: 1px solid var(--gold); color: var(--gold);
  font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease); border-radius: var(--r);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease);
}
.btn:hover, .btn:focus-visible { color: #000; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--solid { background: var(--gold); color: #000; }
.btn--solid::before { background: #000; }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--gold); }

.more { display: inline-flex; align-items: center; gap: 16px; padding: 6px 0; color: var(--gold); font-weight: 500; font-size: 15px; }
.more { flex: none; }
/* линия растёт через transform: ширина блока не меняется, поэтому заголовок рядом не перестраивается (раньше в hy это давало мерцание) */
.more__line { display: block; width: 74px; height: 1px; background: currentColor; transform: scaleX(.4054); transform-origin: left center; transition: transform .7s var(--ease); }
.more:hover .more__line, .more:focus-visible .more__line { transform: scaleX(1); }

/* ==========================================================================
   Reveal (появление)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Маска-«шторка» для заголовков. Запас снизу (.34em) нужен для выносных элементов (особенно армянских ց, յ, ր),
   а после окончания анимации main.js добавляет .mask-done и маска снимается совсем. */
.js [data-reveal="mask"] { opacity: 1; transform: none; overflow: hidden; padding: .08em 0 .34em; margin: -.08em 0 -.34em; }
.js [data-reveal="mask"] > .mask-in { display: block; transform: translateY(140%); transition: transform 1.25s var(--ease) var(--d, 0s); }
.js [data-reveal="mask"].is-in > .mask-in { transform: none; }
.js [data-reveal="mask"].mask-done { overflow: visible; }

.js [data-reveal="curtain"] { opacity: 1; transform: none; clip-path: inset(0 50% 0 50%); transition: clip-path 1.5s var(--ease-io) var(--d, 0s); }
.js [data-reveal="curtain"].is-in { clip-path: inset(0 0 0 0); }

.js [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) var(--d, 0s); }
.js [data-reveal="line"].is-in { transform: scaleX(1); }

/* ==========================================================================
   Секции: общее
   ========================================================================== */
.up, .prem, .give {
  padding: clamp(72px, 10.5vw, 160px) var(--pad) 0;
  max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto;
}
.up { position: relative; isolation: isolate; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4.4vw, 60px); }
.sec-title {
  flex: 1 1 0; min-width: 0;
  font-family: var(--ff-display); font-weight: var(--fw-strong); color: var(--gold);
  font-size: clamp(1.7rem, 4vw, 3.3rem); line-height: 1.1; letter-spacing: 0; text-wrap: balance;
}

/* ==========================================================================
   Ближайшие спектакли
   ========================================================================== */
.up-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 80px); align-items: start; }

/* Календарь */
.cal { padding: clamp(16px, 1.8vw, 24px); border: 1px solid var(--line); background: var(--surface); }
.cal__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.cal__nav { display: flex; align-items: center; gap: 6px; }
.cal__nav b { min-width: 3.4em; text-align: center; font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: 1.12rem; color: var(--gold); line-height: 1.2; }
.cal__nav:first-child b { min-width: 6.6em; }
.cal__nav button {
  width: 30px; height: 30px; display: grid; place-items: center; color: var(--gold);
  border: 1px solid rgba(220, 173, 118, .4); border-radius: 50%; transition: background .35s, color .35s, opacity .3s;
}
.cal__nav button svg { width: 10px; height: 10px; }
.cal__nav button:hover:not(:disabled), .cal__nav button:focus-visible { background: var(--gold); color: #000; }
.cal__nav button:disabled { opacity: .25; cursor: default; }
.cal__wd, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__wd { margin-bottom: 6px; }
.cal__wd span { text-align: center; font-size: 12px; color: var(--faint); letter-spacing: .04em; padding: 4px 0; }
.cal__grid { gap: 4px; animation: calIn .5s var(--ease) both; }
.cal__d {
  position: relative; aspect-ratio: 1 / .92; display: grid; place-items: center;
  font-size: 15px; color: var(--white); border-radius: 2px; transition: background .3s, color .3s;
}
.cal__d--pad { pointer-events: none; }
.cal__d.has::after { content: ""; position: absolute; left: 50%; bottom: 17%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gold); }
.cal__d.is-today { box-shadow: inset 0 0 0 1px rgba(220, 173, 118, .6); }
.cal__d:hover:not(:disabled):not(.is-sel), .cal__d:focus-visible { background: var(--gold-wash); }
.cal__d.is-sel { background: var(--gold); color: #000; font-weight: 500; }
.cal__d.is-sel.has::after { background: #000; }
.cal__d:disabled { color: rgba(255, 255, 255, .22); cursor: default; }
.cal__legend { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ash); }
.cal__legend i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@keyframes calIn { from { opacity: 0; transform: translateY(8px); } }

/* Список ближайших 5 */
.up-side { min-width: 0; }
.up-from { margin-bottom: 12px; font-size: 14px; color: var(--ash); letter-spacing: .02em; }
.up-list { border-top: 1px solid var(--line); }
.up-empty { padding: 28px 0; color: var(--ash); }
.up-row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  grid-template-columns: clamp(62px, 5.4vw, 80px) clamp(84px, 7.4vw, 112px) minmax(0, 1fr) auto;
  gap: clamp(10px, 1.6vw, 24px);
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}
.up-list.is-in .up-row { animation: rowIn .8s var(--ease) both; animation-delay: calc(var(--i, 0) * .07s); }
@keyframes rowIn { from { opacity: 0; transform: translateY(16px); } }
.up-date { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.up-date b { font-family: var(--ff-display); font-weight: 300; font-size: clamp(1.9rem, 2.8vw, 2.5rem); color: var(--gold); }
.up-date span, .up-when span { font-size: 13px; line-height: 1.3; color: var(--ash); }
.up-when { display: flex; flex-direction: column; gap: 3px; }
.up-when span:last-child { color: var(--white); font-weight: 500; }
.up-title { font-family: var(--ff-display); font-weight: 400; font-size: clamp(.98rem, 1.3vw, 1.2rem); line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.up-title a { display: inline-block; color: var(--white); transition: color .4s, transform .7s var(--ease); }
.up-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* вся строка кликабельна */
.up-row:hover .up-title a { color: var(--gold); transform: translateX(8px); }
.up-actions { position: relative; z-index: 2; display: flex; gap: 8px; }
.up-actions .btn--sm { padding: 8px 14px; font-size: 13px; }

/* Фоновая анимация секции: лучи софитов. Играет всегда, в том числе при наведении курсора */
.up__fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; transition: opacity 1.2s ease; }
.beam {
  position: absolute; top: -6%; left: var(--x); width: min(92vw, 1100px); height: 130%; margin-left: calc(min(92vw, 1100px) / -2);
  background: conic-gradient(from 164deg at 50% 0, transparent 0deg, rgba(220, 173, 118, .17) 16deg, transparent 32deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 85%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 85%);
  transform-origin: 50% 0; transform: rotate(var(--a0));
  animation: beamSweep var(--t) ease-in-out var(--dl, 0s) infinite alternate;
}
.beam--a { --x: 18%; --a0: -20deg; --a1: 12deg; --t: 13s; }
.beam--b { --x: 82%; --a0: 18deg; --a1: -12deg; --t: 17s; --dl: -6s; }
.beam--c { --x: 50%; --a0: 7deg; --a1: -8deg; --t: 23s; --dl: -11s; opacity: .55; }
.up__fx.is-off .beam { animation-play-state: paused; }
@keyframes beamSweep { to { transform: rotate(var(--a1)); } }

/* ==========================================================================
   Премьеры
   ========================================================================== */
.prem__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 40px); align-items: start; }
.prem__wrap { position: relative; }
.prem__swipe { display: none; }
.poster { display: block; }
.poster:nth-child(even) { margin-top: clamp(40px, 6.4vw, 104px); }
.poster__tilt { perspective: 1100px; }
.poster__rot { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); transform-style: preserve-3d; }
.poster__frame { position: relative; aspect-ratio: 729 / 937; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.poster__frame .media { position: absolute; inset: 0; }
.poster__frame img { transition: transform 1.3s var(--ease), opacity .9s var(--ease); }
.poster:hover .poster__frame img { transform: scale(1.07); }
.poster__frame::after {
  content: ""; position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  border: 1px solid var(--gold); opacity: 0; clip-path: inset(0 100% 0 0);
  transition: opacity .35s, clip-path 1s var(--ease);
}
.poster:hover .poster__frame::after, .poster:focus-visible .poster__frame::after { opacity: 1; clip-path: inset(0); }
.poster__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 20px; }
.poster__title { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.15rem, 1.7vw, 1.65rem); line-height: 1.2; color: var(--white); transition: color .4s; }
.poster:hover .poster__title { color: var(--gold); }
.poster .more { padding: 0; }
.poster:hover .more__line { transform: scaleX(1); }

/* ==========================================================================
   Плитки разделов
   ========================================================================== */
.gate { padding: clamp(72px, 10vw, 150px) var(--pad) clamp(56px, 7vw, 110px); max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; }
.gate__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(190px, 21vw, 320px); gap: clamp(10px, 1.2vw, 18px); }
.tile { position: relative; overflow: hidden; border-radius: var(--r); display: block; isolation: isolate; background: var(--surface); }
.tile .media { position: absolute; inset: 0; }
.tile .media__ph { justify-content: center; }
.tile .media__ph svg { margin-bottom: 4px; }
.tile .media img { transition: transform 1.4s var(--ease), opacity .9s var(--ease); }
.tile:hover .media img { transform: scale(1.06); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .78) 100%);
  transition: opacity .6s;
}
.tile::after {
  content: ""; position: absolute; left: clamp(20px, 2.4vw, 36px); right: clamp(20px, 2.4vw, 36px); bottom: clamp(18px, 2.2vw, 32px);
  height: 1px; background: var(--gold); z-index: 2; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.tile:hover::after, .tile:focus-visible::after { transform: scaleX(1); }
.tile__label {
  position: absolute; left: clamp(20px, 2.4vw, 36px); bottom: clamp(30px, 3.4vw, 50px); z-index: 2; max-width: 80%;
  font-family: var(--ff-display); font-weight: 300; font-size: clamp(1.5rem, 2.8vw, 2.7rem); line-height: 1.1; color: var(--gold);
  transition: transform .9s var(--ease);
}
.tile:hover .tile__label { transform: translateY(-6px); }
.tile--ara { grid-column: 1 / 6; grid-row: 1 / 3; }
.tile--troupe { grid-column: 6 / 13; grid-row: 1 / 2; }
.tile--history { grid-column: 6 / 9; grid-row: 2 / 3; }
.tile--shows { grid-column: 9 / 13; grid-row: 2 / 3; }

/* ==========================================================================
   Подарочные карты
   ========================================================================== */
.give__panel {
  position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); align-items: center;
  gap: clamp(24px, 3.6vw, 60px);   /* без рамки и внутренних отступов: блок встаёт в сетку страницы */
}
.give__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.give__title { font-family: var(--ff-display); font-weight: var(--fw-strong); color: var(--gold); font-size: clamp(1.7rem, 3.2vw, 2.8rem); line-height: 1.12; text-wrap: balance; }
.give__lead { font-family: var(--ff-text); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.5; color: var(--ash); max-width: 26em; }
.give__text-p { color: var(--ash); max-width: 34em; font-size: 16px; }
.give__note { font-family: var(--ff-display); font-style: italic; color: var(--gold); max-width: 30em; font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.45; }
.give__text .btn { margin-top: 8px; }

/* Карусель карт */
.gc { position: relative; isolation: isolate; min-width: 0; outline-offset: 8px; }
.gc::before { content: ""; position: absolute; inset: -25% 0; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(220, 173, 118, .14), transparent); }   /* мягкое свечение за каруселью, без резких краёв */
.gc__stage {
  position: relative; height: clamp(200px, 24vw, 350px); perspective: 1500px; overflow: hidden; touch-action: pan-y; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.gc__card {
  position: absolute; top: 12%; left: 50%; height: 76%; aspect-ratio: 1.6; z-index: calc(10 - var(--a, 0)); cursor: pointer;
  transform: translateX(-50%) translateX(calc(var(--o, 0) * 78%)) translateZ(calc(var(--a, 0) * -120px)) rotateY(calc(var(--o, 0) * -15deg)) scale(calc(1 - var(--a, 0) * .07));
  filter: brightness(calc(1 - var(--a, 0) * .4));
  transition: transform 1s var(--ease), filter 1s var(--ease), opacity .6s;
}
.gc__card.is-c { cursor: default; }
.gc__card.is-far { opacity: 0; pointer-events: none; }
.gc__card .media { position: absolute; inset: 0; border-radius: var(--r); background: #15110c; border: 1px solid rgba(220, 173, 118, .4); box-shadow: 0 24px 50px rgba(0, 0, 0, .55); transition: box-shadow 1s var(--ease), border-color 1s; }
.gc__card.is-c .media { border-color: rgba(220, 173, 118, .85); box-shadow: 0 24px 56px rgba(0, 0, 0, .6), 0 0 70px rgba(220, 173, 118, .2); }
.gc__bar { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 36px); margin-top: 18px; }
.gc__arrow { width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: var(--gold); border: 1px solid rgba(220, 173, 118, .5); border-radius: 50%; transition: background .35s, color .35s; }
.gc__arrow svg { width: 12px; height: 12px; }
.gc__arrow:hover, .gc__arrow:focus-visible { background: var(--gold); color: #000; }
.gc__meta { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 9em; }
.gc__meta b { font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: clamp(1.25rem, 2vw, 1.7rem); color: var(--gold); line-height: 1.1; }
.gc__meta b.swap { animation: lblIn .7s var(--ease) both; }
@keyframes lblIn { from { opacity: 0; transform: translateY(8px); } }
.gc__dots { display: flex; gap: 2px; }
.gc__dots button { width: 22px; height: 22px; display: grid; place-items: center; }
.gc__dots button::after { content: ""; width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .3); transition: width .5s var(--ease), background .4s; }
.gc__dots button.is-on::after { width: 22px; background: var(--gold); }

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer {
  position: relative; overflow: hidden; border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 104px) var(--pad) 30px;
}
.f-mark {
  position: absolute; right: -4%; bottom: -14%; z-index: 0; pointer-events: none;
  height: 78%; width: calc(78% * 1.0615); color: var(--gold); opacity: .05;
  transform: translate3d(0, var(--py, 0px), 0);
}
.site-footer > *:not(.f-mark) { position: relative; z-index: 1; }

.f-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.f-col h3 { margin-bottom: 18px; font-family: var(--ff-text); font-weight: 500; font-size: 14px; color: var(--gold); }
.f-col ul { display: flex; flex-direction: column; gap: 10px; }
.f-link {
  display: inline-block; position: relative; padding: 2px 0; color: var(--white); font-size: 16px;
  transition: color .35s;
}
.f-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease); }
.f-link:hover, .f-link:focus-visible { color: var(--gold); }
.f-link:hover::after, .f-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.f-handle { color: var(--ash); margin-left: 4px; transition: color .35s; }
.f-link:hover .f-handle { color: var(--gold); }
.f-col--end { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 28px; }
.f-col--end .lang { margin-left: -9px; }
/* 4 колонки подвала (>1000px): последняя прижата к правому краю; при перестройке — снова влево */
@media (min-width: 1001px) { .f-col--end { align-items: flex-end; } .f-col--end .lang { margin-left: 0; margin-right: -9px; } }

.totop { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font-weight: 500; font-size: 15px; padding: 6px 0; }
.totop svg { width: 12px; height: 17px; transition: transform .6s var(--ease); }
.totop:hover svg { transform: translateY(-6px); }

.f-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: clamp(48px, 6vw, 90px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ash); }

/* ==========================================================================
   Превью афиши за курсором
   ========================================================================== */
.peek { position: fixed; left: 0; top: 0; z-index: 70; width: clamp(180px, 16vw, 260px); pointer-events: none; opacity: 0; transition: opacity .35s; will-change: transform; }
.peek.is-on { opacity: 1; }
.peek__frame {
  position: relative; aspect-ratio: 729 / 937; border: 1px solid var(--gold); background: #000; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
  transform: scale(.9) rotate(var(--rot, 0deg)); transition: transform .55s var(--ease);
}
.peek.is-on .peek__frame { transform: scale(1) rotate(var(--rot, 0deg)); }
.peek__frame .media { position: absolute; inset: 0; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr-tools { margin-left: auto; }
  .site-header { gap: 12px; }
}
/* Тот же компактный вид, но по факту нехватки места (армянские пункты длиннее) — включает main.js */
.site-header.is-compact .nav { display: none; }
.site-header.is-compact .burger { display: block; }
.site-header.is-compact .hdr-tools { margin-left: auto; }
.site-header.is-compact { gap: 12px; }

@media (max-width: 1000px) {
  .up-grid { grid-template-columns: 1fr; }
  .cal { max-width: 520px; }
  .give__panel { grid-template-columns: 1fr; }
  .gc__stage { height: clamp(190px, 46vw, 320px); }
  .prem__grid { grid-template-columns: repeat(2, 1fr); row-gap: clamp(28px, 5vw, 48px); }
  .poster:nth-child(even) { margin-top: clamp(32px, 7vw, 72px); }
  .f-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .gate__grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(180px, 34vw, 300px); }
  .tile--ara { grid-column: 1 / 4; grid-row: 1 / 3; }
  .tile--troupe { grid-column: 4 / 7; grid-row: 1 / 2; }
  .tile--history { grid-column: 4 / 7; grid-row: 2 / 3; }
  .tile--shows { grid-column: 1 / 7; grid-row: 3 / 4; }
}

@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .site-header .hdr-tools { display: none; }
  .burger { margin-left: auto; }
  .brand { --mh: 38px; gap: 10px; }
  .brand__name { font-size: 11.5px; letter-spacing: .01em; }

  .hero__foot { justify-content: flex-start; }
  .hero__inner { padding-bottom: calc(clamp(28px, 5.5vh, 60px) + 72px); }
  .hero__cap { max-width: 100%; }   /* на мобильном счётчик слева внизу: текст поднимаем над ним */
  .hero__cue { display: none; }

  .cal { max-width: none; }
  .up-row { grid-template-columns: auto 1fr; grid-template-areas: "date when" "title title" "actions actions"; row-gap: 10px; padding: 14px 6px; }
  .up-date { grid-area: date; flex-direction: row; align-items: baseline; gap: 8px; }
  .up-when { grid-area: when; flex-direction: row; gap: 10px; }
  .up-title { grid-area: title; }
  .up-actions { grid-area: actions; }
  .up-actions .btn { flex: 1 1 0; padding-block: 11px; }
  .up-row:hover .up-title a { transform: none; }

  .prem__grid {
    display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); padding-bottom: 8px; scrollbar-width: none;
  }
  .prem__grid::-webkit-scrollbar { display: none; }
  .prem__grid { overscroll-behavior-x: contain; scroll-padding-inline: var(--pad); }   /* первая афиша встаёт на отступ, а не вплотную к краю */
  /* подсказка «листайте»: палец тянет ленту влево (движение задаёт main.js через --k и --o) */
  .prem__swipe { display: block; position: absolute; z-index: 3; left: 0; top: 34%; width: 100%; height: 0; pointer-events: none; opacity: var(--o, 0); }
  .prem__swipe svg {
    position: absolute; left: 66%; top: 0; width: 54px; height: 58px; margin: -8px 0 0 -22px; overflow: visible;
    transform: translateX(calc(var(--k, 0) * -30vw)) scale(calc(1 - var(--p, 0) * .08));
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6));
  }
  .prem__swipe path { fill: var(--gold); stroke: #000; stroke-width: .9; stroke-linejoin: round; }
  .prem__swipe .ring { fill: rgba(220, 173, 118, .28); stroke: var(--gold); stroke-width: .6; opacity: var(--p, 0); transform-origin: 10.5px 5px; transform: scale(calc(.6 + var(--p, 0) * .9)); }
  .poster { flex: 0 0 72vw; scroll-snap-align: start; }
  .poster:nth-child(even) { margin-top: 0; }

  .gate__grid { grid-template-columns: 1fr; grid-auto-rows: 56vw; }
  .tile--ara, .tile--troupe, .tile--history, .tile--shows { grid-column: 1; grid-row: auto; }
  .tile--ara { grid-row: span 2; }
  .f-grid { grid-template-columns: 1fr; }
  .f-mark { height: 52%; right: -22%; }
}

@media (max-width: 560px) {
  .sec-head { flex-wrap: wrap; row-gap: 14px; }
  .sec-head .sec-title { flex: 1 1 100%; }
}
@media (max-width: 440px) {
  .up-actions .btn { padding-inline: 10px; }
  .give__text .btn { width: 100%; }
  .gc__meta { min-width: 7em; }
}

/* Только мышь: курсорные эффекты. На тач-устройствах превью не нужно */
@media (pointer: coarse) { .peek { display: none; } }

/* ==========================================================================
   Уважение к prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-hero], .js .site-header, .hero__cap.is-active .l { opacity: 1; transform: none; clip-path: none; }
  .hero__grain, .up__fx { display: none; }
}

/* ==========================================================================
   Внутренние страницы (пока без собственной вёрстки): общий каркас + простой текст
   ========================================================================== */
body.is-inner main { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px)); min-height: 60vh; }
.page-skel { max-width: 960px; margin: 0 auto; padding: 0 var(--pad) clamp(48px, 7vw, 96px); }
.page-skel h1, .page-skel h2 { font-family: var(--ff-display); font-weight: var(--fw-strong); color: var(--gold); line-height: 1.15; margin: 0 0 .6em; }
.page-skel h1 { font-size: clamp(1.7rem, 4vw, 3rem); }
.page-skel h2 { font-size: clamp(1.25rem, 2.2vw, 1.8rem); margin-top: 1.6em; }
.page-skel p, .page-skel li, .page-skel div { color: var(--ash); }
.page-skel a { color: var(--gold); }
.page-skel ul { padding-left: 1.2em; list-style: disc; }
.page-skel img { max-width: 100%; border-radius: var(--r); }
.page-skel .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.page-skel .card { display: block; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--white); }
.page-skel .card img { margin-bottom: 8px; }

/* ==========================================================================
   Страница спектакля
   ========================================================================== */
body.is-show main, body.is-support main, body.is-calendar main, body.is-shows main, body.is-troupe main, body.is-about main, body.is-notfound main { padding-top: 0; min-height: 0; }
.sh { overflow-x: clip; }

/* ---------- Шапка ---------- */
.sh-hero { position: relative; isolation: isolate; padding: var(--page-top) var(--pad) clamp(48px, 7vw, 104px); }
.sh-hero__bg { position: absolute; inset: -80px -6% 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sh-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(64px) saturate(1.3); transform: scale(1.3); opacity: .45; }
.sh-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .55) 55%, #000 98%); }
.sh-hero--np::before { content: ""; position: absolute; inset: -80px 0 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 70% 30%, var(--gold-wash), transparent 70%); }
.sh-hero__in { max-width: var(--maxw); margin-inline: auto; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: clamp(24px, 3.4vw, 52px); font-size: 13px; letter-spacing: .02em; color: var(--faint); }
.crumbs a { color: var(--ash); transition: color .3s; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--gold); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs span { min-width: 0; max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); }

.sh-hero__grid { display: grid; grid-template-columns: minmax(260px, 30%) minmax(0, 1fr); gap: clamp(28px, 5.4vw, 96px); align-items: start; }
.sh-hero--np .sh-hero__grid { grid-template-columns: minmax(0, 1fr); max-width: 980px; }

.sh-poster { max-width: 520px; }
.sh-poster__frame {
  position: relative; aspect-ratio: 729 / 937; overflow: hidden; border-radius: var(--r); background: var(--surface);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .08);
}
.sh-poster__frame .media { position: absolute; inset: 0; border-radius: 0; }
.sh-badge {
  position: absolute; left: 14px; top: 14px; z-index: 3; padding: 6px 12px; border-radius: var(--r);
  background: var(--gold); color: #000; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

.sh-genre { margin-bottom: 18px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.sh-title { font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: clamp(2.1rem, 5.4vw, 4.9rem); line-height: 1.06; text-wrap: balance; overflow-wrap: break-word; }
.sh-short { max-width: 60ch; margin-top: clamp(20px, 2vw, 30px); font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.65; color: var(--ash); }

.sh-facts { display: flex; flex-direction: column; gap: 22px; margin: clamp(26px, 3vw, 44px) 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.sh-facts__row { display: flex; flex-wrap: wrap; gap: 18px clamp(24px, 3.2vw, 52px); }
.sh-fact { min-width: 0; }
.sh-fact dt { margin-bottom: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.sh-fact dd { margin: 0; font-family: var(--ff-display); font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.25; color: var(--white); }
.sh-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3vw, 44px); }
.sh-play { gap: 12px; }
.sh-play svg { width: 11px; height: 13px; }

/* ---------- Секции ---------- */
.sh-sec { max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; padding: clamp(56px, 8vw, 128px) var(--pad) 0; }
.sh-sessions { padding-top: clamp(16px, 2vw, 32px); }
.sh-end { height: clamp(72px, 10vw, 150px); }

/* Ближайшие показы */
.ss-list { border-top: 1px solid var(--line); }
.ss-row {
  display: grid; align-items: center; gap: clamp(12px, 2vw, 32px); padding: 18px 10px;
  grid-template-columns: clamp(72px, 7vw, 110px) minmax(120px, 200px) minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line); transition: background .4s;
}
.ss-row:hover { background: var(--gold-wash); }
.ss-date { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.ss-date b { font-family: var(--ff-display); font-weight: 300; font-size: clamp(2rem, 3vw, 2.8rem); color: var(--gold); }
.ss-date span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); }
.ss-when { display: flex; flex-direction: column; gap: 3px; }
.ss-when span { font-size: 14px; color: var(--ash); text-transform: capitalize; }
.ss-when strong { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.1rem, 1.5vw, 1.4rem); }
.ss-info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-width: 0; }
.ss-price { font-size: 15px; color: var(--white); }
.ss-tag { padding: 3px 10px; border: 1px solid var(--line); border-radius: var(--r); font-size: 12px; letter-spacing: .04em; color: var(--ash); }
.ss-tag--special { border-color: var(--gold); color: var(--gold); }
.ss-sold, .ss-empty { color: var(--faint); font-size: 15px; }
.ss-empty { padding: 20px 0; border-top: 1px solid var(--line); }
.ss-row.is-sold .ss-date b { color: var(--faint); }

/* О спектакле */
.sh-about__grid { display: grid; grid-template-columns: minmax(220px, 30%) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.sh-about .sec-title { position: sticky; top: calc(var(--header-h) + 24px); flex: none; }
.sh-text { max-width: 70ch; font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.8; color: var(--ash); }
.sh-text p { margin: 0 0 1em; }
.sh-text p:last-child { margin-bottom: 0; }
.sh-text a { color: var(--gold); }
.sh-text ul, .sh-text ol { padding-left: 1.2em; list-style: revert; }
.sh-text blockquote { margin: 1.2em 0; padding-left: 1.2em; border-left: 2px solid var(--gold); color: var(--white); }

/* Галерея-слайдер */
.sh-gallery { max-width: none; padding-inline: 0; }
.sh-gallery .sec-head, .gal-bar { width: min(100% - var(--pad) * 2, var(--maxw)); margin-inline: auto; }
.gal-ctrl { display: flex; align-items: center; gap: 10px; flex: none; }
.gal-count { margin-right: 10px; font-family: var(--ff-display); font-size: 15px; color: var(--ash); }
.gal-count b { font-weight: 400; font-size: 22px; color: var(--white); }
.gal-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--gold); border-radius: var(--r); color: var(--gold);
  transition: background .4s var(--ease), color .4s var(--ease), opacity .3s;
}
.gal-btn svg { width: 14px; height: 14px; }
.gal-btn:hover:not(:disabled), .gal-btn:focus-visible { background: var(--gold); color: #000; }
.gal-btn:disabled { opacity: .25; cursor: default; }
.gal__track {
  position: relative;
  display: flex; gap: clamp(10px, 1.4vw, 20px); overflow-x: auto; padding-inline: var(--pad); scroll-padding-inline: var(--pad);
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__track.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gal__slide { flex: 0 0 clamp(280px, 62vw, 1040px); scroll-snap-align: start; }
.gal__open { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--surface); cursor: zoom-in; }
.gal__open .media { position: absolute; inset: 0; border-radius: 0; }
.gal__open img { transition: transform 1.3s var(--ease), opacity .9s var(--ease); }
.gal__open:hover img { transform: scale(1.04); }
.gal__open::after {
  content: ""; position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 12v16M12 20h16' stroke='%23DCAD76' stroke-width='1.5'/%3E%3C/svg%3E") center / 100% no-repeat;
  opacity: 0; transform: scale(.8); transition: opacity .4s, transform .5s var(--ease);
}
.gal__open:hover::after, .gal__open:focus-visible::after { opacity: 1; transform: none; }
.gal-bar { height: 2px; margin-top: 26px; background: var(--line); position: relative; overflow: hidden; }
.gal-bar i { position: absolute; left: 0; top: 0; height: 100%; width: var(--w, 20%); background: var(--gold); transform: translateX(var(--x, 0)); transition: transform .25s linear; }

/* Авторы и актёры */
.ppl__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 15vw, 240px), 1fr)); gap: clamp(26px, 3vw, 52px) clamp(14px, 2vw, 32px); }
.ppl__card { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--white); }
.ppl__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 10px; border-radius: var(--r); background: var(--surface); }
.ppl__photo .media { position: absolute; inset: 0; border-radius: 0; }
.ppl__photo img { filter: grayscale(.3) contrast(1.03); transition: transform 1.3s var(--ease), filter .8s, opacity .9s var(--ease); }
.ppl__photo::after {
  content: ""; position: absolute; inset: 10px; z-index: 2; pointer-events: none; border: 1px solid var(--gold); border-radius: calc(var(--r) - 1px);
  opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity .35s, clip-path 1s var(--ease);
}
a.ppl__card:hover .ppl__photo img, a.ppl__card:focus-visible .ppl__photo img { transform: scale(1.06); filter: none; }
a.ppl__card:hover .ppl__photo::after, a.ppl__card:focus-visible .ppl__photo::after { opacity: 1; clip-path: inset(0); }
.ppl__mono { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 32%, var(--gold-wash), transparent 70%), var(--surface); }
.ppl__mono svg { position: absolute; left: 50%; top: 50%; width: 42%; height: auto; aspect-ratio: 190 / 179; transform: translate(-50%, -50%); fill: var(--gold); opacity: .12; }
.ppl__mono b { position: relative; font-family: var(--ff-display); font-weight: 300; font-size: clamp(2.4rem, 4vw, 4rem); color: var(--gold); }
.ppl__name { font-family: var(--ff-display); font-size: clamp(1.02rem, 1.35vw, 1.3rem); line-height: 1.25; transition: color .4s; }
.ppl__role { font-size: 14px; line-height: 1.4; color: var(--ash); }
a.ppl__card:hover .ppl__name, a.ppl__card:focus-visible .ppl__name { color: var(--gold); }

/* Просмотр фото и трейлер на весь экран */
html.is-locked { overflow: hidden; }
.lb, .tm {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(0, 0, 0, .94);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lb.is-open, .tm.is-open { opacity: 1; visibility: visible; }
.lb__img { max-width: min(92vw, 1700px); max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: var(--r); transition: opacity .3s; touch-action: pan-y; user-select: none; }
.lb__img.is-swap { opacity: 0; }
.lb__top { position: absolute; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--pad); color: var(--ash); font-family: var(--ff-display); }
.lb__top b { font-weight: 400; font-size: 22px; color: var(--white); }
.lb__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--r); color: var(--white); background: rgba(0, 0, 0, .4); transition: background .4s, color .4s, border-color .4s; }
.lb__btn svg { width: 16px; height: 16px; }
.lb__btn:hover, .lb__btn:focus-visible { background: var(--gold); border-color: var(--gold); color: #000; }
.lb__nav { position: absolute; top: 50%; margin-top: -24px; }
.lb__nav--prev { left: var(--pad); }
.lb__nav--next { right: var(--pad); }
.tm__frame { position: relative; width: min(92vw, 1200px); aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.tm__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tm .lb__top { justify-content: flex-end; }

@media (max-width: 960px) {
  .sh-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sh-poster { max-width: min(340px, 78%); }
  .sh-about__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sh-about .sec-title { position: static; }
}
@media (max-width: 760px) {
  .sh-facts__row { gap: 16px 28px; }
  .ss-row { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 6px 14px; padding: 16px 4px; }
  .ss-info { grid-column: 1 / 4; grid-row: 2; padding-left: 76px; margin-top: -4px; }
  .ss-act { grid-row: 1; grid-column: 3; }
  .ppl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal__slide { flex-basis: 86vw; }
  .gal-count { display: none; }
  .lb__nav { top: auto; bottom: 22px; margin: 0; }
  .lb__nav--prev { left: calc(50% - 56px); }
  .lb__nav--next { right: calc(50% - 56px); }
  .lb__img { max-height: 72vh; }
}

/* Трейлер и канал под галереей: две кнопки у левого края */
.sh-links { display: flex; flex-wrap: wrap; gap: 14px; padding-top: clamp(28px, 3.4vw, 48px); }
.sh-sub { gap: 12px; }
.sh-sub svg { width: 22px; height: 16px; }

/* Страницы раздела «Поддержка» (заглушки до подключения онлайн-оплаты) */
.sp { max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; padding: var(--page-top) var(--pad) clamp(80px, 10vw, 160px); min-height: 70vh; }
.sp__soon { max-width: 52ch; margin-top: clamp(18px, 2vw, 30px); font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.65; color: var(--ash); }


/* ==========================================================================
   Страницы «Репертуар» (/calendar) и «Спектакли» (/repertoire, архив)
   ========================================================================== */
.up--page, .sl { padding-top: var(--page-top); padding-bottom: clamp(56px, 8vw, 120px); }
.sl { max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.up--page .sh-title, .sl .sh-title { color: var(--gold); }
.up--page .sec-head, .sl .sec-head { margin-bottom: clamp(24px, 3.6vw, 48px); }

.sl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 40px); row-gap: clamp(36px, 4.4vw, 64px); align-items: start; }
.sl-grid .poster:nth-child(even) { margin-top: 0; }   /* на главной афиши «скачут», здесь ровная сетка */
.sl-archive { margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 1000px) { .sl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .sl-grid { gap: 14px; row-gap: 28px; } }

/* ==========================================================================
   Труппа: одинаковые карточки 4:5; ряды 2 + 3 + остальные по 4
   ========================================================================== */
.tr { padding: var(--page-top) var(--pad) clamp(56px, 8vw, 120px); max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; }
.tr .sh-title { color: var(--gold); }
.tr .sec-head { margin-bottom: clamp(16px, 2vw, 24px); }
.tr__lead { max-width: 62ch; margin-bottom: clamp(32px, 4.4vw, 60px); color: var(--ash); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.6; text-wrap: pretty; }
.trp-wrap { --trp-gap: clamp(16px, 2.4vw, 40px); display: flex; flex-direction: column; gap: clamp(36px, 4.4vw, 64px); }
.trp-row { display: flex; flex-wrap: wrap; gap: clamp(36px, 4.4vw, 64px) var(--trp-gap); justify-content: flex-start; }
.trp-row .tmb { flex: 0 0 calc((100% - var(--trp-gap) * 3) / 4); min-width: 0; margin-top: 0; }
.tmb .poster__frame { aspect-ratio: 4 / 5; }
.tmb .poster__frame img { width: 100%; height: 100%; object-fit: cover; }
.tmb .poster__meta { gap: 6px; }
.tmb__role { font-size: 14px; line-height: 1.4; color: var(--ash); }
@media (max-width: 1000px) {
  .trp-wrap { --trp-gap: 14px; }
  .trp-row .tmb { flex-basis: calc((100% - var(--trp-gap)) / 2); }
}

/* ==========================================================================
   Страница участника труппы
   ========================================================================== */
.tp { overflow-x: clip; padding-bottom: clamp(56px, 8vw, 120px); }
.tp-hero { max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; padding: var(--page-top) var(--pad) 0; display: grid; grid-template-columns: minmax(240px, 30%) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.tp-photo__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.tp-photo__frame .media { position: absolute; inset: 0; }
.tp-photo__frame img { width: 100%; height: 100%; object-fit: cover; }
.tp-head { min-width: 0; padding-top: clamp(0px, 1vw, 12px); }
.tp-roles { margin-bottom: 14px; color: var(--ash); font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.4; }
.tp .sh-title { color: var(--gold); }
.tp-facts { display: grid; gap: 22px; margin-top: clamp(28px, 3.6vw, 48px); max-width: 62ch; }
.tp-fact dt { margin-bottom: 4px; font-size: 13px; letter-spacing: .04em; color: var(--ash); }
.tp-fact dd { margin: 0; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.55; color: var(--white); }
.tp-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 36px); }
.tp-awards__list { list-style: none; margin: 0; padding: 0; max-width: 70ch; border-top: 1px solid var(--line); }
.tp-awards__list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.6; color: var(--ash); }
.tp-shows .sec-head { margin-bottom: clamp(24px, 3.6vw, 48px); }
.tp-shows .sl-grid .poster__meta { gap: 6px; }
@media (max-width: 760px) {
  .tp-hero { grid-template-columns: 1fr; }
  .tp-photo { max-width: 420px; }
}

/* ==========================================================================
   Страница 404
   ========================================================================== */
.nf { max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; padding: var(--page-top) var(--pad) clamp(72px, 10vw, 160px); min-height: 70vh; }
.nf__code { font-family: var(--ff-display); font-weight: 300; font-size: clamp(5rem, 16vw, 13rem); line-height: .9; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: clamp(16px, 2.4vw, 32px); }
.nf .sh-title { color: var(--gold); }
.nf__lead { max-width: 46ch; margin-top: clamp(18px, 2.4vw, 28px); font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--ash); text-wrap: pretty; }
.nf__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.6vw, 44px); }

/* ==========================================================================
   Страница основателя: хронология и списки творчества
   ========================================================================== */
.fd-short { margin-top: 14px; color: var(--ash); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.5; }
.fd-tl { list-style: none; margin: 0; padding: 0; max-width: 70ch; border-top: 1px solid var(--line); }
.fd-tl__row { display: grid; grid-template-columns: minmax(96px, 9rem) minmax(0, 1fr); gap: clamp(14px, 2.4vw, 32px); padding: 18px 0; border-bottom: 1px solid var(--line); }
.fd-tl__period { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--gold); line-height: 1.4; }
.fd-tl__row p { margin: 0; color: var(--ash); line-height: 1.7; font-size: clamp(1rem, 1.2vw, 1.12rem); }
.fd-works { padding-top: clamp(56px, 8vw, 120px); }
.fd-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.fd-tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px clamp(12px, 1.6vw, 22px); font: inherit; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); cursor: pointer; transition: color .25s, border-color .25s; }
.fd-tab:hover { color: var(--white); }
.fd-tab.is-on { color: var(--gold); border-bottom-color: var(--gold); }
.fd-tab:focus-visible { outline: 1px solid var(--gold); outline-offset: -4px; }
.fd-group[data-off] { display: none; }
.fd-group { animation: fdTab .45s ease both; }
@keyframes fdTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .fd-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .fd-tabs::-webkit-scrollbar { display: none; } .fd-tab { white-space: nowrap; } }
/* награды: шахматка текст/фото */
.fd-aw .sec-title { margin-bottom: clamp(28px, 4vw, 56px); }
.fd-aw__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-bottom: clamp(48px, 7vw, 104px); }
.fd-aw__row:last-child { margin-bottom: 0; }
.fd-aw__row:nth-of-type(even) .fd-aw__text { order: 2; }
.fd-aw__row--np { grid-template-columns: minmax(0, 70ch); }
.fd-aw__blk { margin-bottom: 1.4em; }
.fd-aw__blk:last-child { margin-bottom: 0; }
.fd-aw__blk p { margin: 0 0 .7em; color: var(--ash); line-height: 1.65; font-size: clamp(1rem, 1.2vw, 1.12rem); }
.fd-aw__photo { position: relative; --off: clamp(12px, 1.6vw, 22px); }
.fd-aw__photo::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--gold); transform: translate(var(--off), var(--off)); pointer-events: none; }
.fd-aw__row:nth-of-type(even) .fd-aw__photo::before { transform: translate(calc(var(--off) * -1), var(--off)); }
.fd-aw__photo .media { position: relative; aspect-ratio: 4 / 3; margin: 0; background: var(--surface); overflow: hidden; }
.fd-aw__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .fd-aw__row { grid-template-columns: 1fr; } .fd-aw__row:nth-of-type(even) .fd-aw__text { order: 0; } .fd-aw__photo { margin: 0 var(--off) var(--off) 0; } .fd-aw__row:nth-of-type(even) .fd-aw__photo { margin: 0 0 var(--off) var(--off); } }
.fd-group { padding-top: 0; margin-bottom: clamp(28px, 4vw, 56px); scroll-margin-top: calc(var(--header-h) + 16px); }
.fd-group .sec-title { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
.fd-list { list-style: none; margin: 0 0 1.4em; padding: 0; columns: 2 280px; column-gap: clamp(24px, 4vw, 56px); }
.fd-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ash); line-height: 1.5; font-size: clamp(.98rem, 1.15vw, 1.08rem); }
.fd-text { max-width: 70ch; margin-bottom: 1.4em; }
.fd-item { max-width: 78ch; padding: clamp(18px, 2.2vw, 28px) 0; border-top: 1px solid var(--line); }
.fd-item:first-child { border-top: 0; padding-top: 0; }
.fd-item__t { margin: 0 0 .6em; font-size: clamp(1rem, 1.25vw, 1.15rem); font-weight: 500; line-height: 1.4; color: var(--gold); }
.fd-item__p { margin: 0 0 .7em; color: var(--ash); line-height: 1.65; font-size: clamp(.98rem, 1.15vw, 1.08rem); }
.fd-item__p:last-child { margin-bottom: 0; }
.fd-group__body > :last-child { margin-bottom: 0; }
@media (max-width: 760px) { .fd-tl__row { grid-template-columns: 1fr; gap: 6px; } .fd-list { columns: 1; } }

/* страница основателя: длинные (армянские) заголовки секций мельче и не вылезают из колонки */
.fd .sh-about__grid .sec-title, .fd .fd-aw .sec-title { font-size: clamp(1.35rem, 2.3vw, 2.1rem); overflow-wrap: anywhere; hyphens: auto; }

.f-credit { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r, 2px); font-size: 13px; letter-spacing: .04em; color: var(--ash); text-decoration: none; transition: color .25s, border-color .25s; }
.f-credit:hover, .f-credit:focus-visible { color: var(--gold); border-color: var(--gold); }

/* ===== О театре: таймлайн ===== */
.ab { padding: var(--page-top) var(--pad) clamp(56px, 8vw, 120px); max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; }
.ab .sh-title { color: var(--gold); }
.ab .sec-head { margin-bottom: clamp(28px, 4vw, 56px); }
.tl { list-style: none; margin: 0; padding: 0; }
.tl__row { display: grid; grid-template-columns: minmax(150px, 22%) 28px minmax(0, 1fr) clamp(150px, 16vw, 220px); column-gap: clamp(16px, 2.4vw, 36px); position: relative; padding-bottom: clamp(36px, 5vw, 72px); }
.tl__row::before { content: ''; position: absolute; left: calc(min(max(150px, 22%), 100%) + clamp(16px, 2.4vw, 36px) + 14px); top: 14px; bottom: -14px; width: 1px; background: var(--line); }
.tl__row:last-child::before { display: none; }
.tl__row:last-child { padding-bottom: 0; }
.tl__head { text-align: right; padding-top: 2px; }
.tl__year { display: block; font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--gold); letter-spacing: .02em; }
.tl__title { margin: .25em 0 0; font-size: clamp(1.05rem, 1.35vw, 1.25rem); font-weight: 500; line-height: 1.3; color: var(--white); }
.tl__dot { position: relative; z-index: 1; justify-self: center; width: 11px; height: 11px; margin-top: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--black); }
.tl__dot--o { background: var(--black); border: 1px solid var(--gold); }
.tl__body { max-width: 62ch; }
.tl__body p { margin: 0 0 .9em; }
.tl__body p:last-child { margin-bottom: 0; }
.tl__ph { position: relative; aspect-ratio: 4 / 3; align-self: start; }
.tl__ph-in { position: absolute; inset: 0; margin: 0; overflow: hidden; background: var(--surface); transform-origin: right top; transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; cursor: zoom-in; outline: 1px solid var(--line); }
.tl__ph-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl__ph:hover { z-index: 6; }
.tl__ph:hover .tl__ph-in { transform: scale(2.3); box-shadow: 0 24px 60px rgba(0, 0, 0, .7); outline: 1px solid var(--gold); }
.ab__more { margin: clamp(40px, 6vw, 88px) 0 0; }
@media (max-width: 900px), (hover: none) {
  .tl__row { grid-template-columns: 18px minmax(0, 1fr); column-gap: 16px; }
  .tl__row::before { left: 8px; }
  .tl__dot { grid-column: 1; grid-row: 1; margin-top: 7px; width: 9px; height: 9px; box-shadow: 0 0 0 4px var(--black); }
  .tl__head { grid-column: 2; grid-row: 1; text-align: left; }
  .tl__body { grid-column: 2; grid-row: 2; margin-top: 10px; }
  .tl__ph { grid-column: 2; grid-row: 3; margin-top: 16px; width: 100%; aspect-ratio: 4 / 3; }
  .tl__ph-in { transform: none !important; cursor: default; box-shadow: none !important; }
}

/* ===== Проекты ===== */
.pj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px); }
.pj-card { display: block; text-decoration: none; color: inherit; }
.pj-card__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); outline: 1px solid var(--line); outline-offset: 0; transition: outline-color .3s; }
.pj-card__img .media, .pj-card__img img { width: 100%; height: 100%; margin: 0; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.pj-card:hover .pj-card__img { outline-color: var(--gold); }
.pj-card:hover .pj-card__img img { transform: scale(1.05); }
.pj-card__title { margin: 18px 0 8px; font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 500; color: var(--white); line-height: 1.25; }
.pj-card__text { margin: 0 0 12px; color: var(--ash); line-height: 1.6; font-size: .98rem; }
.pj-card__more { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid transparent; transition: border-color .25s; }
.pj-card:hover .pj-card__more { border-bottom-color: var(--gold); }
@media (max-width: 1000px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pj-grid { grid-template-columns: 1fr; } }

/* страница проекта */
.pj-one__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-bottom: clamp(40px, 6vw, 88px); }
.pj-one__body:not(:has(.pj-one__cover)) { grid-template-columns: minmax(0, 70ch); }
.pj-one__text p { margin: 0 0 1em; }
.pj-one__cover { position: relative; --off: clamp(12px, 1.6vw, 22px); margin: 0 var(--off) var(--off) 0; }
.pj-one__cover::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--gold); transform: translate(var(--off), var(--off)); pointer-events: none; }
.pj-one__cover .media { position: relative; margin: 0; background: var(--surface); }
.pj-one__cover img { width: 100%; height: auto; display: block; }
.pj-gal { columns: 3; column-gap: clamp(14px, 2vw, 28px); margin-bottom: clamp(48px, 7vw, 104px); }
.pj-gal__item { margin: 0 0 clamp(14px, 2vw, 28px); break-inside: avoid; background: var(--surface); }
.pj-gal__item img { width: 100%; height: auto; display: block; }
.pj-one__others { margin: 0 0 clamp(24px, 3vw, 40px); }
@media (max-width: 900px) { .pj-one__body { grid-template-columns: 1fr; } .pj-gal { columns: 2; } }
@media (max-width: 520px) { .pj-gal { columns: 1; } }

/* ── Фильмы проекта: карточки + окно ── */
.fm { margin: 0 0 clamp(48px, 7vw, 104px); }
.fm__title { margin-bottom: clamp(20px, 2.4vw, 36px); }
.fm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px); }
.fm-card { display: block; text-decoration: none; color: inherit; }
.fm-card__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); outline: 1px solid var(--line); outline-offset: 0; transition: outline-color .3s; }
.fm-card__img img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.fm-card:hover .fm-card__img, .fm-card:focus-visible .fm-card__img { outline-color: var(--gold); }
.fm-card:hover .fm-card__img img { transform: scale(1.05); }
.fm-card__title { margin: 16px 0 6px; font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 500; color: var(--white); line-height: 1.25; }
.fm-card__date { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 1000px) { .fm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fm-grid { grid-template-columns: 1fr; } }

body.is-fm-open { overflow: hidden; }
.fm-modal { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; padding: clamp(0px, 3vw, 40px); }
.fm-modal[hidden] { display: none; }
.fm-modal__back { position: absolute; inset: 0; background: rgba(0, 0, 0, .82); }
.fm-modal__box { position: relative; width: min(1100px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--black); border: 1px solid var(--line); padding: clamp(22px, 3.2vw, 48px); outline: none; animation: fmIn .35s var(--ease, ease) both; }
@keyframes fmIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fm-modal__box { animation: none; } }
.fm-modal__x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; background: var(--black); border: 1px solid var(--line); color: var(--white); cursor: pointer; transition: border-color .25s, color .25s; }
.fm-modal__x:hover { border-color: var(--gold); color: var(--gold); }
.fm-modal__x svg { width: 16px; height: 16px; }
.fm-modal__head { margin: 0 48px clamp(18px, 2.4vw, 32px) 0; }
.fm-modal__title { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.8rem); font-weight: 500; line-height: 1.1; color: var(--gold); overflow-wrap: anywhere; }
.fm-modal__date { margin: 12px 0 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.fm-modal__tag { margin: 12px 0 0; color: var(--white); line-height: 1.55; }
.fm-modal__video { position: relative; aspect-ratio: 16 / 9; margin-bottom: clamp(16px, 2vw, 28px); background: var(--surface); }
.fm-modal__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fm-modal__gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); margin-bottom: clamp(20px, 2.8vw, 40px); }
.fm-modal__gal img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--surface); }
.fm-modal__cols { display: grid; grid-template-columns: 30% minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.fm-h { margin: 0 0 12px; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.fm-modal__side .fm-h:not(:first-child), .fm-modal__main .fm-h { margin-top: clamp(20px, 2.4vw, 32px); }
.fm-credits { margin: 0; }
.fm-credits dt { margin: 10px 0 0; font-size: .82rem; color: var(--ash); }
.fm-credits dd { margin: 2px 0 0; color: var(--white); line-height: 1.45; }
.fm-list { list-style: none; margin: 0; padding: 0; color: var(--white); line-height: 1.5; }
.fm-list li { padding: 5px 0; }
.fm-list--lined li { padding: 10px 0; border-top: 1px solid var(--line); }
.fm-list--lined li:last-child { border-bottom: 1px solid var(--line); }
.fm-author { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(16px, 2vw, 24px); }
.fm-author img { width: 64px; height: 80px; object-fit: cover; object-position: top; display: block; }
.fm-author__name { display: block; color: var(--white); font-weight: 500; }
.fm-author__role { display: block; margin-top: 2px; font-size: .86rem; color: var(--ash); }
.fm-p { margin: 0 0 1em; color: var(--white); line-height: 1.7; }
.fm-press { margin: clamp(20px, 2.4vw, 32px) 0 0; padding-left: 18px; border-left: 1px solid var(--gold); color: var(--ash); font-style: italic; line-height: 1.6; }
@media (max-width: 760px) {
  .fm-modal { padding: 0; }
  .fm-modal__box { width: 100%; height: 100%; max-height: none; border: 0; padding: 64px 18px 28px; }
  .fm-modal__x { position: fixed; top: 12px; right: 12px; }
  .fm-modal__head { margin-right: 0; }
  .fm-modal__gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-modal__cols { grid-template-columns: 1fr; gap: 8px; }
}

.fm-modal__cols--one { grid-template-columns: minmax(0, 1fr); }
.fm-modal__cols--one .fm-modal__main { max-width: 760px; }
.fm-modal__main > .fm-h:first-child, .fm-modal__side > .fm-h:first-child { margin-top: 0; }

.fm-fold.is-clamped { max-height: calc(1.7em * 8); overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.fm-fold__btn { margin: 4px 0 0; padding: 0 0 2px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ash); font: inherit; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: color .25s, border-color .25s; }
.fm-fold__btn:hover, .fm-fold__btn:focus-visible { color: var(--white); border-bottom-color: var(--ash); }
.fm-fold__btn[hidden] { display: none; }

.fm-card__date { display: block; }
.fm-card__tag { margin: 10px 0 0; color: var(--ash); font-size: .96rem; line-height: 1.55; }