/* Алексей Колымаев — «Меха и перламутр»
   Палитра взята из промо-видео: туманная темнота зала, перламутр аккордеона, тёплый свет рампы. */

:root {
  --hall: #131311;        /* фон: темнота зала */
  --hall-2: #1b1a17;      /* приподнятые поверхности */
  --pearl: #ece7dd;       /* основной текст, перламутр */
  --pearl-dim: #b4ada1;   /* второстепенный текст */
  --smoke: #8c877d;       /* подписи, линии */
  --ramp: #cdb892;        /* свет рампы: фокус и одно главное действие */
  --line: rgb(236 231 221 / 0.14);

  --f-display: "Literata", Georgia, "Times New Roman", serif;
  --f-script: "Ekaterina Velikaya One", "Times New Roman", cursive;
  --f-text: "Literata", Georgia, "Times New Roman", serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);   /* мягкое появление: без рывка в начале и без долгого хвоста */

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --section: clamp(6rem, 14vw, 11rem);
}

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

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

html {
  background: var(--hall);
  color: var(--pearl);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--smoke) var(--hall);
}

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  font-optical-sizing: auto;   /* Literata сама подстраивает рисунок букв под размер */
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ramp); color: var(--hall); }

img, video, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }

a, button, [role="button"] { touch-action: manipulation; }
/* долгое нажатие на элемент управления не выделяет его подпись и не вызывает меню ссылки (текст страницы выделяется как обычно) */
button, .btn, .pl, .bar__nav a, .bar__home { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 1px solid var(--ramp); outline-offset: 4px; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 30;
  padding: 0.6rem 1rem; background: var(--pearl); color: var(--hall); text-decoration: none;
}
.skip:focus { top: 1rem; }

h1, h2, h3, p { margin: 0; }

.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  color: var(--pearl-dim);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  max-width: 44ch;
  text-wrap: pretty;
}

/* ---------- Монограмма ---------- */

.monogram {
  display: block;
  width: 26px;
  aspect-ratio: 222 / 320;
  background: var(--pearl);
  -webkit-mask: url("../img/monogram.png") center / contain no-repeat;
          mask: url("../img/monogram.png") center / contain no-repeat;
  transition: background-color 200ms ease;
}
.monogram--small { width: 18px; background: var(--smoke); }

/* ---------- Верхняя панель ---------- */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) var(--gutter) 1.25rem;
  pointer-events: none;
  text-shadow: 0 1px 12px rgb(19 19 17 / 0.45);
}
.bar > * { pointer-events: auto; }

/* вкладки разнесены по краям: две сразу после монограммы, две у правого края;
   середина строки пустая, под ней в видео голова артиста */
.bar__nav {
  flex: 1; display: flex; justify-content: space-between; align-items: center;
  margin-left: clamp(1.75rem, 4vw, 4rem);
  pointer-events: none;
}
.bar__group { display: flex; gap: clamp(2rem, 4vw, 4.5rem); }
.bar__nav a {
  position: relative;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem); font-weight: 400; letter-spacing: 0.01em;
  text-decoration: none; color: var(--pearl);
  padding-block: 0.5rem;
  pointer-events: auto;
}
/* под каждой вкладкой тонкая золотая линия, сходящая на нет к краям: видно, что это ссылка.
   При наведении линия становится ярче и дотягивается до краёв слова */
.bar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 1px;
  background: linear-gradient(90deg, rgb(205 184 146 / 0), var(--ramp) 22%, var(--ramp) 78%, rgb(205 184 146 / 0));
  opacity: 0.75; transform: scaleX(0.8);
  transition: opacity 200ms ease, transform 250ms var(--ease-out);
}
.bar__nav a:focus-visible::after { opacity: 1; transform: none; }
.bar__home { padding: 0.35rem; margin: -0.35rem; }
.bar__home .monogram { width: clamp(34px, 3vw, 44px); }

@media (hover: hover) and (pointer: fine) {
  .bar__nav a:hover::after { opacity: 1; transform: none; }
  .bar__home:hover .monogram { background: var(--ramp); }
}
@media (prefers-reduced-motion: reduce) {
  .bar__nav a::after { transition: opacity 200ms ease; }
}

/* быстрый переход на дальний раздел: размытие экрана под шапкой (js/main.js) */
.jump-veil {
  position: fixed; inset: 0; z-index: 19;
  background: rgb(19 19 17 / 0.35);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; pointer-events: none;
}

/* Телефон: вместо вкладок — три полоски разной длины; по нажатию под ними раскрывается список.
   Открытый список: полоски складываются в крестик */
.bar__toggle { display: none; }
@media (max-width: 699px) {
  .bar__toggle {
    display: grid; justify-items: end; align-content: center; gap: 6px;
    width: 2.75rem; height: 2.75rem; margin: -0.5rem -0.5rem -0.5rem 0; padding: 0.5rem;
    background: none; border: 0; cursor: pointer;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  /* длина полосок — через масштаб (transform), а не ширину: без пересчёта раскладки на каждом кадре */
  .bar__toggle span {
    display: block; width: 26px; height: 1.5px; border-radius: 1px; background: var(--pearl);
    box-shadow: 0 1px 8px rgb(19 19 17 / 0.5);
    transform: translate(0, 0) rotate(0deg) scaleX(1);
    transition: transform 250ms var(--ease-out), opacity 150ms ease;
  }
  /* короче — и прижаты к правому краю: сдвиг на половину «срезанной» длины */
  .bar__toggle span:nth-child(2) { transform: translate(4px, 0) rotate(0deg) scaleX(0.69); }
  .bar__toggle span:nth-child(3) { transform: translate(7.5px, 0) rotate(0deg) scaleX(0.42); }
  .bar.is-menu .bar__toggle span:nth-child(1) { transform: translate(0, 7.5px) rotate(45deg) scaleX(0.85); }
  .bar.is-menu .bar__toggle span:nth-child(2) { opacity: 0; }
  .bar.is-menu .bar__toggle span:nth-child(3) { transform: translate(0, -7.5px) rotate(-45deg) scaleX(0.85); }
  .bar__toggle:active span { opacity: 0.6; }

  .bar__nav {
    position: absolute; top: calc(100% - 0.5rem); right: calc(var(--gutter) - 0.25rem);
    flex: none; margin: 0; min-width: 13rem;
    display: block; padding: 0.5rem 1.25rem;
    background: rgb(19 19 17 / 0.72);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgb(205 184 146 / 0.18);
    transform-origin: top right;
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.97);
    transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0s 150ms;   /* закрывается быстрее, чем открывается */
  }
  .bar.is-menu .bar__nav {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
  }
  .bar__group { display: block; }
  .bar__nav a { display: block; font-size: 1.25rem; padding: 0.85rem 0; touch-action: manipulation; }
  .bar__nav a::after { bottom: 0.35rem; transform-origin: left; }
}
@media (max-width: 699px) and (prefers-reduced-motion: reduce) {
  .bar__toggle span, .bar__nav { transition-property: opacity, visibility; }
  .bar__nav { transform: none; }
}

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

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.9rem;
  font-size: 1rem; font-weight: 400; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--pearl);
  user-select: none; -webkit-user-select: none;
  transition: color 250ms ease, transform 140ms var(--ease-out);
}
/* нажатие: кнопка чуть проседает (и на телефоне) */
.btn:active { transform: scale(0.97); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* «Пригласить»: жемчужная; при наведении по ней один раз пробегает блик, как по перламутру корпуса */
.btn--pearl { background: var(--pearl); color: var(--hall); }
.btn--pearl::before {
  inset: 0 -40%;
  background: linear-gradient(105deg, rgb(255 255 255 / 0) 38%, rgb(255 255 255 / 0.75) 50%, rgb(255 255 255 / 0) 62%);
  transform: translateX(-100%);
}

/* «Слушать»: контур на тёмной подложке; при наведении жемчужная заливка раскрывается слева, как меха.
   Заливка растягивается (scaleX), а не вырезается clip-path: Safari во время перехода clip-path перерисовывал
   только прямоугольник под надписью, края кнопки догоняли скачком (запись экрана Алексея 2026-10-17) */
.btn--line { color: var(--pearl); background: rgb(19 19 17 / 0.45); }
.btn--line::before {
  background: var(--pearl);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 320ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn--pearl:hover::before { transform: translateX(100%); transition: transform 750ms var(--ease-out); }
  .btn--line:hover { color: var(--hall); }
  .btn--line:hover::before { transform: none; }
}
/* с клавиатуры — то же, что при наведении */
.btn--line:focus-visible { color: var(--hall); }
.btn--line:focus-visible::before { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .btn:active, .pl:active { transform: none; }
  .btn--pearl::before { display: none; }
  .btn--line::before { transform: none; opacity: 0; transition: opacity 200ms ease; }
  .btn--line:focus-visible::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .btn--line:hover::before { opacity: 1; }
}

/* ---------- Сцена: видео за всеми разделами ---------- */

.stage {
  position: fixed; inset: 0; z-index: -1; /* под содержимым main, но над его фоном */
  background: var(--hall) url("../media/loops/hero.jpg") center / cover no-repeat;
  overflow: hidden;
  pointer-events: none;
}
/* Телефон вертикально: с первой секунды, ещё до скриптов, — свой кадр первого экрана со сдвигом вправо (как frameX.hero
   в js/main.js). Иначе пару секунд был виден широкий кадр, растянутый по высоте, — мех крупным планом */
@media (max-width: 699px) and (orientation: portrait) {
  .stage { background-image: url("../media/loops/hero-mobile.jpg"); background-position: 90% 50%; }
  .stage__loop[data-scene="hero"] { object-position: 90% 50%; }
}
.stage video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms ease;
}
.stage video.is-on { opacity: 1; }
/* положение кадра каждого раздела задаётся в js/main.js (frameX), чтобы перелёты стыковались */
.stage__flight { transition: none !important; }
/* с анимацией прозрачностью видео управляет скрипт покадрово, а под видео только темнота зала */
/* под видео лежит кадр текущего раздела (его ставит скрипт), чтобы экран никогда не был пустым */
.motion .stage video { transition: none; }

