:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-soft: #eef6fb;
  --fg: #07162d;
  --muted: #58677a;
  --border: rgba(7, 22, 45, 0.14);
  --navy: #071a34;
  --navy-2: #102a50;
  --action: #0788c8;
  --accent: #d52028;
  --support: #168347;
  --warning: #bd6e00;
  --success-bg: rgba(22, 131, 71, 0.12);
  --info-bg: rgba(7, 136, 200, 0.12);
  --danger-bg: rgba(213, 32, 40, 0.1);
  --shadow: 0 18px 42px rgba(7, 26, 52, 0.12);
  --shadow-soft: 0 12px 26px rgba(7, 26, 52, 0.07);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 8px;
  --max: 1180px;
  --font-display: 'Manrope', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background:
    linear-gradient(115deg, rgba(7, 136, 200, 0.08), transparent 34rem),
    linear-gradient(245deg, rgba(22, 131, 71, 0.07), transparent 30rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

.cookie-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  width: min(560px, calc(100% - 48px));
  color: var(--fg);
}

.cookie-consent__body {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.cookie-consent__actions .btn {
  min-height: 42px;
}

.cookie-consent__actions a {
  color: var(--action);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.cookie-consent__actions a:hover {
  text-decoration: underline;
}

.privacy-action {
  margin-top: 14px;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--action), white 10%);
  outline-offset: 3px;
}

.shell {
  min-height: 100vh;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(7, 22, 45, 0.09);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(100% - 40px, var(--max));
  min-height: 92px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 56px;
  text-decoration: none;
}

.brand-link img {
  width: 112px;
  height: 78px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
  display: block;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 680;
  color: var(--navy);
}

.brand-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: color-mix(in srgb, var(--fg), white 13%);
  text-decoration: none;
  font-size: 14px;
  font-weight: 620;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: color-mix(in srgb, var(--action), white 91%);
  box-shadow: inset 0 -3px 0 var(--action);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--fg);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 28px rgba(7, 26, 52, 0.2);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(213, 32, 40, 0.18);
}

.btn--support {
  background: var(--support);
  color: #fff;
  box-shadow: 0 14px 28px rgba(22, 131, 71, 0.18);
}

.btn--secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--fg);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.34);
}

.page-main {
  min-height: 70vh;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  max-width: 840px;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 760;
}

.section-lead {
  max-width: 66ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: end;
}

.intro-image {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--surface-soft);
}

.intro-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.intro-image::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--action), var(--accent), var(--support));
}

.hero {
  min-height: auto;
  padding: 0;
}

.hero .container {
  width: 100%;
  max-width: none;
}

.hero-card {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--fg);
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.9) 33%, rgba(247, 251, 255, 0.46) 62%, rgba(247, 251, 255, 0.08) 100%),
    var(--hero-image, url('../assets/photos/hero.jpg')) center/cover;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(128deg, transparent 0 61%, rgba(7, 136, 200, 0.32) 61% 61.8%, transparent 61.8%),
    linear-gradient(128deg, transparent 0 67%, rgba(213, 32, 40, 0.26) 67% 67.7%, transparent 67.7%),
    linear-gradient(128deg, transparent 0 73%, rgba(22, 131, 71, 0.28) 73% 73.8%, transparent 73.8%);
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--action), var(--accent) 42%, var(--support));
}

.hero-card__content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  min-height: 620px;
  margin-inline: auto;
  padding: 54px 0 66px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.56fr);
  align-items: center;
  gap: 34px;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 800;
  color: var(--navy);
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: color-mix(in srgb, var(--fg), white 16%);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-visual {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  grid-template-rows: 152px 152px;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.hero-collage::after {
  content: '';
  position: absolute;
  inset: auto 22px 22px auto;
  width: 142px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--action), var(--accent), var(--support));
}

.hero-collage img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.hero-collage img[data-lightbox-src] {
  cursor: zoom-in;
}

.hero-collage img:first-child {
  grid-row: span 2;
}

.hero-proof {
  align-self: end;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.hero-proof strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 15px;
}

.hero-proof strong::before {
  content: '';
  width: 42px;
  height: 4px;
  display: block;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--support));
}

.hero-proof p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.launcher-grid,
.card-grid,
.direction-grid,
.project-grid,
.media-grid,
.campaign-grid {
  display: grid;
  gap: 18px;
}

.launcher-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 34px;
}

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

.card-grid--principles,
.card-grid--support,
.card-grid--methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.carousel-shell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.project-carousel {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 2px 2px 16px;
  scrollbar-width: thin;
}

.project-carousel .project-card {
  min-width: 0;
  scroll-snap-align: start;
}

.carousel-control {
  width: 44px;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

.carousel-control:hover {
  background: color-mix(in srgb, var(--action), white 92%);
}

.wide-action-band {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--border);
  border-left: 6px solid var(--support);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.wide-action-band h3,
.wide-action-band p {
  margin: 0;
}

.wide-action-band p {
  margin-top: 6px;
  color: var(--muted);
}

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

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

.surface-card,
.project-card,
.direction-card,
.donation-panel,
.contact-card,
.launcher-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, var(--shadow-soft);
}

.surface-card,
.contact-card,
.launcher-card {
  padding: 24px;
}

.launcher-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.launcher-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: 0;
}

.launcher-card p,
.surface-card p,
.direction-card p,
.project-card p {
  color: var(--muted);
}

.launcher-card span {
  font-weight: 680;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 4px solid color-mix(in srgb, var(--action), white 20%);
}

.project-card[data-status='recruiting'] {
  border-top-color: var(--support);
}

.project-card[data-status='planned'] {
  border-top-color: var(--warning);
}

.project-card[data-status='completed'] {
  border-top-color: var(--navy);
}

.project-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-soft);
}

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

.project-card:hover .project-card__image img {
  transform: scale(1.035);
}

