/*
 * Раздел «Страну меняют люди»: статическая копия.
 * Цвета и шрифт — по брендбуку АСИ, сетка и шкала кеглей — по теме 2 сайта.
 */

@font-face {
  font-family: 'PF BeauSans Pro';
  src: url('fonts/PFBeauSansPro-Thin.woff2') format('woff2');
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: 'PF BeauSans Pro';
  src: url('fonts/PFBeauSansPro-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'PF BeauSans Pro';
  src: url('fonts/PFBeauSansPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PF BeauSans Pro';
  src: url('fonts/PFBeauSansPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Основная палитра брендбука */
  --navy: #00325f;        /* 295 C — основной */
  --red: #f7403a;         /* Warm Red C — акцент, не для мелкого текста */
  --dark-red: #aa272f;    /* 1805 C — наведение на красное */
  --blue: #0055a0;        /* 2945 C — ссылки на светлом, фокус */
  --light-blue: #a0cdeb;  /* 291 C — акцент на тёмном */
  --gray: #afafaf;        /* Cool Gray 6 C */
  --light-gray: #e1e6e6;  /* 7541 C */
  --black: #2d2a26;       /* Black C — текст */

  /* Роли */
  --ink: var(--black);
  --ink-soft: #575551;    /* Black C 80 % — вторичный текст, 7,4:1 */
  --surface: #ffffff;
  --surface-muted: #f3f5f5; /* 7541 C 40 % — подложки */
  --line: #dfdfdf;          /* Cool Gray 6 C 40 % — линии */
  --on-dark: #ffffff;
  --on-dark-muted: #c3cee0;

  --font: 'PF BeauSans Pro', 'Segoe UI', Arial, sans-serif;
  --font-label: Arial, 'Helvetica Neue', Helvetica, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.75rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-md: 0 4px 12px rgb(0 50 95 / 0.1);
  --shadow-lg: 0 12px 32px rgb(0 50 95 / 0.16);

  --container: 1240px;
  --gutter: 100px;
  --measure: 760px;
  /* Фото в тексте шире колонки чтения и выступает за неё с обеих сторон. */
  --figure-width: calc(var(--measure) + 240px);
  --section-space: 56px;
  --title-size: clamp(2.125rem, calc(1.2rem + 3.2vw), 3.375rem);
}

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
    --section-space: 36px;
  }
}

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

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

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-2xl);
  font-weight: 400;
}

h3 {
  font-size: var(--text-xl);
  font-weight: 400;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--navy);
}

.skip:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Шапка и подвал ---------- */

.site-header {
  background: var(--navy);
  color: var(--on-dark);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 80px;
}

.site-header__logo {
  display: block;
  color: var(--on-dark);
  line-height: 0;
}

.site-header__logo svg {
  width: auto;
  height: 44px;
}

.site-header__section {
  padding-left: 32px;
  border-left: 1px solid rgb(255 255 255 / 0.25);
  color: var(--on-dark);
  font-size: var(--text-lg);
  font-weight: 300;
}

.site-header__section:hover {
  color: var(--light-blue);
  text-decoration: none;
}

@media (max-width: 600px) {
  .site-header__row {
    gap: 16px;
    min-height: 64px;
  }

  .site-header__logo svg {
    height: 34px;
  }

  .site-header__section {
    padding-left: 16px;
    font-size: var(--text-base);
  }
}

.site-footer {
  margin-top: var(--section-space);
  padding-block: 40px;
  background: var(--navy);
  color: var(--on-dark-muted);
  font-size: var(--text-sm);
}

.is-story .site-footer,
.related + .site-footer {
  margin-top: 0;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}

.site-footer__brand {
  color: var(--on-dark);
}

.site-footer__brand svg {
  height: 40px;
  width: auto;
  margin-bottom: 12px;
}

.site-footer__brand p {
  max-width: 320px;
  margin: 0;
  color: var(--on-dark-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  list-style: none;
}

.site-footer a {
  color: var(--on-dark);
}

.site-footer a:hover {
  color: var(--light-blue);
}

/* ---------- Кнопки, теги ---------- */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--on-dark);
  font-weight: 400;
}

.button:hover {
  background: var(--blue);
  text-decoration: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full, 999px);
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.tag:hover {
  border-color: var(--navy);
  color: var(--navy);
  text-decoration: none;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- Список историй ---------- */

.intro {
  padding-block: 64px 56px;
  background: var(--navy);
  color: var(--on-dark);
}

.intro__title {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, calc(1.4rem + 4.6vw), 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Как в ленте историй темы 2: «меняют» голубым, «люди» красным. */
.intro__accent {
  color: var(--light-blue);
}

.intro__people {
  color: var(--red);
}

.intro__lead {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--on-dark);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.45;
}

.intro__meta {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: var(--text-sm);
}

.intro__meta a {
  color: var(--light-blue);
}

.catalog {
  padding-top: 40px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.search input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-lg);
}

