.about-founders-section {
  --site-container-max: 1120px;
  --site-container-gutter: 64px;
  --site-container-gutter-mobile: 40px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 72px;
  align-items: center;
  padding: 84px 0;
}

.about-founders__image {
  display: block;
  width: 100%;
  height: auto;
}

.about-founders-section > :last-child h1 {
  margin: 0 0 34px;
  color: var(--site-heading);
}

.about-founders-section > :last-child h1 span,
.about-founders-section > :last-child > p span {
  color: var(--site-accent);
}

.about-founders-section > :last-child p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.85;
}

.about-founders-section > :last-child .button {
  margin-top: 16px;
}

.about-skills-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 72px;
  align-items: center;
  padding: 96px max(32px, calc((100vw - 1120px) / 2));
  background: url("../media/About-us-Background.webp") center / cover no-repeat;
}

.about-skills-section > :first-child h2 {
  margin: 0 0 28px;
  color: var(--site-heading);
}

.about-skills-section > :first-child p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.85;
}

.about-skill {
  margin: 0 0 34px;
}

.about-skill span {
  display: block;
  margin-bottom: 12px;
  color: var(--site-heading);
  font-family: Verdana;
  font-size: 16px;
  font-weight: 700;
}

.about-skill i {
  display: block;
  height: 8px;
  background: var(--site-accent-strong);
}

.about-team-section {
  padding: 72px max(32px, calc((100vw - 1240px) / 2)) 86px;
  background: var(--site-surface-muted);
}

.about-team-section > :first-child {
  max-width: 860px;
  margin-bottom: 58px;
}

.about-team-section > :first-child p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

.about-team-section > :first-child span {
  color: var(--site-accent);
}

.about-team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.about-team-card {
  position: relative;
  --team-photo-size: min(100%, 188px);
  --team-accent: #a12064;
  --team-dot-top: 12px;
  --team-dot-right: calc((100% - var(--team-photo-size)) / 2 + 12px);
  --team-dot-bottom: auto;
  --team-dot-left: auto;
  flex: 0 0 188px;
  margin: 0;
  text-align: center;
}

.about-team-card:nth-child(3n + 2) {
  --team-accent: #8dc63f;
  --team-dot-top: auto;
  --team-dot-right: calc((100% - var(--team-photo-size)) / 2 + 12px);
  --team-dot-bottom: 12px;
  --team-dot-left: auto;
}

.about-team-card:nth-child(3n) {
  --team-accent: #662d91;
  --team-dot-top: 12px;
  --team-dot-right: auto;
  --team-dot-bottom: auto;
  --team-dot-left: calc((100% - var(--team-photo-size)) / 2 + 12px);
}

.about-team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: var(--team-photo-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--team-accent);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.35);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.about-team-card:hover::before,
.about-team-card:focus-within::before {
  opacity: 0.88;
  transform: translateX(-50%) scale(1);
}

.about-team-card::after {
  content: "";
  position: absolute;
  top: var(--team-dot-top);
  right: var(--team-dot-right);
  bottom: var(--team-dot-bottom);
  left: var(--team-dot-left);
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--team-accent);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.about-team-card:hover::after,
.about-team-card:focus-within::after {
  opacity: 0;
  transform: scale(0.45);
}

.about-team-card img {
  position: relative;
  z-index: 0;
  display: block;
  width: var(--team-photo-size);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.22s ease;
}

.about-team-card:hover img,
.about-team-card:focus-within img {
  opacity: 0.32;
}

.about-team-card figcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: calc(var(--team-photo-size) - 40px);
  padding: 0;
  color: transparent;
  font-family: Verdana;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  pointer-events: none;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  transition: color 0.18s ease;
}

.about-team-card:hover figcaption,
.about-team-card:focus-within figcaption {
  color: #fff;
}

@media (max-width: 1100px) {
  .about-team-card {
    flex-basis: 188px;
  }
}

@media (max-width: 900px) {
  .about-founders-section,
  .about-skills-section {
    grid-template-columns: 1fr;
  }

  .about-team-card {
    flex-basis: 188px;
  }
}

@media (max-width: 640px) {
  .about-founders-section {
    padding: 56px 0;
  }

  .about-skills-section,
  .about-team-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-team-grid {
    gap: 18px;
  }

  .about-team-card {
    flex-basis: 150px;
  }
}