.project-card__body {
  padding: 22px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
}

.project-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: 0;
}

.project-card p {
  margin: 0;
}

.project-card__facts {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.project-card__fact {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.project-card__fact span {
  color: color-mix(in srgb, var(--muted), white 20%);
}

.project-card__fact strong {
  min-width: 0;
  color: var(--fg);
  font-weight: 650;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.status-badge,
.tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.02em;
}

.pill,
.tag {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
}

.tag {
  background: color-mix(in srgb, var(--action), white 94%);
}

.status-badge {
  color: var(--status-fg, var(--navy));
  background: var(--status-bg, color-mix(in srgb, var(--navy), white 90%));
}

.status-badge[data-status='recruiting'] {
  --status-fg: #0f6b3c;
  --status-bg: var(--success-bg);
}

.status-badge[data-status='active'] {
  --status-fg: var(--action);
  --status-bg: var(--info-bg);
}

.status-badge[data-status='planned'] {
  --status-fg: var(--warning);
  --status-bg: rgba(189, 110, 0, 0.13);
}

.status-badge[data-status='completed'] {
  --status-fg: var(--navy);
  --status-bg: rgba(7, 26, 52, 0.1);
}

.project-card__footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-card__footer .btn {
  min-height: 40px;
  padding-inline: 14px;
}

.inline-link {
  font-weight: 680;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 28px;
  align-items: start;
}

.split--requisites {
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
}

.split--qr {
  grid-template-columns: minmax(280px, 0.78fr) minmax(540px, 1.22fr);
}

.photo-stack {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 14px;
}

.image-open {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  text-align: inherit;
}

.image-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-stack__item {
  min-height: 210px;
  overflow: hidden;
}

.photo-stack__item:first-child {
  min-height: 420px;
  grid-row: span 2;
}

.photo-stack img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  border-radius: var(--radius);
  object-fit: cover;
}

.direction-card {
  overflow: hidden;
}

.direction-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.direction-card__body {
  padding: 20px;
}

.direction-card h3,
.surface-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.direction-card p,
.surface-card p,
.contact-card p {
  margin: 0;
}

.donation-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  border: 0;
}

.donation-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--action), var(--accent), var(--support));
}

.donation-panel__copy,
.donation-panel__action {
  padding: 30px;
}

.donation-panel__copy {
  background:
    linear-gradient(135deg, rgba(7, 136, 200, 0.13), transparent 46%),
    #fff;
}

.donation-panel__copy p {
  color: var(--muted);
}

.donation-panel__copy .section-title {
  font-size: 34px;
}

.donation-panel__action {
  display: grid;
  gap: 16px;
  background: #fff;
}

.amount-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amount-chip {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 0 14px;
  font-weight: 680;
}

.legal-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.filter-btn {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0 14px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 650;
}

.filter-btn[aria-pressed='true'],
.filter-btn.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 18px;
}

.search-row input {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  background: #fff;
  color: var(--fg);
}

.detail-hero {
  padding: 56px 0 38px;
  background:
    linear-gradient(120deg, rgba(7, 136, 200, 0.08), transparent 42%),
    linear-gradient(260deg, rgba(22, 131, 71, 0.07), transparent 34%);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: 0;
}

.detail-copy p {
  max-width: 64ch;
  color: var(--muted);
  font-size: 18px;
}