/* затемнение, чтобы текст читался; его сила зависит от раздела */
.stage__shade {
  position: absolute; inset: 0;
  background: var(--hall);
  opacity: 0.2;   /* до первого кадра скрипта; дальше силу затемнения ставит js/main.js */
}
.stage::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgb(19 19 17 / 0.85) 0%, rgb(19 19 17 / 0.3) 36%, rgb(19 19 17 / 0) 60%),
    linear-gradient(to bottom, rgb(19 19 17 / 0.7) 0%, rgb(19 19 17 / 0.3) 12%, rgb(19 19 17 / 0) 24%);
}

/* лёгкое плёночное зерно поверх видео: выравнивает разницу в резкости между фрагментами промо и перелётами */
.stage__grain {
  /* запас по краям покрывает сдвиги анимации (до 8 % своего размера); больше не нужно: слой смешивается с видео в каждом кадре */
  position: absolute; inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 1.2 -0.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.09;
  mix-blend-mode: overlay;
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  17% { transform: translate(-7%, 4%); }
  33% { transform: translate(5%, -6%); }
  50% { transform: translate(-3%, 8%); }
  67% { transform: translate(8%, 2%); }
  83% { transform: translate(-6%, -5%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .stage__grain { animation: none; } }

main { position: relative; z-index: 1; }
.foot { position: relative; z-index: 1; background: var(--hall); }

/* каждый раздел не ниже экрана: иначе после прибытия на короткий раздел сразу начинался бы следующий перелёт */
.perf, .music, .formats { min-height: calc(100 * var(--vh, 1svh)); }   /* svh: на телефоне не выше видимой части экрана при показанной адресной строке; --vh — см. ниже */

/* --vh: 1 % высоты экрана, запомненный на телефоне один раз (js/main.js). Встроенные браузеры (Telegram, VK) меняют
   высоту окна, когда прячут и показывают свои панели, — вместе с ней менялись svh, разделы выше экрана то росли,
   то сжимались, и страница под пальцем дёргалась. Без --vh (компьютер) — обычные svh */
/* промежуток, во время которого камера перелетает к следующему разделу */
.flight { height: 30svh; }
/* Палец без мыши (телефон в любом положении, планшет) и узкое окно: обычная прокрутка Safari; перелётов нет —
   фон разделов плавно сменяется (js/main.js, переменная phone, то же условие). Сайт страницу не двигает.
   Раздел растёт по высоте своего текста, а текст листает сама страница: дочитал до конца — следующий свайп
   ведёт к следующему разделу. Внутренних окон с прокруткой на телефоне нет (их у края Safari не передавал странице).
   Защёлкивания (scroll-snap) нет: раздел меняет высоту при раскрытии факта или видео, и браузер «затягивал» страницу
   к верху раздела — текст прыгал, нажатия не срабатывали */
@media (max-width: 699px), (hover: none) and (pointer: coarse) {
  .flight { display: none; }
}
/* под шапкой — мягкая тень, когда под ней прокручивается текст (класс ставит js/main.js: на телефоне везде,
   кроме первого экрана; на компьютере — в конце страницы): текст уходит под вкладки в темноту, а не наслаивается */
.bar::before {
  content: ""; position: absolute; inset: 0 0 -1.5rem 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(19 19 17 / 0.85), rgb(19 19 17 / 0.55) 60%, rgb(19 19 17 / 0));
  opacity: 0; transition: opacity 200ms ease;
}
.bar.is-shaded::before { opacity: 1; }

/* Телефон: проявление блоков при входе в экран (классы ставит js/main.js). Только прозрачность, без сдвига:
   сдвигающаяся строка уходила из-под пальца, и нажатие сразу после прокрутки «прыгало» или не срабатывало */
.reveal-ready .rv { opacity: 0; }
.reveal-ready .rv.is-seen { opacity: 1; transition: opacity 450ms ease var(--rv-d, 0ms); }

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  min-height: max(calc(100 * var(--vh, 1svh)), 34rem);
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) calc(clamp(2rem, 6vh, 4.5rem) + env(safe-area-inset-bottom, 0px));
}

.hero__copy { max-width: 40rem; }

.hero__name {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 1.2;          /* у рукописного шрифта высокие росчерки */
  padding-bottom: 0.1em;
  margin-left: -0.04em;
}
/* имя лесенкой: «Колымаев» на второй строке и чуть правее */
.hero__name span { display: block; }
.hero__name-2 { padding-left: 0.9em; margin-top: 0.15em; } /* строки не касаются друг друга */

.hero__line {
  margin-top: 0.75rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--pearl);
  max-width: 36ch;
  text-shadow: 0 1px 14px rgb(19 19 17 / 0.7);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }

/* ---------- Биография: текст слева, на видео справа профиль ---------- */

.about {
  min-height: calc(100 * var(--vh, 1svh));
  /* верх прибит: когда факт раскрывается, список растёт вниз, а строка под пальцем не уезжает */
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: max(var(--section), calc(30 * var(--vh, 1svh))) var(--gutter) var(--section);
  max-width: calc(38rem + 2 * var(--gutter));
}
.about__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}
/* факты списком: строка с ромбом, по нажатию под ней раскрываются подробности */
.facts { list-style: none; margin: 0; padding: 0; max-width: 36rem; border-bottom: 1px solid var(--line); }
/* Компьютер: раздел ровно в экран. Если раскрытые факты не помещаются, прокручивается только колонка с текстом
   (курсор над ней), а раздел и видео стоят на месте. Листать дальше — движением вне текста или ещё одним
   движением, когда текст уже долистан до края (main.js). */
/* Компьютер (мышь или тачпад): раздел ровно в экран, факты листаются внутри своей колонки.
   На телефоне этого нет: раздел растёт по тексту (см. блок со scroll-snap выше) */
