/* Благотворительный фонд Иоанна Русского
   Цвета и мотивы из приглашения на вечер открытия: бордо, крем, золото, арка, волна. */

@font-face { font-family: "Alice"; src: url("../fonts/alice-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alice"; src: url("../fonts/alice-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-cyrillic-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  /* бренд */
  --wine: #661d36;
  --wine-deep: #4f1529;
  --wine-ink: #3b1020;
  --gold: #b49465;
  --gold-text: #86653a;      /* золото, читаемое на креме */
  --gold-soft: #d8c09a;      /* золото на бордо */
  --cream: #fbf1e3;
  --paper: #f5e6d2;
  --cream-on-wine: #f8ead8;
  --ink: #3b1020;
  --ink-soft: #6a4550;

  --font-display: "Alice", "Georgia", serif;
  --font-body: "Literata", "Georgia", serif;
  --font-ui: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --section: clamp(4rem, 9vw, 7.5rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 1.1875rem; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-md); top: -4rem; z-index: 50; background: var(--wine); color: var(--cream); padding: var(--space-sm) var(--space-md); font-family: var(--font-ui); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--space-md); }

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

/* ---------- типографика ---------- */
h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.25rem);
  line-height: 1.12;
  color: var(--wine);
  letter-spacing: -0.005em;
}
h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.2;
  color: var(--wine);
}
.eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--gold-soft); }

/* ---------- кнопки и ссылки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--wine);
  color: var(--cream);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--wine-deep); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--wine-ink); }
.btn-gold:hover { background: #c6a777; }
.btn-small { min-height: 2.5rem; padding: 0.5rem 1.1rem; font-size: 0.9375rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  color: var(--wine);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); margin-top: var(--space-xl); }

.todo {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gold-text);
  border: 1px dashed currentColor;
  border-radius: 6px;
  padding: 0.1em 0.5em;
  white-space: nowrap;
}
.todo-dark { color: var(--gold-soft); }

/* ---------- арка ---------- */
.arch { position: relative; }
.arch img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 50% 50% 0.75rem 0.75rem / 32% 32% 0.75rem 0.75rem;
}
.arch::after {
  content: "";
  position: absolute;
  inset: -0.75rem;
  border: 1px solid var(--gold);
  border-radius: 50% 50% 1.25rem 1.25rem / 32% 32% 1.25rem 1.25rem;
  pointer-events: none;
}

/* ---------- шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.header-row { display: flex; align-items: center; gap: var(--space-md); min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; margin-right: auto; }
.brand img { width: 2.25rem; height: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.1; color: var(--wine); }
.brand-name small { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); white-space: nowrap; margin-bottom: 0.15rem; }
@media (min-width: 1000px) { .brand-name small { font-size: 0.6875rem; letter-spacing: 0.12em; } }

.nav { display: none; }
.menu-btn {
  width: 2.75rem; height: 2.75rem;
  display: inline-grid; place-items: center;
  background: none; border: 1px solid color-mix(in srgb, var(--wine) 25%, transparent); border-radius: 999px;
  color: var(--wine); cursor: pointer;
}
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 1.1rem; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--cream);
  padding: var(--space-sm) var(--gutter) var(--space-xl);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  box-shadow: 0 1.5rem 2rem -1.5rem rgb(59 16 32 / 0.25);
}
.nav.is-open a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--wine);
  text-decoration: none;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
}

@media (max-width: 400px) {
  .header-row .btn-small { display: none; }
}

@media (min-width: 1000px) {
  .nav .nav-help { display: none; }
  .menu-btn { display: none; }
  .nav { display: flex; gap: var(--space-xl); margin-right: var(--space-lg); }
  .nav a {
    font-family: var(--font-ui); font-weight: 600; font-size: 0.9375rem;
    color: var(--ink); text-decoration: none; position: relative; padding: 0.4rem 0;
  }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
  .nav a:hover::after { transform: scaleX(1); }
  .brand img { width: 2.6rem; }
  .brand-name { font-size: 1.3rem; }
}

/* ---------- первый экран ---------- */
.hero { position: relative; padding-top: var(--space-xl); background: var(--cream); }
.hero-grid { display: grid; gap: var(--space-3xl); padding-bottom: clamp(5rem, 10vw, 8rem); }
.hero-text { text-align: center; }
.hero-mark { width: 7.5rem; margin: 0 auto var(--space-lg); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.6rem + 6vw, 5.5rem);
  line-height: 1.02;
  color: var(--gold-text);
  letter-spacing: -0.01em;
}
.h1-kicker {
  display: block;
  font-size: 0.42em;
  line-height: 1.2;
  color: var(--wine);
  margin-bottom: 0.25em;
  letter-spacing: 0;
}
.hero-sub {
  margin-top: var(--space-md);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
}
.lead {
  margin: var(--space-xl) auto 0;
  max-width: 34ch;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
}
.hero .actions { justify-content: center; }
.hero-arch { width: min(86%, 26rem); margin-inline: auto; }

