/* Покадрово. Шрифт Old Standard TT лежит в fonts/ (SIL OFL 1.1, текст лицензии там же). */

@font-face {
  font-family: "Old Standard";
  src: url("fonts/old-standard-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Old Standard";
  src: url("fonts/old-standard-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Old Standard";
  src: url("fonts/old-standard-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #e8ece3;
  --paper-deep: #dce2d5;
  --ink: #16181d;
  --ink-soft: #3b414b;
  --ink-mute: #575e69;
  --line: #b6bdaf;
  --carmine: #a4123f;
  --carmine-ink: #fbf3f5;
  --hall: #101113;
  --hall-ink: #ebe8dd;
  --hall-mute: #a4a29a;
  --hall-line: #34363a;

  /* Вирирование: так в немом кино красили плёнку по сценам */
  --tint-risovannaya: #d69a2d;
  --tint-kukolnaya: #3e8a62;
  --tint-perekladka: #d0657f;
  --tint-bespredmetnaya: #3768b8;

  --book: "Old Standard", "Old Standard TT", "Sitka Text", Cambria, "PT Serif", "Noto Serif", Georgia, serif;
  --mono: "Courier Prime", "Courier New", ui-monospace, "Cascadia Mono", Menlo, monospace;

  --sheet: 1360px;
  --side: clamp(16px, 4vw, 56px);
  --gate: 9px;
  --swing: cubic-bezier(0.2, 0.75, 0.15, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121513;
    --paper-deep: #1a1e1b;
    --ink: #e7e5db;
    --ink-soft: #bdbcb2;
    --ink-mute: #979890;
    --line: #333833;
    --carmine: #f0809c;
    --carmine-ink: #1b0a10;
    --hall: #08090a;
    --tint-risovannaya: #b57c18;
    --tint-kukolnaya: #2f7550;
    --tint-perekladka: #b24d68;
    --tint-bespredmetnaya: #2b5aa6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.55 var(--book);
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* Зерно плёнки: один неподвижный слой поверх страницы, щелчки не перехватывает */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background: url("grain.svg"); opacity: 0.07; mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) {
  body::after { opacity: 0.09; mix-blend-mode: screen; }
}

img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--carmine); }
:focus-visible { outline: 2px solid var(--carmine); outline-offset: 3px; }

.sheet { max-width: var(--sheet); margin: 0 auto; padding: 0 var(--side); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip-link:focus { left: 8px; z-index: 5; }

h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
p { margin: 0 0 0.85em; }
.num { font-family: var(--mono); font-size: 0.85em; }

/* Мелкие подписи набраны капителью того же шрифта */
.small-title {
  font: 400 15px/1.3 var(--book); letter-spacing: 0.06em;
  font-variant-caps: all-small-caps; font-size: 17px; color: var(--ink-mute);
  margin-bottom: 12px;
}
.section-title { margin-bottom: clamp(22px, 3vw, 36px); max-width: 20ch; }

/* Кадровое окно: у проекционной рамки скруглённые углы */
.aperture { display: block; background: var(--hall); border-radius: var(--gate); overflow: hidden; }
.aperture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.button {
  display: inline-block; padding: 12px 22px 13px; font: 700 18px/1.1 var(--book);
  background: var(--ink); color: var(--paper); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--ink);
  transition: background-color 0.3s var(--swing), color 0.3s var(--swing), transform 0.2s var(--swing);
}
.button:hover { background: var(--carmine); color: var(--carmine-ink); box-shadow: inset 0 0 0 1px var(--carmine), inset 0 0 0 3px var(--carmine-ink), inset 0 0 0 4px var(--carmine); }
.button:active { transform: translateY(1px); }
.textlink { font-style: italic; font-size: 19px; }

/* ---------- Шапка ---------- */
.masthead { border-bottom: 3px double var(--ink); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.logotype { display: flex; align-items: baseline; gap: 14px; text-decoration: none; }
.logotype__name { font: italic 700 32px/1 var(--book); letter-spacing: -0.02em; }
.logotype__sub { font-size: 16px; color: var(--ink-mute); font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-size: 18px; }
.logotype:hover .logotype__name { color: var(--carmine); }
.menu { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 18px; }
.menu a { text-decoration: none; padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--swing); }
.menu a:hover { color: var(--ink); background-size: 100% 1px; }
.menu a[aria-current="page"] { color: var(--carmine); background-size: 100% 1px; }

/* ---------- Главная: начало ---------- */
.opening { padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 6vw, 96px); }
.opening__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.opening h1 { font-style: italic; font-size: clamp(40px, 4.4vw, 64px); margin-bottom: 24px; padding-bottom: 4px; line-height: 1.06; }
.opening__lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink-soft); max-width: 34ch; margin-bottom: 30px; }
.opening__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 0; }
.opening__picture { margin: 0; }
.aperture--large { border-radius: 14px; box-shadow: 0 30px 60px -36px rgba(22, 24, 29, 0.55); }
.aperture--large img { aspect-ratio: 4 / 3; }
figcaption { font-size: 16px; color: var(--ink-mute); margin-top: 12px; font-style: italic; }
figcaption a { color: var(--ink-soft); }

