:root {
  color: #101010;
  background: #f7f6f2;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-width: 320px;
}

.site-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: clamp(116px, 10.65vh, 150px) minmax(0, 1fr) 42px;
}

.brand-bar {
  display: grid;
  place-items: center;
  padding: 16px 24px;
  background: #f7f6f2;
}

.brand-bar img {
  display: block;
  width: min(360px, 70vw);
  height: 84px;
  object-fit: contain;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 0;
}

.service {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  padding: clamp(28px, 3.4vw, 58px);
  transition:
    filter 220ms ease,
    transform 220ms ease;
  cursor: pointer;
}

.service:hover {
  filter: saturate(1.08);
  transform: translateY(-4px);
}

.service:focus-visible {
  outline: 3px solid #101010;
  outline-offset: -7px;
}

.service-yellow {
  background: #f4d43f;
}

.service-blue {
  background: #75bfe3;
}

.service-coral {
  background: #ef8188;
}

.service-index,
.service-label {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.18em;
}

.service-index {
  opacity: 0.72;
}

.service-copy {
  align-self: start;
  justify-self: center;
  width: min(100%, 440px);
  padding-top: clamp(28px, 5vh, 72px);
  text-align: center;
}

.service h2 {
  margin: 14px 0 20px;
  font-family: SimSun, "Songti SC", serif;
  font-size: clamp(40px, 4vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.service-rule {
  display: block;
  width: 48px;
  height: 2px;
  margin: 0 auto 18px;
  background: currentColor;
}

.service-description {
  max-width: 28em;
  margin: 0 auto;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.8;
}

.service-icon {
  justify-self: center;
  width: clamp(112px, 11vw, 190px);
  height: clamp(112px, 11vw, 190px);
  margin-bottom: clamp(100px, 14vh, 190px);
  opacity: 0.88;
  transition: transform 220ms ease;
}

.service:hover .service-icon {
  transform: translateY(-6px);
}

footer {
  display: block;
  place-items: center;
  padding: 0 20px;
  line-height: 35px;
  background: #111;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-align: center;
}
footer a{
    color: #fff;
    text-decoration: none;
}
#contact-dialog {
  width: min(420px, calc(100% - 40px));
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid #101010;
  background: #f7f6f2;
  color: #101010;
  box-shadow: 0 16px 40px rgb(0 0 0 / 20%);
  text-align: center;
}

#contact-dialog::backdrop {
  background: rgb(16 16 16 / 45%);
}

.contact-dialog-copy h2 {
  margin: 14px 0 24px;
  font-family: SimSun, "Songti SC", serif;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.06;
}

.contact-dialog-copy p:not(.service-label) {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.6;
}

.contact-dialog-copy a {
  color: inherit;
  text-underline-offset: 3px;
}

#contact-dialog form {
  margin-top: 28px;
}

#contact-dialog button {
  min-width: 120px;
  padding: 11px 20px;
  border: 1px solid #101010;
  background: #101010;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

#contact-dialog button:hover,
#contact-dialog button:focus-visible {
  background: transparent;
  color: #101010;
}

@media (max-width: 760px) {
  .site-shell {
    grid-template-rows: 92px auto 48px;
  }

  .brand-bar img {
    width: min(300px, 82vw);
    height: 64px;
  }

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

  .service {
    min-height: 430px;
    padding: 30px 28px;
  }

  .service-copy {
    align-self: center;
    padding-top: 14px;
  }

  .service h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .service-icon {
    width: 112px;
    height: 112px;
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service,
  .service-icon {
    transition: none;
  }

  .service:hover,
  .service:hover .service-icon {
    transform: none;
  }
}