@media (min-width: 700px) and (hover: hover), (min-width: 700px) and (pointer: fine) {
  .about { height: 100svh; min-height: 0; padding-bottom: 3rem; }
  .about__title { flex: none; }
  .facts {
    flex: 0 1 auto; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain;
    padding-right: 0.75rem; margin-right: -0.75rem;   /* место для полосы прокрутки, текст не сдвигается */
    scrollbar-width: thin; scrollbar-color: rgb(205 184 146 / 0.45) transparent;
  }
  /* края колонки мягко уходят в тень там, куда ещё можно докрутить */
  .facts { --fade-top: 0px; --fade-bottom: 0px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent); }
  .facts.is-more { --fade-bottom: 3.5rem; }
  .facts.is-less { --fade-top: 2rem; }
}
.fact { border-top: 1px solid var(--line); }
.fact__head { font: inherit; margin: 0; }
.fact__tab {
  display: grid; grid-template-columns: 0.5rem 1fr 0.875rem; align-items: baseline; gap: 1rem;
  width: 100%; padding: 1.05rem 0; text-align: left;
  font-family: var(--f-text); font-size: 1.0625rem; line-height: 1.45; color: var(--pearl);
  cursor: pointer;
}
.fact__tab:focus-visible { outline: 2px solid var(--ramp); outline-offset: 2px; }
/* строки списков, вкладки меню: при нажатии подпись приглушается (масштаб на строке во всю ширину выглядел бы как рывок) */
.fact__tab:active .fact__text, .perf__tab:active .perf__label, .bar__nav a:active { opacity: 0.65; }
.fact__mark {
  width: 7px; height: 7px; rotate: 45deg; translate: 0 -0.2em;
  border: 1px solid var(--ramp);
  transition: background-color 300ms ease;
}
.fact__text { text-wrap: pretty; }
/* плюс справа превращается в минус */
.fact__sign { position: relative; width: 0.875rem; height: 0.875rem; align-self: center; color: var(--smoke); transition: color 200ms ease; }
.fact__sign::before, .fact__sign::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; background: currentColor;
}
.fact__sign::after { rotate: 90deg; transition: rotate 300ms var(--ease-out); }
.fact__tab[aria-expanded="true"] .fact__mark { background: var(--ramp); }
.fact__tab[aria-expanded="true"] .fact__sign::after { rotate: 0deg; }
@media (hover: hover) and (pointer: fine) {
  .fact__tab:hover .fact__sign { color: var(--pearl); }
  .fact__tab:hover .fact__mark { background: color-mix(in srgb, var(--ramp) 45%, transparent); }
  .fact__tab[aria-expanded="true"]:hover .fact__mark { background: var(--ramp); }
}
.fact__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--ease-out); }
.fact__head:has([aria-expanded="true"]) + .fact__body { grid-template-rows: 1fr; }
.fact__inner {
  overflow: hidden; min-height: 0;
  padding-left: 1.5rem;
  opacity: 0; transition: opacity 240ms ease;
}
.fact__head:has([aria-expanded="true"]) + .fact__body .fact__inner { opacity: 1; transition-delay: 100ms; }
.fact__inner > :last-child { margin-bottom: 1.25rem; }
.fact__inner p { color: var(--pearl-dim); text-wrap: pretty; max-width: 34rem; }
.fact__inner p + p { margin-top: 0.75rem; }
@media (max-width: 699px) {
  /* телефон: сверху видно лицо и инструмент, текст ниже — на мягком затемнении */
  /* верх экрана — чистое видео с профилем; заголовок и факты в нижней части, под ними своя подложка */
  .about {
    padding-top: calc(38 * var(--vh, 1svh));   /* сразу под подбородком: лицо на кадре заканчивается на ~37 % высоты */
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    position: relative;
  }
  /* подложка отдельным слоем: её можно плавно проявить после первого перелёта */
  .about::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, transparent 33svh, rgb(19 19 17 / 0.8) 46svh, rgb(19 19 17 / 0.8) calc(100% - 14svh), transparent);   /* снизу подложка гаснет: на стыке с «Выступлениями» нет резкой границы */
    transition: opacity 600ms var(--ease-out);
  }
  .fact__tab { font-size: 0.9875rem; padding: 0.9rem 0; gap: 0.8rem; }
  .fact__inner { padding-left: 1.3rem; }
  .fact__inner p { font-size: 0.9375rem; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  .fact__body, .fact__inner, .fact__sign::after { transition: none; }
}

/* ---------- Выступления: шесть складок по краям, видео выезжает в центр ---------- */

.perf { padding: clamp(5rem, 8vw, 7rem) var(--gutter) 2.5rem; }   /* снизу немного: раздел целиком помещается в экран */
.perf__head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

.perf__deck {
  --fh: clamp(26rem, calc(100 * var(--vh, 1svh) - 20rem), 42rem);   /* высота на компьютере: раздел целиком в экране */
  --tab: clamp(3.75rem, 5.5vw, 5.25rem);             /* ширина складки */
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  height: var(--fh);
}
.perf__side { display: flex; border-block: 1px solid var(--line); }
.perf__side:first-child { border-right: 1px solid var(--line); }
.perf__side:last-child { border-left: 1px solid var(--line); }

.perf__tab {
  position: relative;
  flex: 0 0 var(--tab);
  /* Safari считал наименьшую ширину складки по длине вертикальной надписи, как если бы она шла по горизонтали,
     и правые складки уезжали за край: страница становилась шире окна и сдвигалась вбок (2026-10-14) */
  width: var(--tab); min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 1.75rem 0;
  border-left: 1px solid var(--line);
  color: var(--pearl-dim);
  transition: color 200ms ease, background-color 300ms ease;
  user-select: none; -webkit-user-select: none;
}
.perf__side:first-child .perf__tab:first-child { border-left: 0; }
/* гребни мехов на складке */
.perf__tab::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgb(236 231 221 / 0.06) 0 1px, transparent 1px 9px);
  transition: opacity 400ms ease;
  pointer-events: none;
}
.perf__mark { width: 9px; height: 9px; rotate: 45deg; border: 1px solid var(--ramp); transition: background-color 300ms ease; }
.perf__label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.9375rem; letter-spacing: 0.02em; white-space: nowrap;
}
.perf__tab[aria-expanded="true"] { color: var(--ramp); background-color: rgb(205 184 146 / 0.06); }
.perf__tab[aria-expanded="true"]::before { opacity: 0; }
.perf__tab[aria-expanded="true"] .perf__mark { background: var(--ramp); }
.perf__tab:focus-visible { outline: 2px solid var(--ramp); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .perf__tab:hover { color: var(--pearl); }
  .perf__tab:hover .perf__mark { background: color-mix(in srgb, var(--ramp) 45%, transparent); }
  .perf__tab[aria-expanded="true"]:hover { color: var(--ramp); }
  .perf__tab[aria-expanded="true"]:hover .perf__mark { background: var(--ramp); }
}

/* центр: пока ничего не открыто, он пуст, и за ним виден Алексей */
.perf__panel { display: grid; place-items: center; padding: 1.5rem clamp(1.25rem, 3vw, 3rem); min-width: 0; }
.perf__item { width: min(100%, calc((var(--fh) - 11rem) * 16 / 9)); }
.perf__title, .perf__line { text-shadow: 0 1px 14px rgb(0 0 0 / 0.9), 0 0 3px rgb(0 0 0 / 0.6); }   /* подпись читается и поверх светлого аккордеона на фоне */
.perf__item[hidden] { display: none; }
.perf__item.is-in { animation: perf-in 320ms var(--ease-out) both; }
@keyframes perf-in { from { opacity: 0; } }

/* рамка-«призрак»: выезжает из складки в центр и раскрывается до размера видео */
.perf__ghost {
  position: absolute; z-index: 2; pointer-events: none;
  background: rgb(10 10 9 / 0.6);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.5);
}