/* ---------- Афиша сеанса ---------- */
.bill-section { padding: clamp(40px, 6vw, 90px) 0; background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bill {
  max-width: 760px; margin: 0 auto; padding: clamp(26px, 4vw, 52px) clamp(18px, 4vw, 56px);
  border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -7px; background: var(--paper);
}
.bill__head { text-align: center; font-style: italic; font-size: clamp(30px, 3.4vw, 44px); }
.bill__note { text-align: center; color: var(--ink-mute); font-size: 17px; max-width: 46ch; margin: 12px auto 26px; }
.bill__list { list-style: none; margin: 0; padding: 0; counter-reset: bill; }
.bill__list li { counter-increment: bill; }
.bill__list li + li { border-top: 1px dotted var(--line); }
.bill__list a { display: grid; grid-template-columns: 2.2em minmax(0, auto) minmax(24px, 1fr) auto; align-items: baseline; gap: 10px; padding: 12px 0; text-decoration: none; }
.bill__list a::before { content: counter(bill, upper-roman) "."; color: var(--carmine); font-size: 17px; align-self: start; padding-top: 3px; }
.bill__title { font-size: 21px; line-height: 1.25; }
.bill__title small { display: block; font-size: 16px; color: var(--ink-mute); font-style: italic; }
.bill__dots { border-bottom: 2px dotted var(--line); align-self: start; height: 1.05em; }
.bill__time { font-family: var(--mono); font-size: 17px; color: var(--ink-soft); align-self: start; padding-top: 3px; }
.bill__list a:hover .bill__title { color: var(--carmine); }

/* ---------- Техники: мозаика из вирированных кадров ---------- */
.techs { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 6vw, 80px); }
.techs__grid { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); }
.tech-tile { position: relative; display: grid; text-decoration: none; overflow: hidden; border-radius: var(--gate); background: var(--hall); color: var(--hall-ink); isolation: isolate; }
/* шахматный порядок: широкая и узкая плитка меняются местами во втором ряду */
.tech-tile:nth-child(1), .tech-tile:nth-child(4) { grid-column: span 7; }
.tech-tile:nth-child(2), .tech-tile:nth-child(3) { grid-column: span 5; }
.tech-tile .tinted { position: absolute; inset: 0; }
.tech-tile .tinted img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform 1.2s var(--swing); }
.tech-tile:hover .tinted img { transform: scale(1.04); }
.tech-tile__text { position: relative; z-index: 1; align-self: end; padding: 22px 24px; display: grid; gap: 4px; background: linear-gradient(transparent, rgba(8, 9, 10, 0.72) 42%); }
.tech-tile__text b { font-size: clamp(26px, 2.4vw, 34px); font-style: italic; line-height: 1.1; }
.tech-tile__text span { font-size: 17px; max-width: 42ch; color: #e6e3d8; }
.tech-tile__text small { font-family: var(--mono); font-size: 14px; color: #c9c6bb; }
.tech-tile:hover { color: #fff; }

.tinted { display: block; position: relative; background: var(--hall); }
.tinted img { filter: grayscale(1) contrast(1.08) brightness(1.05); }
.tinted::after { content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; pointer-events: none; }
.tint-risovannaya .tinted::after { background: var(--tint-risovannaya); }
.tint-kukolnaya .tinted::after { background: var(--tint-kukolnaya); }
.tint-perekladka .tinted::after { background: var(--tint-perekladka); }
.tint-bespredmetnaya .tinted::after { background: var(--tint-bespredmetnaya); }

/* ---------- Лента по годам ---------- */
.reel-section { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 100px); }
.reel { background: var(--hall); color: var(--hall-ink); padding: 26px 0; position: relative; }
/* перфорация сверху и снизу ленты */
.reel::before, .reel::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: radial-gradient(circle at 9px 5px, var(--paper) 0 3.4px, transparent 4px) 0 0 / 22px 10px repeat-x;
  opacity: 0.85;
}
.reel::before { top: 6px; }
.reel::after { bottom: 6px; }
.reel__track {
  list-style: none; margin: 0; padding: 8px var(--side);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 15%); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--side); scrollbar-width: thin; scrollbar-color: var(--hall-line) transparent;
}
.reel__track a { display: block; text-decoration: none; scroll-snap-align: start; }
.reel__year { display: block; font: italic 700 26px/1 var(--book); margin-bottom: 10px; }
.reel__track .aperture { border-radius: 7px; }
.reel__track img { transition: opacity 0.3s var(--swing); }
.reel__track a:hover img { opacity: 0.82; }
.reel__title { display: block; font-size: 16px; line-height: 1.3; color: var(--hall-mute); margin-top: 10px; }
.reel__track a:hover .reel__title { color: var(--hall-ink); }

