/* Новая статическая главная: структура референса в дизайн-системе «Каждый важен». */

.kv-ref-home {
  overflow: hidden;
}

.kv-brand {
  gap: 12px;
}

.kv-brand__logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.kv-brand__text {
  font-family: var(--kv-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.kv-brand__text em {
  color: var(--kv-orange);
  font-weight: 400;
}

.kv-ref-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--kv-blue-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kv-ref-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--kv-orange);
}

.kv-ref-hero {
  position: relative;
  min-height: min(680px, calc(100svh - 108px));
  margin: 0 var(--kv-pad);
  border-radius: 0 0 var(--kv-radius-xl) var(--kv-radius-xl);
  overflow: hidden;
  background: #dcebf1;
  isolation: isolate;
}

.kv-ref-hero__image,
.kv-ref-hero__wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kv-ref-hero__image {
  object-fit: cover;
  object-position: center center;
  z-index: -3;
}

.kv-ref-hero__wash {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(244,241,234,.98) 0%, rgba(244,241,234,.92) 27%, rgba(244,241,234,.36) 54%, rgba(244,241,234,0) 76%),
    linear-gradient(0deg, rgba(20,40,58,.28), transparent 34%);
}

.kv-ref-hero__content {
  width: min(660px, 54%);
  padding: clamp(72px, 8vw, 120px) 0 150px clamp(28px, 5.8vw, 88px);
}

.kv-ref-hero h1 {
  max-width: 650px;
  margin: 18px 0 22px;
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}

.kv-ref-hero h1 em {
  color: var(--kv-orange);
  font-weight: 400;
}

.kv-ref-hero__content > p {
  max-width: 590px;
  margin: 0 0 30px;
  color: var(--kv-ink-2);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
}

.kv-ref-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.kv-ref-hero__proof {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 690px;
  margin: 0;
  padding: 22px 34px 25px;
  color: #fff;
  background: rgba(20,40,58,.88);
  backdrop-filter: blur(12px);
  border-radius: 0 var(--kv-radius-xl) 0 0;
}

.kv-ref-hero__proof div {
  padding: 0 22px;
  border-right: 1px solid rgba(255,255,255,.18);
}

.kv-ref-hero__proof div:first-child { padding-left: 0; }
.kv-ref-hero__proof div:last-child { border: 0; }

.kv-ref-hero__proof dt {
  font-family: var(--kv-serif);
  font-size: 30px;
  line-height: 1;
}

.kv-ref-hero__proof dd {
  margin: 6px 0 0;
  color: rgba(255,255,255,.7);
  font-size: 12px;
}

.kv-ref-programs,
.kv-ref-children {
  padding: clamp(76px, 8vw, 124px) var(--kv-pad);
}

.kv-ref-section-intro {
  max-width: 740px;
  margin: 0 auto 42px;
  text-align: center;
}

.kv-ref-section-intro .kv-ref-eyebrow {
  justify-content: center;
}

.kv-ref-section-intro h2,
.kv-ref-children__head h2,
.kv-ref-donate h2 {
  margin: 14px 0 0;
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.kv-ref-section-intro h2 em,
.kv-ref-children__head h2 em,
.kv-ref-donate h2 em {
  color: var(--kv-orange);
  font-weight: 400;
}

.kv-ref-programs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
}

.kv-ref-program {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--kv-line);
  border-radius: var(--kv-radius-lg);
  overflow: hidden;
  background: var(--kv-card);
  box-shadow: 0 18px 50px rgba(20,40,58,.08);
  transition: transform .22s ease, box-shadow .22s ease;
}

.kv-ref-program:nth-child(2) {
  transform: translateY(24px);
}

.kv-ref-program:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 65px rgba(20,40,58,.14);
}

.kv-ref-program:nth-child(2):hover {
  transform: translateY(18px);
}

.kv-ref-program__art {
  display: grid;
  place-items: center;
  height: 188px;
  overflow: hidden;
}

.kv-ref-program__art svg {
  width: 74%;
  height: 82%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .82;
}

