:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.985 0.003 250);
  --surface-strong: oklch(0.96 0.006 250);
  --ink: oklch(0.2 0.014 250);
  --text: oklch(0.34 0.012 250);
  --muted: oklch(0.52 0.012 250);
  --line: oklch(0.9 0.006 250);
  --line-soft: oklch(0.94 0.004 250);
  --accent: oklch(0.62 0.15 45);
  --accent-dark: oklch(0.43 0.12 45);
  --teal: oklch(0.56 0.09 190);
  --blue: oklch(0.55 0.12 252);
  --max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 18px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid color-mix(in oklch, var(--line-soft), transparent 12%);
  background: color-mix(in oklch, var(--bg), transparent 5%);
  backdrop-filter: blur(14px);
}

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

.brand img {
  width: 38px;
  height: 34px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand strong {
  font-size: 17px;
  line-height: 1.05;
  white-space: nowrap;
}

.brand em {
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.nav-links a,
.header-phone {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink);
}

.header-phone:hover {
  border-color: color-mix(in oklch, var(--accent), var(--line) 35%);
  background: color-mix(in oklch, var(--accent), white 90%);
}

#services,
#scenes,
#process,
#contact {
  scroll-margin-top: 88px;
}

.hero,
.section,
.footer {
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.72fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  min-height: auto;
  padding-top: clamp(42px, 6vw, 72px);
  padding-bottom: clamp(52px, 7vw, 84px);
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--surface), transparent 24%), var(--bg) 44%),
    var(--bg);
}

.kicker {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 850;
  letter-spacing: -0.028em;
  line-height: 1.14;
}

.lead {
  max-width: 670px;
  margin-top: 24px;
  color: var(--text);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.8;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.primary:hover {
  background: color-mix(in oklch, var(--ink), var(--accent) 18%);
}

.button.secondary {
  border-color: var(--line);
  background: var(--bg);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: color-mix(in oklch, var(--accent), var(--line) 42%);
  background: color-mix(in oklch, var(--accent), white 92%);
}

.promise {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.hero-visual img {
  width: 100%;
  height: clamp(260px, 31vw, 380px);
  object-fit: cover;
  object-position: center;
}

.section {
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.intro {
  padding-top: clamp(62px, 8vw, 96px);
  padding-bottom: clamp(62px, 8vw, 96px);
  background: var(--bg);
}

.intro-text {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.intro-text span {
  color: var(--ink);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.intro-text p {
  max-width: 820px;
  color: var(--text);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.9;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 0.92fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: start;
  margin-bottom: clamp(34px, 6vw, 70px);
}

.section-head.compact {
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 720px;
}

.section-head h2,
.company h2,
.contact h2 {
  max-width: 860px;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 830;
  letter-spacing: -0.026em;
  line-height: 1.2;
}

.services {
  background: var(--bg);
  padding-top: clamp(54px, 7vw, 88px);
}

.service-list {
  display: grid;
  gap: 22px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: clamp(24px, 4.6vw, 56px);
  align-items: center;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.service-row img {
  width: 100%;
  height: clamp(180px, 19vw, 238px);
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
}

.service-row h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.22;
}

.service-row p {
  max-width: 680px;
  margin-top: 14px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

.service-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  list-style: none;
}

.service-row li {
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.scenes,
.process {
  background: var(--surface);
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.scene-grid article {
  min-height: 220px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.scene-grid span,
.process-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.scene-grid h3,
.process-list h3 {
  margin-top: 34px;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.25;
}

.scene-grid p,
.process-list p,
.company p,
.contact-copy p {
  margin-top: 14px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.82;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.process-list li {
  min-height: 238px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.process-list li:nth-child(2) {
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--teal), var(--line-soft) 74%);
}

.process-list li:nth-child(3) {
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--blue), var(--line-soft) 74%);
}

.process-list li:nth-child(4) {
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent), var(--line-soft) 72%);
}

.company {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: var(--surface);
}

.company p {
  max-width: 820px;
  margin-top: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: clamp(34px, 7vw, 86px);
  background: var(--surface);
}

.contact-copy p {
  max-width: 680px;
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-line,
.qr-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 8px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.contact-line span,
.qr-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-line strong,
.qr-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.28;
}

.qr-card img {
  width: min(260px, 100%);
  height: auto;
  margin-top: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: white;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
}

.footer div {
  display: grid;
  gap: 6px;
}

.footer strong,
.footer a {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

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

  .hero-visual {
    order: -1;
  }

  .intro-text,
  .section-head,
  .company,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .scene-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 14px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand em {
    max-width: 160px;
  }

  .header-phone {
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .button {
    width: 100%;
  }

  .scene-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .scene-grid article,
  .process-list li {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }
}