/* ---------- Мастера на главной ---------- */
.makers { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.makers__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.makers__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(24px, 4vw, 56px); }
.makers__list li { break-inside: avoid; padding: 0 0 18px; }
.makers__list a { display: grid; text-decoration: none; }
.makers__list b { font-size: 24px; line-height: 1.2; }
.makers__list span { font-size: 16px; color: var(--ink-mute); font-style: italic; }
.makers__list small { font-family: var(--mono); font-size: 14px; color: var(--ink-soft); }
.makers__list a:hover b { color: var(--carmine); }

.home-about { padding: clamp(48px, 7vw, 100px) 0 clamp(60px, 8vw, 120px); background: var(--paper-deep); border-top: 1px solid var(--line); }
.home-about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.prose { max-width: 64ch; }
.prose p { font-size: 20px; line-height: 1.62; hyphens: auto; }
.prose h2 { margin: 1.5em 0 0.5em; font-size: clamp(26px, 2.4vw, 32px); }
.tally { margin: 0; display: grid; gap: 22px; }
.tally div { border-left: 3px double var(--ink); padding-left: 16px; }
.tally dt { font-variant-caps: all-small-caps; letter-spacing: 0.06em; color: var(--ink-mute); font-size: 18px; }
.tally dd { margin: 0; font-size: 28px; font-style: italic; line-height: 1.2; }

/* ---------- Заголовок страницы ---------- */
.page-top { padding: clamp(32px, 5vw, 64px) 0 clamp(22px, 3vw, 34px); max-width: 900px; }
.page-top__lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink-soft); margin-top: 16px; max-width: 52ch; }