.kv-ref-program--children .kv-ref-program__art {
  color: var(--kv-blue-dark);
  background: linear-gradient(135deg, #d9f1fb, #f0f8fb);
}

.kv-ref-program--families .kv-ref-program__art {
  color: var(--kv-orange-dark);
  background: linear-gradient(135deg, #fff0df, #fff9ee);
}

.kv-ref-program--sport .kv-ref-program__art {
  color: var(--kv-success);
  background: linear-gradient(135deg, #dff2e8, #f0f8ef);
}

.kv-ref-program__body {
  position: relative;
  padding: 28px 30px 30px;
}

.kv-ref-program__number {
  position: absolute;
  top: -22px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: var(--kv-orange);
  border: 5px solid var(--kv-card);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.kv-ref-program h3 {
  margin: 0 0 10px;
  font-size: 35px;
  font-weight: 500;
}

.kv-ref-program p {
  min-height: 72px;
  margin: 0 0 20px;
  color: var(--kv-ink-2);
  font-size: 14px;
  line-height: 1.65;
}

.kv-ref-program__link {
  color: var(--kv-blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.kv-ref-children {
  background: var(--kv-paper);
  border-top: 1px solid var(--kv-line);
  border-bottom: 1px solid var(--kv-line);
}

.kv-ref-children__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto 46px;
}

.kv-ref-children__head > div {
  max-width: 820px;
}

.kv-ref-children__head p {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--kv-ink-2);
  font-size: 16px;
}

.kv-ref-text-link {
  flex: none;
  padding-bottom: 5px;
  color: var(--kv-blue-dark);
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 700;
}

.kv-ref-children__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
  max-width: 1280px;
  margin: 0 auto;
}

.kv-ref-child {
  overflow: hidden;
  background: var(--kv-card);
  border: 1px solid var(--kv-line);
  border-radius: var(--kv-radius-lg);
  box-shadow: 0 12px 34px rgba(20,40,58,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.kv-ref-child:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(20,40,58,.12);
}

.kv-ref-child__photo {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background-image: url("../images/beneficiaries-sprite-v1.webp");
  background-repeat: no-repeat;
  background-size: 300% 200%;
}

.kv-ref-child__photo--1 { background-position: 0 0; }
.kv-ref-child__photo--2 { background-position: 50% 0; }
.kv-ref-child__photo--3 { background-position: 100% 0; }
.kv-ref-child__photo--4 { background-position: 0 100%; }
.kv-ref-child__photo--5 { background-position: 50% 100%; }
.kv-ref-child__photo--6 { background-position: 100% 100%; }

.kv-ref-child__photo.has-photo {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.kv-ref-child__status {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 11px;
  color: #fff;
  background: var(--kv-orange);
  border-radius: 999px;
  box-shadow: 0 5px 18px rgba(20,40,58,.18);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kv-ref-child__status--calm {
  background: var(--kv-blue-dark);
}

.kv-ref-child__percent {
  position: absolute;
  right: 16px;
  bottom: -27px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #fff;
  background: var(--kv-orange);
  border: 5px solid var(--kv-card);
  border-radius: 50%;
  font-family: var(--kv-serif);
  font-size: 22px;
  line-height: 1;
}

.kv-ref-child__percent small {
  margin-left: 1px;
  font-family: var(--kv-sans);
  font-size: 9px;
}

.kv-ref-child__body {
  padding: 28px 24px 24px;
}

.kv-ref-child__body > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.kv-ref-child h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
}

.kv-ref-child__body > div:first-child > span {
  color: var(--kv-mute);
  font-size: 11px;
}

.kv-ref-child__body > p {
  min-height: 66px;
  margin: 10px 0 18px;
  color: var(--kv-ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.kv-ref-child__money {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 18px;
  font-size: 11px;
}

.kv-ref-child__money strong {
  font-size: 14px;
}

.kv-ref-child__money span {
  color: var(--kv-mute);
}

.kv-ref-children__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1280px;
  margin: 42px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--kv-line);
}

.kv-ref-children__empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px;
  background: var(--kv-card);
  border: 1px solid var(--kv-line);
  border-radius: var(--kv-radius-lg);
}

.kv-ref-children__empty p {
  margin: 0;
  color: var(--kv-ink-2);
}

.kv-ref-children__footer p {
  max-width: 680px;
  margin: 0;
  color: var(--kv-ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.kv-ref-donate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin: clamp(70px, 8vw, 120px) var(--kv-pad);
  padding: clamp(48px, 5vw, 74px);
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(47,169,223,.5), transparent 30%),
    var(--kv-ink);
  border-radius: var(--kv-radius-xl);
}

.kv-ref-donate > div:first-child {
  max-width: 780px;
}

.kv-ref-donate .kv-ref-eyebrow {
  color: var(--kv-blue-light);
}

.kv-ref-donate h2 {
  font-size: clamp(38px, 4vw, 58px);
}

.kv-ref-donate__actions {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.kv-ref-donate__actions span {
  color: rgba(255,255,255,.6);
  font-size: 11px;
}

.kv-ref-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 54px var(--kv-pad);
  color: rgba(255,255,255,.75);
  background: #0e2131;
  font-size: 13px;
}

.kv-ref-footer > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.kv-ref-footer .kv-brand {
  color: #fff;
}

.kv-ref-footer p {
  max-width: 430px;
  margin: 8px 0 0;
}

.kv-ref-footer strong {
  margin-bottom: 6px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kv-ref-footer a:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .kv-ref-hero__content { width: 62%; }
  .kv-ref-hero__wash {
    background:
      linear-gradient(90deg, rgba(244,241,234,.98) 0%, rgba(244,241,234,.88) 38%, rgba(244,241,234,.15) 72%),
      linear-gradient(0deg, rgba(20,40,58,.28), transparent 34%);
  }
  .kv-ref-programs__grid,
  .kv-ref-children__grid { gap: 18px; }
  .kv-ref-child__body { padding-inline: 19px; }
}

@media (max-width: 900px) {
  .kv-ref-hero {
    min-height: 720px;
    margin: 0;
    border-radius: 0;
  }
  .kv-ref-hero__image { object-position: 61% center; }
  .kv-ref-hero__wash {
    background:
      linear-gradient(90deg, rgba(244,241,234,.98), rgba(244,241,234,.78) 58%, rgba(244,241,234,.1)),
      linear-gradient(0deg, rgba(20,40,58,.38), transparent 44%);
  }
  .kv-ref-hero__content {
    width: 72%;
    padding-left: var(--kv-pad);
  }
  .kv-ref-programs__grid {
    grid-template-columns: 1fr 1fr;
  }
  .kv-ref-program:nth-child(2) { transform: none; }
  .kv-ref-program:nth-child(3) { grid-column: 1 / -1; }
  .kv-ref-program:nth-child(2):hover { transform: translateY(-5px); }
  .kv-ref-children__grid { grid-template-columns: 1fr 1fr; }
  .kv-ref-donate { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .kv-brand__text {
    font-size: 21px;
  }
  .kv-brand__logo img {
    width: 32px;
    height: 32px;
  }
  .kv-ref-hero {
    min-height: 760px;
  }
  .kv-ref-hero__image {
    height: 48%;
    object-position: 67% center;
  }
  .kv-ref-hero__wash {
    background:
      linear-gradient(0deg, var(--kv-bg) 46%, rgba(244,241,234,.25) 70%, transparent),
      linear-gradient(90deg, rgba(244,241,234,.4), transparent);
  }
  .kv-ref-hero__content {
    width: 100%;
    padding: 335px 20px 150px;
  }
  .kv-ref-hero h1 {
    margin-top: 12px;
    font-size: clamp(40px, 12vw, 54px);
  }
  .kv-ref-hero__content > p {
    font-size: 15px;
    line-height: 1.55;
  }
  .kv-ref-hero__actions .kv-btn {
    width: 100%;
    justify-content: center;
  }
  .kv-ref-hero__proof {
    max-width: none;
    padding: 18px 16px 20px;
    border-radius: 0;
  }
  .kv-ref-hero__proof div { padding: 0 10px; }
  .kv-ref-hero__proof dt { font-size: 22px; }
  .kv-ref-hero__proof dd { font-size: 9px; }
  .kv-ref-programs,
  .kv-ref-children {
    padding: 72px 18px;
  }
  .kv-ref-section-intro {
    margin-bottom: 30px;
    text-align: left;
  }
  .kv-ref-section-intro .kv-ref-eyebrow { justify-content: flex-start; }
  .kv-ref-section-intro h2,
  .kv-ref-children__head h2 { font-size: 39px; }
  .kv-ref-programs__grid,
  .kv-ref-children__grid {
    grid-template-columns: 1fr;
  }
  .kv-ref-program:nth-child(3) { grid-column: auto; }
  .kv-ref-program {
    min-height: 0;
  }
  .kv-ref-program p { min-height: 0; }
  .kv-ref-children__head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 30px;
  }
  .kv-ref-child__body > p { min-height: 0; }
  .kv-ref-children__footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .kv-ref-children__empty {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 22px;
  }
  .kv-ref-donate {
    margin: 64px 18px;
    padding: 38px 24px;
  }
  .kv-ref-donate h2 { font-size: 38px; }
  .kv-ref-donate__actions,
  .kv-ref-donate__actions .kv-btn {
    width: 100%;
  }
  .kv-ref-donate__actions .kv-btn { justify-content: center; }
  .kv-ref-footer {
    grid-template-columns: 1fr;
    padding: 44px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kv-ref-program,
  .kv-ref-child {
    transition: none;
  }
}
