:root {
  color-scheme: light;
  --ink: #1e2522;
  --muted: #66716b;
  --line: #d8ded7;
  --paper: #f7f5ef;
  --white: #ffffff;
  --sage: #6c8a73;
  --clay: #b86745;
  --stone: #d9d1c3;
  --soft-green: #e8efe7;
  --shadow: 0 24px 70px rgba(30, 37, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  align-items: center;
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(216, 222, 215, 0.8);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(20px, 5vw, 72px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--paper);
  display: grid;
  font-size: 14px;
  font-weight: 700;
  height: 42px;
  letter-spacing: 0;
  place-items: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: -3px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

.language-toggle,
.button {
  border: 1px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 11px 16px;
}

.language-toggle {
  background: transparent;
  color: var(--ink);
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  min-height: 76vh;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px) 48px;
}

.hero-copy {
  align-self: center;
  max-width: 780px;
}

.eyebrow,
.section-label {
  color: var(--clay);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  margin-bottom: 22px;
  max-width: 840px;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  margin-bottom: 14px;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-text,
.section-heading p,
.intro > p,
.booking p,
.footer p {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
}

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

.button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

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

.button.secondary {
  background: transparent;
}

.button.full {
  width: 100%;
}

.hero-panel {
  align-self: center;
  display: grid;
  gap: 16px;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.repair-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 170px;
  padding: 24px;
}

.repair-card .icon {
  align-items: center;
  background: var(--soft-green);
  border-radius: 8px;
  color: var(--sage);
  display: grid;
  font-weight: 800;
  height: 44px;
  margin-bottom: 30px;
  place-items: center;
  width: 44px;
}

.repair-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.repair-card p {
  color: var(--muted);
  margin: 12px 0 0;
}

.section {
  padding: 72px clamp(20px, 5vw, 72px);
}

.intro {
  align-items: start;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 28px;
  grid-template-columns: 0.8fr 1.2fr;
}

.intro p {
  color: #dfe5dd;
}

.section-heading {
  margin-bottom: 32px;
  max-width: 850px;
}

.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 260px;
  padding: 24px;
}

.service span {
  align-items: center;
  background: var(--stone);
  border-radius: 50%;
  color: var(--ink);
  display: grid;
  font-weight: 800;
  height: 42px;
  margin-bottom: 30px;
  place-items: center;
  width: 42px;
}

.service p {
  color: var(--muted);
  margin-bottom: 0;
}

.pricing {
  background: var(--soft-green);
}

.price-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.price-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 64px;
  padding: 16px 22px;
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row strong {
  color: var(--clay);
  min-width: 110px;
  text-align: right;
}

.gallery-cases {
  display: flex;
  gap: 22px;
  margin-inline: calc(clamp(20px, 5vw, 72px) * -1);
  overflow-x: auto;
  padding: 4px clamp(20px, 5vw, 72px) 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.result-case {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 0 0 min(86vw, 980px);
  overflow: hidden;
  scroll-snap-align: center;
}

.case-heading {
  border-bottom: 1px solid var(--line);
  padding: 22px 24px;
}

.case-heading h3 {
  margin-bottom: 6px;
}

.case-heading p {
  color: var(--muted);
  margin-bottom: 0;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-panel:first-child {
  border-right: 1px solid var(--line);
}

.comparison-panel span {
  color: var(--muted);
  display: block;
  font-weight: 700;
  padding: 16px;
}

.gallery-photo {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.gallery-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.gallery-button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--paper);
  cursor: pointer;
  display: grid;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  height: 46px;
  place-items: center;
  width: 54px;
}

.gallery-button:hover {
  background: var(--clay);
  border-color: var(--clay);
}

.placeholder-image {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(30, 37, 34, 0.08), rgba(30, 37, 34, 0.02)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(30, 37, 34, 0.05) 14px 16px);
}

.placeholder-image.before {
  background-color: #e0d3c7;
}

.placeholder-image.after {
  background-color: #d8e4d5;
}

.booking {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 360px;
}

.booking p {
  color: #dfe5dd;
}

.booking-box {
  background: var(--paper);
  border-radius: 8px;
  padding: 22px;
}

.fine-print {
  color: var(--muted) !important;
  font-size: 14px !important;
  margin: 12px 0 0;
  text-align: center;
}

.footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 34px clamp(20px, 5vw, 72px);
}

.footer p {
  font-size: 15px;
  margin: 4px 0 0;
}

.footer a {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .language-toggle {
    padding-inline: 12px;
  }

  .hero,
  .section {
    padding-inline: 18px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-text,
  .section-heading p,
  .intro > p,
  .booking p {
    font-size: 16px;
  }

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

  .result-case {
    flex-basis: calc(100vw - 36px);
  }

  .comparison-panel:first-child {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .repair-card,
  .service {
    min-height: auto;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .price-row strong {
    text-align: left;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