/* ---------- Каталог ---------- */
.finder {
  display: grid; gap: 14px 18px; align-items: end;
  grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)) auto;
  padding: 20px 0 22px; border-top: 3px double var(--ink); border-bottom: 1px solid var(--line);
}
.finder label { display: grid; gap: 6px; }
.finder label span { font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-size: 17px; color: var(--ink-soft); }
.finder input, .finder select {
  font: 18px/1.3 var(--book); color: var(--ink); background: var(--paper); width: 100%; min-height: 46px;
  border: 1px solid var(--ink-mute); border-radius: 0; padding: 9px 11px;
}
.finder input::placeholder { color: var(--ink-mute); font-style: italic; }
.finder input:focus, .finder select:focus { outline: 2px solid var(--carmine); outline-offset: 0; border-color: var(--carmine); }
.finder__reset { font: italic 18px/1 var(--book); background: none; border: 0; color: var(--carmine); padding: 14px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.finder__count { font-size: 17px; color: var(--ink-mute); margin: 14px 0 28px; min-height: 1.5em; font-style: italic; }

.entries { list-style: none; margin: 0; padding: 0 0 90px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px clamp(24px, 3.4vw, 56px); }
.entry a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; text-decoration: none; align-items: start; }
.entry .aperture img { transition: transform 0.9s var(--swing); }
.entry a:hover .aperture img { transform: scale(1.035); }
.entry__text { display: grid; gap: 3px; }
.entry__year { font: italic 700 22px/1 var(--book); color: var(--carmine); }
.entry__title { font-size: 25px; line-height: 1.15; margin-top: 4px; }
.entry__orig { font-style: italic; color: var(--ink-mute); font-size: 16px; }
.entry__meta { font-size: 16px; color: var(--ink-soft); margin-top: 6px; }
.entry__lead { font-size: 17px; line-height: 1.45; margin-top: 4px; }
.entry a:hover .entry__title { color: var(--carmine); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 15px; padding: 1px 9px 3px; border: 1px solid currentColor; font-variant-caps: all-small-caps; letter-spacing: 0.05em; color: var(--ink-soft); }
.chip::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--tint, var(--ink-mute)); vertical-align: 1px; }
.chip.tint-risovannaya { --tint: var(--tint-risovannaya); }
.chip.tint-kukolnaya { --tint: var(--tint-kukolnaya); }
.chip.tint-perekladka { --tint: var(--tint-perekladka); }
.chip.tint-bespredmetnaya { --tint: var(--tint-bespredmetnaya); }
.nothing { padding: 20px 0 100px; max-width: 520px; }
.nothing p:last-child { font-size: 18px; color: var(--ink-soft); }

/* Титр, как в немом кино: светлые буквы на чёрном, двойная рамка */
.titlecard {
  margin: 10px 0 34px; padding: 34px 28px; text-align: center;
  background: var(--hall); color: var(--hall-ink);
  font: italic 700 clamp(30px, 4vw, 48px)/1.15 var(--book);
  border: 1px solid var(--hall-ink); outline: 10px solid var(--hall); box-shadow: inset 0 0 0 6px var(--hall), inset 0 0 0 7px rgba(235, 232, 221, 0.6);
  margin-left: 10px; margin-right: 10px;
}
.titlecard--small { font-size: clamp(24px, 2.6vw, 32px); padding: 26px 20px; }

/* ---------- Страница фильма ---------- */
.hall { background: var(--hall); color: var(--hall-ink); padding: 28px 0 22px; }
.hall__inner { max-width: 1160px; margin: 0 auto; padding: 0 var(--side); }
.hall__video { width: 100%; height: auto; max-height: 78vh; margin: 0 auto; background: #0b0b0c; border-radius: 6px; }
.hall__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 26px; margin-top: 14px; font-size: 17px; color: var(--hall-mute); }
.picks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.picks button {
  font: 15px/1 var(--mono); padding: 9px 12px; cursor: pointer; color: var(--hall-ink);
  background: transparent; border: 1px solid var(--hall-line); border-radius: 0;
  transition: border-color 0.25s var(--swing), background-color 0.25s var(--swing);
}
.picks button:hover { border-color: var(--hall-mute); }
.picks button[aria-pressed="true"] { background: var(--hall-ink); color: var(--hall); border-color: var(--hall-ink); }
.picks__note { font-style: italic; margin-left: 6px; }
.hall__download { color: var(--hall-ink); font-style: italic; }
.hall__download:hover { color: #fff; }

.film { padding: clamp(30px, 4.5vw, 60px) 0 80px; }
.film__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 88px); }
.film h1 { font-size: clamp(36px, 4.4vw, 58px); }
.film__orig { font-style: italic; font-size: 21px; color: var(--ink-soft); margin: 10px 0 28px; }
.trail { font-size: 17px; color: var(--ink-mute); display: flex; gap: 10px; margin-bottom: 18px; }
.trail a { color: var(--ink-soft); }