@media (min-width: 900px) {
  .hero { padding-top: var(--space-3xl); }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: var(--space-4xl); }
  .hero-text { text-align: left; }
  .hero-mark { display: none; }
  .lead { margin-left: 0; }
  .hero .actions { justify-content: flex-start; }
  .hero-arch { width: 100%; margin: 0; }
}

/* ---------- волны ---------- */
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(3.5rem, 8vw, 7.5rem); display: block; }
.wave-fill { fill: var(--wine); }
.wave-fill-cream { fill: var(--cream); }
.wave-gold { fill: none; stroke: var(--gold); stroke-width: 3; vector-effect: non-scaling-stroke; }

/* ---------- вечер ---------- */
.evening {
  position: relative;
  background: var(--wine);
  color: var(--cream-on-wine);
  padding: var(--space-2xl) 0 calc(var(--section) + 3rem);
  line-height: 1.7;
}
.evening h2 { color: var(--cream-on-wine); max-width: 18ch; }
.evening h3 { color: var(--cream-on-wine); }
.evening-grid { display: grid; gap: var(--space-3xl); margin-top: var(--space-2xl); }
.date {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  line-height: 1.05;
  color: var(--gold-soft);
}
.date span { color: var(--gold); }
.place {
  margin-top: var(--space-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.evening-lead { margin-top: var(--space-xl); font-size: 1.25rem; line-height: 1.6; }
.evening-info > p + p:not(.place) { margin-top: var(--space-md); }
.evening-photo { width: min(92%, 30rem); margin-inline: auto; }
.evening-photo img { aspect-ratio: 5 / 6; }
.evening .arch::after { border-color: var(--gold-soft); }

.program { margin-top: var(--space-4xl); display: grid; gap: var(--space-xl); }
.program-list { display: grid; gap: 0; counter-reset: p; }
.program-list li {
  counter-increment: p;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid color-mix(in srgb, var(--gold-soft) 35%, transparent);
  font-size: 1.1875rem;
}
.program-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--gold-soft) 35%, transparent); }
.program-list li::before {
  content: counter(p, upper-roman);
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.125rem;
  line-height: 1.6;
}

.timing { border: 1px solid color-mix(in srgb, var(--gold-soft) 45%, transparent); border-radius: 1rem; padding: 0 var(--space-lg); }
.timing summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
  min-height: 3.5rem;
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem; color: var(--gold-soft);
}
.timing summary::-webkit-details-marker { display: none; }
.timing summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform 0.3s var(--ease); }
.timing[open] summary::after { transform: rotate(45deg); }
.timing-list { padding-bottom: var(--space-lg); display: grid; gap: var(--space-sm); }
.timing-list li { display: grid; grid-template-columns: 3.75rem 1fr; gap: var(--space-md); font-size: 1.0625rem; line-height: 1.5; }
.timing-list time { font-family: var(--font-ui); font-weight: 600; color: var(--gold-soft); font-variant-numeric: tabular-nums; }

.smoke { margin-top: var(--space-4xl); display: grid; gap: var(--space-2xl); align-items: center; }
.smoke-photo img { border-radius: 1.25rem; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.big-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.3;
  color: var(--cream-on-wine);
}
.smoke-text p + p { margin-top: var(--space-lg); color: var(--gold-soft); font-style: italic; font-size: 1.1875rem; }