/* Видео без рамки: просто кадр с мягкой тенью, как окно в темноте */
.perf__frame { position: relative; }
.perf__video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgb(0 0 0 / 0.55);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.6), 0 4px 14px rgb(0 0 0 / 0.45);
}
.perf__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* заставка с кнопкой: видна сразу, плеер VK грузится только по нажатию */
.perf__play { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; }
.perf__play:active .perf__play-icon { scale: 0.94; }
.perf__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.perf__play-icon {
  position: relative;
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  border: 1px solid rgb(205 184 146 / 0.75);
  background: rgb(19 19 17 / 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: border-color 200ms ease, background-color 200ms ease, scale 200ms var(--ease-out);
}
.perf__play-icon::after {   /* треугольник «играть», чуть правее центра — так он выглядит по центру */
  content: ""; position: absolute; top: 50%; left: 54%; translate: -50% -50%;
  border-style: solid; border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent var(--pearl);
}
.perf__play:active .perf__play-icon { scale: 0.96; }
.perf__play:focus-visible { outline: 2px solid var(--ramp); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .perf__play:hover .perf__play-icon { border-color: var(--ramp); background: rgb(19 19 17 / 0.7); scale: 1.04; }
}
/* крупный просмотр поверх страницы */
.perf__box {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--pearl);
  overflow: hidden;
}
.perf__box[open] { display: grid; place-items: center; }
.perf__box::backdrop { background: rgb(10 10 9 / 0.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.perf__box-inner { position: relative; width: min(88vw, calc((100dvh - 12rem) * 16 / 9)); transform-origin: 0 0; }
.perf__box-video { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 24px 80px rgb(0 0 0 / 0.7); }
.perf__box-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.perf__box-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 300ms ease; }
.perf__box-video.is-playing iframe { opacity: 1; }
/* пока плеер VK грузится, поверх заставки мягко пульсирует кольцо */
.perf__box-video .perf__play-icon { position: absolute; top: 50%; left: 50%; translate: -50% -50%; animation: perf-wait 1.2s ease-in-out infinite; }
.perf__box-video.is-playing .perf__play-icon { display: none; }
@keyframes perf-wait { 50% { border-color: rgb(205 184 146 / 0.2); } }
.perf__box-title {
  margin-top: 1.25rem;
  font-family: var(--f-display); font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.25; letter-spacing: -0.01em;
}
.perf__box-close {
  position: absolute; right: -0.5rem; bottom: calc(100% + 0.5rem);
  width: 2.75rem; height: 2.75rem; color: var(--pearl);
  transition: color 200ms ease, rotate 300ms var(--ease-out);
}
.perf__box-close::before, .perf__box-close::after {
  content: ""; position: absolute; top: 50%; left: 25%; right: 25%; height: 1px; background: currentColor; rotate: 45deg;
}
.perf__box-close::after { rotate: -45deg; }
.perf__box-close:focus-visible { outline: 2px solid var(--ramp); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .perf__box-close:hover { color: var(--ramp); rotate: 90deg; } }
html.has-box, html.has-cc { overflow: hidden; }   /* открыто видео или окно cookies — страница под ним не прокручивается */
.perf__title {
  margin-top: 1.1rem;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.2; letter-spacing: -0.01em;
  text-wrap: balance;
}
.perf__line { margin-top: 0.45rem; color: var(--pearl-dim); font-size: 0.9375rem; line-height: 1.55; max-width: 64ch; text-wrap: pretty; }

/* телефон: складки списком, видео раскрывается прямо под нажатой (main.js переносит его туда) */
@media (max-width: 699px) {
  .perf__deck { display: block; height: auto; border-top: 1px solid var(--line); }
  .perf__side { display: block; border: 0 !important; }
  .perf__tab {
    display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 1rem;
    width: 100%; padding: 1.1rem 0;
    border-left: 0; border-bottom: 1px solid var(--line);
    text-align: left;
  }
  .perf__tab::before { display: none; }
  .perf__label { writing-mode: horizontal-tb; transform: none; font-size: 1rem; white-space: normal; }
  .perf__panel { display: block; padding: 0; }
  .perf__item { width: 100%; padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--line); }
}

/* текст только для экранных дикторов */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Музыка: конверты с пластинками ---------- */

/* альбом с подписью и кнопками стоит посередине экрана по высоте (сверху — место под шапку) */
.music { display: flex; flex-direction: column; justify-content: center; padding: 5.5rem 0 2.5rem; }


/* Карусель по кругу: главный альбом по центру, соседние по бокам меньше и в тени (как будто позади),
   остальные спрятаны за ними. Положение каждого альбома скрипт пишет в data-pos:
   0 — центр, -1 и 1 — по бокам, -2 и 2 — спрятаны.
   Расчёт в ширинах картинки главного альбома (--w). Главный альбом вместе с выдвинутой пластинкой
   занимает от -0,511 до 0,511 относительно середины экрана, боковые (масштаб 0,45) — до ±1,009,
   между ними зазор 0,06: картинки не наезжают друг на друга. */
.deck {
  /* ширина картинки главного альбома: по ширине экрана (боковые альбомы и стрелки должны помещаться)
     и по высоте (под альбомом ещё название и кнопки площадок) */
  --w: min(46rem, calc((50vw - var(--gutter) - 3.75rem) / 1.08), calc((100 * var(--vh, 1svh) - 28rem) / 0.747));   /* заголовка нет — альбом крупнее */
  --side: 0.45;    /* масштаб боковых альбомов */
  /* По центру страницы стоит обложка (её глаз и считает альбомом), пластинка выглядывает вправо.
     --cx — середина обложки в долях ширины кадра; у всех пяти макетов почти одна.
     Соседи сдвинуты несимметрично, потому что справа у альбома ещё пластинка: так промежутки слева и справа равны. */
  --cx: 0.35;
  --dl: 0.67;      /* левый сосед: половина обложки главного + промежуток + правая часть уменьшенного (с пластинкой) */
  --dr: 0.80;      /* правый сосед: правая часть главного (с пластинкой) + промежуток + половина уменьшенной обложки */
  --move: 760ms;
  position: relative;
  height: calc(var(--w) * 0.747 + 15rem);   /* под альбомом: название, отрывок с таймлайном и кнопки площадок */
  overflow-x: clip;
  touch-action: pan-y;   /* свайп вбок листает альбомы, вертикальный прокручивает страницу */
}
.deck__list { list-style: none; margin: 0; padding: 0; }

/* Два слоя одного размера (1968 × 1470 в исходнике), совмещены пиксель в пиксель: пластинка за конвертом.
   Конверт занимает левые ~71 % картинки, его центр — на 36,1 % ширины; центр пластинки — в точке 60,7 % × 49,6 %.
   По центру экрана стоит конверт, пластинка выглядывает справа. */
.album {
  position: absolute; top: 0;
  left: calc(50% - var(--w) * var(--cx));   /* середина обложки — ровно посередине страницы */
  width: var(--w);
  transform-origin: calc(var(--w) * var(--cx)) calc(var(--w) * 0.3735);
  transition: transform var(--move) var(--ease-out), opacity var(--move) var(--ease-out), visibility 0s;
}
.album[data-pos="0"] { z-index: 3; }
.album[data-pos="-1"], .album[data-pos="1"] { z-index: 2; }
.album[data-pos="-1"] { transform: translateX(calc(var(--w) * var(--dl) * -1)) scale(var(--side)); }
.album[data-pos="1"] { transform: translateX(calc(var(--w) * var(--dr))) scale(var(--side)); }
/* спрятанные уходят за боковые и гаснут; через круг они перелетают невидимыми */
.album[data-pos="-2"], .album[data-pos="2"] {
  z-index: 1; opacity: 0; visibility: hidden;
  transition: transform var(--move) var(--ease-out), opacity calc(var(--move) * 0.6) var(--ease-out), visibility 0s var(--move);
}
.album[data-pos="-2"] { transform: translateX(calc(var(--w) * -1.02)) scale(calc(var(--side) * 0.7)); }
.album[data-pos="2"] { transform: translateX(calc(var(--w) * 1.22)) scale(calc(var(--side) * 0.7)); }

/* Альбом — два прозрачных слоя одного кадра (1968 × 1470 в исходнике), совмещённых пиксель в пиксель:
   пластинка за конвертом (tools/make-mockup-layers.py). Конверт всегда у левого края кадра, по высоте посередине;
   его ширину и высоту (--sw, --sh, --st), центр пластинки (--vc) и сдвиг, прячущий пластинку
   в конверт (--in), скрипт печатает для атрибута style кнопки альбома. */
