/* Отчёты о мероприятиях — рассказ крупным текстом и фото коллажем.
   Цвета задаёт каждая страница через переменные на body. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  --bg: #0b0b0c;
  --fg: #f4f2ee;
  --dim: rgba(244, 242, 238, .62);
  --line: rgba(244, 242, 238, .14);
  --a1: #ffc72c;
  --a2: #2f9bff;
  --card: #17171a;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 19px/1.55 "Onest", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--a1); text-underline-offset: .18em; }

/* Верхняя строка */
.r-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  max-width: 1240px; margin: 0 auto; padding: 18px 24px;
  font-size: 16px;
}
.r-top a { color: var(--fg); text-decoration: none; opacity: .8; }
.r-top a:hover { opacity: 1; }
.r-top .logo { font-weight: 800; font-size: 20px; letter-spacing: -.03em; opacity: 1; display: inline-flex; gap: 8px; align-items: center; }
.r-top .logo i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Заголовки */
.display {
  font-family: "Oswald", "Onest", sans-serif;
  font-weight: 700; text-transform: uppercase;
  line-height: .92; letter-spacing: -.01em;
  margin: 0;
}

/* Первый экран */
.r-hero { position: relative; max-width: 1240px; margin: 0 auto; padding: 40px 24px 40px; text-align: center; }
.r-hero .display { font-size: clamp(36px, 10.5vw, 168px); }
.r-hero .display span { display: block; }
.r-date { margin-top: 28px; font-size: clamp(18px, 1.8vw, 22px); color: var(--dim); }

/* Повествование */
.say {
  max-width: 880px; margin: 0 auto; padding: 88px 24px;
  text-align: center;
  font-size: clamp(22px, 2.5vw, 33px); line-height: 1.32; letter-spacing: -.01em;
}
.say p { margin: 0 0 .8em; }
.say p:last-child { margin-bottom: 0; }
.say b { color: var(--a1); font-weight: 600; }
.say.small { font-size: clamp(19px, 1.8vw, 24px); color: var(--dim); padding-top: 24px; }

