/* Страницы-истории о мероприятиях.
   Подключается после report.css. Цвета задаёт страница: --bg --fg --dim --line --a1 --a2 --card. */

/* Первый экран: фото на всю ширину, заголовок поверх */
.hero-full { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-full > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-full::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, var(--hero-shade, rgba(0,0,0,.85)) 100%); }
.hero-full .in { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px 56px; }
.hero-full h1 { margin: 0; line-height: .9; }
.hero-full .sub { margin-top: 18px; font-size: clamp(18px, 1.8vw, 22px); color: rgba(255,255,255,.82); max-width: 640px; }
.hero-full .tag { position: absolute; right: 28px; top: 84px; font-family: "Caveat", cursive; font-weight: 700; font-size: 28px; color: #fff; transform: rotate(-4deg); max-width: 260px; text-align: right; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.top-float { position: absolute; left: 0; right: 0; top: 0; z-index: 5; }
.top-float a { color: #fff; }

/* Вводный абзац: крупно, слева, с цифрами справа */
.intro { max-width: 1240px; margin: 0 auto; padding: 96px 24px 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.intro p { margin: 0 0 .8em; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.35; letter-spacing: -.01em; }
.intro p b { color: var(--a1); font-weight: 600; }
.intro dl { margin: 0; display: grid; gap: 22px; border-left: 1px solid var(--line); padding-left: 32px; }
.intro dt { font-size: clamp(40px, 4.6vw, 64px); line-height: 1; font-weight: 700; color: var(--a1); font-variant-numeric: tabular-nums; }
.intro dd { margin: 4px 0 0; color: var(--dim); font-size: 16px; }

/* Заголовок раздела с номером главы */
.part { max-width: 1240px; margin: 0 auto; padding: 112px 24px 32px; }
.part .no { display: block; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--a2); margin-bottom: 14px; }
.part h2 { margin: 0; font-size: clamp(40px, 6vw, 84px); line-height: .95; letter-spacing: -.02em; }
.part p { max-width: 720px; margin: 22px 0 0; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--dim); }
.part p b { color: var(--fg); font-weight: 600; }

/* Фото с подписью */
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 18px; display: block; }
.shot figcaption { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--dim); max-width: 520px; }
.shot figcaption b { color: var(--fg); font-weight: 600; }
.gallery { max-width: 1240px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; align-items: start; }
.gallery .w12 { grid-column: span 12; } .gallery .w8 { grid-column: span 8; } .gallery .w7 { grid-column: span 7; } .gallery .w6 { grid-column: span 6; } .gallery .w5 { grid-column: span 5; } .gallery .w4 { grid-column: span 4; }
.gallery .down { margin-top: 80px; }
.gallery .tilt-l img { transform: rotate(-1.5deg); } .gallery .tilt-r img { transform: rotate(1.5deg); }

/* До и после */
.versus { max-width: 1240px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.versus > div { border-radius: 24px; padding: 32px; background: var(--card); }
.versus h3 { margin: 0 0 18px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.versus ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; font-size: 19px; line-height: 1.4; }
.versus li { padding-left: 34px; position: relative; }
.versus .bad li::before { content: "✕"; position: absolute; left: 0; color: var(--a2); font-weight: 700; }
.versus .good li::before { content: "✓"; position: absolute; left: 0; color: var(--a1); font-weight: 700; }

/* Строка: картинка + объяснение, чередуются */
.rowx { max-width: 1240px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.rowx.flip { grid-template-columns: 1fr 1.15fr; }
.rowx.flip > :first-child { order: 2; }
.rowx .txt h3 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.01em; }
.rowx .txt p { margin: 0 0 14px; font-size: 19px; line-height: 1.55; color: var(--dim); }
.rowx .txt p b { color: var(--fg); font-weight: 600; }
.rowx .txt .kick { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--a2); display: block; margin-bottom: 10px; }
.rowx ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 12px; }
.rowx ol li { counter-increment: c; display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: 17px; line-height: 1.45; }
.rowx ol li::before { content: counter(c); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--a2); color: #fff; font-size: 14px; font-weight: 700; }