.album__art {
  --dur: 900ms;
  position: relative; display: block;
  width: 100%; aspect-ratio: 1968 / 1470;
  padding: 0; background: none; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* главный альбом наклоняется вслед за мышкой (скрипт пишет transform); пластинка лежит глубже конверта */
  transform-style: preserve-3d;
  transform-origin: 35% 50%;
  transition: filter var(--move) var(--ease-out), transform 500ms var(--ease-out);
}
/* боковые альбомы в тени */
.album:not([data-pos="0"]) .album__art { filter: brightness(0.34) saturate(0.65); }
@media (hover: hover) and (pointer: fine) {
  .album[data-pos="-1"] .album__art:hover, .album[data-pos="1"] .album__art:hover { filter: brightness(0.5) saturate(0.8); }
}

.album__vinyl, .album__sleeve { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.album__vinyl {
  z-index: 1;
  transform: translateZ(calc(var(--w) * -0.012));   /* чуть глубже конверта: при наклоне виден объём, края не выглядывают */
  transform-origin: var(--vc, 60% 50%);
  rotate: var(--vr, 0deg);   /* угол, на котором остановилась пластинка после отрывка (ставит js/main.js) */
  transition: translate var(--dur) var(--ease-out), rotate var(--dur) var(--ease-out);
}
.album__sleeve { z-index: 3; transform: translateZ(0); transition: translate var(--dur) var(--ease-out); }

/* Тень конверта лежит на пластинке и на странице; конверт поднимается над ней, поэтому тень кажется глубже.
   Тень — сплошное размытое пятно под всем конвертом, а не только кайма вокруг него: иначе при подъёме
   конверта снизу открывалась бы незатенённая полоска и выглядела светлым следом. */
.album__shadow {
  position: absolute; z-index: 2; pointer-events: none;
  left: 0.86%; top: var(--st, 3%); width: var(--sw, 69%); height: var(--sh, 94%);
  transform: translateZ(-1px);
}
.album__shadow::before, .album__shadow::after {
  content: ""; position: absolute;
  background: rgb(0 0 0);
  transition: opacity var(--dur) var(--ease-out);
}
.album__shadow::before { inset: 1.5% 1% -1.5% 1%; opacity: 0.6; filter: blur(calc(var(--w) * 0.012)); }
.album__shadow::after { inset: 3% -0.5% -4% 1.5%; opacity: 0; filter: blur(calc(var(--w) * 0.035)); }

/* раскрытое состояние главного альбома: наведение мышью, фокус с клавиатуры, нажатие на телефоне.
   Пластинка выдвигается на 5 % кадра и чуть поворачивается, конверт приподнимается. */
.album[data-pos="0"].is-open .album__vinyl,
.album[data-pos="0"]:has(.album__art:focus-visible) .album__vinyl { translate: 5% 0; rotate: calc(var(--vr, 0deg) + 7deg); }
.album[data-pos="0"].is-open .album__sleeve,
.album[data-pos="0"]:has(.album__art:focus-visible) .album__sleeve { translate: 0 -1.2%; }
.album[data-pos="0"].is-open .album__shadow::after,
.album[data-pos="0"]:has(.album__art:focus-visible) .album__shadow::after { opacity: 0.75; }
/* .is-arriving — альбом только что стал главным и приехал под неподвижную мышку (нажали на соседний):
   такое «наведение» пластинку не выдвигает, иначе она выезжала и тут же пряталась, когда альбом уходил из-под курсора.
   Снимает скрипт, когда мышью поведут после остановки альбома */
@media (hover: hover) and (pointer: fine) {
  .album[data-pos="0"]:not(.is-arriving) .album__art:hover .album__vinyl { translate: 5% 0; rotate: calc(var(--vr, 0deg) + 7deg); }
  .album[data-pos="0"]:not(.is-arriving) .album__art:hover .album__sleeve { translate: 0 -1.2%; }
  .album[data-pos="0"]:not(.is-arriving) .album__art:hover .album__shadow::after { opacity: 0.75; }
}
.album__art:focus-visible { outline: none; }
.album__art:focus-visible .album__shadow { outline: 2px solid var(--ramp); outline-offset: 4px; }

/* Появление при первом показе раздела. Скрипт ставит классы по очереди:
   is-pre (исходное положение) → is-intro (появление) → is-out (выезжает пластинка).
   Главный конверт проступает из полутьмы зала: из лёгкой размытости в резкость, чуть поднимаясь;
   пластинка пока внутри. Затем она выезжает,
   оба соседних конверта одновременно выходят из тени из-за главного, последними — название и стрелки. */
.deck.is-pre .album[data-pos="0"] { opacity: 0; filter: blur(10px); transform: translateY(calc(var(--w) * 0.05)) scale(0.97); }
.deck.is-pre .album[data-pos="-1"], .deck.is-pre .album[data-pos="1"] { opacity: 0; transform: scale(0.4); }
.deck.is-pre .album[data-pos="0"] .album__info, .deck.is-pre .deck__arrow { opacity: 0; }
.deck.is-pre .album[data-pos="0"] .album__vinyl,
.deck.is-intro:not(.is-out) .album[data-pos="0"] .album__vinyl { translate: var(--in, -25%) 0; }

.deck.is-intro .album[data-pos="0"] { transition: transform 1800ms var(--ease-drawer), opacity 1200ms var(--ease-out), filter 1400ms var(--ease-out); }
.deck.is-out .album[data-pos="0"] .album__vinyl { transition: translate 1400ms var(--ease-drawer), rotate 1400ms var(--ease-drawer); }
.deck.is-intro .album[data-pos="-1"] { transition: transform 1300ms var(--ease-drawer) 2000ms, opacity 800ms var(--ease-drawer) 2000ms; }
.deck.is-intro .album[data-pos="1"] { transition: transform 1300ms var(--ease-drawer) 2000ms, opacity 800ms var(--ease-drawer) 2000ms; }
.deck.is-intro .album[data-pos="0"] .album__info { transition: opacity 700ms var(--ease-drawer) 2600ms, visibility 0s; }
.deck.is-intro .deck__arrow { transition: opacity 700ms var(--ease-out) 2900ms; }
/* на телефоне появление вдвое короче (0,55 от компьютерного, как и таймеры в js/main.js) */
@media (max-width: 699px) {
  .deck.is-intro .album[data-pos="0"] { transition: transform 1000ms var(--ease-drawer), opacity 660ms var(--ease-out), filter 770ms var(--ease-out); }
  .deck.is-out .album[data-pos="0"] .album__vinyl { transition: translate 770ms var(--ease-drawer), rotate 770ms var(--ease-drawer); }
  .deck.is-intro .album[data-pos="-1"],
  .deck.is-intro .album[data-pos="1"] { transition: transform 715ms var(--ease-drawer) 1100ms, opacity 440ms var(--ease-drawer) 1100ms; }
  .deck.is-intro .album[data-pos="0"] .album__info { transition: opacity 385ms var(--ease-drawer) 1430ms, visibility 0s; }
  .deck.is-intro .deck__arrow { transition: opacity 385ms var(--ease-out) 1600ms; }
  /* пластинка по нажатию тоже выезжает быстрее */
  .album__art { --dur: 550ms; }
}

/* название и ссылки — под главным альбомом, по центру обложки (это и центр страницы) */
.album__info {
  width: 70.5%; margin-top: 1.75rem;
  margin-left: calc(var(--cx) * 100% - 35.25%);
  text-align: center;
  opacity: 0; visibility: hidden;
  transition: opacity 240ms var(--ease-out), visibility 0s 240ms;
}
.album[data-pos="0"] .album__info {
  opacity: 1; visibility: visible;
  transition: opacity 420ms var(--ease-out) 260ms, visibility 0s;
}
.album__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.4rem, 2.1vw, 2rem); line-height: 1.1; letter-spacing: -0.01em;
  text-wrap: balance;
}
.album__meta { margin-top: 0.5rem; color: var(--pearl-dim); font-size: 0.9375rem; letter-spacing: 0.02em; }
/* «Слушать» прописью, под ним двойная линейка с ромбом, как на титуле нотного издания */
/* Отрывок трека: кнопка «играть», таймлайн и оставшееся время. Таймлайн — та же двойная линейка с ромбом, что на титуле
   нотного издания: ромб — бегунок, пройденная часть линеек золотая. Нажать или провести по линейке — перемотка.
   Файл (media/audio, tools/make-audio-previews.py) грузится только по нажатию.
   Пока играет, пластинка выезжает из конверта и медленно вращается (оборот за 5 с); на паузе плавно останавливается
   там, где была, — вращение ведёт js/main.js */
