/* ==========================================================================
   Сайт «Покровский» — стили
   Источник: Figma «Pokrovskiy», фреймы «Покровский» (1440×4264) и «Input».
   Все размеры в токенах сняты с макета 1:1.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Шрифты (self-hosted)
   Onest — вариативный, 400–800. SovMod — дисплейный, свободная лицензия.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/onest-latin.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: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'SovMod';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  /* woff2 без хинтинга (5 КБ), ttf — запасной для старых браузеров */
  src: url('../fonts/sovmod.woff2') format('woff2'),
    url('../fonts/sovmod.ttf') format('truetype');
}

/* --------------------------------------------------------------------------
   2. Токены
   -------------------------------------------------------------------------- */
:root {
  /* палитра из макета */
  --red: #c9211b;
  --gold: #cfb45d;
  --gold-dark: #9d8431;
  /* золото для мелкого текста на белом: 5.4:1 (AA для обычного кегля) */
  --gold-text: #7d6827;
  --gold-hover: #bfa34f;
  --ink: #231f20;
  --dark: #252525;
  --black: #000;
  --cream: #f5f5f3;
  --cream-warm: #f6f4eb;
  --grey-70: #707070;
  --grey-8f: #8f8f8f;
  --grey-94: #949494;
  --grey-a1: #a1a1a1;
  --line: #e3e0d8;
  --line-light: #eeece6;

  /* типографика */
  --sans: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  --display: 'SovMod', 'Onest', Georgia, serif;

  /* сетка */
  --content: 1035px; /* ширина контентной колонки на внутренних страницах */
  --gutter: 24px;
  --header-h: 87px;

  /* движение */
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* --------------------------------------------------------------------------
   3. База
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* липкая шапка не должна накрывать якорные разделы */
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--gold);
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. Утилиты
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: calc(1440px + var(--gutter) * 2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 20px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  border-radius: 4px;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.005em;
}

.eyebrow {
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--grey-70);
}

/* --------------------------------------------------------------------------
   5. Шапка
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  transition: box-shadow 0.25s var(--ease);
}

/* тень появляется, как только страница прокручена */
.site-header.is-stuck {
  box-shadow: 0 1px 0 rgba(35, 31, 32, 0.09), 0 10px 26px -14px rgba(35, 31, 32, 0.22);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1440px;
  margin-inline: auto;
  padding: 0 50px 0 45px;
  height: var(--header-h);
}

.site-header__logo {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.01em;
  /* SovMod юникейсный — строчных букв нет, нужен капс */
  text-transform: uppercase;
  white-space: nowrap;
  padding: 12px 16px;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.site-header__logo:hover {
  color: #a91a15;
}

.nav {
  display: flex;
  align-items: center;
  gap: 72px;
}

.nav a {
  font-size: 16px;
  line-height: 20px;
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--gold-dark);
}

.nav a[aria-current='page'] {
  color: var(--gold-dark);
  text-decoration-color: var(--gold);
}

/* Шапка главной: та же полоса 87 px, что и на внутренних,
   навигация по центру, слот логотипа в левом краю пустует —
   в него «влетает» слово ПОКРОВСКИЙ из героя (см. site.js) */
.site-header--landing {
  background: #fff;
}

.site-header.has-shadow {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.4s ease;
}

/* плавное переключение justify-content внутреннего блока */
.site-header--landing .site-header__inner {
  transition: justify-content 0.4s ease;
}

.site-header--landing .site-header__inner {
  position: relative;
  /* меню, логотип и кнопка — над летящим словом */
  z-index: 1;
  justify-content: center;
  height: var(--header-h);
  padding: 0 50px 0 45px;
}

.site-header--landing .site-header__logo {
  position: absolute;
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
  /* до окончания перетекания логотип не виден, но остаётся целью замера */
  opacity: 0;
  pointer-events: none;
}

