/*
 * Шрифты игры, без внешних адресов: woff2 из пакетов @fontsource (только кириллица и латиница) — копии файлов игры
 * в public/fonts/. Сборка кладёт их в fonts/ и подклеивает эти @font-face в начало site.css.
 */
@font-face { font-family: 'Old Standard TT'; font-style: normal; font-display: swap; font-weight: 400; src: url('fonts/old-standard-tt-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Old Standard TT'; font-style: normal; font-display: swap; font-weight: 400; src: url('fonts/old-standard-tt-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Old Standard TT'; font-style: italic; font-display: swap; font-weight: 400; src: url('fonts/old-standard-tt-cyrillic-400-italic.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Old Standard TT'; font-style: italic; font-display: swap; font-weight: 400; src: url('fonts/old-standard-tt-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Old Standard TT'; font-style: normal; font-display: swap; font-weight: 700; src: url('fonts/old-standard-tt-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Old Standard TT'; font-style: normal; font-display: swap; font-weight: 700; src: url('fonts/old-standard-tt-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Oranienbaum'; font-style: normal; font-display: swap; font-weight: 400; src: url('fonts/oranienbaum-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Oranienbaum'; font-style: normal; font-display: swap; font-weight: 400; src: url('fonts/oranienbaum-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-display: swap; font-weight: 700; src: url('fonts/playfair-display-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-display: swap; font-weight: 700; src: url('fonts/playfair-display-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-display: swap; font-weight: 900; src: url('fonts/playfair-display-cyrillic-900-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-display: swap; font-weight: 900; src: url('fonts/playfair-display-latin-900-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-display: swap; font-weight: 700; src: url('fonts/playfair-display-cyrillic-700-italic.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-display: swap; font-weight: 700; src: url('fonts/playfair-display-latin-700-italic.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/*
 * Сайт игры — тот же стиль, что игра (DESIGN.md, «Полицейская хроника 1888»): токены, кнопки-билеты `.plate`,
 * бумажный лист `.paper`, логотип и орнамент меню. Шрифты по ролям игры: Playfair Display — только логотип,
 * Oranienbaum — заголовки капителью, Old Standard TT — текст и кнопки.
 */
:root {
  --coal: #0b0a09;
  --coal-2: #14120f;
  --fog-pale: #b3b8a8;
  --scheele: #2e6b4f;
  --scheele-2: #4a9a73;
  --gas-glow: #f0c46e;
  --blood-2: #9c161c;
  --blood-fresh: #c8202a;
  --brass: #8f6e36;
  --brass-2: #c9a25a;
  --brass-ink: #6b4f1f;
  --bone: #efe6cf;
  --ink: #15120e;
  --ivory: #ece5d3;
  --line: rgba(201, 162, 90, 0.22);
  --font-title: 'Playfair Display', Georgia, serif;
  --font-paper: 'Oranienbaum', 'Playfair Display', serif;
  --font-text: 'Old Standard TT', Georgia, serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --fiber: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.012 0.6' numOctaves='3' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.28  0 0 0 0 0.16  0 0 0 0.1 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  --gutter: clamp(16px, 4vw, 40px);
  /* Ширина всех блоков сайта — как у «Кто живёт в доме»: 1280 px вместе с полями. */
  --container: 1280px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: rgba(201, 162, 90, 0.45) transparent; }
/* Туман первого экрана шире страницы — по горизонтали её не прокручивать. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--coal);
  color: var(--ivory);
  font: 17px/1.6 var(--font-text);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Печатное зерно поверх всего, как в игре: оттиск, а не экран. */
body::after { content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; background: var(--grain); opacity: 0.14; mix-blend-mode: overlay; }
::selection { background: rgba(201, 162, 90, 0.45); color: var(--ink); }
a { color: var(--gas-glow); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
.muted { color: var(--fog-pale); }

/* Заголовки разделов — Oranienbaum капителью, как заголовки листов в игре */
h1, h2, h3 { font-family: var(--font-paper); font-weight: 400; text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.05; margin: 0 0 .5em; color: var(--bone); }
h2 { font-size: clamp(30px, 4.6vw, 44px); }
h3 { font-size: 26px; }

/* Подписи разделов: капитель с разрядкой и латунные линии орнамента */
.kicker { font-size: 11px; font-weight: 700; letter-spacing: 3.5px; word-spacing: .35em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 12px; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap; }
.ornament::before, .ornament::after { content: ''; height: 1px; flex: 0 1 90px; min-width: 14px; background: linear-gradient(90deg, transparent, var(--brass-2)); }
.ornament::after { transform: scaleX(-1); }
.ornament--left { justify-content: flex-start; }
.ornament--left::before { display: none; }

.wrap { max-width: var(--container); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }

/* ——— Кнопки-билеты из игры (`.plate`): прямой лист со срезанными углами и двойной линейкой ——— */
.plate {
  --cut: 7px;
  --bg: linear-gradient(180deg, #221e18, #14110d);
  --fg: var(--bone);
  --rule: rgba(201, 162, 90, 0.75);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; min-height: 46px;
  background: var(--bg); color: var(--fg);
  font: 700 13px/1.15 var(--font-text);
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none; text-indent: .15em;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55));
  transition: transform .12s ease, filter .2s ease;
}
.plate::before { content: ''; position: absolute; inset: 4px; z-index: -1; pointer-events: none; border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: -4px; opacity: .9;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.plate:hover { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55)) brightness(1.12); }
.plate:active { transform: translateY(1px); }
.plate:focus-visible { outline: none; --rule: var(--gas-glow); filter: drop-shadow(0 0 6px rgba(240, 196, 110, 0.55)) brightness(1.12); }
.plate--main { --bg: linear-gradient(180deg, #e8c77c, #c9a25a 60%, #a8823f); --fg: #1a1207; --rule: rgba(26, 18, 7, 0.7); }
.plate--sm { min-height: 36px; padding: 7px 18px; font-size: 11.5px; letter-spacing: 1.6px; --cut: 5px; }
.plate--sm::before { inset: 3px; outline: none; }
.plate--wide { min-width: 240px; }

/* ——— Шапка: название одной строкой ——— */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  background: rgba(11, 10, 9, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--bone); text-decoration: none; font: 19px/1 var(--font-paper); letter-spacing: 2.5px; text-transform: uppercase; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.top nav a:not(.plate) { color: var(--fog-pale); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.top nav a:not(.plate):hover { color: var(--bone); }
@media (max-width: 640px) { .top nav a:not(.plate) { display: none; } }
@media (max-width: 380px) { .brand { font-size: 16px; letter-spacing: 1.5px; } }

/* ——— Первый экран: логотип меню слева, афиша справа ——— */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 5vw, 64px);
  max-width: var(--container); margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter);
  min-height: calc(100svh - 58px);
}
.hero::before {
  content: ''; position: absolute; inset: 0 -50vw; z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 25% 45%, rgba(46, 107, 79, .4), transparent 70%),
              radial-gradient(ellipse 40% 50% at 80% 85%, rgba(156, 22, 28, .12), transparent 70%);
}
.hero-text { text-align: center; }
.logo { margin: 14px 0 22px; line-height: 1; text-transform: none; letter-spacing: 0; }
.logo b { display: block; font: 900 clamp(72px, 12vw, 136px)/1 var(--font-title); color: var(--bone); text-shadow: 0 4px 0 #000, 0 0 50px rgba(0, 0, 0, .9); }
.logo span { display: block; margin-top: 8px; font: 400 clamp(20px, 3vw, 32px)/1 var(--font-paper); letter-spacing: 8px; text-indent: 8px; text-transform: uppercase; color: var(--gas-glow); text-shadow: 0 0 22px rgba(240, 196, 110, .45), 0 2px 0 #000; }
.lead { font-size: clamp(18px, 2.1vw, 21px); font-style: italic; max-width: 28em; margin: 0 auto; color: var(--ivory); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 18px; }
.soon { color: var(--fog-pale); font-size: 15px; font-style: italic; }
.hero-art { margin: 0; justify-self: end; max-width: 460px; padding: 6px; background: linear-gradient(180deg, #f1d99a, #8f6e36 45%, #4d3a1a); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.hero-art img { width: 100%; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 20px; }
  .hero-art { order: -1; max-width: 100%; }
  .hero-art img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
}
@media (max-width: 420px) { .cta .plate { flex: 1 1 100%; } }

/* ——— Полосы ——— */
.band { background: linear-gradient(180deg, var(--coal-2), #0e0d0b); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* Коротко о главном: строки, разделённые тонкой латунной линейкой */
.marks { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.marks li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ivory); }

/* ——— Бумажный лист игры (`.paper`) ——— */
.paper {
  position: relative;
  background: var(--fiber), radial-gradient(ellipse at 50% 0%, #f8f1de, transparent 70%), var(--bone);
  color: var(--ink);
  padding: 30px 30px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .6);
}
.paper::before { content: ''; position: absolute; inset: 8px; border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -6px; pointer-events: none; }
.paper h3 { color: var(--ink); font-size: 32px; margin-bottom: 14px; }
.paper .kicker { color: var(--brass-ink); margin-bottom: 4px; }

/* Лист «Сколько соседей» — строки как в меню игры */
.table-modes { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.table-modes li { display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; background: rgba(21, 18, 14, .04); border: 1px solid rgba(21, 18, 14, .4); }
.table-modes b { font: 700 17px/1.25 var(--font-text); }
.table-modes em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brass-ink); margin-left: 8px; white-space: nowrap; }
.table-modes small { font-size: 14px; font-style: italic; color: #5a5245; }
.tables .plate { width: 100%; }

/* ——— Кадры партии в латунной раме ——— */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.shots figure { margin: 0; }
.shots img { width: 100%; border: 1px solid rgba(201, 162, 90, .5); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
.shots figcaption { margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--fog-pale); text-align: center; }
@media (max-width: 820px) {
  .shots { grid-template-columns: repeat(4, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
  .shots figure { scroll-snap-align: start; }
}

/* ——— Как играть: газетный лист, как «Лондонский вестник» в игре ——— */
.band--how { background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(42, 36, 27, .9), transparent 75%), linear-gradient(180deg, var(--coal-2), #0e0d0b); }
.gazette {
  position: relative; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px clamp(18px, 4.5vw, 52px) 36px;
  color: var(--ink);
  background: var(--fiber), radial-gradient(ellipse at 50% 0%, #faf3e1, transparent 70%), var(--bone);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .5);
  transform: rotate(-.35deg);
}
.gazette::before { content: ''; position: absolute; inset: 8px; border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -6px; pointer-events: none; }
.g-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.g-title { text-align: center; }
.g-masthead { font: 900 clamp(28px, 4.2vw, 54px)/.95 var(--font-title); letter-spacing: -.5px; white-space: nowrap; }
.g-motto { margin-top: 6px; font-size: 12px; font-style: italic; }
.g-ear { display: flex; flex-direction: column; align-items: center; gap: 1px; justify-self: start; min-width: 88px; padding: 6px 10px 5px; border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 2px; text-align: center; line-height: 1.1; }
.g-ear small { font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.g-ear b { font: 900 19px/1.05 var(--font-title); }
.g-ear--price { justify-self: end; border-radius: 50%; min-width: 0; width: 84px; height: 84px; justify-content: center; outline-offset: 3px; }
.g-rule { height: 7px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.g-dateline { display: flex; justify-content: space-between; gap: 10px; margin-top: -10px; padding: 3px 0 4px; border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
.g-flash { display: flex; justify-content: center; margin-top: 6px; }
.g-flash span { background: var(--blood-2); color: var(--bone); padding: 4px 22px 3px; font-size: 12px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); }
.gazette .g-headline { margin: 0 0 6px; color: var(--ink); font-size: clamp(32px, 5.4vw, 60px); text-align: center; line-height: .98; text-wrap: balance; }
.g-cols { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); padding-top: 18px; }
.g-col { padding: 0 18px; border-left: 1px solid rgba(21, 18, 14, .55); }
.g-col:first-child { padding-left: 0; border-left: 0; }
.g-col:last-child { padding-right: 0; }
.g-col h3 { margin: 0 0 8px; color: var(--ink); font-size: 24px; letter-spacing: 1.5px; }
.g-col h3::after { content: ''; display: block; width: 36px; height: 3px; margin-top: 6px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.g-col p { margin: 0; font-size: 15.5px; line-height: 1.5; hyphens: auto; }
.g-col p::first-letter { float: left; margin: 4px 6px 0 0; font: 900 3.05em/.8 var(--font-title); color: var(--blood-2); }
@media (max-width: 1000px) {
  .g-cols { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .g-col:nth-child(odd) { padding-left: 0; border-left: 0; }
  .g-col:nth-child(even) { padding-right: 0; }
}
@media (max-width: 560px) {
  .gazette { transform: none; }
  .g-head { grid-template-columns: 1fr; }
  .g-masthead { white-space: normal; }
  .g-ear { display: none; }
  .g-dateline { flex-wrap: wrap; justify-content: center; gap: 2px 14px; letter-spacing: 1.5px; }
  .g-cols { grid-template-columns: 1fr; }
  .g-col, .g-col:nth-child(even) { padding: 0; border-left: 0; }
}

/* ——— Действующие лица: бархатные карточки в латунной раме, по сторонам ——— */
.cast-head { margin: clamp(72px, 9vw, 112px) 0 28px; text-align: center; }
.cast { display: grid; grid-template-columns: 1fr; gap: 30px; }
.cast-label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; white-space: nowrap; }
.cast-label::before, .cast-label::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .6; }
.cast-group--town .cast-label { color: var(--scheele-2); }
.cast-group--gang .cast-label { color: #e0444b; }
.cast-group--mad .cast-label { color: var(--brass-2); }
.cast-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* Узкий экран: одинокий Безумец — по центру, той же ширины, что карточки в паре. */
@media (max-width: 899px) { .cast-group--mad .cast-cards { grid-template-columns: minmax(0, calc(50% - 8px)); justify-content: center; } }
.role {
  --side: 74, 154, 115;
  position: relative; margin: 0; padding: 7px 7px 16px; height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(240, 196, 110, .12), transparent 60%), linear-gradient(180deg, #24161a, #120e10 75%);
  border: 2px solid transparent; border-image: linear-gradient(180deg, #f1d99a, #8f6e36 45%, #4d3a1a) 1;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .55);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.role--gang { --side: 200, 32, 42; }
.role--mad { --side: 201, 162, 90; }
.role:hover { transform: translateY(-4px); box-shadow: 0 0 34px rgba(var(--side), .35), 0 20px 40px rgba(0, 0, 0, .6); }
.role-frame { overflow: hidden; border: 1px solid rgba(201, 162, 90, .55); }
.role-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s ease; }
.role:hover .role-frame img { transform: scale(1.05); }
.role figcaption { padding: 12px 6px 0; }
.role b { display: block; margin-bottom: 6px; color: var(--bone); font: 400 20px/1.05 var(--font-paper); letter-spacing: 1px; text-transform: uppercase; }
.role span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--fog-pale); }
/* Широкий экран: город — четыре крупные карточки в ряд, под ним банда и Безумец той же ширины по центру
 * (сетка из восьми половинок: карточка — две). */
@media (min-width: 900px) {
  .cast { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
  .cast-cards { gap: 24px; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .cast-group--town { grid-column: 1 / -1; }
  .cast-group--gang { grid-column: 2 / 6; }
  .cast-group--mad { grid-column: 6 / 8; }
  .role b { font-size: 26px; }
  .role span { font-size: 15px; }
}

/* ——— Цены ——— */
.prices { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 16px; }
.prices th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brass-2); padding: 0 12px 10px; border-bottom: 1px solid var(--brass-2); }
.prices td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices td:first-child { font: 400 19px/1.2 var(--font-paper); letter-spacing: 1px; text-transform: uppercase; color: var(--bone); white-space: nowrap; }
.prices .num { text-align: right; white-space: nowrap; color: var(--gas-glow); font-weight: 700; }
@media (max-width: 560px) {
  .prices thead { display: none; }
  .prices tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .prices td { border: 0; padding: 2px 0; }
  .prices td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--fog-pale); font-size: 15px; }
  .prices td:first-child { white-space: normal; }
}

.final { text-align: center; padding: clamp(64px, 9vw, 120px) var(--gutter); background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(46, 107, 79, .38), transparent 70%); }
.final h2 { font-size: clamp(34px, 5vw, 52px); }
.final .plate { margin-top: 14px; }

/* ——— Документы ——— */
.doc { max-width: var(--container); }
/* Текст документа — в удобную для чтения строку, у левого края общего контейнера. */
.doc > p, .doc section { max-width: 52em; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); }
.doc h2 { font-size: 24px; margin-top: 1.6em; color: var(--gas-glow); }
.doc .prices { font-size: 15px; }

/* Подвал с реквизитами — его ищет модерация оплаты */
.foot { border-top: 1px solid var(--line); padding: 32px var(--gutter) 40px; font-size: 14px; color: var(--fog-pale); text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 16px; }
.foot p { margin: 0 auto 6px; max-width: 60em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .plate { transition: none; } }