/* Коллаж: фото под наклоном, с наплывом друг на друга */
.collage {
  position: relative; max-width: 1240px; margin: 0 auto; padding: 24px 24px;
  display: grid; grid-template-columns: repeat(12, 1fr); align-items: center;
}
.ph { position: relative; margin: 0; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); z-index: var(--z, 1); transition: transform .35s ease; }
.ph:hover { transform: rotate(0deg) translateY(var(--y, 0)) scale(1.02); z-index: 5; }
.ph img { width: 100%; border-radius: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.ph figcaption { margin-top: 14px; font-size: 15px; color: var(--dim); text-align: center; }

/* Наклейки с цифрами, как на карточках турнира */
.stickers { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 26px; max-width: 1000px; margin: 0 auto; padding: 24px; }
.sticker {
  display: inline-block; padding: 10px 22px 8px;
  border-radius: 14px; background: var(--a2); color: #fff;
  font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1;
  transform: rotate(var(--r, -4deg));
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* Блок с подзаголовком раздела */
.chapter { text-align: center; padding: 96px 24px 16px; }
.chapter .display { font-size: clamp(36px, 7vw, 96px); }
.chapter p { max-width: 720px; margin: 24px auto 0; color: var(--dim); font-size: 19px; }

/* Составы */
.roster { max-width: 1100px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.roster h3 { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 34px; margin: 0 0 18px; line-height: 1; }
.roster ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.roster li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
.roster li span { color: var(--dim); }
.roster .cap::after { content: " (к)"; color: var(--dim); }

/* Участники кружками */
.circles { max-width: 1100px; margin: 0 auto; padding: 32px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; justify-items: center; }
.circle { width: 100%; max-width: 220px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; padding: 12px; background: var(--c, var(--a1)); color: var(--ct, #111); }
.circle b { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 34px); line-height: 1; display: block; }
.circle span { font-size: 15px; margin-top: 8px; display: block; opacity: .85; }

/* Таблицы */
.table-wrap { max-width: 980px; margin: 0 auto; padding: 24px; overflow-x: auto; }
.r-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 18px; }
.r-tbl caption { text-align: left; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 30px; padding-bottom: 14px; color: var(--a1); }
.r-tbl th { text-align: left; font-weight: 500; font-size: 14px; color: var(--dim); padding: 0 10px 10px 0; border-bottom: 2px solid var(--fg); }
.r-tbl td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.r-tbl td.club { color: var(--dim); }
.r-tbl tr.top td { color: var(--fg); font-weight: 600; }
.r-tbl .n { text-align: right; }
.r-tbl th.n { text-align: right; }

/* Сетка плей-офф */
.brackets { max-width: 1100px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.bracket h3 { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 30px; margin: 0 0 6px; line-height: 1; }
.bracket > p { margin: 0 0 20px; color: var(--dim); font-size: 17px; }
.stage { font-size: 14px; color: var(--dim); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.match { background: var(--card); border-radius: 16px; overflow: hidden; }
.match div { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 0; padding: 12px 18px; font-size: 18px; }
.match div b { margin-left: auto; padding-left: 12px; }
.match div + div { border-top: 1px solid var(--line); }
.match span { color: var(--dim); font-size: 15px; margin-left: 8px; }
.match b { font-variant-numeric: tabular-nums; font-weight: 600; }
.match .win { color: var(--a1); font-weight: 600; }
.match .win span { color: inherit; opacity: .7; }
.match.final { box-shadow: inset 0 0 0 2px var(--a1); }
.match-note { font-size: 16px; color: var(--dim); margin: 10px 0 0; }

/* Крупные цифры */
.big-facts { max-width: 1100px; margin: 0 auto; padding: 32px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.big-facts b { display: block; font-family: "Oswald", sans-serif; font-size: clamp(56px, 7vw, 96px); line-height: 1; color: var(--a1); }
.big-facts span { display: block; margin-top: 10px; color: var(--dim); font-size: 17px; }

/* Две колонки: фото и текст */
.split { max-width: 1140px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .txt { font-size: 21px; line-height: 1.5; }
.split .txt p { margin: 0 0 .8em; }
.split .txt h3 { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 36px; line-height: 1; margin: 0 0 18px; color: var(--a1); }

/* Цитата */
.quote { max-width: 860px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.quote blockquote { margin: 0; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; color: var(--a2); }
.quote cite { display: block; margin-top: 16px; font-style: normal; color: var(--dim); font-size: 17px; }

/* Титры */
.credits { max-width: 980px; margin: 0 auto; padding: 72px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; border-top: 1px solid var(--line); }
.credits div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; }
.credits dt { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding-top: 4px; }
.credits dd { margin: 0; font-size: 18px; line-height: 1.6; }

/* Финал страницы */
.r-end { text-align: center; padding: 96px 24px 120px; }
.r-end .display { font-size: clamp(36px, 8vw, 120px); color: var(--a1); }
.r-end p { color: var(--dim); max-width: 600px; margin: 24px auto 36px; }
.r-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.r-btn { display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--a1); color: #111; font-weight: 600; text-decoration: none; font-size: 18px; transition: transform .15s; }
.r-btn:hover { transform: translateY(-2px); }
.r-btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--line); }

/* Телефон */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .r-top { padding: 14px 16px; }
  .r-hero { padding: 24px 16px; }
  .say { padding: 56px 16px; }
  .collage { padding: 16px; grid-template-columns: 1fr; gap: 28px; }
  .collage .ph { grid-column: 1 / -1 !important; --y: 0 !important; margin: 0 !important; width: 92%; justify-self: center; }
  .collage .ph:nth-child(2n) { justify-self: end; }
  .collage .ph:nth-child(2n+1) { justify-self: start; }
  .roster, .brackets, .split, .credits { grid-template-columns: 1fr; gap: 32px; padding-left: 16px; padding-right: 16px; }
  .circles { grid-template-columns: repeat(2, 1fr); padding-left: 16px; padding-right: 16px; }
  .big-facts { grid-template-columns: 1fr; gap: 28px; }
  .credits div { grid-template-columns: 1fr; gap: 4px; }
  .chapter { padding: 64px 16px 8px; }
  .table-wrap { padding: 16px; }
  .r-tbl { font-size: 15px; }
  .r-tbl td, .r-tbl th { padding-right: 8px; }
  .r-btn { width: 100%; justify-content: center; }
}

/* ===== Общие блоки страниц событий ===== */
.wide { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Доска детектива: записки на булавках */
.board { max-width: 1140px; margin: 0 auto; padding: 40px 24px 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.pinned { position: relative; background: #efe6d2; color: #2a201a; padding: 34px 22px 22px; border-radius: 4px; font-size: 18px; line-height: 1.4; transform: rotate(var(--r, -2deg)); box-shadow: 0 18px 30px rgba(0,0,0,.45); }
.pinned::before { content: ""; position: absolute; left: 50%; top: -22px; width: 54px; height: 54px; transform: translateX(-50%); background: url(img/mafia/pin.png) center / contain no-repeat; filter: drop-shadow(0 6px 6px rgba(0,0,0,.4)); }
.pinned b { display: block; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 22px; margin-bottom: 6px; color: #9e1b22; }
.pinned.done { background: #f6f2ec; }
.pinned.done b { color: #2f7a4a; }

/* Стена афиш */
.posters { max-width: 1240px; margin: 0 auto; padding: 32px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: center; }
.posters img { width: 100%; border-radius: 14px; box-shadow: 0 24px 40px rgba(0,0,0,.4); transform: rotate(var(--r, 0deg)); transition: transform .3s; }
.posters img:hover { transform: rotate(0) scale(1.04); }

/* Веер карт */
.fan-row { position: relative; height: clamp(300px, 38vw, 520px); max-width: 1100px; margin: 24px auto 0; }
.fan-row img { position: absolute; bottom: 0; left: 50%; width: clamp(120px, 15vw, 210px); border-radius: 14px; box-shadow: 0 30px 50px rgba(0,0,0,.65); transform-origin: 50% 140%; transform: translateX(-50%) rotate(var(--a)); transition: transform .35s ease; }
.fan-row:hover img { transform: translateX(-50%) rotate(calc(var(--a) * 1.25)) translateY(-6px); }

/* Экраны приложения */
.screens { max-width: 1200px; margin: 0 auto; padding: 24px; display: grid; gap: 28px; }
.screens figure { margin: 0; }
.screens img { width: 100%; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.screens figcaption { margin-top: 12px; font-size: 16px; color: var(--dim); text-align: center; }
.screens.two { grid-template-columns: 1fr 1fr; align-items: start; }
.screens.three { grid-template-columns: repeat(3, 1fr); align-items: start; }

/* Список возможностей */
.features { max-width: 1100px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features div { background: var(--card); border-radius: 20px; padding: 22px; }
.features h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.features p { margin: 0; font-size: 16px; color: var(--dim); line-height: 1.5; }
.features q { color: var(--a1); quotes: "«" "»"; }

/* Чат телеграма */
.chat { max-width: 560px; margin: 0 auto; padding: 28px 18px; border-radius: 28px; background: var(--chat-bg, #e9e3f6); display: grid; gap: 10px; box-shadow: 0 30px 60px -30px rgba(40,20,80,.5); }
.msg { justify-self: start; max-width: 88%; background: #fff; color: #1d1a24; border-radius: 18px 18px 18px 6px; padding: 10px 14px 8px; font-size: 16px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.msg .who { display: block; font-weight: 700; font-size: 14px; color: var(--a1); margin-bottom: 2px; }
.msg .t { display: block; text-align: right; font-size: 12px; color: #9a93a8; margin-top: 2px; }
.msg.me { justify-self: end; background: #dcf8c6; border-radius: 18px 18px 6px 18px; }
.kb { justify-self: start; display: flex; gap: 6px; flex-wrap: wrap; max-width: 88%; }
.kb span { background: rgba(255,255,255,.75); color: #2a2238; border-radius: 10px; padding: 8px 14px; font-size: 15px; font-weight: 600; }
.poll { display: grid; gap: 6px; margin-top: 6px; }
.poll i { font-style: normal; display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14px; }
.poll i::after { content: ""; grid-column: 1 / -1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--a1) var(--p), #e5e1ee var(--p)); }

/* Столбики по месяцам */
.bars { max-width: 900px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; align-items: end; height: 320px; }
.bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; font-variant-numeric: tabular-nums; }
.bars i { display: block; width: 100%; height: var(--h); background: var(--a1); border-radius: 10px 10px 4px 4px; }
.bars b { font-size: 18px; }
.bars span { font-size: 14px; color: var(--dim); }

/* Таблица лидеров */
.leaders { max-width: 760px; margin: 0 auto; padding: 24px; display: grid; gap: 10px; counter-reset: l; }
.leaders div { counter-increment: l; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; background: var(--card); border-radius: 16px; padding: 14px 18px; font-size: 19px; }
.leaders div::before { content: counter(l); font-family: "Oswald", sans-serif; font-size: 26px; color: var(--a1); }
.leaders b { font-variant-numeric: tabular-nums; }
.leaders span { color: var(--dim); font-size: 15px; display: block; }

@media (max-width: 760px) {
  .board, .posters, .features, .screens.two, .screens.three { grid-template-columns: 1fr 1fr; gap: 18px; padding-left: 16px; padding-right: 16px; }
  .features, .board { grid-template-columns: 1fr; }
  .bars { gap: 6px; height: 240px; padding-left: 16px; padding-right: 16px; }
  .bars b { font-size: 15px; } .bars span { font-size: 12px; }
  .chat { margin-left: 16px; margin-right: 16px; }
  .leaders { padding-left: 16px; padding-right: 16px; }
  .wide { padding-left: 16px; padding-right: 16px; }
}

/* правки: веер — в ряд, лидеры — флексом */
.fan-row { display: flex; justify-content: center; align-items: flex-end; height: auto; padding: 40px 24px 56px; max-width: 1240px; }
.fan-row img { position: static; width: clamp(84px, 11vw, 170px); margin: 0 -12px; transform: rotate(var(--a)); transform-origin: 50% 100%; }
.fan-row img:hover { transform: rotate(0) translateY(-16px) scale(1.08); z-index: 2; position: relative; }
.fan-row:hover img { transform: rotate(var(--a)); }
.fan-row:hover img:hover { transform: rotate(0) translateY(-16px) scale(1.08); }
.leaders div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.leaders div::before { width: 32px; flex: none; }
.leaders span { display: inline; margin-left: 4px; }
.leaders b { margin-left: auto; }
@media (max-width: 760px) { .fan-row img { margin: 0 -18px; } }