.strip { margin-top: 44px; }
.strip__list { list-style: none; margin: 0; padding: 18px 16px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--hall); position: relative; border-radius: 4px; }
.strip__list::before, .strip__list::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: radial-gradient(circle at 7px 4px, var(--paper) 0 2.6px, transparent 3.2px) 0 0 / 17px 8px repeat-x; opacity: 0.8;
}
.strip__list::before { top: 4px; }
.strip__list::after { bottom: 4px; }
.strip__list a { display: block; text-decoration: none; color: var(--hall-mute); }
.strip__list .aperture { border-radius: 6px; }
.strip__list img { transition: opacity 0.25s var(--swing); }
.strip__list a:hover img { opacity: 0.8; }
.strip__time { display: block; font: 14px/1.2 var(--mono); margin-top: 6px; }
.strip__list a:hover .strip__time { color: var(--hall-ink); }

.passport { margin: 0; font-size: 18px; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -6px; padding: 14px 20px; }
.passport div { display: grid; grid-template-columns: 8.4em minmax(0, 1fr); gap: 12px; padding: 9px 0; }
.passport div + div { border-top: 1px dotted var(--line); }
.passport dt { font-variant-caps: all-small-caps; letter-spacing: 0.05em; color: var(--ink-mute); font-size: 18px; }
.passport dd { margin: 0; overflow-wrap: anywhere; }
.files { margin-top: 30px; }
.files ul { list-style: none; margin: 0; padding: 0; font-size: 18px; }
.files li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.files li + li { border-top: 1px dotted var(--line); }
.files small { color: var(--ink-mute); font-size: 15px; }
.files li > span { font-family: var(--mono); font-size: 15px; color: var(--ink-soft); }
.provenance { margin-top: 30px; font-size: 18px; }
.provenance p { margin-bottom: 0.6em; }

.neighbours { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; padding-top: 22px; border-top: 3px double var(--ink); font-size: 20px; }
.neighbours a { text-decoration: none; display: grid; }
.neighbours small { font-variant-caps: all-small-caps; letter-spacing: 0.06em; color: var(--ink-mute); font-size: 17px; }
.neighbours__next { text-align: right; }

/* ---------- Техники и мастера ---------- */
.technique { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 5vw, 64px) 0; border-top: 3px double var(--ink); scroll-margin-top: 20px; }
.technique:last-child { padding-bottom: 100px; }
.technique__picture .tinted { border-radius: 12px; overflow: hidden; position: sticky; top: 20px; }
.technique__picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.technique h2 { font-style: italic; margin-bottom: 18px; }
.technique .small-title { margin-top: 26px; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 22px; }
.mini a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; }
.mini .aperture { border-radius: 6px; }
.mini b { display: block; font-size: 18px; line-height: 1.2; }
.mini small { font-size: 15px; color: var(--ink-mute); font-style: italic; }
.mini a:hover b { color: var(--carmine); }

