/* =============================================================
   FAVAC — Sistema visual
   Editorial cálido. Azul institucional #273A8E + amarillo #FFED13
   Tipografías: Jost* (institucional) + Newsreader (editorial)
   ============================================================= */

:root {
  /* Brand */
  --brand-blue:        #273A8E;
  --brand-blue-deep:   #1a2868;
  --brand-blue-soft:   #e7eaf5;
  --brand-yellow:      #FFED13;
  --brand-yellow-soft: #fff7a8;

  /* Neutrals — warm */
  --paper:    #faf7f0;     /* base background */
  --paper-2:  #f1ebdc;     /* deeper cream */
  --paper-3:  #e6deca;     /* darkest cream */
  --ink:      #15151c;
  --ink-soft: #4a4a55;
  --ink-mute: #7a7a85;
  --line:     rgba(21,21,28,0.12);
  --line-soft:rgba(21,21,28,0.06);

  /* Type */
  --font-sans:    'Jost', system-ui, sans-serif;
  --font-serif:   'Newsreader', Georgia, serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --maxw:      1280px;
  --maxw-text: 720px;
  --gutter:    clamp(16px, 4vw, 56px);
  --radius:    14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand-yellow); color: var(--ink); }

/* ----- Typography ----- */
.editorial {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; }

/* When tweak switches to "all Jost" */
body.font-mode-jost .editorial {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.section--blue {
  background: var(--brand-blue);
  color: #fff;
}
.section--blue .ink-soft { color: rgba(255,255,255,0.7); }

.section--cream  { background: var(--paper-2); }
.section--yellow { background: var(--brand-yellow); color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: currentColor;
}
.section--blue .eyebrow { color: var(--brand-yellow); }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

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

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translate(3px, 0); }

.btn--primary { background: var(--brand-yellow); color: var(--ink); }
.btn--primary:hover { background: #ffe600; }

.btn--blue { background: var(--brand-blue); color: #fff; }
.btn--blue:hover { background: var(--brand-blue-deep); }

.btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn--ghost:hover { background: currentColor; color: var(--paper); }
.section--blue .btn--ghost:hover { color: var(--brand-blue); }

.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }

/* ----- Image placeholders ----- */
.imgph {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(39,58,142,0.04) 0 14px,
      rgba(39,58,142,0.08) 14px 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--brand-blue);
}
.imgph--dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.05) 0 14px,
      rgba(255,255,255,0.10) 14px 28px);
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.18);
}
.imgph--yellow {
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.04) 0 14px,
      rgba(0,0,0,0.07) 14px 28px),
    var(--brand-yellow);
  color: var(--ink);
  border-color: rgba(0,0,0,0.12);
}
.imgph__label {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.imgph__corner {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* ----- Logo ----- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--brand-yellow);
  display: grid; place-items: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  position: relative;
  flex: 0 0 auto;
}
.logo__mark::after {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255,237,19,0.5);
}
.logo__text {
  display: flex; flex-direction: column; line-height: 1.05;
}
.logo__text .l1 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.logo__text .l2 {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}
.section--blue .logo__text .l1 { color: #fff; }
.section--blue .logo__text .l2 { color: rgba(255,255,255,0.6); }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,240,0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
  position: relative;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active {
  color: var(--brand-blue);
}
.nav__link.is-active::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--brand-yellow);
  border-radius: 2px;
}
.site-header__actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex; gap: 6px;
}
.lang-switch span.on { color: var(--brand-blue); font-weight: 600; }