/* при скролле: логотип в потоке (flex), меню прижимается вправо */
.site-header--landing .site-header__inner.justify-space-between .site-header__logo {
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.site-header--landing .site-header__inner.justify-space-between .nav {
  margin-left: auto;
}

.site-header--landing.is-logo-visible .site-header__logo {
  opacity: 1;
  pointer-events: auto;
}

/* клавиатурный фокус не должен теряться на невидимой ссылке */
.site-header--landing .site-header__logo:focus-visible {
  opacity: 1;
}

/* Копия слова «Покровский» из героя. Лежит внутри шапки, поэтому рисуется
   поверх её фона, но под меню и логотипом: слово проезжает по полосе шапки,
   а не уходит под неё. Размеры и кегль выставляет site.js. */
.morph-word {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: none;
  font-family: var(--display);
  font-weight: 400;
  font-size: 124px;
  line-height: 0.94;
  letter-spacing: 0.026em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--red);
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
}

/* копия нужна, только пока слово летит в шапку */
.is-word-flying .morph-word {
  display: block;
}

/* режим без анимации: шапка главной сразу как на внутренних страницах */
@media (prefers-reduced-motion: reduce) {
  .site-header--landing .site-header__inner {
    justify-content: space-between;
  }

  .site-header--landing .site-header__logo {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: none;
  border: 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
  transition: transform 0.2s var(--ease);
}

/* --------------------------------------------------------------------------
   6. Герой главной
   -------------------------------------------------------------------------- */
.hero {
  /* 87 px шапки + 157 px воздуха = прежние 244 px до надписи */
  padding: 157px 24px 0;
  text-align: center;
  background: #fff;
}

.hero__eyebrow {
  display: block;
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--red);
  text-transform: uppercase;
}

.hero__name {
  display: block;
  margin-top: 27px;
  font-family: var(--display);
  font-size: 124px;
  line-height: 0.94;
  letter-spacing: 0.026em;
  color: var(--red);
  text-transform: uppercase;
}

/* пока слово «летит» в шапку, оригинал остаётся в потоке (чтобы ничего
   не сдвинулось), но становится прозрачным — рисуется копия в шапке */
.has-word-morph .hero__name {
  color: transparent;
}

.hero__dates {
  margin-top: 29px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   7. Биография на главной (портрет + чёрная панель)
   -------------------------------------------------------------------------- */
.bio {
  display: grid;
  grid-template-columns: 721fr 719fr;
  margin-top: 91px;
  background: var(--black);
}

.bio__photo {
  position: relative;
  min-height: 100%;
}

.bio__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: grayscale(1) contrast(1.02);
}

.bio__body {
  padding: 67px 104px 88px 104px;
  color: #fff;
}

.bio__mark {
  width: 116px;
  height: 149px;
  object-fit: contain;
}

.bio__text {
  margin-top: 15px;
  max-width: 506px;
  font-size: 14px;
  line-height: 21px;
  color: #fff;
}

.bio__creds {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: var(--gold);
}

.bio__heading {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.bio__text p + p {
  margin-top: 21px;
}

/* --------------------------------------------------------------------------
   8. Секция проектов
   -------------------------------------------------------------------------- */
.projects {
  padding: 126px 0 118px;
  background: var(--dark);
  text-align: center;
}

.projects__title {
  max-width: 900px;
  margin: 0 auto 65px;
  padding-inline: 24px;
  font-size: 49px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.005em;
  color: #fff;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 480 / 467;
  background: #1c1c1c;
  color: #fff;
  text-decoration: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.project-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.35) 34%,
    rgba(0, 0, 0, 0) 62%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.project-card__title {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  font-size: 24px;
  font-weight: 700;
  line-height: 27px;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}

@media (hover: hover) {
  .project-card:hover img {
    transform: scale(1.045);
  }

  .project-card:hover .project-card__shade,
  .project-card:focus-visible .project-card__shade,
  .project-card:hover .project-card__title,
  .project-card:focus-visible .project-card__title {
    opacity: 1;
    transform: none;
  }
}

@media (hover: none) {
  .project-card__shade {
    opacity: 1;
  }

  .project-card__title {
    opacity: 1;
    transform: none;
  }
}

/* на узких экранах подписи показываем всегда, без ховера */
@media (max-width: 900px) {
  .project-card__shade {
    opacity: 1;
  }

  .project-card__title {
    opacity: 1;
    transform: none;
    left: 20px;
    right: 20px;
    bottom: 20px;
    font-size: 18px;
    line-height: 22px;
  }
}

.projects__more {
  display: inline-flex;
  align-items: center;
  margin-top: 38px;
  line-height: 61px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease);
  padding: 12px 20px;
  min-width: 48px;
  min-height: 48px;
}