.master { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.master:first-of-type { border-top: 3px double var(--ink); }
.master:last-child { padding-bottom: 100px; }
.master__head h2 { font-size: clamp(28px, 2.8vw, 38px); }
.master__head p { font-style: italic; color: var(--ink-mute); font-size: 18px; margin-top: 8px; }
.master .prose { margin-bottom: 22px; }

/* ---------- Права ---------- */
.prose--page { padding-bottom: 10px; }
.table-wrap { overflow-x: auto; margin: 6px 0 100px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 720px; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 11px 16px 11px 0; }
.ledger thead th { font-weight: 400; font-variant-caps: all-small-caps; letter-spacing: 0.05em; color: var(--ink-mute); font-size: 17px; border-bottom: 3px double var(--ink); }
.ledger tbody tr + tr td { border-top: 1px dotted var(--line); }
.ledger td small { display: block; color: var(--ink-mute); font-style: italic; font-size: 15px; }
.ledger td:first-child a { font-size: 19px; }

/* ---------- 404 ---------- */
.lost { padding: clamp(40px, 7vw, 110px) 0; }
.lost__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lost__text { font-size: 21px; color: var(--ink-soft); max-width: 38ch; }
.lost figure { margin: 0; }

/* ---------- Подвал ---------- */
.colophon { border-top: 3px double var(--ink); padding: 36px 0 44px; font-size: 17px; color: var(--ink-mute); }
.colophon__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 20px 32px; }
.colophon__name { font: italic 700 24px/1 var(--book); color: var(--ink); margin-bottom: 10px; }
.colophon__about p:last-child { max-width: 52ch; }
.colophon__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.colophon a { color: var(--ink-soft); }
.colophon__date { grid-column: 1 / -1; margin: 10px 0 0; font-style: italic; font-size: 16px; }

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .appear { opacity: 0; transform: translateY(18px); animation: appear 0.9s var(--swing) forwards; }
  .js .appear:nth-child(2) { animation-delay: 0.1s; }
  .js .appear:nth-child(3) { animation-delay: 0.2s; }
  @keyframes appear { to { opacity: 1; transform: none; } }
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--swing), transform 0.9s var(--swing); }
  .js .reveal.is-shown { opacity: 1; transform: none; }
  /* при наведении кадр чуть дрожит, как в проекторе */
  .entry a:hover .aperture, .reel__track a:hover .aperture { animation: gate 0.32s steps(2) 2; }
  @keyframes gate { 0% { transform: translate(0, 0); } 50% { transform: translate(0, -1px); } 100% { transform: translate(0, 0); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Узкие экраны ---------- */
@media (max-width: 1000px) {
  .finder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder__search { grid-column: 1 / -1; }
  .entries { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .opening__grid, .home-about__grid, .film__grid, .makers__grid, .lost__grid, .technique, .master { grid-template-columns: minmax(0, 1fr); }
  .opening__picture { order: -1; }
  .technique__picture .tinted { position: static; }
  .techs__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: minmax(200px, auto); }
  .tech-tile:nth-child(n) { grid-column: span 2; grid-row: auto; min-height: 230px; }
  .colophon__grid { grid-template-columns: 1fr 1fr; }
  .colophon__about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .masthead__row { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; padding-top: 14px; padding-bottom: 12px; }
  .logotype__name { font-size: 28px; }
  .logotype__sub { font-size: 15px; white-space: nowrap; }
  .menu { gap: 2px 13px; font-size: 16px; }
  .opening h1 { max-width: none; }
  .bill { outline-offset: -5px; }
  .bill__list a { grid-template-columns: 1.9em minmax(0, 1fr) auto; }
  .bill__dots { display: none; }
  .bill__title { font-size: 19px; }
  .makers__list { columns: 1; }
  .reel__track { grid-auto-columns: 64%; }
  .entry a { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .entry__title { font-size: 23px; }
  .prose p { font-size: 18.5px; }
  .hall { padding: 0 0 16px; }
  .hall__inner { padding: 0; }
  .hall__video { border-radius: 0; }
  .hall__bar { padding: 0 16px; }
  .strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passport div { grid-template-columns: 7em minmax(0, 1fr); }
  .neighbours { grid-template-columns: 1fr; }
  .neighbours__next { text-align: left; }
  .mini { grid-template-columns: minmax(0, 1fr); }
  .titlecard { margin-left: 10px; margin-right: 10px; }
}
