.header-avatar,
.footer-avatar {
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  border: 1px solid rgba(255,255,255,.78);
}

.header-avatar { width: 40px; height: 40px; }
.footer-avatar { width: 48px; height: 48px; }

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .12em;
}

body,
button,
input,
textarea,
select {
  font-family: "Manrope", "Gilroy", "Avenir Next", Inter, ui-sans-serif, sans-serif;
}

body {
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero-content {
  align-self: flex-start;
  width: min(1120px, 92vw);
  padding-top: clamp(145px, 16vh, 190px);
  padding-bottom: 50px;
}

@media (min-width: 901px) {
  .hero {
    min-height: 640px;
    height: min(72vh, 720px);
  }

  .hero-content {
    padding-top: clamp(125px, 13vh, 155px);
    padding-bottom: 38px;
  }
}

.hero h1 {
  max-width: 1050px;
  font-size: clamp(58px, 6.2vw, 92px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-lead {
  max-width: 720px;
  font-size: clamp(19px, 1.65vw, 24px);
  line-height: 1.5;
  margin-bottom: 24px;
}

.hero-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-person img {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
}

.hero-person div {
  display: grid;
  gap: 2px;
}

.hero-person strong {
  font-size: 15px;
  font-weight: 700;
}

.hero-lead,
.about-copy p,
.split-heading > p,
.consultation-intro > p:last-child {
  text-wrap: pretty;
}

.section-heading h2,
.consultation h2,
.closing h2 {
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.consultation-intro { max-width: 1340px; }
.consultation h2 { font-size: clamp(40px, 4.2vw, 66px); }

footer .footer-links {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.portrait-stack {
  position: sticky;
  top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 12px;
}

.portrait-stack .portrait-card { position: static; }
.portrait-stack .portrait-card img { filter: none; }
.portrait-main img,
.portrait-together img {
  aspect-ratio: 853 / 1280;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.about-copy p,
.about-copy .large-copy {
  margin-top: 0;
  margin-bottom: 24px;
  color: #333b43;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
}

.slider-dots { display: none; }

@media (min-width: 621px) {
  .materials-grid.is-scroll-gallery {
    grid-template-columns: none;
    grid-template-rows: repeat(2, minmax(310px, auto));
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 28px) / 3);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .materials-grid.is-scroll-gallery::-webkit-scrollbar { display: none; }
  .materials-grid.is-scroll-gallery .material-card { scroll-snap-align: start; }

  .slider-dots:not(:empty) {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
  }

  .slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #b8c0c8;
    cursor: pointer;
  }

  .slider-dot.active {
    background: var(--blue);
    transform: scale(1.25);
  }
}

.impact-card {
  margin-top: 38px;
  padding: 28px 30px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
}

.impact-card p,
.about-copy .impact-card p {
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
}

@media (max-width: 620px) {
  .header-avatar { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 12px; }
  .hero-content { padding-top: 124px; padding-bottom: 46px; }
  .hero h1 { font-size: clamp(42px, 12vw, 48px); line-height: .96; }
  .hero-lead { font-size: 18px; line-height: 1.5; }
  .hero-person img { width: 50px; height: 50px; }
  .hero-person strong { font-size: 14px; }
  .portrait-stack { position: static; grid-template-columns: 1fr 1fr; gap: 8px; }
  .about-copy p,
  .about-copy .large-copy { font-size: 18px; line-height: 1.65; }
  .impact-card { margin-top: 30px; padding: 24px 22px; }
  .impact-card p,
  .about-copy .impact-card p { font-size: 18px; line-height: 1.55; }
}
@font-face {
  font-family: "Manrope";
  src: url("/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  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("/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Рассвет становится заметен в первые секунды короткой спокойной петли. */
.hero-night { animation-duration: 12s; }
.hero-day { animation: sunriseFast 12s ease-in-out infinite; }
.hero-light { animation: lightSweepFast 12s ease-in-out infinite; }

@keyframes sunriseFast {
  0%, 6% { opacity: 0; transform: scale(1.04); }
  30%, 76% { opacity: 1; transform: scale(1.015); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes lightSweepFast {
  0%, 8%, 100% { opacity: 0; }
  34%, 76% { opacity: .8; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-day { animation: none; }
  .hero-light { animation: none; }
}
