:root {
  --paper: #f4efe7;
  --paper-bright: #fbf8f3;
  --ink: #171411;
  --muted: #756e67;
  --line: #d9d2c8;
  --orange: #e85f25;
  --orange-dark: #c94a17;
  --success: #2e8b58;
  --danger: #bd3e2f;
  --font-sans: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.skip-link { position: fixed; z-index: 20; left: 18px; top: -80px; padding: 11px 16px; border-radius: 8px; background: var(--ink); color: #fff; transition: top .2s; }
.skip-link:focus { top: 18px; }

.contact-header { width: min(1460px, calc(100% - 56px)); height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.contact-brand { position: relative; width: 180px; height: 54px; overflow: hidden; }
.contact-brand img { position: absolute; width: 255px; max-width: none; left: -37px; top: -70px; }
.contact-header nav { display: flex; align-items: center; gap: 30px; color: #57514b; font-size: 13px; font-weight: 650; }
.contact-header nav a { position: relative; padding: 12px 0; }
.contact-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 1px; background: var(--orange); transition: right .2s; }
.contact-header nav a:hover::after, .contact-header nav a:focus-visible::after { right: 0; }

.contact-main { width: min(1460px, calc(100% - 56px)); min-height: calc(100vh - 116px); margin: 0 auto 28px; display: grid; grid-template-columns: minmax(390px, .82fr) minmax(570px, 1.18fr); overflow: hidden; border: 1px solid rgba(23,20,17,.12); border-radius: 20px; background: var(--paper-bright); box-shadow: 0 30px 80px rgba(57,39,26,.12); }

.contact-story { position: relative; min-height: 720px; overflow: hidden; padding: clamp(52px, 5vw, 82px); display: flex; flex-direction: column; background: #13110f; color: #f8f3ec; }
.story-copy { position: relative; z-index: 2; max-width: 520px; }
.story-kicker, .form-kicker { margin: 0; color: #ed7a48; font: 600 11px var(--font-mono); letter-spacing: .18em; }
.story-copy h1 { margin: 32px 0 30px; font-size: clamp(52px, 4.1vw, 76px); line-height: 1.03; letter-spacing: -.065em; font-weight: 600; }
.story-copy h1 em { color: #ef7b48; font-style: normal; }
.story-lead { max-width: 470px; margin: 0; color: rgba(255,255,255,.62); font-size: 16px; line-height: 1.9; }
.story-promise { position: relative; z-index: 2; display: grid; grid-template-columns: 42px 1fr; gap: 18px; margin-top: auto; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.12); }
.story-promise > span { color: #e97644; font: 600 12px var(--font-mono); }
.story-promise b { font-size: 16px; font-weight: 600; }
.story-promise p { max-width: 390px; margin: 9px 0 0; color: rgba(255,255,255,.48); font-size: 13px; line-height: 1.7; }
.story-address { position: relative; z-index: 2; margin: 36px 0 0 60px; color: rgba(255,255,255,.32); font: 500 10px var(--font-mono); letter-spacing: .1em; }

.consultation { padding: clamp(48px, 5vw, 78px) clamp(40px, 5vw, 86px); background: var(--paper-bright); }
.form-heading { max-width: 610px; }
.form-heading h2, .success-panel h2 { margin: 14px 0 14px; font-size: clamp(38px, 3vw, 54px); line-height: 1.05; letter-spacing: -.05em; font-weight: 600; }
.form-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
form { margin-top: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 18px; }
.field { display: grid; gap: 9px; min-width: 0; }
.field > span { color: #4c4640; font-size: 12px; font-weight: 650; }
.field > span i { color: var(--orange); font-style: normal; }
.field > span small { margin-left: 5px; color: #9a928a; font-size: 10px; font-weight: 500; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fffdfa; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.field input { height: 52px; padding: 0 15px; }
.field textarea { min-height: 132px; padding: 15px; line-height: 1.7; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #aaa29a; }
.field input:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,95,37,.1); transform: translateY(-1px); }
.field-wide { grid-column: 1 / -1; }
.website-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.form-error { min-height: 22px; margin: 16px 0 5px; color: var(--danger); font-size: 12px; line-height: 1.6; }
.submit-button { width: 100%; height: 56px; display: flex; align-items: center; justify-content: center; gap: 24px; border: 0; border-radius: 9px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.submit-button:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(201,74,23,.22); }
.submit-button:disabled { cursor: wait; opacity: .72; transform: none; box-shadow: none; }
.submit-button > span:last-child { font-size: 17px; transition: transform .2s; }
.submit-button:hover > span:last-child { transform: translateX(4px); }
.privacy-note { margin: 14px 0 0; color: #928b83; font-size: 10px; line-height: 1.6; text-align: center; }

.success-panel { min-height: 560px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 590px; }
.success-panel[hidden] { display: none; }
.success-panel > p:not(.form-kicker) { max-width: 520px; margin: 10px 0 34px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.success-panel a { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; }

@media (max-width: 980px) {
  .contact-main { grid-template-columns: minmax(330px,.78fr) minmax(480px,1.22fr); }
  .contact-story { padding: 48px 38px; }
  .consultation { padding: 48px 38px; }
  .story-copy h1 { font-size: 48px; }
}

@media (max-width: 760px) {
  .contact-header { width: calc(100% - 32px); height: 74px; }
  .contact-brand { width: 150px; height: 48px; }
  .contact-brand img { width: 220px; left: -34px; top: -60px; }
  .contact-header nav { gap: 16px; font-size: 12px; }
  .contact-header nav a:first-child { display: none; }
  .contact-main { width: calc(100% - 24px); margin-bottom: 12px; grid-template-columns: 1fr; border-radius: 15px; }
  .contact-story { min-height: 470px; padding: 42px 28px; }
  .story-copy h1 { margin-top: 22px; font-size: clamp(43px,12vw,58px); }
  .story-lead { font-size: 14px; }
  .story-promise { margin-top: 64px; }
  .story-address { margin: 26px 0 0; }
  .consultation { padding: 44px 24px 50px; }
  .form-heading h2, .success-panel h2 { font-size: 38px; }
  form { margin-top: 32px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .field-wide { grid-column: auto; }
  .success-panel { min-height: 450px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