/* ----- Footer ----- */
.site-footer {
  background: var(--brand-blue-deep);
  color: rgba(255,255,255,0.8);
  padding-top: 80px;
  padding-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--brand-yellow);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-yellow);
  margin-bottom: 16px;
}
.footer-grid a { display: block; padding: 4px 0; color: rgba(255,255,255,0.7); }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.newsletter-form {
  display: flex; gap: 8px;
  margin-top: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form button {
  background: var(--brand-yellow);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}

/* ----- Hero ----- */
.hero {
  padding: clamp(48px, 8vw, 110px) 0 clamp(72px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
body.font-mode-jost .hero__title {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.hero__title em {
  font-style: italic;
  color: var(--brand-blue);
}
.hero__title .hl {
  background: linear-gradient(transparent 60%, var(--brand-yellow) 60%);
  padding: 0 4px;
  font-style: normal;
}
.hero__lede {
  margin-top: 28px;
  max-width: 460px;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.hero__ctas {
  margin-top: 36px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero__media {
  position: relative;
  height: 560px;
}
.hero__media .imgph {
  position: absolute;
}
.hero__media .ph-main {
  inset: 0 0 60px 60px;
}
.hero__media .ph-acc {
  width: 180px; height: 180px;
  bottom: 0; left: 0;
  background: var(--brand-yellow);
  border-color: rgba(0,0,0,0.1);
  border-radius: 50%;
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  padding: 24px;
  line-height: 1.2;
}
.hero__meta {
  display: flex; align-items: center; gap: 28px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
}
.hero__meta strong { color: var(--ink); font-weight: 500; }

/* ----- Section heading ----- */
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 16px;
  max-width: 18ch;
  text-wrap: balance;
}
body.font-mode-jost .section-head h2 {
  font-family: var(--font-sans);
  letter-spacing: -0.035em;
}
.section-head p {
  margin-top: 20px;
  max-width: 540px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}
.section--blue .section-head p { color: rgba(255,255,255,0.75); }

/* ----- Stats ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--blue .stats {
  border-color: rgba(255,255,255,0.18);
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.section--blue .stat { border-color: rgba(255,255,255,0.18); }
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
}
body.font-mode-jost .stat__num {
  font-family: var(--font-sans);
  letter-spacing: -0.03em;
}
.stat__label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-mute);
}
.section--blue .stat__label { color: rgba(255,255,255,0.7); }
.stat__suffix {
  font-size: 0.55em; vertical-align: top; color: var(--brand-blue);
  margin-left: 4px;
}
.section--blue .stat__suffix { color: var(--brand-yellow); }

/* ----- Gallery grid ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.gallery-grid .imgph { border-radius: 12px; }
.g-1 { grid-column: span 2; grid-row: span 2; }
.g-2 { grid-column: span 2; }
.g-3 { grid-column: span 2; grid-row: span 2; }
.g-4 { grid-column: span 2; }
.g-5 { grid-column: span 3; }
.g-6 { grid-column: span 3; }

/* ----- News cards ----- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-card {
  display: flex; flex-direction: column;
  cursor: pointer;
}
.news-card .imgph { height: 240px; border-radius: 12px; }
.news-card__meta {
  margin-top: 18px;
  display: flex; gap: 14px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-card__tag {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.news-card h3 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
  transition: color .15s ease;
}
body.font-mode-jost .news-card h3 {
  font-family: var(--font-sans);
  letter-spacing: -0.025em;
}
.news-card:hover h3 { color: var(--brand-blue); }
.news-card p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ----- Quote / testimonial ----- */
.quote-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.section--blue .quote-block { border-color: rgba(255,255,255,0.18); }
.quote-block .imgph {
  height: 220px; border-radius: 50%;
  aspect-ratio: 1;
}
.quote-block blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: inherit;
  text-wrap: balance;
}
body.font-mode-jost .quote-block blockquote {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
}
.quote-block .attr {
  margin-top: 20px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.section--blue .quote-block .attr { color: rgba(255,255,255,0.65); }

/* ----- Support cards ----- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.support-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.support-card:hover { transform: translateY(-4px); border-color: var(--brand-blue); }
.support-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brand-blue);
}
.support-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-top: 20px;
  line-height: 1.05;
}
body.font-mode-jost .support-card h3 {
  font-family: var(--font-sans);
  letter-spacing: -0.03em;
}
.support-card p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
  flex: 1;
}
.support-card__cta {
  margin-top: 24px;
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--brand-blue);
  font-weight: 500;
  font-size: 14px;
}
.support-card--accent {
  background: var(--brand-blue);
  color: #fff;
  border-color: transparent;
}
.support-card--accent .support-card__num { color: var(--brand-yellow); }
.support-card--accent p { color: rgba(255,255,255,0.8); }
.support-card--accent .support-card__cta { color: var(--brand-yellow); }

/* ----- Timeline ----- */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
}
.tl-item {
  position: relative;
  padding: 24px 0 48px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
}
.tl-item::before {
  content: '';
  position: absolute; left: -40px; top: 32px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--brand-blue);
}
.tl-item.is-major::before {
  background: var(--brand-yellow);
  border-color: var(--brand-blue);
  width: 20px; height: 20px;
  left: -42px;
}
.tl-year {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--brand-blue);
}
body.font-mode-jost .tl-year { font-family: var(--font-sans); letter-spacing: -0.03em; }
.tl-content h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  text-wrap: balance;
}
.tl-content p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 56ch;
}

