:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --line: #D8D5CF;
  --muted: #A9A39A;
  --text: #292929;
  --text-2: #77736D;
  --charcoal: #454545;
  --accent: #B99268;
  --accent-dark: #9E7A55;
  --green: #78816D;
  --line-green: #06C755;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(41, 41, 41, .06);
  --max: 1180px;
  --gutter: 20px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.3; letter-spacing: .06em; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 6px 18px rgba(6, 199, 85, .25); }
.btn-line:hover { background: #05b34c; }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: var(--charcoal); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 245, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(216, 213, 207, .7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--text); color: #fff;
  display: grid; place-items: center; font-weight: 700; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 16px; letter-spacing: .08em; white-space: nowrap; }
.brand-text small { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--text-2); }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(185, 146, 104, .12); }
.header-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; place-items: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: var(--text); position: relative; content: ""; transition: .2s;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-profile { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none;
  border: 4px solid #fff; box-shadow: var(--shadow); background: #E8E1D6;
}
.hero-name { font-size: 15px; color: var(--text-2); }
.hero-name strong { display: block; font-size: 26px; color: var(--text); letter-spacing: .12em; }
.eyebrow { font-size: 13px; letter-spacing: .3em; color: var(--accent-dark); font-weight: 600; text-transform: uppercase; }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; margin: 10px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { color: var(--text-2); font-size: 17px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14px; color: var(--text-2); }
.hero-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }
.hero-visual {
  position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden;
  background: url("../images/hero.jpg") center / cover no-repeat, url("../images/hero.svg") center / cover no-repeat, #ECEAE5;
  box-shadow: 0 30px 60px rgba(41, 41, 41, .10);
}
/* 形象照版 hero：右上方大照片 */
/* 形象 banner：右側，無框 */
.hero-grid:has(.hero-banner) { grid-template-columns: 4fr 6fr; gap: 40px; }
.hero-banner { margin: 0; }
.hero-banner img { width: 100%; height: auto; aspect-ratio: 1672 / 941; border-radius: 14px; }
.hero-grid:has(.hero-banner) .hero-profile .avatar { display: none; }
.hero-visual .badge {
  position: absolute; left: 20px; bottom: 20px; background: rgba(255, 255, 255, .92);
  padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow);
}
.hero-visual .badge strong { display: block; font-size: 22px; color: var(--accent-dark); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 8px; }
.section-head p { color: var(--text-2); max-width: 34em; }
.num { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent); font-size: 13px; letter-spacing: .2em; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-grid { grid-template-columns: 5fr 7fr; }
.portrait { margin: 0; position: relative; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px rgba(41,41,41,.08); }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% center; }
.portrait figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-radius: 12px; padding: 12px 16px; font-weight: 700; letter-spacing: .1em;
}
.portrait figcaption span { display: block; font-size: 13px; font-weight: 400; color: var(--text-2); letter-spacing: .04em; }
.why-row { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
.about-quote {font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.6; letter-spacing: .06em; }
.about-quote::before { content: "“"; display: block; font-size: 64px; color: var(--accent); line-height: .6; margin-bottom: 10px; }
.about-text { color: var(--text-2); margin-top: 20px; }
.timeline { list-style: none; padding: 0; margin: 28px 0 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline b { display: block; font-size: 15px; }
.timeline span { font-size: 14px; color: var(--text-2); }
.why { display: grid; gap: 16px; }
.why-item { display: flex; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.section-alt .why-item { background: var(--bg); border-color: transparent; }
.why-item .n { font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; min-width: 36px; }
.why-item h3 { font-size: 18px; margin-bottom: 4px; }
.why-item p { color: var(--text-2); font-size: 15px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s;
}
.service.open { border-color: var(--accent); box-shadow: var(--shadow); }
.service-btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; padding: 26px 22px 20px; width: 100%;
}
.service-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(185, 146, 104, .14); display: grid; place-items: center; margin-bottom: 18px; }
.service-icon svg { width: 24px; height: 24px; stroke: var(--accent-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 19px; }
.service .short { color: var(--text-2); font-size: 15px; margin-top: 6px; }
.service .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; color: var(--accent-dark); font-weight: 600; }
.service .more i { transition: transform .2s; font-style: normal; display: inline-block; }
.service.open .more i { transform: rotate(45deg); }
.service-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.service.open .service-detail { grid-template-rows: 1fr; }
.service-detail > div { overflow: hidden; }
.service-detail ul { margin: 0; padding: 0 22px 24px 40px; color: var(--charcoal); font-size: 15px; }
.service-detail li { margin-bottom: 8px; }
.service-detail li::marker { color: var(--accent); }

/* Listings */
.filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 28px;
  padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 160px; flex: 1; }
