:root {
  color-scheme: light;
  --color-text: #101010;
  --color-footer: #0c0d0f;
  --color-footer-text: #e6e6e6;
  --content-width: 780px;
  --page-padding: clamp(20px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-footer);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}

.hero {
  position: relative;
  width: 100%;
  height: 33.35vw;
  min-height: 250px;
  max-height: 640px;
  overflow: hidden;
  background-color: #53697a;
  background-image:
    linear-gradient(rgba(14, 44, 67, 0.43), rgba(14, 44, 67, 0.43)),
    url("assets/about-us.png");
  background-position: center;
  background-size: cover;
}

.about {
  background: #fff;
}

.about__inner {
  width: min(100%, calc(var(--content-width) + var(--page-padding) * 2));
  margin: 0 auto;
  padding: 38px var(--page-padding) 34px;
}

.about h1,
.contact h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.about h1 {
  margin-bottom: 20px;
  text-align: center;
}

.about__content p {
  margin: 0 0 20px;
  text-align: left;
}

.about__content p:last-child {
  margin-bottom: 0;
}

.contact {
  color: var(--color-footer-text);
  background: var(--color-footer);
}

.contact__inner {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  width: min(100%, calc(var(--content-width) + var(--page-padding) * 2));
  min-height: 198px;
  margin: 0 auto;
  padding: 62px var(--page-padding) 48px;
}

.contact h2 {
  color: #fff;
  white-space: nowrap;
}

.contact__details {
  margin: 0;
  font-style: normal;
  line-height: 1.7;
}

.contact__details p {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 0 0 10px;
}

.contact__details p:last-child {
  margin-bottom: 0;
}

.contact__label {
  white-space: nowrap;
}

.contact a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.contact a:focus-visible {
  border-radius: 2px;
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  body {
    font-size: 14px;
    line-height: 1.85;
  }

  .hero {
    height: 58vw;
    min-height: 220px;
    max-height: 330px;
    background-position: 54% center;
  }

  .about__inner {
    padding-top: 32px;
    padding-bottom: 30px;
  }

  .about h1,
  .contact h2 {
    font-size: 22px;
  }

  .about h1 {
    margin-bottom: 18px;
  }

  .about__content p {
    margin-bottom: 17px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding-top: 38px;
    padding-bottom: 42px;
  }

  .contact__details p {
    grid-template-columns: 1fr;
    gap: 1px;
    margin-bottom: 15px;
  }
}

@media (max-width: 380px) {
  .hero {
    min-height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact a {
    transition: none;
  }
}