.search input:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 1px var(--blue);
}

.filters__tags summary {
  display: inline-block;
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
}

.filters__tags[open] summary {
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.chip {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
}

.chip span {
  color: var(--ink-soft);
}

.chip:hover {
  border-color: var(--navy);
}

.chip[aria-pressed='true'] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--on-dark);
}

.chip[aria-pressed='true'] span {
  color: var(--light-blue);
}

.filters__status {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.filters__status:empty {
  display: none;
}

.empty {
  padding: 40px 0;
  color: var(--ink-soft);
  font-size: var(--text-lg);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  list-style: none;
}

.cards--row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .cards--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cards,
  .cards--row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card[hidden] {
  display: none;
}

.card__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--on-dark);
  aspect-ratio: 3 / 4;
}

.card__link:hover {
  text-decoration: none;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card__link:hover .card__image {
  transform: scale(1.04);
}

/* Затемнение снизу: без него белый текст теряется на светлых снимках. */
.card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 30 58 / 0.92) 0%, rgb(0 30 58 / 0.55) 45%, rgb(0 30 58 / 0) 75%);
}

.card__body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.card__hero {
  color: var(--light-blue);
  font-size: var(--text-sm);
}

.card__title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.25;
}

.card__date {
  color: var(--on-dark-muted);
  font-size: var(--text-xs);
  font-family: var(--font-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Первый экран истории ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(78vh, 680px);
  padding-block: 32px 56px;
  background: var(--navy) var(--hero-image) center / cover no-repeat;
  color: var(--on-dark);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(0 30 58 / 0.95) 0%, rgb(0 30 58 / 0.6) 45%, rgb(0 30 58 / 0.25) 100%);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-bottom: auto;
  padding-bottom: 120px;
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crumbs a {
  color: var(--on-dark-muted);
}

.crumbs a + a::before {
  content: '/';
  margin: 0 10px;
  color: var(--on-dark-muted);
}

.crumbs a:hover {
  color: var(--on-dark);
}

.hero__person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--red);
}

.hero__name {
  font-size: var(--text-xl);
  font-weight: 400;
}

.hero__role {
  max-width: 560px;
  color: var(--on-dark-muted);
  font-size: var(--text-sm);
}

.hero__title {
  max-width: 980px;
  margin: 0 0 16px;
  font-size: var(--title-size);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.hero__meta {
  margin: 0;
  color: var(--on-dark-muted);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Тело истории ---------- */

.story__body {
  padding-top: var(--section-space);
}

.block {
  margin-bottom: 40px;
}

/* Обычные блоки идут колонкой для чтения, широкие — во всю сетку. */
.block > * {
  max-width: var(--measure);
  margin-inline: auto;
}

.block--wide > * {
  max-width: none;
}

.block__title {
  margin-bottom: 20px;
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--navy);
}

.block--with-aside {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(0, 300px);
  justify-content: center;
  gap: 48px;
  max-width: calc(var(--container) + 2 * var(--gutter));
}

.block--with-aside > * {
  margin-inline: 0;
}

@media (max-width: 1000px) {
  .block--with-aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: calc(var(--measure) + 2 * var(--gutter));
  }
}

.prose {
  font-size: var(--text-lg);
  line-height: 1.65;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--red);
}

.prose h3,
.prose h4 {
  margin: 1.4em 0 0.6em;
  color: var(--navy);
}

.prose strong {
  font-weight: 700;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: rgb(0 85 160 / 0.35);
  text-underline-offset: 0.2em;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

/* Выделение маркером 291 C — как в исходных текстах. */
.prose mark,
.accent mark,
.quote mark {
  padding: 0.05em 0.15em;
  background: rgb(160 205 235 / 0.55);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.prose img {
  margin: 1em 0;
  border-radius: var(--radius-md);
}

.prose--cols {
  columns: 2 280px;
  column-gap: 40px;
}

.aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}

.aside__image {
  max-height: 240px;
  width: auto;
  object-fit: contain;
}

/* Видео-кружок из исходной вёрстки. */
.aside__video {
  width: 280px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--navy);
}

.highlight {
  position: relative;
  padding: 32px 36px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border-left: 4px solid var(--red);
}

.highlight__title {
  margin-bottom: 16px;
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--navy);
}

@media (max-width: 600px) {
  .highlight {
    padding: 24px 20px;
  }
}

.accent {
  color: var(--navy);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.5;
}

.accent > :last-child {
  margin-bottom: 0;
}

.quote {
  margin-block: 0;
  padding: 8px 0 8px 32px;
  border-left: 3px solid var(--red);
}

.quote__author {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 700;
}

.quote__text {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.25rem, calc(1rem + 0.8vw), 1.625rem);
  font-weight: 300;
  line-height: 1.4;
}

.quote__text p {
  margin: 0 0 0.8em;
}

.quote__text > :last-child {
  margin-bottom: 0;
}