.vatman {
  margin-top: var(--space-4xl);
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
  background: var(--wine-deep);
  border-radius: 1.5rem;
  padding: var(--space-xl);
}
.vatman-text p { margin-top: var(--space-md); }
.vatman-q { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.35; color: var(--gold-soft); }
.vatman-photo img { border-radius: 1rem; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

@media (min-width: 900px) {
  .evening { padding-top: var(--space-3xl); }
  .evening-grid { grid-template-columns: 1fr 0.9fr; align-items: center; gap: var(--space-4xl); }
  .evening-photo { width: 100%; margin: 0; }
  .program { grid-template-columns: 0.55fr 1fr; align-items: start; column-gap: var(--space-4xl); }
  .program h3 { grid-row: span 2; }
  .smoke { grid-template-columns: 0.8fr 1fr; gap: var(--space-4xl); }
  .vatman { grid-template-columns: 1fr 1.1fr; padding: var(--space-3xl); gap: var(--space-3xl); }
}

/* ---------- миссия ---------- */
.mission { padding: var(--space-2xl) 0 var(--section); }
.mission-grid { display: grid; gap: var(--space-lg); }
.mission-main {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.22;
  color: var(--wine);
  max-width: 26ch;
}
.mission-more { max-width: 52ch; color: var(--ink-soft); font-size: 1.1875rem; }
@media (min-width: 900px) {
  .mission-grid { grid-template-columns: 14rem 1fr; column-gap: var(--space-3xl); }
  .mission-grid .eyebrow { grid-row: span 2; margin-top: 0.9rem; align-self: start; }
  .mission-more { margin-top: var(--space-md); }
}

/* ---------- направления ---------- */
.deeds { padding-bottom: var(--section); }
.deeds h2 { max-width: 20ch; }
.deeds-list { margin-top: var(--space-2xl); display: grid; gap: 0; }
.deed {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  border-top: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
}
.deed:last-child { border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.deed-num { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--gold); padding-top: 0.15rem; }
.deed p { margin-top: var(--space-sm); max-width: 60ch; }
.deed .link-arrow { margin-top: var(--space-md); }
.deed-xmas {
  background: var(--paper);
  border-radius: 1.25rem;
  border-top-color: transparent;
  padding-inline: var(--space-sm);
  margin-inline: calc(var(--space-sm) * -1);
}
.deed-xmas + .deed { border-top-color: transparent; }
@media (min-width: 900px) {
  .deed { grid-template-columns: 6rem 18rem 1fr; gap: var(--space-xl); padding: var(--space-2xl) 0; align-items: baseline; }
  .deed > div { display: contents; }
  .deed h3 { grid-column: 2; }
  .deed p, .deed .link-arrow { grid-column: 3; margin-top: 0; }
  .deed .link-arrow { justify-self: start; }
  .deed-num { font-size: 2.75rem; }
  .deed-xmas { padding-inline: var(--space-xl); margin-inline: calc(var(--space-xl) * -1); grid-template-columns: 6rem 18rem 1fr; }
}

/* ---------- святой ---------- */
.saint { background: var(--paper); padding: var(--section) 0; position: relative; }
.saint::before {
  /* лучи солнца из логотипа */
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: min(22rem, 100%); height: 11rem;
  transform: translateX(-50%);
  background:
    repeating-conic-gradient(from -90deg at 50% 0%, color-mix(in srgb, var(--gold) 22%, transparent) 0deg 1.2deg, transparent 1.2deg 15deg);
  -webkit-mask: radial-gradient(circle at 50% 0%, #000 0 30%, transparent 70%);
          mask: radial-gradient(circle at 50% 0%, #000 0 30%, transparent 70%);
  pointer-events: none;
}
.saint-grid { display: grid; gap: var(--space-2xl); position: relative; }
.saint-day { margin-top: var(--space-md); font-family: var(--font-ui); font-weight: 600; font-size: 1rem; color: var(--wine); }
.saint-day span { display: block; font-weight: 600; color: var(--gold-text); }
.saint-text { display: grid; gap: var(--space-lg); max-width: 62ch; }
.saint-why {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--wine);
  padding-top: var(--space-lg);
  border-top: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
}
@media (min-width: 900px) {
  .saint-grid { grid-template-columns: 0.8fr 1fr; gap: var(--space-4xl); }
  .saint-head { position: sticky; top: 7rem; align-self: start; }
}

/* ---------- основатель ---------- */
.founder { padding: var(--section) 0; }
.founder-grid { display: grid; gap: var(--space-3xl); }
.founder-photo { width: min(72%, 22rem); margin-inline: auto; }
.founder-photo img { aspect-ratio: 3 / 4; object-position: 50% 25%; }
.founder-quote { margin: var(--space-xl) 0; }
.founder-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  line-height: 1.25;
  color: var(--wine);
}
.founder-quote p::before { content: "«"; color: var(--gold); }
.founder-quote p::after { content: "»"; color: var(--gold); }
.founder-text > p:last-child { max-width: 52ch; color: var(--ink-soft); }
@media (min-width: 900px) {
  .founder-grid { grid-template-columns: 0.7fr 1fr; align-items: center; gap: var(--space-4xl); }
  .founder-photo { width: 100%; margin: 0; }
}

/* ---------- как помочь ---------- */
.help {
  background: var(--wine);
  color: var(--cream-on-wine);
  padding: var(--section) 0;
  line-height: 1.7;
}
.help h2 { color: var(--cream-on-wine); }
.help-grid { margin-top: var(--space-2xl); display: grid; gap: var(--space-xl); }
.help-item { padding-top: var(--space-lg); border-top: 1px solid var(--gold); }
.help-item h3 { color: var(--gold-soft); }
.help-item p { margin-top: var(--space-sm); }
.help .link-arrow { color: var(--gold-soft); margin-top: var(--space-md); }
@media (min-width: 900px) {
  .help-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-3xl); }
}