.album__player {
  --p: 0;   /* пройденная доля отрывка, 0…1 — ставит скрипт */
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.85rem;
  width: min(22rem, 100%); margin: 1.1rem auto 0;
}
.album__play {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0;
  border: 1px solid rgb(236 231 221 / 0.35); border-radius: 50%; background: rgb(19 19 17 / 0.35); color: var(--pearl); cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}
/* значок: треугольник «играть», при игре — две полоски «пауза» */
.album__play-icon { width: 0.6rem; height: 0.7rem; margin-left: 0.15rem; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.album__play[aria-pressed="true"] .album__play-icon {
  width: 0.55rem; margin-left: 0; clip-path: none;
  background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%);
}
.album__play:focus-visible, .album__track:focus-visible { outline: 1px solid var(--ramp); outline-offset: 3px; }
/* линейка: две тонкие линии; поле нажатия выше самих линий — по ним удобно попасть пальцем */
.album__track {
  position: relative; height: 2.75rem; cursor: pointer; touch-action: none;
  background:
    linear-gradient(var(--smoke), var(--smoke)) left calc(50% - 1px) / 100% 1px no-repeat,
    linear-gradient(var(--smoke), var(--smoke)) left calc(50% + 2px) / 100% 1px no-repeat;
}
.album__fill {
  position: absolute; left: 0; top: calc(50% - 1px); width: calc(var(--p) * 100%); height: 4px;
  border-block: 1px solid var(--ramp); box-sizing: border-box; pointer-events: none;
}
.album__head {
  position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 9px; height: 9px; translate: -50% -42%; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath d='M4.5 0 9 4.5 4.5 9 0 4.5Z' fill='%23cdb892'/%3E%3C/svg%3E") center / 9px 9px no-repeat;
  transition: scale 200ms var(--ease-out);
}
.album__track:active .album__head, .album__player.is-seeking .album__head { scale: 1.5; }
.album__time { min-width: 2.4em; text-align: right; color: var(--smoke); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .album__play:hover { color: var(--ramp); border-color: rgb(205 184 146 / 0.6); }
  .album__track:hover .album__head { scale: 1.3; }
}
.album[data-pos="0"].is-playing .album__vinyl { translate: 5% 0; }
.album[data-pos="0"].is-playing .album__sleeve { translate: 0 -1.2%; }
/* Кнопки площадок шире подписи под конвертом: ряд центрируется по ней, но может выходить за её края */
.album__links {
  display: flex; flex-wrap: nowrap; justify-content: center; gap: 0.5rem;
  position: relative; left: 50%; translate: -50% 0;
  width: max-content; max-width: calc(100vw - 2 * var(--gutter));
  margin-top: 1rem; list-style: none; padding: 0;
}

/* Кнопка площадки в барочной рамке. Рамка — картинка Higgsfield, разрезанная на концы с акантом
   и тянущуюся середину (tools/make-cartouche.py); при наведении она становится ярче.
   Внутри — официальный значок площадки одним цветом (Simple Icons, CC0; Яндекс Музыка — Icons8) и название. */
.pl {
  --h: 3.5rem;   /* высота кнопки; концы рамки — 0,63 высоты в ширину */
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  height: var(--h); padding: 0 calc(var(--h) * 0.8);
  color: var(--pearl); font-size: 1rem; white-space: nowrap; text-decoration: none;
  transition: color 400ms var(--ease-out), transform 140ms var(--ease-out);
}
/* отклик на нажатие, как у кнопок «Пригласить» / «Слушать»: палец сразу видит, что нажатие принято */
.pl:active { transform: scale(0.97); }
.pl::before, .pl::after {
  content: ""; position: absolute; pointer-events: none;
  filter: brightness(0.82) saturate(0.85);
  transition: filter 400ms var(--ease-out);
}
.pl::before { inset: 0 calc(var(--h) * 0.62); background: url("../media/frame/cartouche-mid.png") 0 0 / auto 100% repeat-x; }
.pl::after {
  inset: 0;
  background:
    url("../media/frame/cartouche-left.png") left center / auto 100% no-repeat,
    url("../media/frame/cartouche-right.png") right center / auto 100% no-repeat;
}
.pl__icon {
  width: 1.15rem; height: 1.15rem; flex: none;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.pl__icon--yandex { --i: url("../media/icons/yandexmusic.png"); }
.pl__icon--vk { --i: url("../media/icons/vk.svg"); }
.pl__icon--spotify { --i: url("../media/icons/spotify.svg"); }
.pl__icon--telegram { --i: url("../media/icons/telegram.svg"); }
.pl__icon--max { --i: url("../media/icons/max.svg"); }
.pl__icon--phone { --i: url("../media/icons/phone.svg"); }
@media (hover: hover) and (pointer: fine) {
  .pl:hover { color: var(--ramp); }
  .pl:hover::before, .pl:hover::after { filter: brightness(1.15) saturate(1.05); }
}
.pl:focus-visible { outline: none; color: var(--ramp); }
.pl:focus-visible::before, .pl:focus-visible::after { filter: brightness(1.15) saturate(1.05); }

/* стрелки снаружи от боковых альбомов, на уровне середины обложек */
.deck__arrow {
  position: absolute; z-index: 4;
  top: calc(var(--w) * 0.3735 - 1.375rem);
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  color: var(--pearl-dim);
  transition: color 200ms ease, transform 140ms var(--ease-out);
}
.deck__arrow svg { width: 1.25rem; height: 1.25rem; }
.deck__arrow--prev { left: calc(50% - var(--w) * 0.83 - 3.75rem); }   /* за левым соседом */
.deck__arrow--next { left: calc(50% + var(--w) * 1.07 + 1rem); }    /* за правым соседом с его пластинкой */
.deck__arrow:active { transform: scale(0.94); }
.deck__arrow:focus-visible { outline: 2px solid var(--ramp); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .deck__arrow:hover { color: var(--pearl); }
}

/* телефон: главный альбом крупно, боковые выглядывают по краям экрана;
   стрелкам рядом с ними места нет, поэтому они стоят по краям экрана на уровне названия */
@media (max-width: 699px) {
  .deck { --w: 70vw; height: calc(var(--w) * 0.747 + 17rem); }
  /* подпись под альбомом — по центру экрана, а не конверта: конверт сдвинут влево, чтобы справа поместилась пластинка */
  .album__info { width: calc(100vw - 2 * var(--gutter)); margin-left: calc(var(--w) * var(--cx) - 50vw + var(--gutter)); }
  .album__title, .album__meta { padding-inline: 2.75rem; }   /* по краям строки названия стоят стрелки */
  /* кнопки площадок: по две в ряд, одной ширины */
  .album__links { flex-wrap: wrap; width: min(22rem, calc(100vw - 2 * var(--gutter))); gap: 0.6rem 0.4rem; }
  .album__links li { flex: 0 0 calc(50% - 0.2rem); }
  .pl { --h: 3rem; width: 100%; padding: 0 calc(var(--h) * 0.42); gap: 0.35rem; font-size: 0.8125rem; }
  .pl__icon { width: 0.95rem; height: 0.95rem; }
  .deck__arrow { top: calc(var(--w) * 0.747 + 1.75rem); color: var(--pearl); }
  .deck__arrow--prev { left: calc(var(--gutter) - 0.75rem); }
  .deck__arrow--next { left: auto; right: calc(var(--gutter) - 0.75rem); }
}

@media (prefers-reduced-motion: reduce) {
  .deck { --move: 0ms; }
  .album__art { --dur: 0ms; }
  .album[data-pos="0"].is-open .album__vinyl, .album[data-pos="0"]:has(.album__art:focus-visible) .album__vinyl { rotate: var(--vr, 0deg); }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .album[data-pos="0"] .album__art:hover .album__vinyl { rotate: var(--vr, 0deg); }
}

/* ---------- Форматы и площадки ---------- */

.formats { padding: var(--section) var(--gutter) 0; }

/* «Форматы выступлений» — «Сцена»: вкладки-названия, под ними кадр и подробности выбранного формата.
   Компьютер: кадр слева (3:2, не крупнее своего размера), подробности справа — формат целиком в одном экране.
   Телефон: кадр в полях страницы, под ним текст. Тонкая золотая рамка внутри кадра — как у паспарту.
   Кадры лежат друг на друге и сменяются растворением; панели тоже лежат в одной клетке сетки — высота раздела
   равна самой длинной панели и не прыгает при переключении */
.nw { white-space: nowrap; }
.fmt { margin-top: clamp(2rem, 4vw, 3.5rem); max-width: 76rem; }

.fmt__tabs { position: relative; display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); }
.fmt__tab {
  font: inherit; font-family: var(--f-display); font-size: clamp(1.125rem, 1.7vw, 1.45rem); line-height: 1.2;
  color: var(--smoke); background: none; border: 0; padding: 0 0 1rem; cursor: pointer; text-align: left;
  transition: color 300ms var(--ease-out);
}
.fmt__tab[aria-selected="true"] { color: var(--pearl); cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .fmt__tab[aria-selected="false"]:hover { color: var(--pearl-dim); }
}
.fmt__tab:focus-visible { outline: 1px solid var(--ramp); outline-offset: 4px; }
/* золотая черта под выбранной вкладкой; ширину и сдвиг ставит скрипт */
.fmt__bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--ramp);
  transition: transform 600ms var(--ease-out), width 600ms var(--ease-out); }

