.about {
  --about-text-width: clamp(16rem, calc(520 / var(--design-width) * 100vw), 32.5rem);
  --about-photo-offset-top: clamp(1.25rem, calc(40 / var(--design-width) * 100vw), 2.5rem);
  --about-photo-max-height: clamp(15rem, calc(380 / var(--design-width) * 100vw), 23.75rem);
  --about-stats-width: clamp(6.5rem, calc(148 / var(--design-width) * 100vw), 9.25rem);
}

.about__layout {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, calc(32 / var(--design-width) * 100vw), 2rem);
}

/* Низ колонок на одной линии; текст — от верха, фото — с отступом сверху */
.about__columns {
  display: grid;
  grid-template-columns: var(--about-text-width) minmax(0, 1fr) var(--about-stats-width);
  column-gap: clamp(0.75rem, calc(20 / var(--design-width) * 100vw), 1.25rem);
  align-items: end;
}

.about__copy {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
}

.about__title {
  font-size: var(--text-hero-title);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-text);
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, calc(16 / var(--design-width) * 100vw), 1rem);
  margin-top: clamp(1.75rem, calc(56 / var(--design-width) * 100vw), 3.5rem);
  font-size: var(--text-hero-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.about__text strong {
  font-weight: 600;
}

.about__photo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: end;
  min-width: 0;
  margin: 0;
  padding-top: var(--about-photo-offset-top);
}

.about__photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--about-photo-max-height);
  object-fit: contain;
  object-position: bottom center;
}

.about__stats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
  gap: clamp(1.25rem, calc(32 / var(--design-width) * 100vw), 2rem);
  min-width: 0;
  margin-bottom: clamp(1rem, calc(24 / var(--design-width) * 100vw), 1.5rem);
}

.about__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(1rem, calc(24 / var(--design-width) * 100vw), 1.5rem);
  width: max-content;
  max-width: 100%;
}

.about__actions .hero__btn {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .about__columns {
    grid-template-columns: 1fr;
    align-items: start;
    row-gap: clamp(1.5rem, calc(32 / var(--design-width) * 100vw), 2rem);
  }

  .about__copy {
    align-self: auto;
  }

  .about__photo {
    align-self: auto;
    padding-top: 0;
    margin-top: clamp(1rem, calc(24 / var(--design-width) * 100vw), 1.5rem);
  }

  .about__photo img {
    max-height: none;
    width: min(100%, clamp(18rem, calc(520 / var(--design-width) * 100vw), 32.5rem));
    margin-inline: auto;
  }

  .about__stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-self: auto;
    width: 100%;
    margin-bottom: 0;
  }

  .about__stats .hero__stat {
    flex: 1;
    min-width: clamp(5rem, calc(96 / var(--design-width) * 100vw), 6rem);
  }

  .about__actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .about__actions .hero__btn--primary {
    width: min(100%, 20rem);
  }

  .about__actions .hero__btn--secondary {
    width: auto;
  }
}
