/* Стили главной страницы. Палитра берётся только из template.css и custom.css. */

.fund-home {
  overflow: hidden;
  color: var(--ink);
  background: var(--ivory-50);
}

.fund-home h1,
.fund-home h2,
.fund-home h3,
.fund-home p {
  text-wrap: pretty;
}

.fund-section {
  position: relative;
  padding: clamp(4.5rem, 7vw, 7rem) 0;
}

.fund-section--milk {
  background: var(--ivory-100);
}

.fund-section--wine {
  color: var(--ivory-50);
  background: var(--wine-950);
}

.fund-heading {
  max-width: 54rem;
}

.fund-heading--light .fund-title,
.fund-heading--light p {
  color: var(--ivory-50);
}

.fund-title {
  color: var(--wine-950);
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.fund-eyebrow {
  color: var(--brass-dark);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.fund-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.4rem;
  font-family: var(--font-sans);
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.fund-hero {
  min-height: clamp(38rem, 64vw, 48rem);
  padding: 3rem 0;
  color: var(--ivory-50);
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--wine-950) 16%, transparent), color-mix(in srgb, var(--wine-950) 56%, transparent), color-mix(in srgb, var(--wine-950) 16%, transparent)),
    url("/static-pages/images/home/assetHero.png");
  background-position: center;
  background-size: cover;
}

/* .fund-hero::before,
.fund-hero::after {
  position: absolute;
  left: 50%;
  width: min(72rem, calc(100% - 2rem));
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  transform: translateX(-50%);
} */

.fund-hero::before { top: 2.5rem; }
.fund-hero::after { bottom: 2.5rem; }

.fund-hero .fund-eyebrow {
  color: var(--brass-light);
}

.fund-hero__title {
  color: var(--ivory-50);
  font-size: clamp(2.55rem, 6vw, 5.4rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.fund-hero__lead {
  max-width: 48rem;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

.fund-hero .btn-outline-light {
  --bs-btn-color: var(--ivory-50);
  --bs-btn-border-color: var(--brass);
  --bs-btn-hover-color: var(--wine-950);
  --bs-btn-hover-bg: var(--ivory-50);
  --bs-btn-hover-border-color: var(--brass-light);
}

.fund-trust {
  color: var(--brass-light);
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.format-card,
.advantage-card,
.project-card,
.info-panel,
.consult-card,
.vk-panel {
  border: 1px solid var(--line);
  border-radius: .65rem;
  box-shadow: 0 1.25rem 3rem color-mix(in srgb, var(--wine-950) 12%, transparent);
}

.format-card {
  overflow: hidden;
  background: var(--ivory-50);
  transition: transform .25s ease, box-shadow .25s ease;
}

.format-card:hover {
  transform: translateY(-.35rem);
  box-shadow: 0 1.5rem 3.4rem color-mix(in srgb, var(--wine-950) 18%, transparent);
}

.format-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.format-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, color-mix(in srgb, var(--wine-950) 48%, transparent), transparent 58%);
  pointer-events: none;
}

.format-card__media img {
  object-fit: cover;
  transition: transform .5s ease;
}

.format-card:hover .format-card__media img {
  transform: scale(1.035);
}

.format-card__badge {
  position: absolute;
  z-index: 1;
  left: 1.5rem;
  bottom: 1.25rem;
  padding: .5rem .85rem;
  color: var(--ivory-50);
  background: var(--wine-950);
  border: 1px solid var(--brass);
  border-radius: 2rem;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.format-card__title {
  color: var(--wine-950);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 700;
}

.format-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 6rem;
  padding: .75rem .35rem;
  color: var(--wine-950);
  background: var(--ivory-100);
  border: 1px solid var(--line);
  border-radius: .35rem;
  text-align: center;
}

.format-point i {
  color: var(--brass-dark);
  font-size: 1.35rem;
}

.format-point span {
  font-family: var(--font-sans);
  font-size: .89rem;
  font-weight: 700;
  line-height: 1.25;
}

.advantage-card {
  padding: 2rem 1rem;
  background: var(--ivory-50);
  box-shadow: none;
}

.advantage-card h3,
.value-item h3 {
  margin: 1.15rem 0 .6rem;
  color: var(--wine-950);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.advantage-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.fund-icon {
  width: 4.3rem;
  height: 4.3rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--brass-light);
  background: var(--wine-950);
  border: .3rem solid var(--ivory-50);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--brass), 0 .65rem 1.3rem color-mix(in srgb, var(--wine-950) 20%, transparent);
  font-size: 1.45rem;
}

.fund-icon--compact {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.2rem;
}

.fund-icon--large {
  width: 5.25rem;
  height: 5.25rem;
  font-size: 1.75rem;
}

.info-panel {
  color: var(--ink);
  background: var(--ivory-50);
}

.info-panel h3,
.steps-title,
.consult-card h2 {
  color: var(--wine-950);
  font-size: 1.35rem;
  font-weight: 700;
}

.fund-list {
  padding-left: 1.15rem;
}

.fund-list li {
  margin-bottom: .45rem;
}

.fund-list li::marker {
  color: var(--brass-dark);
}

.steps-title {
  color: var(--ivory-50);
}

.step-card {
  position: relative;
  padding: 2.25rem 1.5rem 1.75rem;
  color: var(--ivory-50);
  border: 1px solid var(--brass-line);
  border-radius: .45rem;
}

.step-card__number {
  position: absolute;
  top: -.85rem;
  left: 1.25rem;
  min-width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wine-950);
  background: var(--brass-light);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 900;
}