.projects__more:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   9. Блок юбилея
   -------------------------------------------------------------------------- */
.jubilee {
  padding: 129px 24px 113px;
  text-align: center;
  background: #fff;
}

.jubilee__emblem {
  width: 214px;
  height: auto;
  margin: 0 auto;
}

.jubilee__title {
  margin-top: 31px;
  font-family: var(--display);
  font-size: 74px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--red);
  text-transform: uppercase;
}

.jubilee__note {
  max-width: 420px;
  margin: 34px auto 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  color: var(--grey-70);
}

.jubilee__years {
  margin-top: 26px;
  font-family: var(--display);
  /* на белом светлое золото даёт 2.03:1 — для текста берём тёмное */
  color: var(--gold-dark);
  line-height: 0.9;
}

.jubilee__years b {
  display: block;
  font-weight: 400;
  font-size: 94px;
  line-height: 77px;
}

.jubilee__years span {
  display: block;
  margin-top: -7px;
  padding-left: 7.4px;
  font-size: 35px;
  letter-spacing: 7.4px;
  line-height: 1;
}

.jubilee__cta {
  margin-top: 73px;
}

/* кнопка в светлом блоке: белый текст на светлом золоте — 2.03:1 */
.jubilee__cta .btn {
  background: var(--gold-dark);
}

.jubilee__cta .btn:hover {
  background: #8a722a;
  box-shadow: 0 8px 24px rgba(138, 114, 42, 0.28);
}

/* --------------------------------------------------------------------------
   10. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 316px;
  height: 71px;
  padding: 0 40px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(157, 132, 49, 0.28);
}

.btn:active {
  transform: none;
  box-shadow: none;
}

.btn--dark {
  background: var(--dark);
}

.btn--dark:hover {
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

/* --------------------------------------------------------------------------
   11. Внутренние страницы: шапка-заголовок и типографика
   -------------------------------------------------------------------------- */
.page-head {
  padding: 78px 0 0;
  background: #fff;
}

.page-head__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 61px;
  letter-spacing: -0.01em;
}

.page-head__lead {
  max-width: 760px;
  margin-top: 40px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  /* золото на белом: #cfb45d — 2.03:1, #9d8431 — 3.63:1, нужно 4.5:1 */
  color: var(--gold-text);
}

.page-head__lead p + p {
  margin-top: 20px;
}

.page-section {
  padding: 64px 0 0;
}

/* последняя секция перед подвалом — с воздухом */
main > .page-section:last-child {
  padding-bottom: 88px;
}

.page-section--tight {
  padding-top: 40px;
}

.page-section__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 41px;
  letter-spacing: -0.005em;
}

.page-section__title--sm {
  font-size: 24px;
  line-height: 27px;
}

.prose {
  max-width: 620px;
  font-size: 14px;
  line-height: 21px;
}

.prose > * + * {
  margin-top: 18px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 40px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

.prose h3 {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.prose a {
  color: var(--red);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--gold-dark);
}

.prose ul {
  display: grid;
  gap: 8px;
}

.prose li {
  position: relative;
  padding-left: 20px;
}

.prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   12. Сетка карточек (Медиа, Архитектура)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 26px;
  margin-top: 40px;
}