.facts-list {
  display: grid;
  gap: 10px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.fact-row span {
  color: var(--muted);
}

.fact-row strong {
  text-align: right;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.gallery-card .image-open {
  height: 100%;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card figcaption {
  position: absolute;
  inset: auto 10px 10px 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(7, 26, 52, 0.78);
  color: #fff;
  font-size: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.82fr);
  gap: 20px;
  align-items: center;
}

.contact-card {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.contact-list a {
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-person-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.contact-person-grid--compact {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

.contact-person-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--action);
  border-radius: var(--radius);
  background: #fff;
}

.contact-person-grid--compact .contact-person-card {
  padding: 14px;
  border-left-color: var(--support);
  box-shadow: none;
}

.person-role {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-person-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.18;
}

.contact-person-card p:not(.person-role) {
  margin: 12px 0 0;
  color: var(--muted);
}

.details-list {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.requisites-stack {
  display: grid;
  gap: 14px;
}

.details-list--plain {
  box-shadow: none;
}

.legal-extra {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.legal-extra summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: var(--navy);
  font-weight: 720;
  cursor: pointer;
}

.legal-extra .details-list {
  border-width: 1px 0 0;
  border-radius: 0;
}

.details-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.details-row:last-child {
  border-bottom: 0;
}

.details-row dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.details-row dd {
  margin: 0;
  color: var(--fg);
  font-weight: 650;
  overflow-wrap: break-word;
  word-break: normal;
}

.qr-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.qr-card__image {
  width: 100%;
  max-width: 220px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.qr-card__image .image-open {
  border-radius: 0;
}

.qr-card__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-card__body {
  display: grid;
  gap: 12px;
}

.qr-card__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.18;
}

.qr-card__purpose {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.qr-card__purpose .legal-note {
  margin: 0;
}

.campaign-qr {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.campaign-qr img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.campaign-qr .image-open {
  width: 82px;
  height: 82px;
  border-radius: var(--radius-sm);
}

.campaign-qr .image-open img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.campaign-qr span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.policy-stack {
  display: grid;
  gap: 34px;
}

.policy-stack article {
  max-width: 900px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.policy-stack article:last-child {
  border-bottom: 0;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.report-card {
  display: grid;
  gap: 12px;
}

.report-date {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.report-list li + li {
  margin-top: 6px;
}

.application-page {
  padding-top: 42px;
}

.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.application-intro {
  grid-column: 1 / -1;
  max-width: 780px;
}

.application-note {
  position: sticky;
  top: 112px;
}

.application-form {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.registration-fieldset {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.registration-fieldset legend {
  padding: 0 8px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 760;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--fg);
  font-weight: 650;
}

.field input,
.field select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--fg);
  padding: 0 14px;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.children-list {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.child-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.child-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.child-remove {
  min-height: 36px;
  padding-inline: 12px;
}

.consent-list {
  display: grid;
  gap: 12px;
}

.consent-list label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
}

.consent-list input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.form-message[data-status='success'] {
  color: var(--support);
}

.form-message[data-status='error'] {
  color: var(--accent);
}

.form-message[data-status='pending'] {
  color: var(--action);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  grid-template-columns: 68px minmax(0, 1fr) 68px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 26px;
  background: rgba(7, 22, 45, 0.92);
}

.lightbox.is-open {
  display: grid;
}

.lightbox__figure {
  min-width: 0;
  max-height: calc(100vh - 96px);
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
}

.lightbox__figure figcaption,
.lightbox__counter {
  color: #fff;
  font-size: 14px;
}

.lightbox__counter {
  grid-column: 2;
  justify-self: center;
}

.lightbox__close,
.lightbox__nav {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 30px;
  line-height: 1;
}

.lightbox__nav {
  width: 58px;
  height: 72px;
  font-size: 44px;
  line-height: 1;
}

.lightbox__nav--prev {
  grid-column: 1;
}

.lightbox__nav--next {
  grid-column: 3;
}

.policy-stack h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.16;
}

.policy-stack p {
  margin: 12px 0 0;
  color: var(--muted);
}

.legal-list {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-list li + li {
  margin-top: 8px;
}

.footer {
  padding: 46px 0;
  border-top: 6px solid;
  border-image: linear-gradient(90deg, var(--action), var(--accent), var(--support)) 1;
  background: #fff;
}

.footer__inner {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer a {
  color: var(--muted);
}

.footer p {
  max-width: 58ch;
  margin: 12px 0 0;
  color: var(--muted);
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.copy-row .btn {
  white-space: nowrap;
}

.purpose-box {
  min-height: 52px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f9fcff;
  color: var(--fg);
  overflow-wrap: break-word;
  word-break: normal;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.registration-closed {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px);
  border-top: 4px solid var(--support);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.registration-closed h2 {
  margin: 8px 0 14px;
  font-size: 42px;
}

.registration-closed > p:not(.section-kicker) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .project-card,
  .direction-card,
  .surface-card,
  .contact-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .project-card:hover,
  .direction-card:hover,
  .surface-card:hover,
  .contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1100px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .brand-link img {
    width: 86px;
    height: 62px;
  }

  .brand-copy {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 82px 16px auto auto;
    width: min(280px, calc(100vw - 32px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
    min-height: 42px;
    padding-inline: 14px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-card__content,
  .intro-grid,
  .split,
  .application-layout,
  .detail-layout,
  .contact-grid,
  .donation-panel {
    grid-template-columns: 1fr;
  }

  .application-note {
    position: static;
  }

  .contact-card {
    max-width: none;
    justify-self: stretch;
  }

  .hero-proof {
    max-width: 520px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .project-carousel {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .wide-action-band {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .card-grid,
  .direction-grid,
  .project-grid,
  .media-grid,
  .campaign-grid,
  .launcher-grid,
  .contact-person-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container,
  .site-header__inner,
  .footer__inner {
    width: min(100% - 28px, var(--max));
  }

  .site-header__inner {
    min-height: 74px;
  }

  .brand-link img {
    width: 72px;
    height: 52px;
  }

  .site-nav {
    inset: 74px 14px auto auto;
    width: min(176px, calc(100vw - 28px));
  }

  .section {
    padding: 52px 0;
  }

  .section--tight {
    padding: 38px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .section-lead {
    font-size: 16px;
  }

  .hero-card {
    min-height: 580px;
    background:
      linear-gradient(180deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.9) 42%, rgba(247, 251, 255, 0.46) 72%, rgba(247, 251, 255, 0.1) 100%),
      var(--hero-image, url('../assets/photos/hero.jpg')) center/cover;
  }

  .hero-card__content {
    width: min(100% - 28px, var(--max));
    min-height: 580px;
    padding: 34px 0 46px;
    align-items: start;
    gap: 24px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-collage {
    grid-template-rows: 122px 122px;
  }

  .hero-proof {
    padding: 16px;
  }

  .hero-actions,
  .project-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .project-card__footer .btn,
  .project-card__footer .inline-link {
    width: 100%;
  }

  .card-grid,
  .direction-grid,
  .project-grid,
  .media-grid,
  .campaign-grid,
  .launcher-grid,
  .contact-person-grid {
    grid-template-columns: 1fr;
  }

  .photo-stack {
    grid-template-columns: 1fr;
  }

  .photo-stack__item:first-child {
    min-height: 260px;
    grid-row: auto;
  }

  .carousel-shell {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 6px;
  }

  .project-carousel {
    grid-auto-columns: 100%;
    gap: 14px;
  }

  .carousel-control {
    width: 38px;
    height: 50px;
    font-size: 26px;
  }

  .wide-action-band,
  .report-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .search-row,
  .copy-row,
  .details-row,
  .qr-card,
  .campaign-qr,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .contact-actions,
  .contact-actions .btn {
    width: 100%;
  }

  .copy-row .btn {
    width: 100%;
    white-space: normal;
  }

  .form-actions,
  .form-actions .btn {
    width: 100%;
  }

  .child-row__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .qr-card__image {
    max-width: 260px;
  }

  .detail-copy h1 {
    font-size: 38px;
  }

  .fact-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .fact-row strong {
    text-align: left;
  }

  .donation-panel__copy,
  .donation-panel__action {
    padding: 24px;
  }

  .surface-card,
  .contact-card,
  .launcher-card {
    padding: 20px;
  }

  .project-card__body,
  .direction-card__body {
    padding: 18px;
  }

  .project-card h3 {
    font-size: 22px;
  }

  .lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding: 12px;
  }

  .lightbox__nav {
    width: 40px;
    height: 58px;
    font-size: 34px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 390px) {
  .container,
  .site-header__inner,
  .footer__inner {
    width: min(100% - 24px, var(--max));
  }

  .brand-link img {
    width: 70px;
    height: 50px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .site-nav {
    inset: 72px 12px auto auto;
    width: min(168px, calc(100vw - 24px));
  }

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

  .hero p {
    font-size: 15px;
  }

  .section-title {
    font-size: 26px;
    line-height: 1.12;
  }

  .donation-panel__copy .section-title {
    font-size: 25px;
  }

  .project-card h3,
  .direction-card h3,
  .surface-card h3,
  .contact-card h3 {
    font-size: 20px;
  }

  .project-card__fact {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .hero-collage {
    grid-template-rows: 96px 96px;
    padding: 8px;
    gap: 8px;
  }

  .btn {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 13px;
  }
}

/* Final public layout: stable project, contact and payment surfaces. */
.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-kicker--spaced {
  margin-top: 34px;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.project-grid > .project-card {
  flex: 0 1 calc((100% - 36px) / 3);
  min-width: 0;
}

.project-card {
  box-shadow: 0 10px 24px rgba(7, 26, 52, 0.07);
}

.project-card__body {
  gap: 12px;
  padding: 20px;
}

.project-card__brief {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.project-card__brief span {
  position: relative;
}

.project-card__brief span + span::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: -9px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--action);
}

.project-card__footer {
  justify-content: flex-start;
}

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

.direction-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.direction-item img {
  width: 88px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.direction-item h3,
.direction-item p {
  margin: 0;
}

.direction-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
}

.direction-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.support-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 30px;
  align-items: center;
  padding: 30px;
  border-top: 6px solid;
  border-image: linear-gradient(90deg, var(--action), var(--accent), var(--support)) 1;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.support-band__copy p:not(.section-kicker),
.project-support-band p {
  color: var(--muted);
}

.support-band__payment {
  min-width: 0;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.support-band__qr,
.project-support-band__qr {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.support-band__qr img,
.project-support-band__qr img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.support-band__details,
.support-band__actions,
.project-support-band__payment,
.project-support-band__actions {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.support-band__details h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.support-band__actions,
.project-support-band__actions {
  grid-template-columns: repeat(2, minmax(0, max-content));
}

.contact-card {
  max-width: none;
  padding: 0;
  gap: 0;
  justify-self: stretch;
  border-width: 1px 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.contact-card__header,
.contact-person-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
  gap: 24px;
  align-items: center;
}

.contact-card__header {
  padding: 22px 0;
}

.contact-card__header h3,
.contact-card__header p,
.contact-person-row h3,
.contact-person-row p {
  margin: 0;
}

.contact-card__header > a,
.contact-person-row__links {
  justify-self: end;
}

.contact-person-list {
  border-top: 1px solid var(--border);
}

.contact-person-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-person-row__links {
  min-width: 240px;
  display: grid;
  gap: 6px;
  text-align: right;
}

.contact-actions {
  padding: 22px 0 0;
}

.payment-qr {
  min-width: 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.payment-qr__image {
  width: 190px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.payment-qr__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.payment-qr__body,
.payment-qr__purpose {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.payment-qr__body h3,
.payment-qr__body p {
  margin: 0;
}

.payment-qr__body h3 {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.18;
}

.payment-qr__body p {
  color: var(--muted);
}

.payment-qr__purpose {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.support-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 0.9fr);
  gap: 48px;
  align-items: start;
}

.support-payment-copy {
  max-width: 660px;
}

.support-payment-panel {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--support);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.support-direction-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.support-direction-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--border);
}

.support-direction-list li::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 2px;
  width: 10px;
  height: 10px;
  border: 3px solid var(--support);
  border-radius: 50%;
}

.support-contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.support-contact-band h2,
.support-contact-band p {
  margin: 0;
}

.support-contact-band h2 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
}

.support-contact-band p:not(.section-kicker) {
  max-width: 740px;
  margin-top: 8px;
  color: var(--muted);
}

.support-contact-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hero-card__content--single {
  grid-template-columns: minmax(0, 720px);
  justify-content: start;
}

.project-hero {
  padding: 30px 0 0;
}

.project-hero__scene {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
}

.project-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.project-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 22, 45, 0.9) 0%, rgba(7, 22, 45, 0.7) 46%, rgba(7, 22, 45, 0.12) 82%);
  pointer-events: none;
}

.project-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero__content {
  position: relative;
  z-index: 1;
  width: min(660px, 64%);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px;
  color: #fff;
}

.project-hero__content h1 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: 0;
}

.project-hero__content > p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.project-hero__content .pill {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.project-hero__content .btn--secondary {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.project-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 54px;
  align-items: start;
}

.project-facts {
  margin: 0;
  border-top: 4px solid var(--action);
}

.project-fact {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.project-fact dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.project-fact dd {
  margin: 0;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.project-story__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.project-story article {
  padding-top: 22px;
  border-top: 4px solid var(--accent);
}

.project-story article:nth-child(2) {
  border-top-color: var(--support);
}

.project-story h2,
.project-story p {
  margin: 0;
}

.project-story h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
}

.project-story article > p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.report-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.report-card h3,
.report-card p {
  margin: 0;
}

.report-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.18;
}

.project-support-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(300px, 0.85fr);
  gap: 26px;
  align-items: center;
  padding: 28px;
  border-left: 6px solid var(--support);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.video-player {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #07162d;
  box-shadow: var(--shadow-soft);
}

.video-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #07162d;
}

.video-link {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.video-link__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.video-link strong,
.video-link small {
  display: block;
}

.video-link small {
  margin-top: 3px;
  color: var(--muted);
}

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

.gallery-card figcaption {
  display: none;
}

.lightbox__figure {
  gap: 0;
}

.lightbox__figure img {
  max-height: calc(100vh - 104px);
}

.lightbox__figure figcaption {
  display: none;
}

.intro-image {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.intro-image img {
  min-height: 0;
}

.intro-image img[src*="assets/logos/"] {
  padding: 28px;
  object-fit: contain;
  background: #fff;
}

.empty-state--page {
  min-height: 420px;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 16px;
}

.empty-state--page h1,
.empty-state--page p {
  margin: 0;
}

@media (max-width: 1100px) {
  .project-grid > .project-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .support-band,
  .support-payment-layout,
  .project-overview__grid,
  .project-support-band {
    grid-template-columns: 1fr;
  }

  .support-band__payment {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .project-support-band__qr {
    width: 150px;
  }
}

@media (max-width: 720px) {
  .section-heading-row,
  .support-contact-band {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .project-grid > .project-card {
    flex-basis: 100%;
  }

  .project-card__brief span + span::before {
    display: none;
  }

  .direction-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .direction-item img {
    width: 72px;
    height: 64px;
  }

  .support-band,
  .support-payment-panel,
  .project-support-band {
    padding: 20px;
  }

  .support-band__payment,
  .payment-qr,
  .contact-card__header,
  .contact-person-row,
  .project-story__grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .support-band__qr,
  .payment-qr__image,
  .project-support-band__qr {
    width: min(220px, 100%);
  }

  .support-band__actions,
  .project-support-band__actions {
    grid-template-columns: 1fr;
  }

  .support-band__actions .btn,
  .project-support-band__actions .btn,
  .support-contact-band__actions,
  .support-contact-band__actions .btn {
    width: 100%;
  }

  .contact-card__header > a,
  .contact-person-row__links {
    justify-self: start;
  }

  .contact-person-row__links {
    min-width: 0;
    text-align: left;
  }

  .project-hero {
    padding-top: 14px;
  }

  .project-hero__scene {
    min-height: 600px;
  }

  .project-hero__media::after {
    background: linear-gradient(180deg, rgba(7, 22, 45, 0.08) 0%, rgba(7, 22, 45, 0.46) 38%, rgba(7, 22, 45, 0.94) 72%);
  }

  .project-hero__content {
    width: 100%;
    min-height: 600px;
    justify-content: flex-end;
    padding: 28px 22px;
  }

  .project-hero__content h1 {
    font-size: 36px;
  }

  .project-hero__content > p {
    font-size: 16px;
  }

  .project-overview__grid {
    gap: 32px;
  }

  .project-fact {
    grid-template-columns: 92px minmax(0, 1fr);
  }

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

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row .btn {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .project-hero__content h1 {
    font-size: 31px;
  }

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

/* Clean public pages: one visual system for every first-level section. */
* {
  letter-spacing: 0;
}

body {
  background: var(--bg);
}

.subpage-hero {
  --subpage-image: url('../assets/photos/hero.jpg');
  position: relative;
  min-height: 430px;
  display: grid;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 22, 45, 0.94) 0%, rgba(7, 22, 45, 0.78) 48%, rgba(7, 22, 45, 0.18) 86%),
    var(--subpage-image) center / cover no-repeat;
}

.subpage-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--action), var(--accent) 46%, var(--support));
}

.subpage-hero--projects {
  --subpage-image: url('../assets/photos/projects/zarnitsa/team.jpg');
}

.subpage-hero--media {
  --subpage-image: url('../assets/photos/projects/mir-nachinaetsya-s-detstva/cover.jpg');
}

.subpage-hero--help {
  --subpage-image: url('../assets/photos/community.jpg');
}

.subpage-hero--requisites {
  --subpage-image: url('../assets/photos/city-motion.jpg');
}

.subpage-hero--applications {
  --subpage-image: url('../assets/photos/family.jpg');
}

.subpage-hero--privacy {
  --subpage-image: url('../assets/photos/team.jpg');
}

.subpage-hero--not-found {
  --subpage-image: url('../assets/photos/city-motion.jpg');
  min-height: 520px;
}

.subpage-hero__inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  align-items: center;
  padding-block: 54px 66px;
}

.subpage-hero__content {
  width: min(680px, 66%);
}

.subpage-hero .section-kicker {
  color: #ff7075;
}

.subpage-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 780;
  line-height: 1.05;
}

.subpage-hero__content > p:not(.section-kicker) {
  max-width: 58ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.subpage-hero .hero-actions {
  margin-top: 26px;
}

.subpage-hero .btn--primary {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}

.subpage-hero .btn--secondary {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.section--toolbar {
  padding: 24px 0 10px;
}

.page-toolbar {
  display: grid;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.page-toolbar--filters {
  padding-bottom: 18px;
}

.page-toolbar .filters,
.page-toolbar .search-row {
  margin: 0;
}

.page-toolbar .search-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.payment-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.campaign-grid--support {
  margin-top: 28px;
}

.campaign-grid--support .project-card__body {
  align-content: start;
}

.campaign-payment {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.campaign-payment__qr {
  width: 112px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.campaign-payment__qr .image-open,
.campaign-payment__qr img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.campaign-payment__purpose {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.campaign-grid--support .project-card__footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.campaign-grid--support .project-card__footer .btn {
  width: 100%;
}

.support-payment-panel > p {
  margin: 0;
}

.support-payment-panel > p .btn {
  width: 100%;
}

.application-layout--single {
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}

.application-layout--single .application-form {
  width: 100%;
}

.application-layout--single .form-message:empty {
  display: none;
}

.policy-stack {
  max-width: 920px;
}

.policy-stack article {
  max-width: none;
}

#general-support,
#campaigns,
#payment-qr,
#responsible-contacts,
#contacts {
  scroll-margin-top: 108px;
}

@media (max-width: 1100px) {
  .subpage-hero__content {
    width: min(720px, 76%);
  }
}

@media (max-width: 720px) {
  .subpage-hero,
  .subpage-hero--not-found {
    min-height: 460px;
  }

  .subpage-hero::before {
    background:
      linear-gradient(180deg, rgba(7, 22, 45, 0.1) 0%, rgba(7, 22, 45, 0.55) 42%, rgba(7, 22, 45, 0.96) 78%),
      var(--subpage-image) center / cover no-repeat;
  }

  .subpage-hero__inner {
    align-items: flex-end;
    padding-block: 36px 42px;
  }

  .subpage-hero__content {
    width: 100%;
  }

  .subpage-hero h1 {
    font-size: 36px;
  }

  .subpage-hero__content > p:not(.section-kicker) {
    font-size: 16px;
  }

  .page-toolbar .search-row,
  .campaign-payment,
  .campaign-grid--support .project-card__footer {
    grid-template-columns: 1fr;
  }

  .page-toolbar .search-row .btn,
  .campaign-grid--support .project-card__footer .btn {
    width: 100%;
  }

  .campaign-payment__qr {
    width: 116px;
  }

  .campaign-payment__qr .image-open,
  .campaign-payment__qr img {
    width: 100px;
    height: 100px;
  }

  .application-page {
    padding-top: 34px;
  }

  .application-layout--single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .subpage-hero h1 {
    font-size: 31px;
  }
}

/* User-reviewed final composition for public pages. */
:root {
  --max: 1560px;
}

.container,
.site-header__inner,
.footer__inner {
  width: min(calc(100% - 64px), var(--max));
}

.section {
  padding: 80px 0;
}

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

.section--white {
  background: #fff;
}

.section--tint {
  background: #eef6fb;
}

.section-title {
  max-width: 980px;
  font-size: 44px;
}

.section-lead {
  max-width: 74ch;
}

.hero {
  padding: 28px 0;
  background: #fff;
}

.hero .container {
  width: min(calc(100% - 64px), var(--max));
  max-width: none;
}

.hero-card {
  min-height: 500px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.9) 38%, rgba(247, 251, 255, 0.38) 68%, rgba(247, 251, 255, 0.06) 100%),
    var(--hero-image, url('../assets/photos/hero.jpg')) center / cover no-repeat;
  box-shadow: 0 16px 36px rgba(7, 26, 52, 0.1);
}

.hero-card__content {
  width: 100%;
  min-height: 500px;
  padding: 42px 64px 52px;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.72fr);
  gap: 52px;
}

.hero h1 {
  max-width: 860px;
  font-size: 54px;
}

.hero p {
  max-width: 720px;
}

.hero-visual {
  max-width: 560px;
  justify-self: end;
}

.hero-collage {
  grid-template-rows: 126px 126px;
}

.hero-proof {
  display: none;
}

.subpage-hero {
  min-height: 320px;
}

.subpage-hero__inner {
  padding-block: 48px 56px;
}

.subpage-hero__content {
  width: min(780px, 68%);
}

.subpage-hero h1 {
  font-size: 50px;
}

.section--toolbar {
  padding: 30px 0 18px;
}

.page-toolbar {
  padding-bottom: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-grid > .project-card {
  min-width: 0;
}

.project-carousel {
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
}

.project-card__image {
  aspect-ratio: 16 / 10;
}

.project-card__body {
  padding: 24px;
}

.media-grid {
  gap: 24px;
}

.gallery-card figcaption,
.lightbox__figure figcaption {
  display: none !important;
}

.split {
  grid-template-columns: minmax(0, 1.12fr) minmax(440px, 0.88fr);
  gap: 56px;
}

.photo-stack {
  gap: 18px;
}

.support-quick {
  width: 100%;
}

.support-quick .payment-qr,
.support-focus .payment-qr {
  min-height: 300px;
  padding: 36px 44px;
  border: 1px solid var(--border);
  border-top: 6px solid;
  border-image: linear-gradient(90deg, var(--action), var(--accent), var(--support)) 1;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.payment-qr {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.payment-qr__image {
  width: 230px;
  padding: 12px;
}

.payment-qr__body {
  gap: 14px;
}

.payment-qr__body h3 {
  font-size: 34px;
}

.payment-qr__body p {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.62;
}

.campaign-grid--support {
  gap: 24px;
}

.campaign-payment--simple {
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
}

.campaign-payment--simple p {
  margin: 0;
  color: var(--muted);
}

.campaign-grid--support .project-card__footer {
  display: flex;
}

.campaign-grid--support .project-card__footer .btn {
  width: auto;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-top: 6px solid;
  border-image: linear-gradient(90deg, var(--action), var(--accent), var(--support)) 1;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.contact-card__overview {
  min-width: 0;
  padding: 38px;
  background: var(--navy);
  color: #fff;
}

.contact-card__overview .section-kicker {
  color: #ff777d;
}

.contact-card__overview h3 {
  max-width: 560px;
  margin: 0;
  color: #fff;
  font-size: 30px;
}

.contact-card__lead {
  max-width: 54ch;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-card__email {
  margin-top: 24px;
  font-size: 18px;
}

.contact-card__overview .contact-actions {
  margin-top: 30px;
  padding: 0;
}

.contact-card__overview .btn--secondary {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.contact-person-list {
  min-width: 0;
  padding: 20px 34px;
  border-top: 0;
}

.contact-person-row {
  min-height: 148px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  padding: 24px 0;
}

.contact-person-row:last-child {
  border-bottom: 0;
}

.contact-person-row__links {
  min-width: 220px;
}

.requisites-identity {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 0 0 34px;
  border-bottom: 1px solid var(--border);
}

.requisites-identity img {
  width: 190px;
  height: 132px;
  object-fit: contain;
  object-position: left center;
}

.requisites-identity h2,
.requisites-identity p {
  margin: 0;
}

.requisites-identity h2 {
  max-width: 980px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.14;
}

.requisites-identity p:not(.section-kicker) {
  max-width: 980px;
  margin-top: 10px;
  color: var(--muted);
}

.requisites-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(440px, 0.65fr);
  gap: 42px;
  align-items: start;
  padding-top: 42px;
}

.requisites-data,
.requisites-support {
  min-width: 0;
}

.requisites-data {
  display: grid;
  gap: 20px;
}

.details-list--wide .details-row {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  padding: 18px 22px;
}

.requisites-support .payment-qr {
  grid-template-columns: 1fr;
  padding: 28px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--support);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.requisites-support .payment-qr__image {
  width: min(250px, 100%);
}

.requisites-support .payment-qr__body h3 {
  font-size: 28px;
}

.requisites-support .payment-qr__body p {
  font-size: 16px;
}

.contact-person-grid {
  gap: 24px;
}

.contact-person-card {
  padding: 26px;
  border-left-width: 0;
  border-top: 5px solid var(--action);
  box-shadow: var(--shadow-soft);
}

.contact-person-card:nth-child(2n) {
  border-top-color: var(--support);
}

.application-layout--single {
  grid-template-columns: minmax(0, 1180px);
}

.registration-fieldset {
  padding: 28px;
  box-shadow: none;
}

.project-hero {
  padding: 34px 0;
  background: #fff;
}

.project-hero__scene {
  min-height: 470px;
}

.project-overview__grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(430px, 0.75fr);
  gap: 54px;
}

.project-support-band {
  grid-template-columns: minmax(0, 1fr) 180px minmax(300px, 0.72fr);
  gap: 30px;
  align-items: center;
}

.project-support-band__message h3,
.project-support-band__message p {
  margin: 0;
}

.project-support-band__message h3 {
  font-family: var(--font-display);
  font-size: 24px;
}

.project-support-band__message p {
  margin-top: 10px;
  color: var(--muted);
}

.policy-stack {
  max-width: 1180px;
}

@media (min-width: 1800px) {
  :root {
    --max: 1760px;
  }
}

@media (max-width: 1180px) {
  .container,
  .site-header__inner,
  .footer__inner,
  .hero .container {
    width: min(calc(100% - 48px), var(--max));
  }

  .hero-card__content {
    padding-inline: 42px;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
    gap: 34px;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero-collage {
    grid-template-rows: 138px 138px;
  }

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

  .project-carousel {
    grid-auto-columns: calc((100% - 24px) / 2);
  }

  .requisites-layout,
  .project-overview__grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  }

  .project-support-band {
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  .project-support-band__message {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .container,
  .site-header__inner,
  .footer__inner,
  .hero .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 58px 0;
  }

  .section--tight {
    padding: 46px 0;
  }

  .section-title {
    font-size: 34px;
  }

  .hero {
    padding: 16px 0;
  }

  .hero-card,
  .hero-card__content {
    min-height: 520px;
  }

  .hero-card {
    background:
      linear-gradient(180deg, rgba(247, 251, 255, 0.2) 0%, rgba(247, 251, 255, 0.76) 45%, rgba(247, 251, 255, 0.98) 74%),
      var(--hero-image, url('../assets/photos/hero.jpg')) center / cover no-repeat;
  }

  .hero-card__content {
    grid-template-columns: 1fr;
    align-content: end;
    padding: 34px 26px 42px;
  }

  .hero-visual {
    display: none;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 16px;
  }

  .subpage-hero,
  .subpage-hero--not-found {
    min-height: 350px;
  }

  .subpage-hero__content {
    width: 100%;
  }

  .subpage-hero h1 {
    font-size: 38px;
  }

  .project-grid,
  .campaign-grid,
  .media-grid,
  .contact-person-grid,
  .split,
  .contact-card,
  .requisites-layout,
  .project-overview__grid {
    grid-template-columns: 1fr;
  }

  .project-carousel {
    grid-auto-columns: minmax(82%, 1fr);
  }

  .support-quick .payment-qr,
  .support-focus .payment-qr,
  .payment-qr {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .support-quick .payment-qr,
  .support-focus .payment-qr {
    min-height: 0;
    padding: 28px;
  }

  .payment-qr__image {
    width: 180px;
  }

  .payment-qr__body h3 {
    font-size: 28px;
  }

  .payment-qr__body p {
    font-size: 16px;
  }

  .contact-card__overview {
    padding: 30px;
  }

  .contact-person-list {
    padding: 10px 28px;
  }

  .contact-person-row {
    min-height: 0;
  }

  .requisites-identity {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .requisites-identity img {
    width: 140px;
    height: 104px;
  }

  .requisites-identity h2 {
    font-size: 30px;
  }

  .requisites-support .payment-qr {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .requisites-support .payment-qr__image {
    width: 180px;
  }

  .project-support-band {
    grid-template-columns: minmax(0, 1fr) 150px;
  }
}

@media (max-width: 560px) {
  .cookie-consent {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }

  .cookie-consent__actions {
    display: grid;
  }

  .hero h1 {
    font-size: 34px;
  }

  .registration-closed h2 {
    font-size: 32px;
  }

  .subpage-hero h1 {
    font-size: 34px;
  }

  .section-title {
    font-size: 31px;
  }

  .project-carousel {
    grid-auto-columns: 92%;
  }

  .support-quick .payment-qr,
  .support-focus .payment-qr,
  .payment-qr,
  .requisites-support .payment-qr,
  .campaign-payment--simple {
    grid-template-columns: 1fr;
  }

  .support-quick .payment-qr,
  .support-focus .payment-qr,
  .requisites-support .payment-qr {
    padding: 24px;
  }

  .payment-qr__image,
  .requisites-support .payment-qr__image {
    width: min(220px, 100%);
  }

  .contact-card__overview,
  .contact-person-list {
    padding: 24px;
  }

  .contact-person-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-person-row__links {
    min-width: 0;
    justify-self: start;
    text-align: left;
  }

  .requisites-identity {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .requisites-identity img {
    width: 170px;
    height: 118px;
  }

  .details-list--wide .details-row,
  .details-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-support-band {
    grid-template-columns: 1fr;
  }

  .project-support-band__qr {
    width: 180px;
  }

  .registration-fieldset {
    padding: 22px 18px;
  }
}

/* Project images have one explicit page role and never fall through into the gallery. */
.project-inline-media {
  aspect-ratio: 4 / 3;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
}

.project-inline-media .image-open,
.project-inline-media img {
  width: 100%;
  height: 100%;
}

.project-inline-media img {
  display: block;
  object-fit: cover;
}

.project-overview__grid--with-media {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  grid-template-areas:
    "copy media"
    "facts media";
  align-items: start;
}

.project-overview__grid--with-media .project-overview__copy {
  grid-area: copy;
}

.project-overview__grid--with-media .project-facts {
  grid-area: facts;
}

.project-overview__media {
  grid-area: media;
}

.project-overview__grid--media-left {
  grid-template-areas:
    "media copy"
    "media facts";
}

.project-overview__grid--media-wide {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  grid-template-areas:
    "copy facts"
    "media media";
}

.project-overview__grid--media-wide .project-overview__media {
  aspect-ratio: 16 / 7;
}

.project-story-card--with-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
  grid-template-areas: "copy media";
  gap: 24px;
  align-items: start;
}

.project-story-card__copy {
  grid-area: copy;
}

.project-story-card--with-media .project-inline-media {
  grid-area: media;
}

.project-story-card--media-left {
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1fr);
  grid-template-areas: "media copy";
}

.project-story-card--media-wide {
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "media";
}

.project-story-card--media-wide .project-inline-media {
  aspect-ratio: 16 / 7;
}

.project-story-card__copy h2,
.project-story-card__copy p {
  margin: 0;
}

.project-story-card__copy > p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .project-overview__grid--with-media,
  .project-overview__grid--media-left,
  .project-overview__grid--media-wide {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "facts"
      "media";
  }

  .project-overview__grid--media-left {
    grid-template-areas:
      "media"
      "copy"
      "facts";
  }
}

@media (max-width: 560px) {
  .project-story-card--with-media,
  .project-story-card--media-left,
  .project-story-card--media-wide {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media";
  }

  .project-story-card--media-left {
    grid-template-areas:
      "media"
      "copy";
  }
}

/* Project metadata and privacy layout share the same stable reading width. */
.project-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.project-tag-list span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(7, 26, 52, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.privacy-shell {
  width: min(calc(100% - 64px), 1280px);
}

.privacy-operator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 40px;
  align-items: start;
}

.privacy-operator-grid > *,
.privacy-operator-grid .surface-card {
  min-width: 0;
}

.policy-stack {
  width: min(calc(100% - 64px), 1280px);
  max-width: none;
}

.policy-stack article {
  width: min(100%, 1060px);
  max-width: none;
}

@media (max-width: 1000px) {
  .privacy-operator-grid {
    grid-template-columns: 1fr;
  }

  .privacy-operator-grid .surface-card {
    width: min(100%, 620px);
  }
}

@media (max-width: 820px) {
  .privacy-shell,
  .policy-stack {
    width: calc(100% - 32px);
  }
}

@media (max-width: 390px) {
  .privacy-shell,
  .policy-stack {
    width: calc(100% - 24px);
  }
}

/* The Center overview keeps its introduction and directions visually balanced. */
.home-about-intro {
  align-items: center;
}

.home-about-directions-title {
  margin-top: 38px;
}

.direction-list--overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  border-top: 0;
}

.direction-list--overview .direction-item {
  min-height: 128px;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

@media (max-width: 820px) {
  .home-about-intro {
    align-items: start;
  }

  .home-about-directions-title {
    margin-top: 32px;
  }

  .direction-list--overview {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .direction-list--overview .direction-item {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .direction-list--overview .direction-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 0;
  }

  .direction-list--overview .direction-item img {
    width: 76px;
    height: 76px;
  }
}

/* QR codes use a dedicated zoomable viewer so bank scanners receive a clean, large image. */
.lightbox.lightbox--qr {
  grid-template-columns: minmax(0, 1fr);
}

.lightbox--qr .lightbox__figure {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: calc(100vh - 126px);
  max-height: none;
  overflow: auto;
  padding: 16px;
  justify-items: start;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
}

.lightbox--qr .lightbox__figure img {
  display: block;
  max-width: none;
  max-height: none;
  margin-inline: auto;
  border-radius: 0;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.lightbox__zoom {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(7, 22, 45, 0.9);
  color: #fff;
}

.lightbox__zoom[hidden] {
  display: none;
}

.lightbox__zoom button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.lightbox__zoom button:disabled {
  opacity: 0.38;
  cursor: default;
}

.lightbox__zoom span {
  min-width: 64px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.lightbox--qr .lightbox__counter {
  display: none;
}

.lightbox--qr .lightbox__zoom {
  grid-column: 1;
}

.lightbox__figure {
  grid-column: 2;
  grid-row: 1;
}

.lightbox__counter {
  grid-row: 2;
}

.lightbox__nav--prev,
.lightbox__nav--next {
  grid-row: 1;
}

.qr-image-button {
  cursor: zoom-in;
}

@media (max-width: 560px) {
  .lightbox--qr .lightbox__figure {
    height: calc(100vh - 116px);
    padding: 58px 8px 8px;
  }

  .lightbox__zoom button {
    width: 40px;
    height: 40px;
  }
}
