:root {
  --page-bg: #f9fafb;
  --panel-bg: #ffffff;
  --footer-bg: #f3f4f6;
  --text: #272727;
  --muted: #505050;
  --subtle: #888888;
  --line: #e5e7eb;
  --blue: #2563eb;
  --active: #1d4ed8;
  --brand-start: #6d5df6;
  --brand-end: #8a5cf6;
  --shell: 1216px;
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.shell {
  width: min(var(--shell), calc(100vw - 40px));
  margin-inline: auto;
}

.site-header {
  height: var(--header-h);
  background: #ffffff;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  color: #222222;
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
  white-space: nowrap;
}

.site-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 33px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 3.5px;
  color: #5f6368;
  font-size: 14px;
  line-height: var(--header-h);
  white-space: nowrap;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--active);
  content: "";
  opacity: 0;
}

.nav-link.is-active {
  color: #111827;
}

.nav-link.is-active::after {
  opacity: 1;
}

.nav-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  padding-top: 32px;
}

.panel {
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel-bg);
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1 {
  color: #272727;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-panel {
  min-height: 233px;
  padding: 31px 32px 32px;
}

.hero-panel .lead {
  margin-top: 10px;
  white-space: nowrap;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border-radius: 5px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 36px;
  white-space: nowrap;
}

.button svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  min-width: 114px;
  background: var(--blue);
  color: #ffffff;
}

.button-secondary {
  min-width: 114px;
  border-color: #c8c8c8;
  background: #ffffff;
  color: #505050;
}

.values-panel {
  min-height: 303px;
  margin-top: 32px;
  padding: 28px 32px 31px;
}

.values-panel h2 {
  color: #272727;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px;
  margin-top: 22px;
}

.value-card {
  min-height: 182px;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  padding: 16px 16px 15px;
  background: #ffffff;
}

.value-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
}

.value-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-blue {
  background: #dbeafe;
  color: #3b82f6;
}

.value-purple {
  background: #f3e8ff;
  color: #a855f7;
}

.value-green {
  background: #dcfce7;
  color: #22c55e;
}

.value-card h3 {
  margin-top: 18px;
  color: #272727;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.value-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.service-panel {
  min-height: 417px;
  padding: 31px 32px 32px;
}

.service-panel .lead {
  margin-top: 8px;
}

.qr-block {
  margin-top: 73px;
  width: 150px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.qr-block img {
  display: block;
  width: 150px;
  height: 150px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 15px;
  background: #ffffff;
}

.qr-block figcaption {
  margin-top: 12px;
  white-space: nowrap;
}

.contact-panel {
  min-height: 200px;
  padding: 31px 32px 32px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 12px;
}

.contact-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #3b82f6;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item h2 {
  color: #505050;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
}

.contact-item p {
  margin-top: 5px;
  color: #505050;
  font-size: 16px;
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}

.footer-inner {
  min-height: 88px;
  padding-top: 23px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.5;
}

.footer-inner .record {
  margin-top: 2px;
  color: #b5b5b5;
  font-size: 12px;
  padding-left: 172px;
}

.page-home {
  min-height: 680px;
  padding-bottom: 79px;
}

.page-home + .site-footer {
  min-height: 88px;
}

.page-services {
  min-height: 528px;
  padding-bottom: 79px;
}

.page-contact {
  min-height: 312px;
  padding-bottom: 79px;
}

.page-services + .site-footer,
.page-contact + .site-footer {
  min-height: 88px;
}

@media (max-width: 900px) {
  .hero-panel .lead {
    white-space: normal;
  }

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

  .page-home,
  .page-services,
  .page-contact {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 58px;
  }

  .shell {
    width: min(var(--shell), calc(100vw - 24px));
  }

  .brand-name {
    max-width: 190px;
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
  }

  .site-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 13px;
  }

  .page {
    padding-top: 20px;
  }

  .hero-panel,
  .values-panel,
  .service-panel,
  .contact-panel {
    padding: 24px 22px;
  }

  h1,
  .values-panel h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 16px;
  }

  .actions {
    flex-wrap: wrap;
    margin-top: 28px;
  }

  .site-footer {
    margin-top: 48px;
  }

  .footer-inner {
    padding: 20px 0;
  }

  .footer-inner .record {
    padding-left: 0;
  }
}