.card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.card__media {
  overflow: hidden;
  aspect-ratio: 328 / 227;
  background: var(--cream);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__title {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

.card:hover .card__title {
  color: var(--red);
}

.card__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
}

.card__tag {
  margin-top: 20px;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--grey-70);
}

.card__tag + .card__title {
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   13. Статья (Биография)
   -------------------------------------------------------------------------- */
.article {
  display: grid;
  grid-template-columns: minmax(0, 620px) 340px;
  gap: 40px 60px;
  align-items: start;
  padding-top: 56px;
}

.article__aside {
  position: sticky;
  /* липкая шапка сверху — колонка фактов встаёт под неё */
  top: calc(var(--header-h) + 24px);
  padding: 32px;
  background: var(--cream);
}

.article__aside h2 {
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--grey-70);
}

.article__facts {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.article__facts li {
  display: grid;
  gap: 2px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 21px;
}

.article__facts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.article__facts b {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: var(--red);
}

.article__figure {
  margin-top: 24px;
}

.article__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 340 / 420;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1);
}

.article__figure figcaption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 17px;
  color: var(--grey-70);
}

/* --------------------------------------------------------------------------
   14. Архитектура: список объектов
   -------------------------------------------------------------------------- */
/* индекс объектов */
.object-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.object-index a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 21px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.object-index a:hover {
  color: var(--red);
}

.object-index span {
  flex: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-text);
}

.objects {
  display: grid;
  gap: 72px;
  padding-top: 24px;
}

.object {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  scroll-margin-top: 24px;
}

.object__media {
  aspect-ratio: 480 / 467;
  overflow: hidden;
  background: var(--cream);
}

.object__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.object:hover .object__media img {
  transform: scale(1.03);
}

.object__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 27px;
}

.object__text {
  margin-top: 16px;
  font-size: 14px;
  line-height: 21px;
}

.object__text p + p {
  margin-top: 14px;
}

.object__meta {
  margin-top: 20px;
  font-size: 14px;
  line-height: 18px;
  color: var(--grey-70);
}

.object:target .object__title {
  color: var(--red);
}

/* --------------------------------------------------------------------------
   15. Выставка
   -------------------------------------------------------------------------- */
.expo {
  padding: 72px 0 0;
  text-align: center;
}

.expo__display {
  margin-top: 30px;
  font-family: var(--display);
  font-size: 74px;
  line-height: 1.3;
  color: var(--red);
  text-transform: uppercase;
}

.expo__years {
  margin-top: 34px;
}

.expo__text {
  max-width: 620px;
  margin: 28px auto 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--ink);
}

.expo__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
  text-align: left;
}

.expo__block {
  padding: 32px;
  background: var(--cream);
}

.expo__block h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

.expo__block p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 21px;
}

.expo__block a {
  color: var(--red);
}

.expo__note {
  margin-top: 40px;
  font-size: 14px;
  line-height: 18px;
  color: var(--grey-70);
}

/* --------------------------------------------------------------------------
   16. Архив
   -------------------------------------------------------------------------- */
.archive-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.archive-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 328 / 227;
  object-fit: cover;
}

.archive-list {
  display: grid;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.archive-list li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 21px;
}

.archive-list b {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

/* --------------------------------------------------------------------------
   17. Футер
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #0f0f0e;
}

.site-footer__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../img/footer-bg.jpg');
  background-image: url('../img/footer.webp');
  background-repeat: repeat;
  background-size: 627px auto;
  filter: brightness(1.08) contrast(0.72);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* как в макете: чёрная подложка 48 % + градиент 41 % → 0 сверху вниз */
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.41) 0%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48));
}

.site-footer__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 48px 53px 56px;
}

.site-footer__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__nav a {
  font-size: 16px;
  line-height: 20px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease);
}

.site-footer__nav a:hover {
  color: var(--gold);
}