.fmt__body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center; margin-top: clamp(1.75rem, 3vw, 2.5rem); }

.fmt__stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #000;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.45); }
.fmt__stage::after { content: ""; position: absolute; inset: 0.6rem; border: 1px solid rgb(205 184 146 / 0.3); pointer-events: none; }
.fmt__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  opacity: 0; transform: scale(1.03); transition: opacity 800ms var(--ease-out), transform 1400ms var(--ease-out); }
.fmt__stage img.is-on { opacity: 1; transform: none; }

.fmt__panels { display: grid; }
.fmt__panel { grid-area: 1 / 1; display: grid; gap: 1.5rem; align-content: center;
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s linear 300ms; }
.fmt__panel.is-on { visibility: visible; opacity: 1; transform: none;
  transition: opacity 500ms var(--ease-out) 200ms, transform 500ms var(--ease-out) 200ms, visibility 0s; }
.fmt__panel h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 2.5vw, 2.3rem); line-height: 1.15;
  letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 0.85rem; }
.fmt__panel p { margin: 0; max-width: 40ch; color: var(--pearl-dim); font-size: clamp(1rem, 1.15vw, 1.0625rem); line-height: 1.6; text-wrap: pretty; }

/* факты: подпись слева, значение справа, тонкая линия между строками */
.fmt__facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 1.25rem; font-size: 0.9375rem; }
.fmt__facts dt, .fmt__facts dd { margin: 0; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.fmt__facts dt { color: var(--smoke); }
.fmt__facts dd { color: var(--pearl); }
.fmt__call { margin-top: 1.25rem; }

/* уже 900 px: кадр сверху (не шире 46rem), подробности под ним */
@media (max-width: 899px) {
  .fmt__body { grid-template-columns: 1fr; gap: 1.5rem; }
  .fmt__stage { max-width: 46rem; }
}

/* телефон: три вкладки равными колонками (все названия видны, в две строки); по кадру можно провести пальцем */
@media (max-width: 699px), (hover: none) and (pointer: coarse) {
  .fmt__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .fmt__tab { font-size: 1.0625rem; padding-bottom: 0.85rem; }
  .fmt__body { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
  .fmt__stage { box-shadow: 0 12px 32px rgb(0 0 0 / 0.4); touch-action: pan-y; }
  .fmt__stage::after { inset: 0.45rem; }
  .fmt__facts { grid-template-columns: 1fr; }
  .fmt__facts dt { padding-bottom: 0.15rem; }
  .fmt__facts dd { border-top: 0; padding-top: 0; }
  .fmt__call { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fmt__stage img { transform: none; transition-duration: 300ms; }
  .fmt__panel, .fmt__panel.is-on { transform: none; }
  .fmt__bar { transition: none; }
}

/* «Выступал на сценах» — воронка: заголовок по центру, двойная линейка с ромбом (тот же знак, что под «Слушать»
   в «Музыке»), залы по одному в строке от длинных названий к коротким; строки сужаются к ромбу, от него вниз нить
   приводит к разделу «Пригласить». К острию строки светлее: взгляд стекает к контактам. Появление — js/main.js (GSAP).
   Компьютер: воронка и контакты стоят по оси промежутка между вкладками шапки (--axis ставит js/main.js) —
   отступ слева вдвое больше сдвига переносит середину блока ровно на эту ось */
.venues { margin-top: clamp(6rem, 12vw, 10rem); padding-left: calc(var(--axis, 0px) * 2); display: grid; justify-items: center; text-align: center; }
.venues__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.venues__rule { display: grid; grid-template-columns: 1fr 9px 1fr; align-items: center; gap: 10px; width: min(26rem, 80%); margin: 1.4rem auto clamp(1.75rem, 3.5vw, 2.5rem); }
.venues__rule i { height: 5px; border-block: 1px solid var(--smoke); }
.venues__rule i:first-child { transform-origin: right; }
.venues__rule i:last-child { transform-origin: left; }
.venues__rule b, .venues__tip {
  width: 9px; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath d='M4.5 0 9 4.5 4.5 9 0 4.5Z' fill='%23cdb892'/%3E%3C/svg%3E") center / 9px 9px no-repeat;
}
.venues__list { list-style: none; margin: 0; padding: 0; display: grid; justify-items: center; gap: 0.15rem; }
.venues__list li {
  font-family: var(--f-display); font-size: clamp(1rem, 2.3vw, 2.1rem); line-height: 1.3; letter-spacing: -0.015em; white-space: nowrap;
  color: color-mix(in srgb, var(--pearl) calc(55% + var(--k, 0) * 6%), var(--smoke));
}
@media (max-width: 699px) { .venues__list li { font-size: clamp(1rem, 4.6vw, 1.3rem); } }
.venues__tip { display: block; margin: 1.1rem auto 0.7rem; }
.venues__stem { display: block; width: 1px; height: clamp(3.5rem, 8vw, 6rem); margin: 0 auto;
  background: linear-gradient(var(--ramp), rgb(140 135 125 / 0.5)); transform-origin: top; }

/* ---------- Пригласить ---------- */

/* продолжение воронки: заголовок там, куда приводит нить от ромба; контакты на той же оси, что воронка (по центру);
   раздел высотой по содержимому — сразу под залами, без пустого экрана */
.invite {
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--gutter) var(--section) calc(var(--gutter) + var(--axis, 0px) * 2);
  display: grid; gap: 1.1rem; justify-items: center; align-content: start; text-align: center;
}
.invite__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em;
  max-width: 19ch; text-wrap: balance;
}
.invite .lede { max-width: 34ch; margin: 0; }
/* звонок — главная кнопка: номер виден сразу, на телефоне набирается одним касанием */
.invite__call { gap: 0.7rem; margin-top: 0.9rem; font-size: 1.125rem; letter-spacing: 0.03em; font-variant-numeric: lining-nums tabular-nums; }
.invite__call .pl__icon { width: 1.05rem; height: 1.05rem; }
/* мессенджеры — те же картуши, что «Слушать» в разделе «Музыка» */
.invite__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.25rem; }
/* на телефоне — столбиком одной ширины со звонком, чтобы ВКонтакте не оставался один во второй строке */
@media (max-width: 699px) {
  .invite__call, .invite__links { width: min(100%, 17rem); }
  .invite__links { flex-direction: column; gap: 0.4rem; }
  .invite__links .pl { width: 100%; --h: 3.25rem; font-size: 0.9375rem; }
}

/* Safari рисует поверх видео свою кнопку «плей», когда не даёт запустить его само (энергосбережение, настройка
   автовоспроизведения). Фоновым видео она не нужна: виден кадр, а запуск — по первому касанию (js/main.js) */