.step-card i {
  display: block;
  margin-bottom: 1rem;
  color: var(--brass-light);
  font-size: 1.75rem;
}

.step-card p {
  margin: 0;
}

.value-item {
  padding: 1.25rem .55rem;
}



.projects-intro__image,
.seo-section__image {
  overflow: hidden;
  border: 1px solid var(--brass);
  border-radius: .65rem;
  box-shadow: 0 1.25rem 3rem color-mix(in srgb, var(--wine-950) 14%, transparent);
}

.projects-intro__image {
  aspect-ratio: 5 / 3;
}

.projects-intro__image img,
.seo-section__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.projects-intro__image img {
  object-position: 79% center;
}

.projects-intro__lead {
  max-width: 42rem;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.65;
}

.project-card {
  overflow: hidden;
  background: var(--wine-950);
  /* border-color: var(--brass); */
}

.project-card img {
  width: 100%;
  height: 23rem;
  display: block;
  object-fit: cover;
    margin: calc(var(--card-padding, 1rem) * -1);
    margin-bottom: 0;
    /* ширина = 100% плюс оба отступа */
    max-width: none;
    width: calc(100% + var(--card-padding, 1rem) * 2);
}

.project-card__body {
  padding: 1.4rem;
  color: var(--ivory-50);
}

.project-card__body h3 {
  color: var(--brass-light);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.project-card__body p {
  margin: 0;
  font-size: .9rem;
}

.institution-section {
  background: var(--ivory-100);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.material-item {
  min-height: 7rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--ivory-50);
  border: 1px solid var(--line);
  border-radius: .45rem;
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.material-item i {
  width: 2rem;
  flex: 0 0 auto;
  color: var(--brass-dark);
  font-size: 1.5rem;
  text-align: center;
}

.material-item--wide {
  min-height: 5rem;
}

.vk-section {
  background: var(--wine-950);
}

.vk-panel {
  color: var(--ivory-50);
  background: var(--wine-900);
  border-color: var(--brass);
}

.vk-panel .fund-title {
  color: var(--ivory-50);
}

.vk-mark {
  width: 4.5rem;
  height: 4.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wine-950);
  background: var(--brass-light);
  border-radius: 50%;
  font-size: 2rem;
}

.vk-group {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding-left: 1rem;
  border-left: .18rem solid var(--brass);
}

.vk-group span {
  color: var(--brass-light);
  font-size: .85rem;
}

.vk-gallery {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  height: 28rem;
}

.vk-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 1px solid var(--brass-line);
  border-radius: .35rem;
}

.vk-gallery img:first-child {
  grid-row: 1 / 3;
}

.fund-faq .accordion-item {
  background: var(--ivory-50);
  border-color: var(--line);
}

.fund-faq .accordion-button {
  color: var(--wine-950);
  background: var(--ivory-50);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 800;
}

.fund-faq .accordion-button:not(.collapsed) {
  color: var(--wine-950);
  background: var(--ivory-200);
  box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--line);
}

.fund-faq .accordion-button:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brass) 28%, transparent);
}

.fund-faq .accordion-button::after {
  filter: sepia(1);
}

.consult-card {
  background: var(--ivory-50);
}

.seo-section__image {
  aspect-ratio: 4 / 3;
}

.seo-section__image img {
  object-position: 28% center;
}

.seo-section p {
  line-height: 1.75;
}

@media (max-width: 1199.98px) {
  .fund-advantages .col-lg {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 991.98px) {
  .fund-hero {
    min-height: 42rem;
    background-position: 42% center;
  }

  .fund-advantages .col-lg {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .vk-gallery {
    height: 24rem;
  }
}

@media (max-width: 575.98px) {
  .fund-section {
    padding: 4rem 0;
  }

  .fund-hero {
    min-height: 44rem;
    padding: 5.5rem 0;
    background-position: 49% center;
  }

  .fund-hero__title {
    font-size: 2.55rem;
  }

  .fund-trust {
    font-size: .68rem;
    line-height: 1.5;
  }

  .format-card .card-body {
    padding: 1.5rem !important;
  }

  .format-point {
    min-height: 6.5rem;
  }

  .format-point span {
    font-size: .62rem;
  }

  .fund-advantages .col-lg {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .project-card img {
    height: 15rem;
  }

  .vk-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 13rem 9rem;
    height: auto;
  }

  .vk-gallery img:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .format-card,
  .format-card__media img {
    transition: none;
  }
}



.fund-home h2
{
  font-size: clamp(2.1rem, 1.4rem + 2vw, 3rem);
}




.about-hero__facts {
    position: relative;
    color: var(--ink);
    background: var(--ivory-50);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
    box-shadow: 0 -10px 30px var(--line);
}

.about-hero__fact {
    min-height: 96px;
    padding: 1.15rem 1.4rem;
}

.about-hero__fact + .about-hero__fact {
    border-left: 1px solid var(--line);
}

.about-hero__fact-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: none;
    place-items: center;
    color: var(--brass-light);
    background: var(--wine-800);
    border-radius: 50%;
}

.about-hero__fact small {
    margin-bottom: .2rem;
    color: var(--brass-dark);
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.about-hero__fact strong {
    color: var(--wine-800);
    font-family: var(--font-serif);
    font-size: .98rem;
    font-weight: 600;
}