.site-footer__mark {
  display: inline-flex;
  align-items: center;
  margin-top: 134px;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--grey-a1);
  text-decoration: none;
  padding: 12px 16px;
  min-width: 48px;
  min-height: 48px;
}

.site-footer__mark:hover {
  color: #fff;
}

.site-footer__legal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  font-size: 14px;
  line-height: 18px;
  color: var(--grey-70);
}

.site-footer__legal a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   18. Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .hero {
    padding-top: 125px;
  }

  .hero__name {
    font-size: clamp(64px, 9vw, 112px);
  }

  .hero__eyebrow {
    font-size: clamp(24px, 3.2vw, 40px);
  }

  .bio__body {
    padding: 56px 64px 64px;
  }

  .projects {
    padding-top: 96px;
    padding-bottom: 88px;
  }

  .projects__title {
    font-size: clamp(30px, 3.6vw, 44px);
    margin-bottom: 48px;
  }

  .jubilee {
    padding-top: 96px;
    padding-bottom: 88px;
  }

  .jubilee__title,
  .expo__display {
    font-size: clamp(40px, 5.4vw, 64px);
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
  }

  .site-header__inner {
    padding: 0 24px;
    height: var(--header-h);
  }

  .nav {
    gap: 32px;
  }

  .nav a {
    font-size: 15px;
  }

  /* мобильная навигация */
  .nav-toggle {
    display: inline-flex;
  }

  /* на узких экранах логотип стоит в шапке сразу — перетекать некуда */
  .site-header--landing .site-header__inner {
    padding: 0 24px;
    height: var(--header-h);
    justify-content: space-between;
  }

  .site-header--landing .site-header__logo {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    font-size: 24px;
  }

  .site-header .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--cream);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .site-header .nav a {
    width: 100%;
    padding: 14px 0;
    font-size: 18px;
    text-decoration: none;
    border-bottom: 1px solid var(--line-light);
  }

  .site-header .nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding-top: 56px;
  }

  .hero__dates {
    margin-top: 36px;
    font-size: 26px;
  }

  .bio {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }

  .bio__photo {
    aspect-ratio: 4 / 3;
  }

  .bio__photo img {
    object-position: 50% 22%;
  }

  .bio__body {
    padding: 48px 32px 56px;
  }

  .bio__text {
    max-width: 620px;
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article {
    grid-template-columns: 1fr;
  }

  .article__aside {
    position: static;
    order: -1;
  }

  .object {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .expo__split {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .archive-list li {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .site-footer__nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 32px;
  }

  .site-footer__mark {
    margin-top: 72px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .hero {
    padding: 32px 20px 0;
  }

  .hero__eyebrow {
    font-size: 22px;
    letter-spacing: 0.06em;
  }

  .hero__name {
    margin-top: 14px;
    font-size: clamp(26px, 10.2vw, 44px);
    letter-spacing: 0.01em;
  }

  .hero__dates {
    margin-top: 28px;
    font-size: 22px;
  }

  .bio__body {
    padding: 36px 20px 44px;
  }

  .bio__mark {
    width: 88px;
    height: 113px;
  }

  .bio__text {
    font-size: 14px;
    line-height: 21px;
  }

  .projects {
    padding: 64px 0 64px;
  }

  .projects__title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 32px;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    aspect-ratio: 4 / 3;
  }

  .projects__more {
    margin-top: 32px;
    font-size: 20px;
  }

  .jubilee {
    padding: 64px 20px 72px;
  }

  .jubilee__emblem {
    width: 156px;
  }

  .jubilee__title,
  .expo__display {
    font-size: 11vw;
    line-height: 1.24;
  }

  .jubilee__note {
    font-size: 16px;
    line-height: 22px;
  }

  .jubilee__years b {
    font-size: 72px;
  }

  .jubilee__years span {
    font-size: 26px;
    letter-spacing: 6px;
  }

  .jubilee__cta {
    margin-top: 36px;
  }

  .btn {
    min-width: 0;
    width: 100%;
    max-width: 316px;
    height: 64px;
    font-size: 20px;
  }

  .page-head {
    padding-top: 48px;
  }

  .page-head__title {
    font-size: 32px;
    line-height: 41px;
  }

  .page-head__lead {
    margin-top: 24px;
  }

  .page-section {
    padding-top: 44px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .objects {
    gap: 48px;
  }

  .object-index {
    grid-template-columns: 1fr;
  }

  .object__title {
    font-size: 20px;
    line-height: 26px;
  }

  .archive-strip {
    grid-template-columns: 1fr;
  }

  .archive-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .expo__block {
    padding: 24px;
  }

  .site-footer__inner {
    padding: 32px 20px 40px;
  }

  .site-footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }

  .site-footer__mark {
    margin-top: 40px;
    font-size: 24px;
  }

  .site-footer__legal {
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------------
   Breadcrumb navigation
   -------------------------------------------------------------------------- */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--grey-70);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
}

.breadcrumb__item a {
  color: var(--grey-70);
  text-decoration: none;
}

.breadcrumb__item a:hover {
  color: var(--red);
  text-decoration: underline;
}

.breadcrumb__item[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}


/* разделитель «>» между пунктами; alt-текст пустой — скринридер его не читает */
.breadcrumb__item + .breadcrumb__item::before {
  content: '>' / '';
  margin-right: 6px;
  color: var(--grey-70);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   19. Интерактив: звуковой проект и хакатон
   -------------------------------------------------------------------------- */

/* --- Звук: тёмная полоса, как «Проекты» на главной --- */
.sound {
  margin-top: 56px;
  padding: 88px 0 96px;
  background: var(--dark);
  color: #fff;
}

.sound__eyebrow {
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
}

.sound__display {
  max-width: 900px;
  margin-top: 24px;
  font-family: var(--display);
  font-size: 74px;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #fff;
}

.sound__project {
  margin-top: 30px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: var(--gold);
}

.sound__lead {
  max-width: 620px;
  margin-top: 22px;
  font-size: 16px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.78);
}

.sound__quote {
  max-width: 560px;
  margin-top: 30px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  font-size: 16px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.6);
}

.sound__quote b {
  color: #fff;
  font-weight: 700;
}

/* --- Плейлист --- */
.tracklist {
  margin-top: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.track {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.5fr) minmax(140px, 1.15fr) 112px;
  grid-template-areas: 'play head wave time';
  align-items: start;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.track__play {
  grid-area: play;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(207, 180, 93, 0.6);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.track__play:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1a1a;
}

.track__play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.track__play svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.track__icon--pause {
  display: none;
}

.track.is-playing .track__icon--play {
  display: none;
}

.track.is-playing .track__icon--pause {
  display: block;
}

.track.is-playing .track__play {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1a1a;
}

.track__head {
  grid-area: head;
  min-width: 0;
}

.track__num {
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 1.6px;
  color: var(--gold);
}

.track__title {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

.track__desc {
  display: block;
  margin-top: 8px;
  max-width: 430px;
  font-size: 13px;
  line-height: 19px;
  color: rgba(255, 255, 255, 0.58);
}

.track__wave {
  grid-area: wave;
  position: relative;
  height: 52px;
  margin-top: 6px;
}

.track__wave svg {
  display: block;
  width: 100%;
  height: 52px;
}

/* невидимый range поверх волны: клик и клавиатура работают как перемотка */
.track__seek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.track__seek::-webkit-slider-runnable-track {
  height: 100%;
  background: none;
}

.track__seek::-moz-range-track {
  height: 100%;
  background: none;
}

.track__wave:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 2px;
}

.track__time {
  grid-area: time;
  justify-self: end;
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.track.is-current .track__time {
  color: var(--gold);
}

/* --- О проекте и авторе --- */
.sound__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 60px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.sound__meta h2 {
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--grey-a1);
}

.sound__author {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.sound__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.sound__meta p {
  margin-top: 12px;
  max-width: 470px;
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.72);
}

.sound__noscript {
  margin-top: 24px;
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.72);
}

.sound__noscript a {
  color: var(--gold);
}

.sound__figure {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  margin-top: 64px;
}

.sound__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.sound__figure figcaption {
  max-width: 300px;
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.sound__cta {
  margin-top: 32px;
  font-size: 14px;
  line-height: 20px;
}

.sound__cta a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sound__cta a:hover {
  color: #fff;
}

/* --- Хакатон: описание слева, афиша справа --- */
/* описание хакатона идёт сразу после сетки проектов — свой подзаголовок и воздух */
.hack-sub {
  margin-top: 56px;
}

.hack-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  margin-top: 32px;
}

/* анимированная афиша: правая колонка, подпись под видео */
.hack-video {
  margin: 0;
}

.hack-video__player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  background: #000;
}

