/* About page layout. */

.about-hero {
  position: relative;
  background: var(--bg-base);
}

.about-hero__photo {
  height: 420px;
}

.about-hero .photo__caption {
  top: var(--space-4);
  bottom: auto;
}

.about-hero .panel {
  width: auto;
  margin: var(--space-5) var(--page-x) 0;
}

.about-why,
.about-principles,
.about-providers {
  background: var(--bg-base);
  padding: var(--section-y) var(--page-x);
}

.why__grid {
  display: grid;
  gap: 48px;
  margin-top: var(--space-8);
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.why__grid p:not(.eyebrow) {
  color: var(--text-body);
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
}

.providers__head {
  display: grid;
  gap: var(--space-5);
}

.providers__head .h2 {
  margin-top: 20px;
}

.providers__cards {
  display: grid;
  gap: var(--gap);
  margin-top: var(--space-7);
}

.titles .eyebrow + .h2 {
  margin-top: 20px;
}

.about-providers .pie {
  width: 36px;
  height: 36px;
}

.about-where {
  background: var(--bg-ice);
  padding: var(--section-y) var(--page-x);
}

.about-where__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about-where .photo--half {
  height: 260px;
  border-radius: 16px;
}

.about-where__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.about-mail {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.about-address {
  margin-top: var(--space-2);
  color: var(--text-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

.about-close {
  background: var(--bg-dark);
  padding: var(--section-y) var(--page-x);
}

.about-close__grid {
  display: grid;
  gap: var(--space-6);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.about-close__title {
  margin-top: 20px;
  color: var(--text-on-dark);
  font-size: 56px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.028em;
}

.about-close__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.about-close__actions .btn {
  width: 100%;
}

.about-close__note {
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
  color: var(--text-on-dark-muted);
}

@media (min-width: 641px) {
  .about-hero__photo {
    height: 560px;
  }

  .about-hero .panel {
    position: absolute;
    left: max(var(--page-x), calc((100% - var(--container)) / 2));
    bottom: -72px;
    width: 90%;
    margin: 0;
  }

  .about-why {
    padding-top: 200px;
  }

  .why__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .why__grid .eyebrow {
    grid-column: 1 / -1;
  }

  .providers__cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .about-where {
    padding: 112px 0;
  }

  .about-where__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
  }

  .about-where .photo--half {
    height: 560px;
    border-radius: 0 24px 24px 0;
  }

  .about-where__copy {
    padding: 80px var(--page-x) 80px 96px;
  }

  .about-close__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
  }

  .about-close__actions {
    align-items: flex-start;
  }

  .about-close__actions .btn {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .about-hero__photo {
    height: 760px;
  }

  .about-hero .panel {
    width: 760px;
  }

  .why__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .why__grid .eyebrow {
    grid-column: auto;
  }

  .providers__head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 64px;
  }

  .providers__cards {
    margin-top: var(--space-8);
  }

}
