﻿:root {
  --ink: #111617;
  --muted: #687170;
  --line: #d9ded8;
  --paper: #f4f1e9;
  --surface: #ffffff;
  --deep: #102322;
  --moss: #59736a;
  --blue: #315f88;
  --amber: #c49455;
  --clay: #a95f46;
  --shadow: 0 24px 70px rgba(17, 22, 23, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 26px;
  min-height: 76px;
  padding: 0 clamp(18px, 5vw, 64px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled {
  background: rgba(244, 241, 233, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(17, 22, 23, 0.1);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  font-size: 12px;
}
.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
}
.desktop-nav a,
.header-action { opacity: 0.84; }
.desktop-nav a:hover,
.header-action:hover { opacity: 1; }
.header-action { font-size: 14px; font-weight: 800; }
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}
.mobile-menu {
  position: fixed;
  z-index: 29;
  top: 76px;
  left: 0;
  right: 0;
  display: none;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(17, 22, 23, 0.12);
}
.mobile-menu a {
  display: block;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.mobile-menu.is-open { display: block; }

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--deep);
}
.hero-media,
.hero-shade { position: absolute; inset: 0; }
.hero-media {
  background-image: url("assets/hero-kitchen.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 18, 18, 0.86) 0%, rgba(10, 18, 18, 0.58) 45%, rgba(10, 18, 18, 0.12) 100%),
    linear-gradient(0deg, rgba(10, 18, 18, 0.72) 0%, rgba(10, 18, 18, 0) 55%);
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 760px) minmax(260px, 370px);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto clamp(56px, 10vh, 110px);
  color: #fff;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1,
.section-title h2,
.contact h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}
.hero h1 { font-size: clamp(42px, 6.4vw, 82px); max-width: 780px; }
.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 900;
}
.button.primary { background: #fff; color: var(--deep); }
.button.secondary { border-color: rgba(255,255,255,0.48); color: #fff; }
.hero-panel {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px);
}
.hero-panel div { padding: 22px; background: rgba(9, 19, 19, 0.58); }
.hero-panel span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.64);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}
.hero-panel strong { display: block; line-height: 1.45; }

.section { padding: clamp(70px, 9vw, 124px) clamp(20px, 5vw, 72px); }
.section-title {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(300px, 1.5fr);
  gap: clamp(26px, 6vw, 80px);
  max-width: 1220px;
  margin: 0 auto 42px;
}
.section-title.compact { align-items: start; }
.section-title h2,
.contact h2 { font-size: clamp(30px, 4.2vw, 56px); }
.section-title > p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.overview { background: var(--paper); }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1220px;
  margin: 0 auto;
  background: var(--line);
  gap: 1px;
}
.metric-grid div { min-height: 150px; padding: 28px; background: #fff; }
.metric-grid strong { display: block; color: var(--blue); font-size: 34px; margin-bottom: 16px; }
.metric-grid span { color: var(--muted); line-height: 1.55; }

.cases { background: #fff; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1220px;
  margin: 0 auto 28px;
}
.filter {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.filter.is-active { background: var(--deep); color: #fff; border-color: var(--deep); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1220px;
  margin: 0 auto;
}
.case-card {
  display: grid;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 100%;
}
.case-card.is-hidden { display: none; }
.case-feature { grid-column: span 2; }
.case-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: #e6e1d8;
}
.case-feature img { height: 470px; }
.case-info { padding: 24px; }
.case-info span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.case-info h3 { margin: 10px 0 10px; font-size: 24px; line-height: 1.18; }
.case-info p,
.system-item p,
.timeline p,
.contact p { margin: 0; color: var(--muted); line-height: 1.68; }
.case-info ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.case-info li {
  padding: 7px 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.system { background: #ede8df; }
.system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1220px;
  margin: 0 auto;
  background: var(--line);
}
.system-item { min-height: 310px; padding: 30px; background: #fff; }
.system-item span { color: var(--clay); font-weight: 900; }
.system-item h3 { margin: 46px 0 14px; font-size: 24px; line-height: 1.18; }

.process { background: #fff; }
.timeline {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.timeline div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.timeline span { color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.timeline h3 { margin: 0 0 10px; font-size: 24px; }

.contact {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
  padding: clamp(74px, 9vw, 124px) clamp(20px, 7vw, 100px);
  background: var(--deep);
  color: #fff;
}
.contact p { max-width: 640px; margin-top: 22px; color: rgba(255,255,255,0.74); }
.contact-card {
  display: grid;
  gap: 18px;
  padding: 32px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.contact-card span { color: var(--blue); font-weight: 900; text-transform: uppercase; font-size: 12px; }
.contact-card strong { font-size: 24px; line-height: 1.35; }
.contact-card p { margin: 0; color: var(--muted); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px);
  background: #0d1213;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .desktop-nav,
  .header-action { display: none; }
  .menu-button { display: block; grid-column: 3; }
  .hero-layout,
  .section-title,
  .contact { grid-template-columns: 1fr; }
  .hero-layout { align-items: end; }
  .hero-panel { max-width: 520px; }
  .metric-grid,
  .system-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-feature { grid-column: span 2; }
}

@media (max-width: 680px) {
  .brand span:last-child { display: none; }
  .hero { min-height: 88vh; }
  .hero-layout { width: calc(100% - 32px); margin-bottom: 44px; }
  .hero h1 { font-size: 39px; }
  .hero-copy p:not(.eyebrow) { font-size: 16px; }
  .button { width: 100%; }
  .hero-panel { display: none; }
  .metric-grid,
  .case-grid,
  .system-grid { grid-template-columns: 1fr; }
  .case-feature { grid-column: auto; }
  .case-card img,
  .case-feature img { height: 310px; }
  .timeline div { grid-template-columns: 1fr; gap: 8px; }
  .site-footer { flex-direction: column; }
}