.hack-video figcaption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 17px;
  color: var(--grey-70);
}

.hack-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hack-facts b {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 41px;
  letter-spacing: -0.01em;
}

.hack-facts span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  line-height: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--grey-70);
}

/* Карточки проектов: снимок 16:9, поверх — тип проекта и крупный номер */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 26px;
  margin-top: 40px;
}

.proj-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.proj-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
}

.proj-card__cover picture {
  display: block;
  height: 100%;
}

.proj-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.proj-card:hover .proj-card__cover img,
.proj-card:focus-visible .proj-card__cover img {
  transform: scale(1.035);
}

/* Тип проекта — тёмная плашка на снимке; номер входит в ту же строку */
.proj-card__kind {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  background: rgba(14, 14, 14, 0.78);
  font-size: 10px;
  font-weight: 800;
  line-height: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
}

.proj-card__tag {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--red);
}

/* --- Звуковой проект: тёмная полоса на всю ширину экрана --- */
.sound-band {
  margin-top: 64px;
  padding: 56px 0 64px;
  background: var(--dark);
  color: #fff;
}

.sound-band__title {
  color: #fff;
}

.sound-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 32px 40px;
  align-items: center;
  margin-top: 28px;
  color: inherit;
  text-decoration: none;
}

.sound-band__figure {
  margin: 0;
}