/* Триптих экранов с подписями к каждому */
.tri { max-width: 1240px; margin: 0 auto; padding: 24px; }
.tri img { width: 100%; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.tri .caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 18px; }
.tri .caps p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--dim); }
.tri .caps b { display: block; color: var(--fg); font-size: 18px; margin-bottom: 4px; }

/* Пост в телеграме */
.post { background: var(--post-bg, #1c1a20); color: var(--post-fg, #ece6dd); border-radius: 20px 20px 20px 6px; padding: 18px 20px 14px; font-size: 16px; line-height: 1.5; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.post .from { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--a1); }
.post .from img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.post p { margin: 0 0 .6em; }
.post .time { display: block; text-align: right; font-size: 12px; opacity: .5; }

/* Цитата крупно */
.big-q { max-width: 1000px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.big-q blockquote { margin: 0; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.02em; }
.big-q cite { display: block; margin-top: 18px; font-style: normal; color: var(--dim); font-size: 16px; }

/* Итоги цифрами */
.strip { max-width: 1240px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; }
.strip div { background: var(--bg); padding: 28px 24px; }
.strip b { display: block; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; color: var(--a1); font-variant-numeric: tabular-nums; }
.strip span { display: block; margin-top: 8px; color: var(--dim); font-size: 16px; line-height: 1.35; }

/* Подпись от руки со стрелкой */
.hand-note { font-family: "Caveat", cursive; font-weight: 700; color: var(--a1); font-size: 26px; line-height: 1.1; transform: rotate(-3deg); display: inline-block; }

@media (max-width: 860px) {
  .intro, .versus, .rowx, .rowx.flip { grid-template-columns: 1fr; gap: 28px; }
  .rowx.flip > :first-child { order: 0; }
  .intro dl { border-left: 0; padding-left: 0; grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; gap: 28px; }
  .gallery > * { grid-column: auto !important; margin-top: 0 !important; }
  .tri .caps { grid-template-columns: 1fr; gap: 14px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .hero-full .tag { display: none; }
  .intro, .part, .gallery, .versus, .rowx, .tri, .strip, .big-q { padding-left: 16px; padding-right: 16px; }
  .hero-full .in { padding: 0 16px 36px; }
  .part { padding-top: 80px; }
}

/* Первый экран без наложения: заголовок сверху, фото отдельным кадром ниже (как на мафии) */
.hero-full { min-height: 0; display: grid; grid-template-columns: 100%; overflow: visible; align-items: start; margin-bottom: 24px; }
.hero-full::after { display: none; }
.hero-full .top-float { position: static; grid-row: 1; }
.hero-full .top-float a { color: var(--fg); }
.hero-full .in { grid-row: 2; padding: 40px 24px 44px; }
.hero-full .in h1, .hero-full .in .sub { text-shadow: none; }
.hero-full .sub { color: var(--dim); }
.hero-full > img { position: static; grid-row: 3; z-index: auto; width: calc(100% - 48px); max-width: 1240px; height: auto; margin: 0 auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.hero-full .tag { grid-row: 3; position: relative; top: auto; right: auto; align-self: end; justify-self: end; margin: 0 max(48px, calc((100% - 1240px) / 2 + 48px)) -22px 0; padding: 4px 14px; border-radius: 10px; background: var(--bg); color: var(--a1); text-shadow: none; max-width: 420px; z-index: 2; display: block; }
@media (max-width: 860px) {
  .hero-full .in { padding: 28px 16px 28px; }
  .hero-full > img { width: calc(100% - 32px); aspect-ratio: 4 / 3; border-radius: 16px; }
  .hero-full .tag { display: block; margin-right: 28px; font-size: 22px; }
}
.hero-full > *, .hero-full > img, .hero-full .tag { grid-column: 1; }