/* реквизиты: кремовый лист на бордо, как приглашение */
.donate {
  position: relative;
  margin-top: var(--space-3xl);
  display: grid;
  gap: var(--space-2xl);
  background: var(--cream);
  color: var(--ink);
  border-radius: 1.25rem;
  padding: var(--space-xl) var(--space-lg);
  line-height: 1.5;
  scroll-margin-top: 5.5rem;
}
.donate::after {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
  border-radius: 0.9rem;
  pointer-events: none;
}
.donate-title { color: var(--wine); }
.donate :focus-visible { outline-color: var(--wine); }
.req { margin-top: var(--space-lg); }
/* телефон: подпись и кнопка в одну строку, значение под ними во всю ширину */
.req-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.25rem var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px dotted color-mix(in srgb, var(--gold) 70%, transparent);
}
.req dd { display: contents; }
.req dt { grid-column: 1; grid-row: 1; }
.req .copy { grid-column: 2; grid-row: 1; }
.req-val { grid-column: 1 / -1; grid-row: 2; }
.req-row:last-child { border-bottom: 1px dotted color-mix(in srgb, var(--gold) 70%, transparent); }
.req dt {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.req-val { font-size: 1.1875rem; color: var(--ink); overflow-wrap: break-word; }
.req-num { font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0.02em; }
.req-recipient .req-val { font-family: var(--font-display); font-size: 1.3125rem; line-height: 1.3; color: var(--wine); }

.copy {
  display: none;
  flex: none;
  min-height: 2.75rem;
  min-width: 8.25rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wine) 35%, transparent);
  background: transparent;
  color: var(--wine);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.js .copy { display: inline-flex; align-items: center; justify-content: center; }
.copy:hover { background: color-mix(in srgb, var(--wine) 8%, transparent); border-color: var(--wine); }
.copy:active { transform: translateY(1px); }
.copy.is-done, .copy-all.is-done { background: var(--wine); border-color: var(--wine); color: var(--cream); }