.sound-band__figure picture {
  display: block;
  overflow: hidden;
}

.sound-band__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.sound-band__grid:hover .sound-band__figure img,
.sound-band__grid:focus-visible .sound-band__figure img {
  transform: scale(1.02);
}

.sound-band__figure figcaption {
  max-width: 400px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.sound-band__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sound-band__kind {
  font-size: 11px;
  font-weight: 800;
  line-height: 15px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
}

.sound-band__name {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 700;
  line-height: 41px;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 0.2s var(--ease);
}

.sound-band__grid:hover .sound-band__name {
  color: var(--gold);
}

.sound-band__team {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.sound-band__text {
  margin-top: 12px;
  max-width: 470px;
  font-size: 14px;
  line-height: 21px;
  color: rgba(255, 255, 255, 0.78);
}

.sound-band__more {
  margin-top: 18px;
  font-size: 14px;
  line-height: 20px;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.proj-card__title {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

.proj-card:hover .proj-card__title {
  color: var(--red);
}

.proj-card__team {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--grey-70);
}

.proj-card__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 21px;
  max-width: 470px;
}

.proj-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.proj-card__more svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

/* --- Карточки проектов: плитка-обложка вместо фотографии --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 26px;
  margin-top: 40px;
}

.card__media--plate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--dark);
}

.plate__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.plate__kind {
  font-size: 10px;
  font-weight: 800;
  line-height: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
}

.plate__badge {
  flex: none;
  padding: 4px 8px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.plate__num {
  font-family: var(--display);
  font-size: 82px;
  line-height: 0.82;
  color: var(--red);
  text-transform: uppercase;
  transition: transform 0.5s var(--ease);
}

.card:hover .plate__num {
  transform: translateX(6px);
}

/* --- Метка «хакатон» --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* --- Тёмный герой страницы проекта --- */
.project-hero {
  position: relative;
  margin-top: 40px;
  padding: 56px 0 60px;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}

.project-hero h1 {
  position: relative;
  max-width: 820px;
  font-size: 48px;
  font-weight: 700;
  line-height: 61px;
  letter-spacing: -0.01em;
}

.project-hero__num {
  position: absolute;
  right: 0;
  bottom: -32px;
  font-family: var(--display);
  font-size: 200px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.project-hero__lead {
  position: relative;
  max-width: 680px;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--gold);
}

.project-hero .badge {
  position: relative;
  margin-bottom: 24px;
}

.project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin-top: 40px;
}

.project-actions .btn {
  min-width: 0;
  padding: 0 44px;
}

.project-back {
  font-size: 14px;
  line-height: 20px;
  color: var(--grey-70);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-back:hover {
  color: var(--red);
}

.hack-note {
  max-width: 620px;
  margin-top: 24px;
  font-size: 13px;
  line-height: 19px;
  color: var(--grey-70);
}

/* --- Шесть пунктов меню: на средних экранах убираем лишний воздух --- */
@media (max-width: 1439px) {
  .nav {
    gap: 40px;
  }
}

@media (max-width: 1280px) {
  .nav {
    gap: 22px;
  }

  .nav a {
    font-size: 15px;
  }
}

@media (max-width: 1024px) {
  .sound {
    margin-top: 40px;
    padding: 64px 0 72px;
  }

  .sound__display {
    font-size: clamp(40px, 6vw, 56px);
  }

  .track {
    grid-template-columns: 48px minmax(0, 1fr) 84px;
    grid-template-areas:
      'play head time'
      'wave wave wave';
    gap: 16px 20px;
    padding: 22px 0;
  }

  .track__play {
    width: 48px;
    height: 48px;
  }

  .track__desc {
    max-width: none;
  }

  .track__wave {
    margin-top: 2px;
  }

  .sound__meta {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 56px;
  }

  .hack-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 24px;
  }

  .sound-band {
    margin-top: 48px;
    padding: 40px 0 48px;
  }

  .sound-band__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
  }

  .sound-band__name {
    font-size: 24px;
    line-height: 31px;
  }

  .project-hero {
    margin-top: 24px;
    padding: 40px 0 44px;
  }

  .project-hero h1 {
    font-size: 38px;
    line-height: 48px;
  }

  .project-hero__num {
    right: -8px;
    bottom: -18px;
    font-size: 140px;
  }

  .project-grid {
    gap: 32px 26px;
  }

  .sound__author {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .sound {
    padding: 48px 0 56px;
  }

  .sound__display {
    margin-top: 18px;
    font-size: 34px;
  }

  .sound__lead,
  .sound__quote {
    font-size: 15px;
    line-height: 24px;
  }

  .tracklist {
    margin-top: 40px;
  }

  .track {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px 16px;
  }

  .track__play {
    width: 44px;
    height: 44px;
  }

  .track__title {
    font-size: 18px;
    line-height: 24px;
  }

  .track__time {
    font-size: 13px;
  }

  .sound__meta {
    margin-top: 40px;
  }

  .proj-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sound__figure {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sound__author {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sound__photo {
    width: 120px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-hero {
    padding: 32px 0 36px;
  }

  .project-hero h1 {
    font-size: 30px;
    line-height: 38px;
  }

  .project-hero__lead {
    margin-top: 18px;
    font-size: 15px;
    line-height: 22px;
  }

  .project-hero__num {
    font-size: 96px;
    bottom: -10px;
  }

  .plate__num {
    font-size: 64px;
  }

  .hack-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }

  .hack-facts b {
    font-size: 26px;
    line-height: 32px;
  }
}
