/*
 * CHARITY RU/EN — действующая одноэкранная страница, актуально 17.08.2026.
 * Загружается после style.css. Desktop — базовые правила; tablet/mobile<=760;
 * small phone<=500; compact landscape — height<=500; reduced-motion в конце.
 * Исторические charity-варианты находятся только в References/Legacy code.
 * Карта: Documents/RESPONSIVE_CODE_MAP_RU.md.
 */

:root {
  --charity-gold: #d1aa5c;
  --charity-ivory: #edf1f6;
  --charity-muted: #b3bfce;
  --charity-navy: #020916;
}

body:has(.charity-page) {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--charity-navy);
}

body:has(.charity-page) .site-header {
  background: rgba(1, 7, 17, 0.96);
  border-bottom: 1px solid rgba(91, 148, 202, 0.1);
  backdrop-filter: blur(12px);
}

.charity-page {
  box-sizing: border-box;
  width: 100%;
  height: 100svh;
  min-height: 0;
  padding-top: clamp(76px, 10.8vh, 116px);
  overflow: hidden;
  background: var(--charity-navy);
}

.charity-stage {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(1, 7, 17, 0.18), rgba(2, 12, 27, 0.05) 48%, rgba(1, 7, 17, 0.18)),
    url("Images/Background/Charity.png") center center / cover no-repeat,
    var(--charity-navy);
}

.charity-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(3, 16, 35, 0.3) 0 31%, rgba(1, 7, 17, 0.7) 78%),
    linear-gradient(180deg, rgba(1, 7, 17, 0.08), rgba(1, 7, 17, 0.3));
  pointer-events: none;
}

.charity-content {
  box-sizing: border-box;
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(24px, 4vh, 42px) clamp(26px, 4vw, 56px);
  color: var(--charity-ivory);
  background: linear-gradient(110deg, rgba(2, 10, 23, 0.68), rgba(3, 17, 36, 0.42));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.22);
}

.charity-heading {
  text-align: center;
}

.charity-title {
  margin: 0;
  color: var(--charity-ivory);
  font-family: var(--font-display);
  font-size: clamp(34px, 3.2vw, 54px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.005em;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.48);
}

.charity-intro {
  max-width: 660px;
  margin: 15px auto 0;
  color: var(--charity-muted);
  font-family: var(--font-body);
  font-size: clamp(12px, 0.88vw, 15px);
  line-height: 1.48;
  text-wrap: pretty;
}

.charity-notes {
  margin-top: clamp(22px, 3.2vh, 34px);
}

.charity-note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 14px 4px;
  border-top: 1px solid rgba(199, 162, 84, 0.28);
}

.charity-note:last-child {
  border-bottom: 1px solid rgba(199, 162, 84, 0.28);
}

.charity-note-symbol {
  margin-top: 5px;
  color: var(--charity-gold);
  font-size: 8px;
  text-shadow: 0 0 10px rgba(76, 164, 240, 0.45);
}

.charity-note h2 {
  margin: 0 0 4px;
  color: #f0f2f5;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.24vw, 21px);
  font-weight: 500;
  line-height: 1.1;
}

.charity-note p {
  margin: 0;
  color: #aeb9c7;
  font-family: var(--font-body);
  font-size: clamp(11px, 0.75vw, 13px);
  line-height: 1.4;
  text-wrap: pretty;
}

.charity-inline-link {
  color: #dfba67;
  text-decoration-color: rgba(223, 186, 103, 0.48);
  text-underline-offset: 3px;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.charity-inline-link:hover,
.charity-inline-link:focus-visible {
  color: #ffe0a0;
  text-shadow: 0 0 13px rgba(77, 164, 238, 0.38);
}

.charity-contact {
  margin-top: clamp(20px, 3vh, 30px);
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 15px;
  color: #aeb9c7;
  font-size: clamp(11px, 0.76vw, 13px);
}

.charity-contact a {
  color: #e2bd6a;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.charity-contact a:hover,
.charity-contact a:focus-visible {
  color: #ffe0a0;
  text-shadow: 0 0 15px rgba(77, 164, 238, 0.42);
}

@media (min-width: 961px) and (max-height: 760px) {
  .charity-page {
    padding-top: 70px;
  }

  .charity-content {
    padding-block: 18px;
  }

  .charity-notes {
    margin-top: 14px;
  }

  .charity-note {
    padding-block: 8px;
  }

  .charity-contact {
    margin-top: 13px;
  }
}

@media (max-width: 760px) {
  .charity-page {
    padding-top: clamp(64px, 8.5vh, 78px);
  }

  .charity-stage {
    background-position: center center;
  }

  .charity-content {
    width: calc(100% - 24px);
    padding: 22px 20px;
    background: rgba(2, 10, 23, 0.74);
  }

  .charity-title {
    font-size: clamp(30px, 8vw, 42px);
  }

  .charity-intro {
    font-size: 12px;
  }

  .charity-notes {
    margin-top: 18px;
  }

  .charity-note {
    padding-block: 11px;
  }
}

@media (max-width: 500px) {
  .charity-content {
    width: calc(100% - 16px);
    padding: 16px 13px;
  }

  .charity-title {
    font-size: clamp(27px, 8.6vw, 34px);
  }

  .charity-intro {
    margin-top: 8px;
    font-size: 10.5px;
    line-height: 1.3;
  }

  .charity-notes {
    margin-top: 10px;
  }

  .charity-note {
    grid-template-columns: 11px minmax(0, 1fr);
    gap: 9px;
    padding: 8px 2px;
  }

  .charity-note-symbol {
    margin-top: 3px;
    font-size: 6px;
  }

  .charity-note h2 {
    margin-bottom: 2px;
    font-size: 15px;
  }

  .charity-note p {
    font-size: 9px;
    line-height: 1.22;
  }

  .charity-contact {
    margin-top: 10px;
    gap: 3px 8px;
    font-size: 10px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .charity-page {
    padding-top: 54px;
  }

  .charity-content {
    width: min(720px, calc(100% - 28px));
    padding: 8px 20px;
  }

  .charity-title {
    font-size: 26px;
  }

  .charity-intro {
    margin-top: 4px;
    font-size: 8px;
    line-height: 1.15;
  }

  .charity-notes {
    margin-top: 5px;
  }

  .charity-note {
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 7px;
    padding: 4px 2px;
  }

  .charity-note-symbol {
    margin-top: 2px;
    font-size: 5px;
  }

  .charity-note h2 {
    margin-bottom: 0;
    font-size: 11px;
  }

  .charity-note p {
    font-size: 6.5px;
    line-height: 1.05;
  }

  .charity-contact {
    margin-top: 5px;
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .charity-contact a,
  .charity-inline-link {
    transition: none;
  }
}
