.mes-home-sections-heading,
.mes-home-sections {
  background: #fff;
  box-sizing: border-box;
  color: #172337;
  font-family: var(--t-text-font, "FuturaPT", Arial, sans-serif);
}

.mes-home-sections-heading {
  padding: 82px 32px 0;
}

.mes-home-sections-heading__inner,
.mes-home-sections__inner {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1320px;
  width: 100%;
}

.mes-home-sections-heading__inner {
  padding-bottom: 30px;
}

.mes-home-sections-heading__title {
  color: #517dba;
  font-size: clamp(45px, 4.4vw, 68px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .98;
  margin: 0;
}

.mes-home-sections {
  padding: 50px 32px 96px;
}

.mes-home-sections__list {
  display: grid;
  gap: 24px;
}

.mes-home-section {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #517dba;
  border-top: 4px solid var(--section-accent);
  box-sizing: border-box;
  column-gap: 38px;
  display: grid;
  grid-template-areas:
    "heading description visual"
    "button description visual";
  grid-template-columns: minmax(290px, .92fr) minmax(300px, 1fr) minmax(370px, 1.18fr);
  grid-template-rows: auto 1fr;
  min-height: 356px;
  padding: 30px;
}

.mes-home-section__heading {
  align-self: start;
  grid-area: heading;
}

.mes-home-section__icon {
  display: block;
  height: 64px;
  margin-bottom: 20px;
  width: 64px;
}

.mes-home-section__number {
  color: var(--section-accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.3;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.mes-home-section__title {
  color: #172337;
  font-size: clamp(23px, 1.75vw, 30px);
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.12;
  margin: 0;
  max-width: 19ch;
}

.mes-home-section__description {
  align-self: center;
  border-left: 1px solid #a9c1e2;
  color: #26364d;
  font-size: 18px;
  grid-area: description;
  line-height: 1.48;
  padding: 18px 0 18px 30px;
}

.mes-home-section__description p {
  margin: 0;
}

.mes-home-section__description p + p {
  margin-top: 1em;
}

.mes-home-section__visual {
  align-self: center;
  background: #fbfaf7;
  grid-area: visual;
  margin: 0;
  overflow: hidden;
}

.mes-home-section__visual img {
  aspect-ratio: 3 / 2;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

#allrecords .mes-home-section__button {
  align-items: center;
  align-self: end;
  background: #fff;
  border: 2px solid #517dba;
  border-radius: 999px;
  box-shadow: none;
  box-sizing: border-box;
  color: #172337;
  display: inline-flex;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  grid-area: button;
  justify-content: center;
  justify-self: start;
  line-height: 1;
  margin-top: 28px;
  min-height: 46px;
  min-width: 132px;
  padding: 9px 24px;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

#allrecords a.mes-home-section__button:hover {
  background: var(--section-accent);
  border-color: var(--section-accent);
  color: #fff;
}

#allrecords a.mes-home-section__button:focus-visible,
#allrecords button.mes-home-section__button:focus-visible {
  outline: 3px solid var(--section-accent);
  outline-offset: 4px;
}

#allrecords button.mes-home-section__button {
  color: #46556b;
  cursor: default;
}

@media screen and (max-width: 1060px) {
  .mes-home-sections-heading,
  .mes-home-sections {
    padding-left: 24px;
    padding-right: 24px;
  }

  .mes-home-sections-heading {
    padding-top: 64px;
  }

  .mes-home-sections-heading__inner,
  .mes-home-sections__inner {
    max-width: 920px;
  }

  .mes-home-section {
    grid-template-areas:
      "heading visual"
      "description visual"
      "button visual";
    grid-template-columns: minmax(260px, .82fr) minmax(340px, 1.18fr);
    grid-template-rows: auto 1fr auto;
    min-height: 0;
  }

  .mes-home-section__description {
    align-self: start;
    border-left: 0;
    border-top: 1px solid #a9c1e2;
    margin-top: 24px;
    padding: 20px 0 0;
  }

  .mes-home-section__visual {
    align-self: center;
  }
}

@media screen and (max-width: 700px) {
  .mes-home-sections-heading {
    padding: 44px 14px 0;
  }

  .mes-home-sections-heading__inner {
    padding-bottom: 24px;
  }

  .mes-home-sections-heading__title {
    font-size: clamp(38px, 13vw, 51px);
  }

  .mes-home-sections {
    padding: 30px 14px 60px;
  }

  .mes-home-sections__list {
    gap: 18px;
  }

  .mes-home-section {
    gap: 0;
    grid-template-areas:
      "heading"
      "description"
      "visual"
      "button";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    padding: 22px;
  }

  .mes-home-section__icon {
    height: 56px;
    margin-bottom: 18px;
    width: 56px;
  }

  .mes-home-section__title {
    font-size: 23px;
    max-width: none;
  }

  .mes-home-section__description {
    font-size: 16px;
    margin-top: 22px;
    padding-top: 18px;
  }

  .mes-home-section__visual {
    margin-top: 24px;
  }

  #allrecords .mes-home-section__button {
    margin-top: 22px;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mes-home-section__button {
    transition-duration: .01ms !important;
  }
}