/* Изображения */

.figure {
  margin: 0;
}

/* Одиночное фото в потоке текста: по центру, на 120px шире текста с каждой стороны. */
.block--figure > .figure {
  max-width: var(--figure-width);
  margin-inline: auto;
}

.block--figure.block--wide > .figure {
  max-width: none;
}

.figure img {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.figure figcaption,
.video figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.figure figcaption p,
.video figcaption p {
  margin: 0;
}

.zoom {
  display: block;
  cursor: zoom-in;
}

.gallery {
  display: grid;
  gap: 16px;
  list-style: none;
}

.gallery--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery--grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.gallery--grid .figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 600px) {
  .gallery--pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Цифры */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px 40px;
  list-style: none;
}

.stat {
  padding-top: 16px;
  border-top: 3px solid var(--red);
}

.stat__value {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(2rem, calc(1.2rem + 2vw), var(--text-4xl));
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.stat__value small {
  display: block;
  font-size: var(--text-lg);
}

.stat__text {
  margin: 0;
  color: var(--ink-soft);
}

.stat--aside .stat__value {
  font-size: var(--text-3xl);
}

.numbers {
  margin-bottom: 40px;
  padding-block: 64px;
}

.numbers--photo {
  position: relative;
  background: var(--navy) var(--numbers-image) center / cover no-repeat;
  color: var(--on-dark);
}

.numbers--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 50 95 / 0.86);
}

.numbers--photo .container {
  position: relative;
}

.numbers--photo .stat {
  border-top-color: var(--light-blue);
}

.numbers--photo .stat__value {
  color: var(--on-dark);
}

.numbers--photo .stat__text {
  color: var(--on-dark-muted);
}

/* Люди */

.people {
  display: grid;
  gap: 24px;
  list-style: none;
}

.people--grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.person {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.person__photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-muted);
}

.person__icon {
  flex: none;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.person__name {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
}

.person__text {
  color: var(--ink-soft);
}

.person__text p {
  margin: 0 0 0.6em;
}

.person__text > :last-child {
  margin-bottom: 0;
}

.people--small .person__photo {
  width: 72px;
  height: 72px;
}

.people--small .person__name {
  font-size: var(--text-base);
}

.people--small .person__text {
  font-size: var(--text-sm);
}

.credits {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.credits__label {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credits__note {
  margin: 16px 0 0;
  font-size: var(--text-sm);
}

/* Меры поддержки */

.support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  list-style: none;
}

.support__card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--on-dark);
}

.support__card h3 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  font-size: var(--text-xl);
}

.support__card .prose {
  font-size: var(--text-base);
  color: var(--on-dark-muted);
}

.support__card .prose li::marker {
  color: var(--light-blue);
}

.support__subtitle {
  color: var(--light-blue);
}

/* Материалы */

.materials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  list-style: none;
}

.materials--aside {
  grid-template-columns: minmax(0, 1fr);
}

.material {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.material:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.material__kind {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--navy);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.material__title {
  line-height: 1.35;
}

/* Видео */

.video {
  margin: 0;
}

.video__facade,
.video iframe,
.video video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--navy);
}

.video__facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.video__facade:hover img {
  opacity: 1;
}

.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: var(--shadow-lg);
  transition: background 0.2s, transform 0.2s;
}

.video__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -14px 0 0 -8px;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #ffffff;
}

.video__facade:hover .video__play {
  background: var(--dark-red);
  transform: scale(1.06);
}

.video__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgb(0 30 58 / 0.75);
  color: var(--on-dark);
  font-size: var(--text-sm);
}

/* Подвал истории и «Читайте также» */

.story__footer {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  padding-block: 8px var(--section-space);
}

.story__source {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.related {
  padding-block: var(--section-space);
  background: var(--surface-muted);
}

.related__title {
  margin-bottom: 24px;
  color: var(--navy);
}

.related__all {
  margin: 32px 0 0;
  text-align: center;
}

/* Просмотр фото */

.lightbox {
  max-width: min(1400px, 96vw);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: #0b1b2e;
  color: var(--on-dark);
}

.lightbox::backdrop {
  background: rgb(0 20 40 / 0.88);
}

.lightbox img {
  max-width: 100%;
  max-height: calc(94vh - 60px);
  margin: 0 auto;
}

.lightbox__caption {
  margin: 0;
  padding: 10px 16px 14px;
  color: var(--on-dark-muted);
  font-size: var(--text-sm);
}

.lightbox__caption:empty {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.5);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .related,
  .video__play {
    display: none;
  }

  .hero {
    min-height: 0;
    color: var(--ink);
    background: none;
  }

  .hero::before {
    display: none;
  }
}

/* Вступление истории */

.lead {
  color: var(--navy);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.5;
}

.lead p {
  margin: 0 0 0.9em;
}

.lead > :last-child {
  margin-bottom: 0;
}
