:root {
  color-scheme: light;
  --red: #c92f35;
  --red-dark: #9d2027;
  --ink: #1d2025;
  --muted: #686d75;
  --line: #e8e9ec;
  --paper: #ffffff;
  --soft: #f6f7f8;
  --dark: #17191d;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-size: 23px;
  font-weight: 800;
  box-shadow: 0 9px 22px rgb(201 47 53 / 22%);
}

.brand-copy,
.footer-brand > div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-copy strong {
  font-size: 18px;
}

.brand-copy small,
.footer-brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

nav {
  display: flex;
  gap: 34px;
}

nav a {
  color: #454950;
  font-size: 15px;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--red);
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #221813;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background: linear-gradient(90deg, rgb(18 14 12 / 92%) 0%, rgb(18 14 12 / 70%) 38%, rgb(18 14 12 / 8%) 72%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 96px;
  color: #fff;
}

.hero-content h1 {
  max-width: 620px;
  margin: 12px 0 24px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.eyebrow {
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
}

.eyebrow.red {
  color: var(--red);
}

.hero-text {
  max-width: 610px;
  margin: 0 0 36px;
  color: rgb(255 255 255 / 82%);
  font-size: 18px;
  line-height: 1.85;
}

.primary-link {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: #fff;
  background: var(--red);
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: #df3940;
  transform: translateY(-2px);
}

.assurance {
  width: min(1060px, calc(100% - 48px));
  margin: -46px auto 0;
  padding: 26px 32px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 52px rgb(22 24 28 / 12%);
}

.assurance div {
  padding: 4px 22px;
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 12px;
  align-items: center;
}

.assurance div + div {
  border-left: 1px solid var(--line);
}

.assurance span {
  grid-row: span 2;
  color: var(--red);
  font-weight: 800;
}

.assurance strong {
  font-size: 17px;
}

.assurance small {
  color: var(--muted);
  font-size: 13px;
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading {
  max-width: 650px;
}

.section-heading h2,
.about-section h2 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.25;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.service-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-grid article {
  min-height: 245px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.service-grid article:nth-child(2) {
  transform: translateY(18px);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: #fff0f0;
  font-weight: 800;
}

.service-grid h3 {
  margin: 24px 0 8px;
  font-size: 21px;
}

.service-grid p,
.steps p,
.about-copy p {
  margin: 0;
  color: var(--muted);
}

.steps-section {
  padding: 92px max(24px, calc((100% - 1120px) / 2));
  color: #fff;
  background: var(--dark);
}

.section-heading.light {
  color: #fff;
}

.steps {
  max-width: 1120px;
  margin: 48px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 18px;
}

.steps li > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
}

.steps strong {
  display: block;
  margin: 3px 0 8px;
  font-size: 18px;
}

.steps p {
  color: rgb(255 255 255 / 62%);
  font-size: 15px;
}

.about-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.about-copy {
  padding-top: 6px;
  font-size: 17px;
}

.about-copy p + p {
  margin-top: 18px;
}

footer {
  padding: 42px max(24px, calc((100% - 1120px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 32px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 18px;
}

.filing {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
  color: #555b64;
  font-size: 14px;
}

.filing a {
  color: #555b64;
  text-decoration: none;
}

.filing a:hover,
.filing a:focus-visible {
  color: var(--red);
  text-decoration: underline;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: #858991;
  font-size: 13px;
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 32px, 1180px);
    height: 76px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 590px;
  }

  .hero-image {
    object-position: 68% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgb(18 14 12 / 92%) 0%, rgb(18 14 12 / 74%) 70%, rgb(18 14 12 / 36%) 100%);
  }

  .hero-content {
    width: calc(100% - 40px);
    padding: 102px 0 82px;
  }

  .hero-content h1 {
    font-size: 49px;
  }

  .hero-text {
    font-size: 16px;
  }

  .assurance {
    width: calc(100% - 32px);
    margin-top: -34px;
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .assurance div {
    padding: 14px 4px;
  }

  .assurance div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section,
  .about-section {
    width: calc(100% - 40px);
    padding: 78px 0;
  }

  .service-grid,
  .steps,
  .about-section {
    grid-template-columns: 1fr;
  }

  .service-grid article:nth-child(2) {
    transform: none;
  }

  .steps-section {
    padding: 78px 20px;
  }

  .steps {
    gap: 28px;
  }

  .about-section {
    gap: 24px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .filing {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .primary-link {
    transition: none;
  }
}
