@font-face {
  font-family: 'Indiction';
  src: url('./assets/fonts/Indiction-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vertograd';
  src: url('./assets/fonts/Vertograd-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fedorovsk';
  src: url('./assets/fonts/Fedorovsk-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oglavie';
  src: url('./assets/fonts/Oglavie-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cathisma';
  src: url('./assets/fonts/Cathisma-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Monomakh';
  src: url('./assets/fonts/Monomakh-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --soft: #f7f7f5;
  --ink: #151515;
  --muted: #636363;
  --line: #e6e2db;
  --gold: #b88b2a;
  --red: #8f1f18;
  --red-dark: #631510;
  --shadow: 0 18px 50px rgba(23, 23, 23, .08);
  --vyaz-filter: grayscale(1) saturate(0) contrast(.78);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(440px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  min-height: 104px;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(21, 21, 21, .03);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: -18px -40px;
  z-index: 0;
  background-image: url('./assets/vyaz-byzantine-wall.png');
  background-repeat: no-repeat;
  background-position: center 50%;
  background-size: 1420px auto;
  opacity: .07;
  filter: var(--vyaz-filter);
  mix-blend-mode: multiply;
  transform: rotate(-.7deg) scale(1.03);
  pointer-events: none;
}
.topbar > * {
  position: relative;
  z-index: 1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}
.brand-copy {
  display: grid;
  gap: 4px;
  align-items: center;
  min-width: 0;
  padding: 5px 0;
}
.brand-title-main {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 12px;
  color: #941f18;
  font-family: 'Fedorovsk', 'Monomakh', 'Merriweather', Georgia, serif;
  font-size: clamp(38px, 2.7vw, 50px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: .004em;
  text-transform: none;
  white-space: nowrap;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, .96))
    drop-shadow(0 1px 0 rgba(184, 139, 42, .28))
    drop-shadow(0 10px 16px rgba(64, 25, 20, .1));
}
.brand-initial {
  display: inline;
  color: inherit;
  font: inherit;
  text-shadow: 0 1px 0 #fff;
}
.brand-dash {
  color: #b88b2a;
  font-family: 'Merriweather', Georgia, serif;
  font-size: .5em;
  font-weight: 900;
  transform: translateY(-.14em);
}
.brand b {
  display: block;
  font-size: 15px;
  letter-spacing: .055em;
  font-weight: 900;
  white-space: nowrap;
}
.brand-title {
  color: #171717;
  font-family: 'Source Sans 3', Arial, Helvetica, sans-serif;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: .055em !important;
  line-height: 1.05;
  text-shadow:
    0 1px 0 #fff,
    .8px 0 0 rgba(184, 139, 42, .14);
}
.brand-title::first-letter {
  color: var(--red);
  font-family: 'Indiction', 'Merriweather', Georgia, serif;
  font-size: 1.52em;
  font-weight: 400;
  line-height: .75;
  text-shadow:
    0 1px 0 #fff,
    .9px 0 0 rgba(184, 139, 42, .32);
}
.brand small {
  display: block;
  color: #6b6660;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.05;
}
.brand-long {
  display: block;
  max-width: 720px;
  color: #7c766f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.12;
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: 18px;
  color: #242424;
  font-size: 16px;
  font-weight: 600;
}
.nav a { border-bottom: 2px solid transparent; padding: 9px 0; }
.nav a:hover { border-color: var(--gold); }

.primary,
.secondary,
.amounts button,
.copy-purpose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.primary { background: var(--red); color: #fff; }
.primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(143, 31, 24, .18);
}
.primary.small { min-height: 42px; padding: 0 20px; font-size: 17px; }
.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr);
  gap: 0;
  align-items: stretch;
  min-height: 0;
  padding: 30px clamp(18px, 4vw, 54px) 18px;
}
.hero-media {
  position: relative;
  height: clamp(420px, 36vw, 500px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
  background: var(--soft);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: auto;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: var(--soft) url('./assets/slider-murals-semistrelnaia.png') center / cover no-repeat;
  pointer-events: none;
  will-change: opacity, transform;
  transform: scale(1);
}
.hero-image-next {
  z-index: 2;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity 2.45s cubic-bezier(.22, .61, .36, 1), transform 3.1s cubic-bezier(.2, .7, .2, 1);
}
.hero-image-next::after {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 50% 50%, rgba(184, 139, 42, .16), transparent 34%),
    url('./assets/vyaz-byzantine-wall.png') 50% 50% / 1180px auto no-repeat;
  opacity: 0;
  filter: grayscale(1) saturate(0) contrast(.9);
  mix-blend-mode: screen;
  transform: translateX(-3%) scale(1.05);
  transition: opacity 1.9s ease, transform 2.65s ease;
  pointer-events: none;
}
.hero-image-next.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-image-next.is-active::after {
  opacity: .34;
  transform: translateX(0) scale(1);
}
.hero-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(420px, 36vw, 500px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 11px;
  padding: clamp(24px, 2.7vw, 34px) clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #fff;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -70px -35px -70px;
  z-index: 0;
  height: 190px;
  background: url('./assets/vyaz-byzantine-wall.png') 52% 50% / 1180px auto no-repeat;
  opacity: .062;
  filter: var(--vyaz-filter);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-panel > * {
  position: relative;
  z-index: 1;
}
.eyebrow {
  margin: 0 0 8px;
  color: #7f1b15;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
#heroKicker {
  min-height: 20px;
  margin-bottom: 6px;
}
h1, h2, h3, p { overflow-wrap: break-word; word-break: normal; }
h1 {
  max-width: 720px;
  margin: 0;
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  font-size: clamp(31px, 3.45vw, 43px);
  line-height: 1.12;
  letter-spacing: 0;
}
#heroTitle {
  min-height: 132px;
  display: flex;
  align-items: flex-start;
}
h2 {
  margin: 0;
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  font-size: clamp(27px, 3.1vw, 38px);
  line-height: 1.16;
  letter-spacing: 0;
}
h3 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: 0; }
.hero-panel p,
.text-block p,
.project-hero p,
.donate p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
#heroText {
  min-height: 96px;
}
.dropcap::first-letter,
#projectWhy p:first-child::first-letter {
  float: left;
  margin: .02em .07em 0 0;
  color: var(--red);
  font-family: 'Indiction', 'Merriweather', Georgia, serif;
  font-size: 4.1em;
  line-height: .76;
  text-shadow:
    0 1px 0 #fff,
    1px 0 0 rgba(184, 139, 42, .4),
    0 8px 16px rgba(143, 31, 24, .08);
}
.fund-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.fund-row div {
  height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}
dt { color: #5a5a5a; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
dd { margin: 4px 0 0; font-size: 20px; font-weight: 900; line-height: 1.18; }
.progress,
.mini-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9df;
}
.progress span,
.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.slider-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.slider-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
  backdrop-filter: blur(10px);
  opacity: .1;
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hero-media:hover .slider-arrow,
.hero-media:focus-within .slider-arrow { opacity: 1; }
.slider-arrow:hover {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(184, 139, 42, .55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}
.slider-arrow.prev { left: 22px; }
.slider-arrow.next { right: 22px; }
.slider-arrow.prev:hover { transform: translate(-3px, -50%); }
.slider-arrow.next:hover { transform: translate(3px, -50%); }
.strip {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 clamp(18px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.strip::before {
  content: "";
  position: absolute;
  inset: -42px -80px;
  z-index: 0;
  background: url('./assets/vyaz-byzantine-wall.png') center 50% / 1280px auto no-repeat;
  opacity: .052;
  filter: var(--vyaz-filter);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.strip span {
  position: relative;
  z-index: 1;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .84);
  font-weight: 700;
}
.strip span:last-child { border-right: 0; }

.section {
  padding: clamp(44px, 7vw, 82px) clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
}
.section.two {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
.section-link {
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
  border-bottom: 2px solid rgba(143, 31, 24, .18);
}
.section-link:hover { border-color: var(--red); }
.text-block {
  min-width: 0;
  display: grid;
  gap: 16px;
}
.fact-grid,
.direction-grid,
.participation-list,
.document-grid,
.project-detail-grid,
.report-grid {
  display: grid;
  gap: 12px;
}
.fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fact-grid article,
.direction-grid article,
.participation-list article,
.document-grid article,
.project-detail-grid article,
.report-grid article {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.fact-grid span,
.direction-grid span,
.document-grid span,
.project-detail-grid span,
.report-grid span {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.fact-grid span {
  color: var(--red);
  font-family: 'Merriweather', Georgia, serif;
  font-size: 24px;
  letter-spacing: 0;
  text-transform: none;
}
.fact-grid p,
.direction-grid p,
.participation-list p,
.document-grid p,
.project-detail-grid p,
.report-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}
.direction-grid,
.document-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.directions {
  background: linear-gradient(180deg, #fff 0%, #faf9f6 100%);
}
.direction-grid article::after,
.document-grid article::after {
  content: "";
  position: absolute;
  inset: auto -40px -36px -40px;
  height: 86px;
  background: url('./assets/vyaz-byzantine-wall.png') center / 780px auto no-repeat;
  opacity: .04;
  filter: var(--vyaz-filter);
  pointer-events: none;
}
.participation-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.participation-list b,
.document-grid b,
.project-detail-grid b,
.report-grid b {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.2;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.project-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: #d8c8a8;
  box-shadow: var(--shadow);
}
.card-image {
  width: 100%;
  height: 190px;
  background-color: var(--soft);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform .45s ease;
}
.project-card:hover .card-image { transform: scale(1.025); }
.project-card div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
.project-card p { margin: 0; color: var(--muted); }
.project-card a {
  margin-top: auto;
  color: var(--red);
  font-weight: 800;
}
.tag {
  color: var(--gold) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: var(--soft);
}
.step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.step:hover {
  transform: translateY(-3px);
  border-color: #d8c8a8;
  box-shadow: 0 14px 34px rgba(23, 23, 23, .06);
}
.step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
}
.step span { display: block; font-weight: 800; font-size: 19px; }
.step p { margin: 8px 0 0; color: var(--muted); }
.people {
  display: grid;
  gap: 12px;
}
.people article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.people article:hover {
  transform: translateY(-2px);
  border-color: #d8c8a8;
  box-shadow: 0 12px 30px rgba(23, 23, 23, .05);
}
.people span { color: var(--red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.people b { display: block; margin-top: 6px; font-size: 18px; }
.people p { margin: 6px 0 0; color: var(--muted); }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.doc-links a:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: #fff;
}

.founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  background: #fff;
}
.founder-photo-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-self: end;
  width: min(100%, 390px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: 0 18px 42px rgba(23, 23, 23, .07);
}
.founder-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 58%, rgba(20, 16, 12, .18) 100%);
  pointer-events: none;
}
.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}
.founder-copy {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  padding: clamp(24px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.founder-copy::before {
  content: "";
  position: absolute;
  inset: auto -80px -45px -80px;
  z-index: 0;
  height: 185px;
  background: url('./assets/vyaz-byzantine-wall.png') 54% 50% / 1320px auto no-repeat;
  opacity: .052;
  filter: var(--vyaz-filter);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.founder-copy > * {
  position: relative;
  z-index: 1;
}
.founder-copy h2 {
  max-width: 780px;
  margin-bottom: 18px;
}
.founder-copy p {
  max-width: 780px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
}
.founder-sign {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
}
.founder-sign img {
  width: min(350px, 45vw);
  flex: 0 0 auto;
  transform: rotate(-.7deg);
  opacity: 1;
  filter: contrast(1.08) saturate(1.03);
}
.founder-sign b {
  display: block;
  font-size: 18px;
  line-height: 1.18;
}
.founder-sign span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.donate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
  margin: clamp(30px, 5vw, 54px);
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.donate::before {
  content: "";
  position: absolute;
  inset: -54px -110px;
  z-index: 0;
  background: url('./assets/vyaz-byzantine-wall.png') 48% 50% / 1760px auto no-repeat;
  opacity: .07;
  filter: var(--vyaz-filter);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.donate > * {
  position: relative;
  z-index: 1;
}
.donate-copy { display: grid; align-content: start; gap: 16px; }
.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.amounts button {
  background: #fff;
  border-color: var(--line);
}
.amounts button:hover { border-color: var(--gold); }
.amounts button.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
label {
  display: grid;
  gap: 8px;
  max-width: 520px;
  font-weight: 700;
}
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
}
.requisites {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.requisites img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.requisites h3 { margin-bottom: 10px; }
.requisites p { font-size: 14px; color: var(--muted); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 54px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer b { display: block; color: var(--ink); }
.footer span { display: block; margin-top: 4px; }
.footer a { color: var(--red); font-weight: 800; }

.project-page { background: #fff; }
.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 26px;
  align-items: start;
  padding: clamp(32px, 6vw, 74px) clamp(18px, 4vw, 54px) 30px;
  border-bottom: 1px solid var(--line);
}
.project-hero > div { min-width: 0; }
.project-hero h1 { margin-bottom: 16px; }
.project-hero p { margin-bottom: 20px; }
.project-hero .status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.status-line li {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
}
.crumb {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  font-weight: 700;
}
.project-donate {
  position: sticky;
  top: 94px;
  isolation: isolate;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.project-donate::before {
  content: "";
  position: absolute;
  inset: auto -80px -48px -80px;
  z-index: 0;
  height: 165px;
  background: url('./assets/vyaz-byzantine-wall.png') center 50% / 1160px auto no-repeat;
  opacity: .062;
  filter: var(--vyaz-filter);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.project-donate > * {
  position: relative;
  z-index: 1;
}
.project-image {
  width: 100%;
  height: 250px;
  border-radius: 6px;
  background-color: var(--soft);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 14px;
}
.project-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.report-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.plan-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.plan-list article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.plan-list article:hover {
  transform: translateY(-3px);
  border-color: #d8c8a8;
  box-shadow: 0 14px 34px rgba(23, 23, 23, .06);
}
.plan-list b { color: var(--red); }
.plan-list p { margin: 8px 0 0; color: var(--muted); }
.budget {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.budget th,
.budget td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.budget th { background: var(--soft); }
.budget tr:last-child td { border-bottom: 0; }
.budget td:last-child { font-weight: 800; white-space: nowrap; }

.reveal-item {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .58s ease, transform .58s cubic-bezier(.22, .61, .36, 1);
}
.reveal-item.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1050px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { order: 3; grid-column: 1 / -1; overflow-x: auto; padding-bottom: 4px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .direction-grid,
  .document-grid,
  .report-grid,
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
  }
  .topbar::before {
    background-size: 720px auto;
    opacity: .06;
  }
  .topbar .primary.small {
    justify-self: stretch;
    min-height: 40px;
  }
  .brand-title-main {
    gap: 4px;
    font-size: clamp(26px, 7vw, 34px);
    white-space: normal;
    line-height: .95;
  }
  .dropcap::first-letter,
  #projectWhy p:first-child::first-letter {
    font-size: 3.45em;
    margin-right: .06em;
  }
  .brand b { font-size: 13px; white-space: normal; }
  .brand-title {
    font-size: 13px !important;
    line-height: 1.05;
  }
  .brand small { display: block; font-size: 12px; }
  .brand-long { display: none; }
  h1 { font-size: 28px; line-height: 1.16; }
  h2 { font-size: 25px; }
  h3 { font-size: 20px; }
  .nav { order: 2; font-size: 15px; font-weight: 700; }
  .topbar .primary.small { order: 3; }
  .hero,
  .project-hero,
  .section.two,
  .founder,
  .donate {
    grid-template-columns: 1fr;
    width: auto;
    max-width: 100vw;
  }
  .hero { min-height: 0; padding-top: 18px; }
  .hero-panel {
    order: 1;
    height: auto;
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
  }
  .hero-media { order: 2; }
  .hero-media {
    height: auto;
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    min-height: 230px;
    aspect-ratio: 16 / 9;
    border-radius: 0 0 8px 8px;
  }
  .hero-image { min-height: 0; max-height: none; }
  .slider-arrow {
    width: 40px;
    height: 50px;
    font-size: 30px;
  }
  .slider-arrow.prev { left: 12px; }
  .slider-arrow.next { right: 12px; }
  .fund-row { grid-template-columns: 1fr; }
  .project-hero > div,
  .project-donate,
  .section,
  .donate {
    max-width: 100vw;
  }
  .strip,
  .project-grid,
  .fact-grid,
  .direction-grid,
  .participation-list,
  .document-grid,
  .project-detail-grid,
  .report-grid,
  .steps,
  .plan-list {
    grid-template-columns: 1fr;
  }
  .section-head {
    display: grid;
    align-items: start;
  }
  .section-link { justify-self: start; }
  .strip span { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip span:last-child { border-bottom: 0; }
  .project-card { min-height: 0; }
  .donate { margin: 18px; }
  .project-donate { position: static; }
  .founder-copy { padding: 20px; }
  .founder-photo-wrap {
    justify-self: stretch;
    width: 100%;
    max-width: 420px;
  }
  .founder-sign {
    align-items: flex-start;
    flex-direction: column;
  }
  .founder-sign img { width: min(280px, 72vw); }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