.field label { font-size: 13px; color: var(--text-2); }
.field select, .field input, .field textarea {
  height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  width: 100%; outline: none; transition: border-color .2s;
}
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); }
.result-count { font-size: 14px; color: var(--text-2); margin-left: auto; align-self: center; }
.listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(41, 41, 41, .08); }
.thumb { aspect-ratio: 16 / 10; position: relative; background-size: cover; background-position: center; }
.thumb .tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.tone-wood { background-image: linear-gradient(160deg, rgba(255,255,255,.0) 40%, rgba(41,41,41,.08)), url("../images/hero.svg"); }
.tone-green { background-image: linear-gradient(160deg, rgba(120,129,109,.25), rgba(120,129,109,.05)), url("../images/hero.svg"); background-position: 70% center; }
.tone-stone { background-image: linear-gradient(160deg, rgba(69,69,69,.25), rgba(69,69,69,.02)), url("../images/hero.svg"); background-position: 30% center; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 18px; letter-spacing: .04em; }
.card-meta { font-size: 14px; color: var(--text-2); }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.price { font-size: 24px; font-weight: 700; color: var(--accent-dark); }
.price small { font-size: 14px; font-weight: 500; margin-left: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--bg); color: var(--charcoal); border: 1px solid var(--line); }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; color: var(--text-2); background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line); }