.donate-side { display: grid; justify-items: center; gap: var(--space-md); text-align: center; align-content: start; }
.donate-qr { width: min(15rem, 78%); height: auto; border-radius: 0.75rem; background: #fffaf2; padding: 0.5rem; box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent); }
.donate-hint { max-width: 30ch; font-size: 1.0625rem; color: var(--ink-soft); }
.copy-all { display: none; }
.js .copy-all { display: inline-flex; }
.donate .btn-gold { background: var(--wine); color: var(--cream); }
.donate .btn-gold:hover { background: var(--wine-deep); }
.donate .btn-gold.is-done { background: var(--wine-ink); }

@media (min-width: 640px) {
  .donate { padding: var(--space-2xl); }
  .req-row { grid-template-columns: 9.5rem 1fr auto; gap: var(--space-md); }
  .req .copy { grid-column: 3; }
  .req-val { grid-column: 2; grid-row: 1; }
  .req-row:not(:has(.copy)) .req-val { grid-column: 2 / -1; }
  .req-recipient .req-val { font-size: 1.25rem; }
}
@media (min-width: 1000px) {
  .donate { grid-template-columns: 1fr 15rem; gap: var(--space-2xl); padding: var(--space-3xl); }
  .donate-side { padding-top: 3.25rem; }
  .donate-qr { width: 100%; }
  .donate .copy-all { font-size: 0.9375rem; padding-inline: 1rem; white-space: nowrap; }
}

/* ---------- благодетели ---------- */
.patrons { position: relative; padding: var(--section) 0 calc(var(--section) + 4rem); }
.patrons h2 { max-width: 18ch; }
.patrons-list {
  margin-top: var(--space-2xl);
  display: grid;
  gap: var(--space-2xl) var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.patron { display: flex; flex-direction: column; gap: var(--space-sm); }
.patron-mark {
  width: 5.5rem; height: 6.5rem;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--gold-soft);
  background: var(--wine);
  border-radius: 999px 999px 0.75rem 0.75rem;
  margin-bottom: var(--space-sm);
  position: relative;
}
.patron-mark::after {
  content: ""; position: absolute; inset: -6px;
  border: 1px solid var(--gold);
  border-radius: 999px 999px 1rem 1rem;
}
.patron-role { font-family: var(--font-ui); font-weight: 600; font-size: 0.9375rem; color: var(--gold-text); }
.patron p:not(.patron-role) { color: var(--ink-soft); }
.patron .link-arrow { margin-top: auto; padding-top: var(--space-sm); }
.patron-open .patron-mark { background: transparent; color: var(--gold-text); }
.patron-open .patron-mark::after { border-style: dashed; }

/* ---------- подвал ---------- */
.footer { background: var(--wine); color: var(--cream-on-wine); }
.footer-body { padding: var(--space-xl) 0 var(--space-xl); }
.footer-grid { display: grid; gap: var(--space-2xl); }
.footer-brand img { width: 4.5rem; margin-bottom: var(--space-md); }
.footer-name { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.15; }
.footer-name small { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.2rem; }
.footer-sub { margin-top: var(--space-xs); color: var(--gold-soft); }
.footer-h { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream-on-wine); margin-bottom: var(--space-md); }
.contact-list { display: grid; gap: var(--space-sm); }
.contact-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-md); }
.contact-label { font-family: var(--font-ui); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); min-width: 6.5rem; }
.footer-nav { display: grid; gap: var(--space-sm); align-content: start; }
.footer-nav a { text-decoration: none; font-family: var(--font-ui); font-weight: 600; font-size: 1rem; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom { margin-top: var(--space-2xl); }
.footer-bottom p { padding-top: var(--space-lg); border-top: 1px solid color-mix(in srgb, var(--gold-soft) 30%, transparent); }
.footer-bottom { font-family: var(--font-ui); font-weight: 600; font-size: 0.875rem; color: color-mix(in srgb, var(--cream-on-wine) 75%, var(--wine)); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.1fr 1.2fr 0.7fr; gap: var(--space-3xl); }
}

/* ---------- появление ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .hero-text > * { opacity: 0; transform: translateY(1rem); animation: rise 0.9s var(--ease) forwards; }
  .js .hero-text > :nth-child(2) { animation-delay: 0.1s; }
  .js .hero-text > :nth-child(3) { animation-delay: 0.2s; }
  .js .hero-text > :nth-child(4) { animation-delay: 0.3s; }
  .js .hero-text > :nth-child(5) { animation-delay: 0.4s; }
  .js .hero-arch { opacity: 0; animation: fade 1.4s var(--ease) 0.25s forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