/* ----- Pull quote ----- */
.pullquote {
  margin: clamp(48px, 6vw, 80px) auto;
  max-width: 880px;
  padding: 0 var(--gutter);
  text-align: left;
}
.pullquote blockquote {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
  position: relative;
}
body.font-mode-jost .pullquote blockquote {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.pullquote blockquote::before {
  content: '“';
  position: absolute;
  left: -0.55em; top: -0.15em;
  font-size: 1.6em;
  color: var(--brand-yellow);
  font-style: normal;
  line-height: 1;
}
.pullquote cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ----- Story passage ----- */
.story-body {
  max-width: var(--maxw-text);
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.story-body p { margin: 0 0 1.3em; }
.story-body p:first-child::first-letter {
  font-family: var(--font-serif);
  font-weight: 500;
  float: left;
  font-size: 4.2em;
  line-height: 0.85;
  padding: 8px 14px 0 0;
  color: var(--brand-blue);
}
body.font-mode-jost .story-body p:first-child::first-letter {
  font-family: var(--font-sans);
}
.story-body strong { color: var(--ink); font-weight: 500; }

/* ----- Filter chips ----- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

/* ----- Forms ----- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus {
  border-bottom-color: var(--brand-blue);
}
.field textarea { min-height: 120px; resize: vertical; }

/* ----- Donate modal ----- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(21,21,28,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
.modal {
  background: var(--paper);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 48px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  animation: pop .25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: transparent;
  display: grid; place-items: center;
  color: var(--ink-soft);
  font-size: 20px;
}
.modal__close:hover { background: var(--paper-2); color: var(--ink); }
.modal h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
body.font-mode-jost .modal h2 { font-family: var(--font-sans); letter-spacing: -0.03em; }
.modal .eyebrow { margin-bottom: 14px; }
.modal p { color: var(--ink-soft); margin: 16px 0 0; }

.amount-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 28px 0 20px;
}
.amount-btn {
  padding: 16px 12px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
body.font-mode-jost .amount-btn { font-family: var(--font-sans); }
.amount-btn:hover { border-color: var(--brand-blue); }
.amount-btn.is-active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

/* ----- Page header (sub pages) ----- */
.page-head {
  padding: clamp(48px, 6vw, 100px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow { margin-bottom: 24px; }
.page-head h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 14ch;
  text-wrap: balance;
}
body.font-mode-jost .page-head h1 {
  font-family: var(--font-sans);
  letter-spacing: -0.035em;
}
.page-head__sub {
  margin-top: 24px;
  max-width: 600px;
  color: var(--ink-soft);
  font-size: 18px;
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.info-block { margin-bottom: 32px; }
.info-block h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 10px;
}
.info-block p { margin: 0; font-size: 17px; color: var(--ink); }

/* ----- Map placeholder ----- */
.map-placeholder {
  height: 320px;
  background:
    linear-gradient(135deg, rgba(39,58,142,0.06) 0%, rgba(39,58,142,0.02) 100%),
    repeating-linear-gradient(0deg, transparent 0 40px, rgba(39,58,142,0.05) 40px 41px),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(39,58,142,0.05) 40px 41px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  margin-top: 32px;
}
.map-pin {
  position: absolute;
  left: 38%; top: 45%;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-blue);
  border: 4px solid var(--brand-yellow);
  box-shadow: 0 8px 24px rgba(39,58,142,0.4);
}
.map-pin::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(39,58,142,0.18);
  z-index: -1;
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { transform: translate(-50%,-50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { height: 380px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-1, .g-3, .g-5, .g-6, .g-2, .g-4 { grid-column: span 1; grid-row: span 1; }
  .g-1, .g-3 { grid-row: span 2; }
  .news-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote-block { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .tl-item { grid-template-columns: 1fr; gap: 12px; }
  .nav { display: none; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
}