.stage video::-webkit-media-controls, .stage video::-webkit-media-controls-start-playback-button,
.stage video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }

/* ---------- Заставка ---------- */
/* Логотип собирается по частям (разметка — tools/logo/make_intro.py) и растворяется над первым экраном.
   Сборка — чистый CSS (идёт, пока грузятся видео и скрипты, и не подтормаживает); класс is-run в разметке запускает её
   сразу с первой отрисовки. Порядок: двойной овал рисуется линией → стебель растёт снизу вверх → 12 листьев по нотам
   одной октавы (до … си, снизу вверх) → буквы А и К проступают слева направо, как при письме пером. Около 3,6 с.
   Дальше решает js/main.js: видео первого экрана готово — уход (is-out); нет — логотип гаснет (is-reset)
   и собирается снова, до трёх раз. Любое действие посетителя — быстрый уход (is-out + is-fast) */
.intro { display: none; }
.has-intro { overflow: hidden; animation: intro-unlock 0s 16.6s forwards; }   /* страховка без скрипта: вместе с заставкой уходит и запрет прокрутки */
/* фон — тёплые коричневые тона первого видео, высветленные, чтобы чёрный логотип читался:
   кофе с молоком в середине, к краям тёплая умбра. Логотип почти чёрный — тем же тёмным, что фон сайта */
.has-intro .intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(ellipse 75% 70% at 50% 46%, #ab967b 0%, #8e785e 52%, #5f4f3f 100%);
  color: var(--hall);
  animation: intro-failsafe 600ms ease 16s forwards;   /* страховка без скрипта: заставка уйдёт сама */
}
.intro__logo { position: relative; width: min(76vw, 40rem); aspect-ratio: 6621.1 / 2437.5; transition: opacity 600ms var(--ease-out); }
.intro__layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro__oval { stroke-dasharray: 1; stroke-dashoffset: 0; }
.intro__stem, .intro__note { transform-box: fill-box; }
.intro__stem { transform-origin: 50% 100%; }
.intro__note--w { transform-origin: 0% 50%; }   /* белые клавиши — листья справа, раскрываются от стебля вправо */
.intro__note--b { transform-origin: 100% 50%; } /* чёрные — слева */
.intro__letters {
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 220% 100%; mask-size: 220% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0% 0; mask-position: 0% 0;
}
/* сборка: внешний овал рисуется по часовой, внутренний — навстречу; затем стебель, листья, буквы */
.intro.is-run .intro__oval--outer { animation: intro-draw 1800ms var(--ease-in-out) 200ms both; }
.intro.is-run .intro__oval--inner { animation: intro-draw-back 1750ms var(--ease-in-out) 450ms both; }
.intro.is-run .intro__stem { animation: intro-grow 1000ms var(--ease-out) 950ms both; }
.intro.is-run .intro__note { animation: intro-leaf 650ms var(--ease-out) calc(1350ms + var(--n) * 105ms) both; }
.intro.is-run .intro__letters { animation: intro-write 1500ms var(--ease-in-out) 2050ms both; }
@keyframes intro-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes intro-draw-back { from { stroke-dashoffset: -1; } to { stroke-dashoffset: 0; } }
@keyframes intro-grow { from { transform: scaleY(0.02); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-leaf { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-write { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0% 0; mask-position: 0% 0; } }
/* сайт ещё не готов: логотип гаснет перед новой сборкой */
.intro.is-reset .intro__logo { opacity: 0; }
/* уход: фон растворяется, логотип чуть увеличивается и расплывается; по действию посетителя — быстрее */
.has-intro .intro.is-out { animation: intro-out 800ms var(--ease-out) forwards; }
.intro.is-out .intro__logo { animation: intro-logo-out 800ms var(--ease-out) forwards; }
.has-intro .intro.is-out.is-fast, .intro.is-out.is-fast .intro__logo { animation-duration: 350ms; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
@keyframes intro-unlock { to { overflow: visible; } }
@keyframes intro-logo-out { to { opacity: 0; transform: scale(1.04); filter: blur(4px); } }
/* «уменьшить движение»: логотип сразу целиком, без рисования и движения; уходит, когда сайт готов */
@media (prefers-reduced-motion: reduce) {
  .intro.is-run .intro__oval--outer, .intro.is-run .intro__oval--inner, .intro.is-run .intro__stem,
  .intro.is-run .intro__note, .intro.is-run .intro__letters, .intro.is-out .intro__logo { animation: none; }
}

/* ---------- Подвал ---------- */

.foot {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--smoke);
}

.foot__credit { margin-left: auto; }
@media (max-width: 699px) {
  .foot { flex-wrap: wrap; }
  .foot__credit { margin-left: 0; width: 100%; }
  /* ссылка Icons8 мелкая: зону нажатия увеличиваем невидимым полем, вид не меняется */
  .foot__credit a { display: inline-block; padding: 0.7rem 0.4rem; margin: -0.7rem -0.4rem; }
}

/* ---------- Cookies ---------- */

/* значок-печенька в правом нижнем углу, пока посетитель не выбрал; окно открывается только по нажатию.
   Речь о плеере ВКонтакте — сам сайт cookies не ставит */
.cc-fab {
  position: fixed; z-index: 30; right: var(--gutter); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: rgb(27 26 23 / 0.9); color: var(--pearl-dim);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.45); cursor: pointer;
  opacity: 0; scale: 0.85; transition: opacity 400ms var(--ease-out), scale 500ms var(--ease-out), color 200ms ease, border-color 200ms ease;
}
.cc-fab[hidden] { display: none; }
.cc-fab.is-in { opacity: 1; scale: 1; }
.cc-fab:focus-visible { outline: 1px solid var(--ramp); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .cc-fab:hover { color: var(--ramp); border-color: rgb(205 184 146 / 0.5); } }
.ccd__actions { display: flex; gap: 0.5rem; }
.ccd .btn { min-height: 2.75rem; padding: 0 1.25rem; font-size: 0.9375rem; }
/* «Cookies» в подвале — текстовая ссылка, открывает окно с выбором */
.foot__cookies {
  font: inherit; color: var(--pearl); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgb(205 184 146 / 0.6); text-underline-offset: 0.2em;
}
.foot__cookies { color: var(--smoke); }
.foot__cookies:focus-visible { outline: 1px solid var(--ramp); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .foot__cookies:hover { color: var(--ramp); } }

/* окно: что сохраняется и выбор */
.ccd {
  width: min(34rem, calc(100vw - 2rem)); padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line); background: var(--hall-2); color: var(--pearl-dim);
  font-size: 0.9375rem; line-height: 1.6; box-shadow: 0 30px 80px rgb(0 0 0 / 0.6);
}
.ccd::backdrop { background: rgb(10 10 9 / 0.75); }
.ccd h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.2; color: var(--pearl); margin: 0 2.5rem 1rem 0; }
.ccd__lead { display: none; margin: 0 0 1rem; color: var(--pearl); }
.ccd.is-video .ccd__lead { display: block; }   /* окно открыто нажатием на видео */
.ccd ul { display: grid; gap: 0.6rem; margin: 0 0 1.5rem; padding-left: 1.1rem; }
.ccd b { font-weight: 400; color: var(--pearl); }
.ccd a { color: var(--pearl); text-underline-offset: 0.2em; }
.ccd__close { top: 0.5rem; right: 0.5rem; bottom: auto; }
.ccd { overflow-x: hidden; }   /* крестик при наведении поворачивается и углом выходит за край: без этого появлялась полоса прокрутки, окно дёргалось и наведение мигало */
.ccd:focus, .perf__box:focus { outline: none; }   /* при открытии фокус получает само окно (main.js), рамка ему не нужна; Tab ведёт к кнопкам, у них рамка своя */

@media (max-width: 699px) {
  .cc-fab { right: 0.5rem; bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)); width: 2.5rem; height: 2.5rem; }   /* ниже и правее кнопок первого экрана */
  .ccd__actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .cc-fab { scale: none; transition-duration: 200ms; } }

/* ---------- Меньше движения ---------- */

@media (prefers-reduced-motion: reduce) {
  .perf__item.is-in { animation: none; }
  .perf__box-video .perf__play-icon { animation: none; }
}