/* Areas */
.areas-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
.area-map {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px;
  background:
    linear-gradient(90deg, rgba(216,213,207,.6) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(0deg, rgba(216,213,207,.6) 1px, transparent 1px) 0 0 / 40px 40px,
    #EFEDE8;
  border: 1px solid var(--line);
}
.area-map .road { position: absolute; background: #fff; }
.pin {
  position: absolute; transform: translate(-50%, -100%); border: 0; background: none; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.pin b { background: var(--text); color: #fff; font-size: 13px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; transition: background .2s; }
.pin i { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(185,146,104,.25); }
.pin.active b, .pin:hover b { background: var(--accent-dark); }
.area-list { display: grid; gap: 14px; }
.area-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s; text-align: left; width: 100%;
}
.section-alt .area-item { background: var(--bg); }
.area-item.active { border-color: var(--accent); box-shadow: var(--shadow); }
.area-item h3 { font-size: 18px; display: flex; justify-content: space-between; gap: 10px; }
.area-item p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.area-item .chips { margin-top: 10px; }
.area-item .communities { font-size: 14px; margin-top: 10px; color: var(--charcoal); }
.area-item .communities b { color: var(--accent-dark); font-weight: 600; }
.area-item a { font-size: 14px; color: var(--accent-dark); }

/* Results */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat strong { font-size: 34px; color: var(--text); display: block; line-height: 1.2; }
.stat span { color: var(--text-2); font-size: 14px; }
.deals { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.deals th, .deals td { padding: 14px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.deals th { background: #F0EEEA; font-weight: 600; font-size: 14px; color: var(--text-2); }
.deals tr:last-child td { border-bottom: 0; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.quote-card p { font-size: 16px; color: var(--charcoal); }
.quote-card .stars { color: var(--accent); letter-spacing: 2px; }
.quote-card footer { margin-top: auto; font-size: 14px; color: var(--text-2); }
.quote-card footer b { color: var(--text); margin-right: 6px; }

/* Tools */
.tools-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.calc h3 { font-size: 20px; }
.calc .hint { font-size: 14px; color: var(--text-2); margin: 6px 0 20px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); height: 46px; padding: 0; background: none; border: 0; }
.range-row output { min-width: 52px; font-weight: 700; color: var(--accent-dark); text-align: right; }
.calc-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.calc-result div { background: var(--bg); border-radius: 12px; padding: 14px; }
.calc-result span { font-size: 13px; color: var(--text-2); display: block; }
.calc-result strong { font-size: 22px; display: block; line-height: 1.3; word-break: break-all; }
.calc-result .hl strong { color: var(--accent-dark); }
.calc .disclaimer { font-size: 13px; color: var(--muted); margin-top: 16px; }
.tool-links { display: grid; gap: 12px; }
.tool-link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  transition: border-color .2s;
}
.tool-link:hover { border-color: var(--accent); }
.tool-link b { display: block; font-size: 16px; }
.tool-link span { font-size: 14px; color: var(--text-2); }
.tool-link .ext { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--accent-dark); }

/* Company */
.company {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: var(--text); color: #fff; border-radius: 20px; padding: 36px 40px;
}
.company p { color: #CFCAC2; margin-top: 6px; }
.company .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.company .btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 14px; margin-top: 24px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--bg); border-radius: var(--radius); text-decoration: none; }
.contact-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card b { display: block; }
.contact-card span { font-size: 14px; color: var(--text-2); }
.form { background: var(--bg); border-radius: 18px; padding: 28px; display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .field input, .form .field select, .form .field textarea { background: var(--surface); }
.form-msg { font-size: 14px; color: var(--green); min-height: 1.5em; }

/* Footer */
.site-footer { background: #232323; color: #BDB8B0; padding: 48px 0 110px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer strong { color: #fff; font-size: 16px; letter-spacing: .1em; }
.site-footer a { color: #E8E1D6; }

/* Sticky contact bar (every page) */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
}
.sticky-bar .btn { flex: 1; }
.float-line {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: var(--line-green); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(6,199,85,.35);
}
.float-line svg { width: 30px; height: 30px; }

/* ---------- Property detail page ---------- */
.breadcrumb { font-size: 14px; color: var(--text-2); padding: 24px 0 0; }
.breadcrumb a { color: var(--text-2); }
.detail { padding: 24px 0 80px; }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.detail-photo { aspect-ratio: 16 / 10; border-radius: 18px; background-size: cover; background-position: center; }
.detail h1 { font-size: clamp(24px, 3vw, 34px); margin: 22px 0 8px; }
.detail .lead { color: var(--text-2); }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.spec div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.spec span { display: block; font-size: 13px; color: var(--text-2); }
.spec b { font-size: 17px; }
.side-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 14px; }
.side-card .price { font-size: 36px; }
.side-card .agent { display: flex; gap: 14px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.side-card .agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.side-card .agent span { font-size: 13px; color: var(--text-2); display: block; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 8px; font-size: 14px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .listings, .testimonials, .why-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .header-cta .btn-dark { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1; box-shadow: var(--shadow);
  }
  .nav a { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-open .nav { transform: none; }
  .hero-grid, .about-grid, .areas-grid, .tools-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .hero { padding: 24px 0 48px; }
  .hero-grid { gap: 28px; }
  .hero-visual { order: -1; aspect-ratio: 16 / 9; }
  .side-card { position: static; }
  .hero-grid:has(.hero-banner) { grid-template-columns: 1fr; gap: 24px; }
  .hero-banner { order: -1; }
  .float-line { display: none; }
  .sticky-bar { display: flex; }
  section { padding: 64px 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 60px; }
  body { font-size: 15px; }
  .brand-text small { display: none; }
  .header-cta .btn-line { padding: 0 14px; min-height: 40px; font-size: 14px; }
  .hero-visual { display: none; }
  .hero-banner { margin: 0 calc(var(--gutter) * -1); }
  .hero-banner img { border-radius: 0; }
  .hero:has(.hero-banner) { padding-top: 0; background: none; }
  .hero-grid:has(.hero-banner) .hero-profile { margin-bottom: 14px; }
  .hero { padding: 20px 0 40px; background: linear-gradient(180deg, #ECEAE5 0, var(--bg) 220px); }
  .avatar { width: 92px; height: 92px; }
  .hero-name strong { font-size: 22px; }
  .hero-actions .btn { flex: 1 1 140px; }
  .services, .listings, .testimonials, .stats, .calc-fields, .form .row, .why-row { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 14px 10px; text-align: center; }
  .stat strong { font-size: 24px; }
  .stat span { font-size: 12px; }
  .calc-result { grid-template-columns: 1fr; }
  .calc, .form { padding: 20px; }
  .company { grid-template-columns: 1fr; padding: 28px 22px; }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .area-map { min-height: 260px; }
  .filters { padding: 14px; }
  .field { min-width: 0; flex: 1 1 100%; }
  .result-count { margin-left: 0; }
  /* deals table → stacked cards */
  .deals, .deals tbody, .deals tr, .deals td { display: block; width: 100%; }
  .deals thead { display: none; }
  .deals { border: 0; background: none; }
  .deals tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; margin-bottom: 10px; }
  .deals td { border: 0; padding: 4px 14px; display: flex; justify-content: space-between; gap: 12px; }
  .deals td::before { content: attr(data-label); color: var(--text-2); font-size: 13px; }
}
