/* หน้าตาเว็บ บริษัท บ้านทวีทรัพย์ จำกัด — แบบอ้างอิง B นิตยสาร (design/comps/แบบอ้างอิง.png)
   พื้นครีมสว่าง · ส้มอิฐ #b4471f · ทองจากโลโก้ · ฟอนต์ Kanit (ลูกค้าเลือก) · เลขกำกับส่วน 01/02/03 · เส้นบาง
   กฎเหล็ก: ทุกส่วนต้องยังสวยเมื่อข้อความสั้นมากหรือยาวมาก และต้องไม่ล้นจอที่ 360px */

:root {
  --accent: #b4471f;
  --accent-ink: #ffffff;
  --accent-dark: #8a3214;
  --brick-deep: #6e2a12;
  --accent-soft: #f6e6da;
  --gold: #c9973a;
  --gold-soft: #f3e3bf;
  --ink: #2b211c;
  --muted: #6d5d53;
  --paper: #fbf6ef;
  --paper-2: #f4ebdf;
  --card: #ffffff;
  --line: #e6d8c7;
  --radius: 14px;
  --font: 'Kanit', 'Noto Sans Thai', system-ui, sans-serif;
  --display: var(--font);
  --gap: clamp(56px, 8vw, 104px);
  --pad: clamp(16px, 4vw, 32px);
  --max: 1200px;
  --shadow: 0 1px 2px rgba(70, 35, 15, .06), 0 8px 24px -12px rgba(70, 35, 15, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16.5px; line-height: 1.7; font-weight: 300; -webkit-text-size-adjust: 100%;
}
b, strong { font-weight: 500; }
img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.42; margin: 0; text-wrap: balance; font-weight: 500; }
svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; }
svg.ic-line { stroke: none; }
small { font-size: 14px; }
.nw { white-space: nowrap; }
@media (max-width: 380px) { .nw { white-space: normal; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: var(--gap); }

/* ---------- หัวส่วนแบบนิตยสาร: 01 | หัวข้อ ———— ลิงก์ ---------- */
.sec-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.sec-title { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 18px); flex-wrap: wrap; }
.sec-no {
  font-size: clamp(34px, 4.6vw, 54px); font-weight: 500; font-style: italic; color: var(--accent);
  line-height: 1.4; letter-spacing: -.02em; padding-right: clamp(10px, 1.6vw, 18px); border-right: 2px solid var(--accent);
}
.sec-title h1, .sec-title h2 { font-size: clamp(24px, 3.4vw, 38px); }
.sec-rule { flex: 1; min-width: 40px; height: 1px; background: var(--line); }
.sec-intro { color: var(--muted); margin: 12px 0 0; max-width: 62ch; font-size: 17px; }
.sub-h { font-size: 20px; margin: clamp(32px, 4vw, 48px) 0 18px; display: flex; align-items: center; gap: 12px; }
.sub-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 400;
  text-decoration: none; font-size: 15.5px; white-space: nowrap;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font: inherit; font-size: 16.5px; font-weight: 400;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--accent); transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  min-height: 48px; box-shadow: 0 6px 16px -8px rgba(180, 71, 31, .7);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); box-shadow: none; }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-light { background: #fff; color: var(--accent-dark); border-color: #fff; }
.btn-light:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-line { background: #06c755; border-color: #06c755; box-shadow: none; }
.btn-line:hover { background: #05a948; border-color: #05a948; }

/* ---------- แถบบน + หัวเว็บ ---------- */
.topbar { background: var(--brick-deep); color: #f8e9dc; font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.tb-info, .tb-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tb-info > * { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.tb-info svg { width: 16px; height: 16px; color: var(--gold-soft); }
.tb-links a { text-decoration: none; opacity: .88; }
.tb-links a:hover, .tb-info a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* หัวเว็บ: ห้ามใส่ backdrop-filter / transform (เมนูมือถืออยู่นอกหัวเว็บอยู่แล้ว) */
.nav { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.logo b { display: block; font-size: 19px; font-weight: 500; color: var(--accent-dark); line-height: 1.42; }
.logo small { display: block; font-size: 14px; color: var(--muted); line-height: 1.42; }
.nav-main { margin-inline-start: auto; display: flex; gap: 2px; }
.nav-main a {
  text-decoration: none; padding: 8px 12px; font-size: 16px; color: var(--ink); position: relative; white-space: nowrap;
}
.nav-main a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform .2s ease; transform-origin: left;
}
.nav-main a:hover::after, .nav-main a[aria-current="page"]::after { transform: scaleX(1); }
.nav-main a[aria-current="page"] { color: var(--accent); }
.nav-cta { padding: 10px 20px; min-height: 44px; font-size: 15.5px; white-space: nowrap; flex: none; }
.nav-cta svg { width: 18px; height: 18px; }
.nav-toggle {
  display: none; margin-inline-start: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* เมนูมือถือเต็มจอ — อยู่นอกหัวเว็บ */
.mnav { position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav-in { padding: 20px var(--pad) 40px; display: grid; gap: 20px; }
.mnav-close { justify-self: end; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.mnav nav { display: grid; }
.mnav nav a { text-decoration: none; font-size: 21px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mnav nav a[aria-current="page"] { color: var(--accent); }
.mnav-btns { display: grid; gap: 10px; }
body.nav-open { overflow: hidden; }

/* ---------- แบนเนอร์หน้าแรก (นิตยสาร) ---------- */
.hero { position: relative; }
.hx-editorial { padding-block: clamp(28px, 5vw, 64px) clamp(28px, 4vw, 48px); overflow: hidden; }
.hx-editorial .hx-grid, .hx-page .hx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 15.5px; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); }
.hx-editorial h1, .hx-editorial .h1 { font-size: clamp(36px, 5.6vw, 66px); line-height: 1.42; color: var(--accent-dark); letter-spacing: -.01em; }
.hx-editorial .h1 { font-family: var(--display); margin: 0; text-wrap: balance; font-weight: 500; }
.hx-bar { display: block; width: 110px; height: 4px; background: linear-gradient(90deg, var(--gold), var(--accent)); border-radius: 2px; margin: 20px 0 18px; }
.hx-sub { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); margin: 0 0 26px; max-width: 46ch; }
.hx-sub p { margin: 0 0 10px; }
.hx-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hx-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; text-decoration: none; font-size: 20px; color: var(--ink); font-weight: 400; }
.hx-phone svg { color: var(--accent); }
.hx-pic { position: relative; }
.hx-editorial .hx-pic::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--gold); border-radius: var(--radius); z-index: 0;
}
.hx-editorial .hx-pic img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 70% 60%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* แบนเนอร์หลายสไลด์: รูปและข้อความซ้อนกันในช่องเดียว เฟดสลับ */
.hx-stack, .hx-ts { display: grid; }
.hx-s, .hx-t { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.hx-s.on, .hx-t.on { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.hx-s { display: block; position: relative; z-index: 1; }
.hx-multi .hx-pic img { object-position: 50% 62%; }
.hx-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; }
.hx-dots button { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hx-dots button::before { content: ''; width: 10px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .6); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: width .3s ease, background .3s ease; }
.hx-dots button[aria-current="true"]::before { width: 26px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .hx-s, .hx-t, .hx-s.on, .hx-t.on { transition: none; } }

/* หัวหน้ารอง */
.hx-page { padding-block: clamp(28px, 4.5vw, 56px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.hx-page .hx-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hx-page .wrap:not(.hx-grid) .hx-text { max-width: 760px; }
.hx-no { display: inline-block; font-size: 14.5px; color: var(--accent); border-top: 2px solid var(--accent); padding-top: 6px; margin-bottom: 14px; letter-spacing: .02em; }
.hx-page h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.42; color: var(--accent-dark); margin-bottom: 14px; }
.hx-page .hx-pic img { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hx-page .hx-pic .map { aspect-ratio: 4 / 3; }

/* ---------- ช่องค้นหาด่วน ---------- */
.qsearch { position: relative; z-index: 2; }
.qs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: 18px; box-shadow: var(--shadow);
}
.qs-q { grid-column: 1 / -1; position: relative; display: block; }
.qs-q svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--accent); pointer-events: none; }
.qs-q input { padding-left: 48px; min-height: 54px; }
select, input, textarea {
  font: inherit; font-size: 16px; font-weight: 300; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; width: 100%; min-height: 48px;
}
select { appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4471f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- แถบความเชื่อมั่น ---------- */
.trust { padding-block: clamp(22px, 3vw, 34px); }
.trust-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.trust-row li { display: flex; gap: 12px; align-items: center; padding: 6px clamp(10px, 2vw, 24px); }
.trust-row li + li { border-left: 1px solid var(--line); }
.trust-row h3 { font-size: 16.5px; }
.trust-row p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.feature-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.feature-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }

/* ---------- การ์ดทรัพย์ ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 26px); }
.pcard {
  background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(70,35,15,.06), 0 16px 32px -14px rgba(70,35,15,.28); }
/* รูปทรัพย์หลายสัดส่วน (โปสเตอร์ แนวตั้ง แนวนอน) — ไม่ครอป วางบนพื้นครีม */
.pcard-pic { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); display: block; }
.pcard-pic img { width: 100%; height: 100%; object-fit: contain; }
.nopic { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--accent); background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, #efe2d2 14px 15px); }
.nopic svg { width: 44px; height: 44px; stroke-width: 1.3; }
.nopic small { font-size: 14px; color: var(--muted); }
.chip { position: absolute; top: 12px; font-size: 14px; padding: 3px 12px; border-radius: 999px; line-height: 1.6; }
.chip-deal { left: 12px; background: var(--accent); color: #fff; }
/* ลูกค้าสั่ง (แก้ด่วน 1334 + รอบแก้ 3): โลโก้มุมซ้ายบน · ป้ายรหัสทรัพย์มุมขวาล่าง ทรงสี่เหลี่ยมมุมมน */
.chip-code {
  top: auto; bottom: 12px; left: auto; right: 12px; z-index: 2; font-weight: 500; letter-spacing: .02em; display: inline-flex; align-items: baseline; gap: 6px;
  border-radius: 8px; padding: 4px 12px; max-width: calc(100% - 84px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.chip-code small { font-size: inherit; font-weight: inherit; letter-spacing: 0; }
.chip-st { right: 12px; background: var(--gold); color: #fff; }
.pcard-pic .chip-st { top: auto; bottom: 12px; left: 12px; right: auto; }
.pic-logo { position: absolute; left: 10px; top: 10px; z-index: 2; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); pointer-events: none; }
.pcard-pic .pic-logo img, .pgal-main .pic-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgal-main .pic-logo { width: 64px; height: 64px; left: 14px; top: 14px; border-radius: 12px; }
.chip-st-inline { background: var(--gold); color: #fff; border-radius: 999px; padding: 0 10px; }
.pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-meta { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.code { font-weight: 500; color: var(--accent); background: var(--accent-soft); padding: 1px 9px; border-radius: 6px; letter-spacing: .03em; }
.pcard h3 { font-size: 18px; line-height: 1.4; }
.pcard h3 a { text-decoration: none; }
.pcard h3 a::after { content: ''; position: absolute; inset: 0; }
.pcard { position: relative; }
.pcard-place { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.pcard-place svg { width: 17px; height: 17px; color: var(--accent); margin-top: 2px; }
.pcard-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14.5px; color: var(--ink); margin-top: 4px; }
.pcard-specs span { display: inline-flex; align-items: center; gap: 5px; }
.pcard-specs svg { width: 18px; height: 18px; color: var(--accent); }
.pcard-specs.big { gap: 10px 26px; font-size: 16.5px; padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.pcard-specs.big svg { width: 22px; height: 22px; }
.pcard-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price { color: var(--accent); font-size: 21px; font-weight: 500; }
.price small { font-size: 14px; font-weight: 300; }
.pnote { font-size: 14px; color: var(--muted); }

/* ---------- เกี่ยวกับ / สินเชื่อ (แยกซ้ายขวา) ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about.pic-right .about-pic { order: 2; }
.about-pic img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text .sec-title { margin-bottom: 18px; }
.about-text p { color: var(--muted); margin: 0 0 16px; font-size: 17px; }
.about-text .btn { margin-top: 8px; }
.about-sec:nth-of-type(even) { background: var(--paper-2); }

/* ---------- ขั้นตอน ---------- */
.sec-steps { background: var(--card); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: clamp(16px, 2.4vw, 28px); counter-reset: s; position: relative; }
.steps li { display: grid; gap: 12px; align-content: start; position: relative; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 24px; left: 60px; right: -10px; height: 1px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); }
.step-n { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 500; box-shadow: 0 0 0 6px var(--accent-soft); }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.fx-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fx-rows li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: clamp(18px, 3vw, 26px) 0; border-bottom: 1px solid var(--line); }
.fx-n { font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; font-style: italic; color: var(--accent); line-height: 1.4; }
.fx-rows h3 { font-size: clamp(18px, 2vw, 21px); margin-bottom: 4px; }
.fx-rows p { margin: 0; color: var(--muted); }
.features-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 24px); }
.feature { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature h3 { font-size: 17.5px; margin-bottom: 3px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.fx-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fx-cell { background: var(--card); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.fx-cell.fx-big { grid-row: span 2; background: var(--accent); color: #fff; }
.fx-cell p { margin: 0; color: var(--muted); }
.fx-cell.fx-big p { color: inherit; opacity: .88; }

/* ---------- ผลงาน: ลูกค้ารับโฉนดจริง (พื้นอิฐ) ---------- */
.sec-brick { background: var(--accent); color: #fff; }
.sec-brick .sec-no { color: var(--gold-soft); border-color: var(--gold-soft); }
.sec-brick .sec-rule { background: rgba(255,255,255,.3); }
.sec-brick .sec-intro { color: rgba(255,255,255,.85); }
.deeds { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(14px, 2vw, 22px); align-items: start; }
.deed { margin: 0; }
.deed a { display: block; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.12); }
.deed img { width: 100%; height: auto; transition: transform .35s ease; }
.deed a:hover img { transform: scale(1.03); }
.deed figcaption { padding-top: 8px; font-size: 14.5px; line-height: 1.45; }
.deed figcaption b { display: block; font-weight: 400; }
.deed figcaption span { opacity: .8; font-size: 14px; }
.deed video { margin-top: 8px; border-radius: 10px; }
.deed-more { columns: 2; column-gap: clamp(10px, 1.6vw, 18px); }
.deed-more .deed { break-inside: avoid; margin-bottom: clamp(10px, 1.6vw, 18px); }

/* ---------- โครงการ / ทำเล ---------- */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gcard { display: grid; grid-template-columns: 120px 1fr; gap: 14px; text-decoration: none; background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); align-items: center; transition: transform .2s ease; }
.gcard:hover { transform: translateY(-2px); }
.gcard-pic { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.gcard-pic img { width: 100%; height: 100%; object-fit: cover; }
.gcard-body { display: grid; gap: 2px; font-size: 14.5px; color: var(--muted); }
.gcard-body b { font-size: 17px; color: var(--ink); font-weight: 500; }
.gcard-body span { display: inline-flex; gap: 4px; align-items: center; }
.gcard-body svg { width: 15px; height: 15px; color: var(--accent); }
.gcard-body .price { font-size: 16px; }
.lchips { display: flex; flex-wrap: wrap; gap: 10px; }
.lchip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px 8px 12px; transition: border-color .15s ease, background .15s ease; }
.lchip:hover { border-color: var(--accent); background: var(--accent-soft); }
.lchip svg { color: var(--accent); width: 18px; height: 18px; }
.lchip b { font-weight: 400; }
.lchip span, .lchip small { color: var(--muted); font-size: 14px; }

/* ---------- ตารางราคา ---------- */
.ptable-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); }
.ptable { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.ptable th { background: var(--accent); color: #fff; font-weight: 400; text-align: left; padding: 13px 16px; }
.ptable td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.ptable tr:nth-child(even) td { background: #fdf9f4; }
.ptable a { text-decoration: none; }
.ptable a:hover { color: var(--accent); text-decoration: underline; }
.ptable .r { text-align: right; }
.ptable .price { font-size: 17px; }
.ptable .pnote { display: block; }
.note { color: var(--muted); font-size: 14.5px; margin: 14px 0 0; }

/* ---------- โปสเตอร์โปรโมชั่น ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: start; }
.promo-card { margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.promo-pic { display: block; background: var(--paper-2); }
.promo-pic img { width: 100%; height: auto; }
.promo-card figcaption { padding: 14px 16px 16px; display: grid; gap: 4px; }
.promo-card h3 { font-size: 17px; }
.promo-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq-wrap { max-width: 900px; }
.faq details { background: var(--card); border-radius: 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(70,35,15,.06); border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 400; position: relative; list-style: none; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 20px; line-height: 1.4; }
.faq details[open] summary::after { content: '−'; }
.faq .faq-a { padding: 0 20px 18px; color: var(--muted); margin: 0; white-space: pre-line; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding-block: clamp(44px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-dark { background: var(--brick-deep); color: #fff; }
.cta-dark::before { content: ''; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(201,151,58,.35); }
.cta-soft { background: var(--accent-soft); }
.cta-band h2 { font-size: clamp(22px, 3.2vw, 34px); margin: 0 auto 22px; max-width: 30ch; position: relative; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- ติดต่อ ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 52px); }
.contact-note { color: var(--muted); margin: 0 0 18px; font-size: 17px; }
.contact-list { display: grid; gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list li > svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.contact-list li > svg.ic-line { color: #06c755; background: #e6f8ee; }
.contact-list small { display: block; color: var(--muted); font-size: 14px; line-height: 1.42; }
.contact-list a { text-decoration: none; font-size: 17.5px; font-weight: 400; }
.contact-list a:hover { color: var(--accent); }
.hours { margin: 0; padding: 0; list-style: none; font-size: 15px; max-width: 340px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours .closed { color: var(--muted); }
.map { border: 0; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); display: block; background: var(--paper-2); }
.map-wrap { margin-top: 28px; }

/* ---------- ฟอร์ม ---------- */
form.lead, form.inq, form.consign { display: grid; gap: 14px; background: var(--card); border-radius: calc(var(--radius) + 4px); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); }
form label { font-size: 15px; font-weight: 400; display: block; margin-bottom: 6px; }
form textarea { min-height: 110px; resize: vertical; }
form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
form .msg { font-size: 15px; margin: 0; }
form .msg:empty { display: none; }
form .msg.ok { color: #1d7a3a; background: #e7f6ec; padding: 10px 14px; border-radius: 10px; }
form .msg.bad { color: #b42318; background: #fdecea; padding: 10px 14px; border-radius: 10px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.span2 { grid-column: span 2; }
.span3 { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
form.consign legend { font-size: 18px; font-weight: 500; color: var(--accent-dark); margin-bottom: 12px; padding: 0; }
form.consign fieldset + fieldset { border-top: 1px dashed var(--line); padding-top: 18px; }
form small { color: var(--muted); font-size: 14px; display: block; margin-top: 4px; }
.filebox { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 48px; border: 1px dashed var(--accent); border-radius: 10px; padding: 8px 12px; background: var(--paper); }
.filebox input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.filebox:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
.filebtn { background: var(--accent); color: #fff; border-radius: 999px; padding: 6px 16px; font-size: 15px; }
.filecount { color: var(--muted); font-size: 15px; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-size: 15px; }
.consent input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }

/* ---------- ตัวกรองหน้าค้นหา ---------- */
.filters { background: var(--card); border-radius: calc(var(--radius) + 4px); padding: clamp(16px, 2.6vw, 24px); box-shadow: var(--shadow); display: grid; gap: 14px; }
.fl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.fl-q { grid-column: span 2; }
@media (min-width: 1061px) { .filters > .fl-row { grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr)); } .filters > .fl-row .fl-q { grid-column: auto; } }
.fl label { font-size: 14px; color: var(--muted); }
.fl-more summary { cursor: pointer; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; list-style: none; font-size: 15.5px; }
.fl-more summary::-webkit-details-marker { display: none; }
.fl-more[open] summary { margin-bottom: 14px; }
.amen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.amen legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.amen label { margin: 0; cursor: pointer; }
.amen input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amen span { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; background: var(--paper); transition: all .15s ease; }
.amen input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.amen input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fl-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.link-reset { color: var(--muted); font-size: 15px; }
.res-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 16px; flex-wrap: wrap; }
.res-bar p { margin: 0; color: var(--muted); }
.res-bar b { color: var(--ink); font-size: 20px; }
.sort { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; margin: 0; }
.sort select { width: auto; min-width: 190px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; background: var(--card); }
.pager span { background: var(--accent); color: #fff; border-color: var(--accent); }
.empty { text-align: center; padding: clamp(36px, 6vw, 64px) 20px; background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line); }
.empty > svg { width: 52px; height: 52px; color: var(--accent); margin: 0 auto 10px; stroke-width: 1.3; }
.empty p { margin: 0 auto 6px; max-width: 52ch; font-size: 17.5px; }
.empty .empty-sub { color: var(--muted); font-size: 15.5px; }
.empty-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- หน้ารายละเอียดทรัพย์ ---------- */
.sec-prop { padding-top: clamp(20px, 3vw, 36px); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--accent); }
.prop-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 22px; }
.prop-head h1 { font-size: clamp(25px, 3.4vw, 38px); color: var(--accent-dark); margin: 6px 0; max-width: 28ch; }
.prop-price { display: grid; justify-items: end; gap: 4px; }
.prop-price .price { font-size: clamp(26px, 3.4vw, 36px); }
.loan-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-soft); color: #6b4a10; border-radius: 999px; padding: 4px 14px; font-size: 14.5px; }
.loan-badge svg { width: 17px; height: 17px; }
.prop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(22px, 3.5vw, 44px); align-items: start; }
.pgal { display: grid; gap: 10px; }
.pgal-main { position: relative; display: block; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.pgal-main img { width: 100%; height: 100%; object-fit: contain; }
.pgal-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pgal-thumbs a { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper-2); display: block; }
.pgal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
/* ลูกค้าสั่ง (รอบแก้ 3): โลโก้ทุกรูปในแกลเลอรี */
.pgal-thumbs .pic-logo { width: 28px; height: 28px; left: 6px; top: 6px; border-radius: 6px; }
dialog.light .lb-logo { position: absolute; left: 12px; top: 12px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); pointer-events: none; }
dialog.light .lb-logo[hidden] { display: none; }
dialog.light .lb-logo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 0; display: block; }
.h-sm { font-size: 21px; margin: 30px 0 12px; color: var(--accent-dark); }
.checks, .amen-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px; }
.checks li, .amen-list li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg, .amen-list svg { color: #fff; background: var(--accent); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; stroke-width: 2.4; }
.prop-desc p { margin: 0 0 14px; color: var(--muted); font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 400; }
.video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.prop-map .link-arrow { margin-top: 10px; }
.prop-side { position: sticky; top: 100px; display: grid; gap: 14px; }
.agent { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.agent-pic { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.agent-ph { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.agent small { display: block; color: var(--muted); font-size: 14px; }
.agent b { display: block; font-size: 17.5px; }
.agent span { color: var(--muted); }
.agent-btns { display: grid; gap: 10px; }
form.inq .h-sm { margin: 0; }
.inq-code { margin: 0; color: var(--muted); }
.inq-code b { color: var(--accent); }

/* ---------- บทความ ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bcard { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.bcard-pic { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); display: block; }
.bcard-pic img { width: 100%; height: 100%; object-fit: cover; }
.bcard-body { padding: 18px; display: grid; gap: 8px; }
.bcard h2 { font-size: 19px; }
.bcard h2 a { text-decoration: none; }
.bcard p { margin: 0; color: var(--muted); font-size: 15.5px; }
.a-wrap { max-width: 780px; }
.a-wrap h1 { font-size: clamp(27px, 4.2vw, 42px); margin-bottom: 12px; color: var(--accent-dark); }
.a-meta { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.a-cover { margin: 0 0 26px; }
.a-cover img { width: 100%; border-radius: var(--radius); }
.a-lead { font-size: 18.5px; color: var(--muted); margin: 0 0 26px; line-height: 1.8; }
.a-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; }
.a-toc b { display: block; font-size: 15px; margin-bottom: 8px; }
.a-toc ol { margin: 0; padding-inline-start: 20px; }
.a-toc a { color: var(--muted); text-decoration: none; }
.a-toc a:hover { color: var(--accent); text-decoration: underline; }
.a-body > * { margin-block: 0 20px; }
.a-body h2 { font-size: clamp(22px, 3vw, 28px); margin-block: 40px 14px; scroll-margin-top: 100px; color: var(--accent-dark); }
.a-body h3 { font-size: clamp(18px, 2.4vw, 21px); margin-block: 28px 10px; }
.a-body p, .a-body li { line-height: 1.9; font-size: 17.5px; }
.a-body a:not(.btn) { color: var(--accent); text-underline-offset: 3px; padding-block: 10px; }
.a-body ul, .a-body ol { padding-inline-start: 24px; }
.a-body blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-inline-start: 3px solid var(--accent); }
.a-fig { margin: 28px 0; }
.a-fig img { width: 100%; border-radius: var(--radius); }
.a-fig figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.a-cta { background: var(--accent-soft); border-radius: var(--radius); padding: 24px; text-align: center; margin: 32px 0; }
.a-cta p { margin: 0 0 14px; }
.a-embed { margin: 32px 0; }
.a-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.a-related li a { display: block; padding: 13px 16px; background: var(--card); border-radius: 10px; text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card-pic { aspect-ratio: 4 / 3; background: var(--paper-2); }
.card-pic img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 14px; }
.rt, .rt-wide { max-width: 780px; }
.rt-wide { max-width: none; }
.rt p, .rt-wide p { color: var(--muted); font-size: 17px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.quote { margin: 0; background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.quote p { margin: 0 0 14px; }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote b { display: block; }
.quote span span { color: var(--muted); font-size: 14px; }

/* ---------- รูปขนาดใหญ่ ---------- */
dialog.light { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog.light::backdrop { background: rgba(25, 14, 8, .9); }
dialog.light img { max-height: 88vh; max-width: 92vw; width: auto; border-radius: 10px; }
dialog.light button { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 28px; line-height: 1.4; cursor: pointer; }
dialog.light button[hidden] { display: none; }
dialog.light .lb-x { top: 16px; right: 16px; }
dialog.light .lb-p { left: 12px; top: 50%; transform: translateY(-50%); }
dialog.light .lb-n { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--brick-deep); color: #f8e9dc; padding-block: clamp(40px, 6vw, 64px) 24px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); }
.foot-brand img { width: 72px; height: 72px; border-radius: 12px; margin-bottom: 12px; }
.foot-brand b { font-size: 19px; display: block; color: #fff; }
.foot p { margin: 4px 0 0; opacity: .82; font-size: 15px; }
.foot-about { max-width: 40ch; }
.foot-h { font-size: 17px; color: var(--gold-soft); margin-bottom: 12px; font-weight: 400; }
.foot-nav { display: grid; gap: 4px; }
.foot-nav a, .foot-contact a { text-decoration: none; opacity: .88; }
.foot-nav a:hover, .foot-contact a:hover { opacity: 1; text-decoration: underline; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { width: 18px; height: 18px; margin-top: 4px; color: var(--gold-soft); }
.foot .social { display: flex; gap: 10px; margin-top: 16px; }
.foot .social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.foot .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; opacity: .7; font-size: 14px; }

/* ---------- ปุ่มติดต่อลอย (ทุกหน้า ทุกจอ) ---------- */
.float-contact { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; gap: 10px; }
.fc { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: #fff; box-shadow: 0 8px 20px -6px rgba(0,0,0,.35); transition: transform .15s ease; }
.fc:hover { transform: scale(1.06); }
.fc svg { width: 28px; height: 28px; }
.fc span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fc-line { background: #06c755; }
.fc-call { background: var(--accent); }

/* ---------- เคลื่อนไหวเมื่อเลื่อนถึง ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .5s ease var(--d, 0ms), transform .5s ease var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.pcard.rv.in:hover { transform: translateY(-3px); }

/* พื้นที่กดของลิงก์บนมือถืออย่างน้อย 44px (นิ้วกดง่าย) */
.skip { min-height: 44px; }
.tb-info a, .tb-links a, .hx-phone, .link-arrow, .ptable a, .foot-nav a, .foot-contact a, .contact-list a, .crumbs a, .link-reset {
  min-height: 44px; display: inline-flex; align-items: center;
}
.tb-info > * { min-height: 44px; }
.topbar .wrap { min-height: 44px; }
.foot-nav { gap: 0; }
.hx-phone { margin-top: 12px; }

/* ---------- จอกลาง ---------- */
@media (max-width: 1180px) {
  .nav-main a { padding: 8px 9px; font-size: 15px; }
  .logo small { display: none; }
}
@media (max-width: 1060px) {
  .nav-main, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .tb-links { display: none; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prop-grid { grid-template-columns: 1fr; }
  .prop-side { position: static; }
  .qs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qs .btn { grid-column: 1 / -1; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hx-editorial .hx-grid, .hx-page .hx-grid { grid-template-columns: 1fr; }
  .hx-editorial .hx-pic { order: -1; }
  .hx-editorial .hx-pic::before { inset: 10px -10px -10px 10px; }
  .hx-editorial .hx-pic img { max-height: 62vh; }
  .about { grid-template-columns: 1fr; }
  .about.pic-right .about-pic { order: 0; }
  .about-pic { max-width: 520px; }
  .hx-page .hx-pic { max-width: 560px; }
  .contact { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
  .trust-row li:nth-child(odd) { border-left: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .deeds { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .f3 { grid-template-columns: 1fr 1fr; }
  .span2 { grid-column: 1 / -1; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- มือถือ ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .tb-mail, .topbar .tb-info > span { display: none; }
  .topbar .wrap { justify-content: center; }
  .nav .wrap { min-height: 66px; gap: 10px; }
  .logo img { width: 44px; height: 44px; }
  .logo b { font-size: 16px; }
  .hx-editorial h1, .hx-editorial .h1 { font-size: clamp(32px, 9vw, 40px); }
  .hx-btns .btn { flex: 1 1 auto; }
  .qs { grid-template-columns: 1fr 1fr; padding: 14px; gap: 10px; }
  .qs select { padding-left: 12px; padding-right: 8px; }
  .pgrid { grid-template-columns: 1fr; }
  .pcard-pic { aspect-ratio: 4 / 3; }
  .pgal-main .pic-logo { width: 48px; height: 48px; left: 10px; top: 10px; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-row li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 6px 10px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 48px 1fr; align-items: start; }
  .deed-more { columns: 2; }
  .sec-rule { display: none; }
  .sec-title .link-arrow { flex-basis: 100%; }
  .f2, .f3 { grid-template-columns: 1fr; }
  .fl-q { grid-column: auto; }
  .gcard { grid-template-columns: 96px 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .prop-price { justify-items: start; }
  .float-contact { right: 12px; bottom: 12px; }
  .fc { width: 52px; height: 52px; }
  .sort select { min-width: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* โทนทั้งหน้า (theme.look) — งานนี้ใช้ editorial: มุมโค้งน้อย เส้นบาง */
.look-editorial { --radius: 6px; }
