/* PHOMI STONE prototype. Limestone grey ground, basalt ink, drafting-blue for measurement and action. */
:root {
  --bg: #e8e9e5;
  --paper: #f6f6f3;
  --stone-200: #dcdcd6;
  --line: #c9c9c1;
  --muted: #64665f;
  --ink: #1f2422;
  --ink-2: #3b403d;
  --blue: #2446c8;
  --blue-d: #1a3499;
  --blue-50: #e6eafa;
  --kakao: #fee500;
  --kakao-ink: #191919;
  --danger: #b3261e;
  --ok: #2f7a4a;
  --r: 4px;
  --wrap: 1240px;
  --gutter: 32px;
  --header: 72px;
  --font: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.7; font-weight: 400;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
p { margin: 0 0 0.9em; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
#app:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-s { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-kakao:hover { background: #f5dc00; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--blue); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.link-btn svg { width: 16px; height: 16px; }
.link-btn.danger { color: var(--danger); }
.text-link { color: var(--blue); font-weight: 500; font-size: 15px; text-underline-offset: 4px; white-space: nowrap; }

/* ---------- Demo bar + header ---------- */
.demo-bar { background: var(--ink); color: #d6d8d2; font-size: 13px; line-height: 1.5; padding: 8px 0; }
.demo-bar a { color: #fff; margin-left: 6px; }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 32px; height: var(--header); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 0.06em; text-decoration: none; white-space: nowrap; }
.logo-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 26px; height: 26px; }
.logo-mark i { background-size: cover; background-position: center; }
.gnb { display: flex; align-items: center; flex: 1; gap: 24px; }
.gnb ul { display: flex; list-style: none; margin: 0 auto; padding: 0; gap: 4px; }
.gnb-item { position: relative; }
.gnb-link { display: block; padding: 10px 14px; font-size: 15px; font-weight: 500; text-decoration: none; border-radius: var(--r); }
.gnb-link:hover { background: var(--stone-200); }
.gnb-item.is-active > .gnb-link { color: var(--blue); }
.gnb-toggle { display: none; }
.gnb-sub {
  position: absolute; top: 100%; left: 0; min-width: 180px; padding: 8px; margin-top: 4px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 12px 28px -12px rgba(31, 36, 34, .25);
  display: flex; flex-direction: column; visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.gnb-sub a, .gnb-sub button { display: block; width: 100%; text-align: left; padding: 9px 12px; font-size: 14px; text-decoration: none; border: 0; background: none; border-radius: 3px; }
.gnb-sub a:hover, .gnb-sub button:hover { background: var(--bg); }
.gnb-item:hover .gnb-sub, .gnb-item:focus-within .gnb-sub, .gnb-item.open .gnb-sub { visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; padding: 10px; border: 0; background: none; }

/* ---------- Page head + crumbs ---------- */
.phead { padding: 48px 0 0; }
.phead h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.025em; }
.phead-lead { max-width: 640px; margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs > * + *::before { content: '/'; margin-right: 6px; color: var(--line); }
.subtabs { margin-top: 36px; border-bottom: 1px solid var(--line); }
.subtabs nav { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subtabs a { padding: 12px 0 14px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subtabs a:hover { color: var(--ink); }
.subtabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.page-body { padding-top: 48px; padding-bottom: 112px; }
.page-body.narrow, .narrow { max-width: 860px; }
.phead + .page-body, .phead + .wrap { padding-top: 48px; }

/* ---------- Sections ---------- */
.sec { padding: 104px 0; }
.sec-s + .sec-s { margin-top: 88px; }
.sec-paper { background: var(--paper); }
.sec-dark { background: var(--ink); color: #eceee9; }
.sec-head { margin-bottom: 32px; max-width: 720px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.sec-head p { margin-top: 10px; color: var(--muted); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.note a { color: var(--blue); }
.empty { padding: 40px 24px; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; color: var(--muted); font-size: 15px; background: rgba(255,255,255,.25); }
.prose { max-width: 680px; }
.prose h2 { font-size: 26px; margin-bottom: 18px; }
.prose p { color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* ---------- Swatches + cards ---------- */
.sw { background-color: var(--stone-200); background-size: cover; background-position: center; }
.sw-43 { aspect-ratio: 4 / 3; }
.sw-sq { aspect-ratio: 1; }
.sw-tall { aspect-ratio: 5 / 4; }
.sw-wide { aspect-ratio: 16 / 9; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.pgrid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pgrid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcard { display: flex; flex-direction: column; text-decoration: none; }
.pcard .sw { margin-bottom: 14px; outline: 1px solid rgba(31,36,34,.06); outline-offset: -1px; }
.pcard-name { font-size: 17px; font-weight: 600; }
.pcard-meta { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pcard:hover .pcard-name { text-decoration: underline; text-underline-offset: 4px; }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.ccard { display: flex; flex-direction: column; text-decoration: none; }
.ccard-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone-200); }
.ccard-img > *, .cd-hero > * { width: 100%; height: 100%; }
.photo { background-size: cover; background-position: center; }
.scene .sc-sky { fill: #eceee9; }
.scene .sc-floor { fill: #d3cfc6; }
.scene .sc-edge { stroke: var(--ink); stroke-width: 2.5; }
.scene .sc-line { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.scene .sc-glass { fill: #c2ccd0; stroke: var(--ink); stroke-width: 1.6; }
.scene .sc-glare { fill: #e3e9eb; opacity: .55; }
.scene .sc-door, .scene .sc-roof, .scene .sc-top, .scene .sc-lamp { fill: #3a3f3d; stroke: var(--ink); stroke-width: 1.4; }
.scene .sc-solid { fill: #ebe8e1; stroke: var(--ink); stroke-width: 1.4; }
.ccard-body { display: flex; flex-direction: column; padding-top: 14px; }
.ccard-title { font-size: 17px; font-weight: 600; line-height: 1.45; }
.ccard:hover .ccard-title { text-decoration: underline; text-underline-offset: 4px; }
.ccard-meta { font-size: 14px; color: var(--muted); }
.ccard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ccard-tags span { font-size: 12px; line-height: 1; padding: 6px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; background: transparent; }
.chip span { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-current] span { color: #b9bcb5; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 96px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; }
.hero .lead { margin: 24px 0 32px; font-size: 18px; color: var(--ink-2); max-width: 30em; }
.hero-fig { margin: 0; }
.facade { width: 100%; height: auto; overflow: visible; }
.facade .glass { fill: #c2ccd0; stroke: var(--ink); stroke-width: 1.6; }
.facade .glare { fill: #e3e9eb; opacity: .55; pointer-events: none; }
.facade .mullion, .facade .outline { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.facade .ground { stroke: var(--ink); stroke-width: 2.4; }
.facade .frames { pointer-events: none; }
.facade .fz { cursor: pointer; }
.facade .fz-img { transition: filter .2s; }
.facade .fz:hover .fz-img, .facade .fz:focus-visible .fz-img { filter: brightness(1.12) saturate(1.1); }
.facade .fz:focus-visible { outline: none; }
.facade .fz-leader { stroke: var(--blue); stroke-width: 1.3; fill: none; }
.facade .fz-label circle { fill: var(--blue); }
.facade .fz-name { font-size: 19px; font-weight: 600; fill: var(--ink); }
.facade .fz-spec { font-size: 14px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.facade .fz:hover .fz-name, .facade .fz:focus-visible .fz-name { fill: var(--blue); text-decoration: underline; }
.facade .fdim path { stroke: var(--blue); stroke-width: 1.1; fill: none; }
.facade .fdim text { font-size: 14px; fill: var(--blue); font-variant-numeric: tabular-nums; }
.titleblock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; border: 1px solid var(--ink); font-size: 14px; font-weight: 500; }
.titleblock div { padding: 10px 14px; line-height: 1.4; }
.titleblock div + div { border-left: 1px solid var(--ink); }
.titleblock span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-bottom: 2px; }
.legend { display: none; list-style: none; margin: 16px 0 0; padding: 0; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.legend a { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.35; }
.legend small { grid-column: 2; font-weight: 400; color: var(--muted); font-size: 12px; }
.legend-sw { grid-row: span 2; width: 36px; height: 36px; background-size: cover; }

/* ---------- Home sections ---------- */
.lineup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.line-item { display: flex; flex-direction: column; padding: 32px 28px 0; text-decoration: none; }
.line-item + .line-item { border-left: 1px solid var(--line); }
.line-item:first-child { padding-left: 0; }
.line-item:last-child { padding-right: 0; }
.line-item .sw { margin-bottom: 24px; }
.line-item h3 { font-size: 24px; }
.line-item p { margin-top: 8px; color: var(--ink-2); }
.line-item dl { margin: 18px 0 20px; display: grid; gap: 4px; font-size: 14px; }
.line-item dl div { display: grid; grid-template-columns: 56px 1fr; }
.line-item dt { color: var(--muted); }
.line-item dd { margin: 0; font-variant-numeric: tabular-nums; }
.line-item .more { margin-top: auto; color: var(--blue); font-weight: 500; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: transparent; transition: text-decoration-color .15s; }
.line-item:hover .more { text-decoration-color: currentColor; }
.case-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 32px 24px; }
.case-mosaic .ccard-big { grid-row: span 2; }
.case-mosaic .ccard-big .ccard-img { aspect-ratio: auto; flex: 1; min-height: 360px; }
.case-mosaic .ccard-big .ccard-title { font-size: 21px; }
.calc-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.calc-copy h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.025em; margin-bottom: 20px; }
.calc-copy p { color: var(--ink-2); max-width: 32em; }
.mini { display: grid; gap: 16px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.mini-dims, .wall-dims { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.times { padding-bottom: 12px; color: var(--muted); }
.mini-out { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mini-out span { font-size: 14px; color: var(--muted); }
.mini-out span:last-child { grid-column: 1 / -1; }
.mini-out strong { grid-row: span 2; grid-column: 2; grid-row-start: 1; font-size: 40px; font-weight: 600; color: var(--blue); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cta3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.cta3 > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 40px; }
.cta3 > div:first-child { padding-left: 0; }
.cta3 > div + div { border-left: 1px solid #3c423f; }
.cta3 h3 { font-size: 22px; }
.cta3 p { color: #b9bdb6; flex: 1; }
.news-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.news-list a { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.news-list a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.news-list time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat-promo { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; text-decoration: none; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.cat-cover { position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 4; padding: 12px; background-size: cover; background-position: center; color: #fff; text-decoration: none; box-shadow: 4px 4px 0 var(--stone-200); }
.cat-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20, 22, 21, .75)); }
.cat-cover b { position: relative; font-size: 13px; line-height: 1.35; font-weight: 600; }
.cat-promo-text { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 15px; }
.cat-promo-text strong { color: var(--blue); font-size: 17px; }

/* ---------- About ---------- */
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.collage a { position: relative; text-decoration: none; }
.collage span { position: absolute; left: 0; bottom: 0; padding: 6px 10px; background: var(--paper); font-size: 13px; font-weight: 600; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--ink); padding-top: 24px; }
.features h3, .uses h3 { font-size: 18px; margin-bottom: 8px; }
.features p, .uses p { color: var(--ink-2); font-size: 15px; }
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--ink); padding-top: 24px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; position: relative; padding-top: 56px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid var(--blue); color: var(--blue); font-weight: 600; border-radius: 50%; }
.steps li::after { content: ''; position: absolute; top: 18px; left: 46px; right: -14px; border-top: 1px dashed var(--blue); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--ink-2); }
.fig { margin: 0; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.fig figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.layers { width: 100%; height: auto; }
.layers .ly-edge { stroke: var(--ink); stroke-width: 1; }
.layers .ly-leader { stroke: var(--blue); stroke-width: 1.2; }
.layers .ly-name { font-size: 19px; font-weight: 600; fill: var(--ink); }
.layers .ly-sub { font-size: 15px; fill: var(--muted); }
.specs { display: grid; gap: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 100px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl thead th { font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl tbody th { font-weight: 500; }
.compare td:nth-child(2) { background: var(--blue-50); font-weight: 600; color: var(--blue-d); }
.board td:first-child, .board td:nth-child(3) { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; width: 1%; }
.board td:nth-child(2) a { text-decoration: none; font-weight: 500; }
.board td:nth-child(2) a:hover { text-decoration: underline; text-underline-offset: 4px; }
.board td:last-child { width: 1%; }
.file-ic svg { width: 18px; height: 18px; color: var(--muted); }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; border-top: 1px solid var(--ink); }
.spec th, .spec td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 108px; font-weight: 400; color: var(--muted); }

/* ---------- Product detail ---------- */
.pd { padding-top: 40px; padding-bottom: 112px; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.pd-main { aspect-ratio: 4 / 3; }
.pd-thumbs { display: grid; grid-template-columns: repeat(3, 96px); gap: 10px; margin-top: 10px; }
.pd-thumb { aspect-ratio: 1; border: 0; padding: 0; background-size: cover; background-position: center; opacity: .65; }
.pd-thumb[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.pd-line { font-size: 14px; color: var(--blue); font-weight: 500; text-decoration: none; }
.pd-info h1 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -0.025em; margin-top: 6px; }
.pd-en { color: var(--muted); margin: 2px 0 0; }
.pd-summary { margin: 18px 0 28px; font-size: 17px; color: var(--ink-2); }
.pd-info .btns { margin-top: 28px; }
.pd-desc { margin: 72px 0 0; }
.pd .sec-s { margin-top: 80px; }

/* ---------- Case detail ---------- */
.cd { padding-top: 40px; padding-bottom: 112px; }
.cd h1 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.025em; }
.cd-meta { margin-top: 8px; color: var(--muted); }
.cd-hero { margin-top: 32px; aspect-ratio: 2 / 1; overflow: hidden; background: var(--stone-200); }
.cd-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; margin-top: 48px; align-items: start; }
.cd-summary { font-size: 21px; font-weight: 500; line-height: 1.55; margin-bottom: 20px; }
.cd-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.cd-details figure { margin: 0; }
.cd-details figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.cd-side { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 12px; }
.side-h { font-size: 15px; margin-top: 20px; }
.used { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.used a { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.used a:hover { border-color: var(--ink); }
.used-sw { width: 56px; height: 56px; background-size: cover; background-position: center; }
.used b { display: block; font-size: 15px; }
.used small { color: var(--muted); font-size: 13px; }
.cd .sec-s { margin-top: 96px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.filters .chips { margin: 0; }
.count-line { margin: 16px 0 24px; font-size: 14px; color: var(--muted); }
.field-inline { display: flex; align-items: center; gap: 10px; }
.field-inline .field-label { margin: 0; white-space: nowrap; }
.field-inline select { width: auto; min-width: 160px; }

/* ---------- Etc ---------- */
.fields { display: grid; gap: 48px; }
.field-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.field-card h2 { font-size: 24px; margin-bottom: 10px; }
.field-card p { color: var(--ink-2); }
.tag-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-links a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; text-decoration: none; background: var(--paper); }
.tag-links a:hover { border-color: var(--ink); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field-label b, .check b, legend b { color: var(--danger); font-weight: 500; }
.field-hint { font-size: 13px; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=month], input[type=date], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input:hover, select:hover, textarea:hover { border-color: #a9a9a1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 70, 200, .18); }
input:user-invalid, textarea:user-invalid { border-color: var(--danger); }
input[type=number] { font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card { display: grid; gap: 18px; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.form-card h2, .form-card h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 15px; cursor: pointer; }
.check input, .check-field input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.consent { display: grid; gap: 6px; padding-top: 4px; }
.consent details { font-size: 13px; color: var(--muted); padding-left: 26px; }
.consent summary { cursor: pointer; width: fit-content; text-decoration: underline; text-underline-offset: 3px; }
.consent details p { margin-top: 6px; }
.step-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; flex: none; }
.receipt { display: grid; justify-items: center; gap: 10px; padding: 56px 24px; text-align: center; }
.receipt:focus { outline: none; }
.receipt-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; margin-bottom: 8px; }
.receipt-icon svg { width: 30px; height: 30px; }
.receipt h2 { font-size: 26px; }
.receipt strong { font-variant-numeric: tabular-nums; color: var(--blue); }
.receipt-note { max-width: 520px; margin-top: 12px; padding: 14px 18px; background: var(--blue-50); border-radius: var(--r); font-size: 14px; color: var(--blue-d); }
.receipt-note a { font-weight: 600; }

/* ---------- Estimate ---------- */
.est { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; padding-top: 48px; }
.est-step + .est-step { margin-top: 56px; }
.est-step h2, .est-cart > h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 24px; }
.pick-group + .pick-group { margin-top: 24px; }
.pick-group h3 { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.pick-item { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.35; }
.pick-item input { position: absolute; opacity: 0; pointer-events: none; }
.pick-item .sw { margin-bottom: 6px; }
.pick-item small { font-weight: 400; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pick-item:hover { border-color: #9d9d95; }
.pick-item:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #fff; }
.pick-item:has(input:checked)::after { content: ''; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='2.4'/%3E%3C/svg%3E") center / 16px no-repeat; }
.pick-item:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.opts { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 24px; }
.field-s { width: 140px; }
.opts .field-s:last-child { width: 220px; }
.seg { display: flex; border: 0; padding: 0; margin: 0; }
.seg legend { width: 100%; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; }
.seg label:first-of-type span { border-radius: var(--r) 0 0 var(--r); }
.seg label:last-of-type span { border-radius: 0 var(--r) var(--r) 0; margin-left: -1px; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.wall { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); margin-bottom: 12px; }
.wall.is-active { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.wall-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.wall-name { border: 0; background: none; padding: 0; font-weight: 600; font-size: 16px; }
.wall.is-active .wall-name { color: var(--blue); }
.wall-dims { max-width: 360px; }
.openings { display: grid; gap: 8px; margin-top: 16px; justify-items: start; }
.opening { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.opening select { width: 92px; min-height: 40px; padding: 6px 8px; }
.opening input { width: 76px; min-height: 40px; padding: 6px 8px; }
.est-side { position: sticky; top: calc(var(--header) + 20px); }
.est-panel { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 20px; }
.est-draw { background: var(--paper); border: 1px solid var(--stone-200); padding: 12px; }
.wall-svg { width: 100%; height: auto; max-height: 340px; }
.wall-svg .w-edge { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wall-svg .w-open rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.wall-svg .w-open path { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wall-svg .w-open text { fill: var(--muted); }
.wall-svg .w-dim path { stroke: var(--blue); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.wall-svg .w-dim text { fill: var(--blue); font-variant-numeric: tabular-nums; }
.wall-svg .w-tile { fill: rgba(36, 70, 200, .18); stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
.draw-cap { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.res-main { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 12px; }
.res-main span { font-size: 15px; font-weight: 500; }
.res-main strong { font-size: 44px; font-weight: 600; color: var(--blue); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.res-main strong small { font-size: 18px; margin-left: 4px; font-weight: 500; }
.res-main em { grid-column: 2; font-style: normal; text-align: right; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.res-list { margin: 16px 0 0; border-top: 1px solid var(--line); }
.res-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.res-list dt { color: var(--muted); }
.res-list dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.res-formula { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.est-bar { display: none; }
.est-cart { padding-top: 88px; padding-bottom: 112px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 980px; margin-left: max(0px, calc((100vw - var(--wrap)) / 2)); }
.cart-tbl td:first-child { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.cart-tbl td:first-child small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.cart-sw { width: 36px; height: 36px; background-size: cover; flex: none; display: inline-block; }

/* ---------- Sample ---------- */
.sample form { display: grid; gap: 40px; }
.sample-pick { border: 0; margin: 0; padding: 0; }
.sample-pick legend { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; margin-bottom: 20px; width: 100%; }
.pick-count { margin-left: auto; font-size: 15px; font-weight: 500; color: var(--blue); font-variant-numeric: tabular-nums; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.s-item { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; font-weight: 600; font-size: 15px; }
.s-item input { position: absolute; top: 18px; left: 18px; width: 20px; height: 20px; accent-color: var(--blue); z-index: 1; }
.s-item .sw { margin-bottom: 8px; }
.s-item small { font-weight: 400; color: var(--muted); font-size: 13px; }
.s-item:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #fff; }
.s-item:has(input:disabled) { opacity: .45; cursor: not-allowed; }

/* ---------- Support ---------- */
.contact3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 64px; }
.contact3 > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.contact3 h2 { font-size: 19px; }
.contact3 p { color: var(--ink-2); font-size: 15px; flex: 1; }
.contact3 .contact-k { background: var(--kakao); border-color: var(--kakao); }
.contact3 .contact-k .btn-kakao { background: var(--kakao-ink); color: var(--kakao); }
.tel { font-size: 26px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.support-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); }

/* ---------- Resources ---------- */
.catalogs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.catalog { display: grid; gap: 14px; }
.catalog .cat-cover { max-width: 280px; }
.catalog .cat-cover b { font-size: 17px; }
.catalog-meta { display: flex; flex-direction: column; }
.catalog-meta a { text-decoration: none; }
.catalog-meta small { color: var(--muted); }
.post header { padding-bottom: 20px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
.post h2 { font-size: 28px; }
.post time { color: var(--muted); font-size: 14px; }
.files { margin: 40px 0; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.files h3 { font-size: 15px; margin-bottom: 10px; }
.file-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.file-row > span:first-child { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.file-row svg { width: 20px; height: 20px; color: var(--muted); }
.file-row small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.nf { text-align: center; padding-top: 120px; }
.nf h1 { font-size: 36px; margin-bottom: 12px; }
.nf .btn { margin-top: 24px; }

/* ---------- Footer + quick menu + toast ---------- */
.site-footer { background: var(--ink); color: #b9bdb6; font-size: 14px; padding: 56px 0 120px; }
.footer-in { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; margin-bottom: 10px; }
.site-footer a { color: #e6e8e3; }
.footer-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; line-height: 1.8; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3c423f; font-size: 13px; color: #8b8f88; }

.quick { position: fixed; right: 20px; bottom: 24px; z-index: 30; display: flex; flex-direction: column; gap: 6px; }
.q-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 72px; height: 72px; border: 0; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; text-decoration: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 8px 20px -8px rgba(20, 24, 22, .45); }
.q-item svg { width: 24px; height: 24px; }
.q-item:hover { background: var(--blue); }
.q-kakao { background: var(--kakao); color: var(--kakao-ink); }
.q-kakao:hover { background: #f5dc00; }
.q-top { height: 44px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); visibility: hidden; opacity: 0; transition: opacity .2s; }
.q-top:hover { background: #fff; }
.scrolled .q-top { visibility: visible; opacity: 1; }
.is-admin .quick { display: none; }

.toast { position: fixed; left: 50%; bottom: 32px; z-index: 60; max-width: min(560px, calc(100vw - 32px)); padding: 14px 20px; background: var(--ink); color: #fff; border-radius: var(--r); font-size: 15px; box-shadow: 0 12px 32px -12px rgba(0,0,0,.5); transform: translate(-50%, 20px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .2s; }
.toast a { color: #b9c7ff; }

/* ---------- Admin ---------- */
.admin { padding: 40px 0 112px; }
.admin-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.admin-top h1 { font-size: 32px; }
.admin-top p { margin-top: 6px; color: var(--muted); max-width: 620px; font-size: 15px; }
.admin-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--header) + 20px); }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: var(--r); text-decoration: none; font-weight: 500; font-size: 15px; }
.admin-nav a:hover { background: var(--stone-200); }
.admin-nav a[aria-current] { background: var(--ink); color: #fff; }
.admin-nav .count { min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 12px; text-align: center; line-height: 22px; }
.admin-body { min-width: 0; }
.a-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.a-head h2 { font-size: 24px; }
.a-desc { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.a-tbl { background: var(--paper); }
.a-tbl td small { display: block; color: var(--muted); font-size: 13px; }
.a-tbl .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 460px; }
.a-thumb { display: block; width: 64px; height: 48px; background-size: cover; background-position: center; }
.a-actions { white-space: nowrap; text-align: right; }
.a-actions a, .a-actions button { margin-left: 14px; font-size: 14px; }
.a-actions a { color: var(--blue); text-underline-offset: 3px; }
.a-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; }
.a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.a-grid .full { grid-column: 1 / -1; }
.a-grid fieldset.field { border: 0; padding: 0; margin: 0; }
.check-field { flex-direction: row; align-items: center; gap: 8px; padding-top: 28px; font-size: 15px; }
.a-products { display: grid; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.a-products > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.a-products-line { width: 100%; font-size: 13px; color: var(--muted); }
.a-prod { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; }
.a-prod input { width: 16px; height: 16px; accent-color: var(--blue); margin: 0; }
.a-prod-sw { width: 22px; height: 22px; border-radius: 50%; background-size: cover; }
.a-prod:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.tex-pick { display: flex; gap: 12px; align-items: center; }
.tex-pick select { max-width: 240px; }
.tex-prev { width: 64px; height: 46px; background-size: cover; border: 1px solid var(--line); }
.img-field { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.img-prev { width: 120px; height: 80px; background-size: cover; background-position: center; border: 1px solid var(--line); }
.file-now { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.file-now svg { width: 18px; height: 18px; }
.a-form-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.inbox { display: grid; gap: 8px; }
.sub { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.sub[open] { border-color: #a9a9a1; }
.sub summary { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto 96px; gap: 16px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; font-size: 15px; }
.sub summary::-webkit-details-marker { display: none; }
.sub-name b { margin-right: 6px; }
.sub-id, .sub time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; text-align: center; }
.badge-quote { background: var(--blue-50); color: var(--blue-d); }
.badge-sample { background: #efe8d7; color: #6b5420; }
.badge-consult { background: #e2eee6; color: #245c37; }
.status { min-height: 34px; padding: 4px 8px; font-size: 14px; }
.status-신규 { border-color: var(--blue); color: var(--blue); font-weight: 600; }
.status-완료 { color: var(--muted); }
.sub-body { padding: 4px 18px 20px; border-top: 1px solid var(--line); }
.sub-body dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 12px 0 0; }
.sub-body dl div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--stone-200); font-size: 14px; }
.sub-body dt { color: var(--muted); }
.sub-body dd { margin: 0; white-space: pre-wrap; }
.sub-items { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.sub-items li { display: flex; align-items: center; gap: 10px; }
.guide { list-style: none; counter-reset: g; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.guide li { counter-increment: g; display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.guide li::before { content: counter(g); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.guide h3 { font-size: 17px; margin-bottom: 4px; }
.guide p { color: var(--ink-2); font-size: 15px; }
.a-reset { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; color: var(--muted); }
.a-reset p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .gnb-link { padding: 10px 10px; font-size: 14px; }
  .header-in { gap: 20px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; --header: 64px; }
  .menu-btn { display: block; }
  .gnb {
    position: fixed; inset: var(--header) 0 0 0; z-index: 39; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 120px; background: var(--bg); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s;
  }
  .nav-open .gnb { visibility: visible; opacity: 1; transition: opacity .2s; }
  .gnb ul { flex-direction: column; margin: 0; gap: 0; }
  .gnb-item { display: grid; grid-template-columns: 1fr 48px; border-bottom: 1px solid var(--line); }
  .gnb-link { padding: 16px 0; font-size: 18px; font-weight: 600; }
  .gnb-link:hover { background: none; }
  .gnb-toggle { display: block; border: 0; background: none; position: relative; }
  .gnb-toggle::after { content: ''; position: absolute; left: 18px; top: 22px; width: 9px; height: 9px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
  .gnb-item.open .gnb-toggle::after { transform: rotate(-135deg); top: 26px; }
  .gnb-sub { position: static; grid-column: 1 / -1; margin: 0 0 12px; padding: 0; border: 0; box-shadow: none; background: none; display: none; visibility: visible; opacity: 1; transform: none; transition: none; }
  .gnb-item:hover .gnb-sub, .gnb-item:focus-within .gnb-sub { display: none; }
  .gnb-item.open .gnb-sub { display: flex; }
  .gnb-sub a, .gnb-sub button { padding: 10px 12px; font-size: 16px; color: var(--ink-2); }
  .gnb-cta { margin-top: 24px; min-height: 52px; font-size: 16px; }
  .hero-in, .calc-band, .split, .split-even, .support-split, .news-row, .pd-grid, .cd-grid, .est { grid-template-columns: minmax(0, 1fr); }
  .hero-in { gap: 40px; }
  .split { gap: 40px; }
  .pgrid, .pgrid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps li:nth-child(2)::after { display: none; }
  .case-mosaic { grid-template-columns: 1fr 1fr; }
  .case-mosaic .ccard-big { grid-column: 1 / -1; grid-row: auto; }
  .case-mosaic .ccard-big .ccard-img { aspect-ratio: 16 / 9; min-height: 0; }
  .est-side, .cd-side { position: static; }
  .est-cart { margin-left: 0; }
  .admin-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .admin-nav a { white-space: nowrap; gap: 8px; }
  .footer-in { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .sec { padding: 72px 0; }
  .sec-s + .sec-s { margin-top: 64px; }
  .hero { padding: 32px 0 64px; }
  .hero .lead { font-size: 16px; }
  .facade .fz-label { display: none; }
  .hero-fig { overflow: hidden; }
  /* Without leader labels, crop the drawing to the building (viewBox x 220..960). */
  .facade { width: 129.7%; max-width: none; margin: -6% 0 0 -29.7%; }
  .legend { display: grid; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock div:nth-child(3) { border-left: 0; }
  .titleblock div:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .lineup { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .line-item, .line-item:first-child, .line-item:last-child { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .line-item .sw { aspect-ratio: 16 / 9; }
  .pgrid, .pgrid-4, .pgrid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .cgrid, .case-mosaic { grid-template-columns: minmax(0, 1fr); }
  .features, .uses, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
  .cta3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cta3 > div, .cta3 > div:first-child { padding: 0; }
  .cta3 > div + div { border-left: 0; border-top: 1px solid #3c423f; padding-top: 32px; }
  .contact3 { grid-template-columns: minmax(0, 1fr); }
  .catalogs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .grid-2, .a-grid { grid-template-columns: minmax(0, 1fr); }
  .form-card, .a-form { padding: 22px 18px; }
  .mini { padding: 20px; }
  .field-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cd-hero { aspect-ratio: 4 / 3; }
  .cd-details { grid-template-columns: 1fr 1fr; }
  .phead { padding-top: 32px; }
  .subtabs { margin-top: 24px; }
  .subtabs nav { gap: 20px; }
  .page-body { padding-top: 32px; padding-bottom: 88px; }
  .footer-info { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .filters { flex-direction: column; align-items: stretch; }
  .field-inline select { flex: 1; }
  .est-panel { padding: 16px; }
  .pick-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
  .pick-item { scroll-snap-align: start; }
  .est-bar { position: fixed; left: 0; right: 0; bottom: calc(54px + env(safe-area-inset-bottom)); z-index: 29; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -12px rgba(0,0,0,.25); font-size: 14px; }
  .est-bar b { color: var(--blue); font-size: 18px; font-variant-numeric: tabular-nums; }
  .est-bar small { color: var(--muted); }
  .est-cart { padding-bottom: 150px; }
  .res-main strong { font-size: 38px; }
  .cart-tbl thead { display: none; }
  .cart-tbl tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart-tbl td { border: 0; padding: 2px 0; }
  .cart-tbl td:first-child { grid-column: 1 / -1; }
  .sub summary { grid-template-columns: auto minmax(0, 1fr) 88px; row-gap: 6px; }
  .sub-id, .sub time { grid-column: 2 / -1; }
  .sub-id { grid-row: 2; }
  .sub time { grid-row: 3; }
  .sub summary .status { grid-column: 3; grid-row: 1; }
  .sub-body dl { grid-template-columns: minmax(0, 1fr); }
  .a-tbl thead { display: none; }
  .a-tbl tr { display: grid; grid-template-columns: 72px 1fr; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .a-tbl td { border: 0; padding: 0 12px 0 0; }
  .a-tbl td:first-child { grid-row: span 4; padding-left: 12px; }
  .a-actions { text-align: left; }
  .a-actions a:first-child { margin-left: 0; }
  .admin-top { flex-direction: column; }

  .quick { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .q-item { flex: 1; flex-direction: row; gap: 6px; width: auto; height: 54px; border-radius: 0; box-shadow: none; font-size: 14px; }
  .q-item + .q-item { border-left: 1px solid #3c423f; }
  .q-item svg { width: 20px; height: 20px; }
  .q-top { display: none; }
  .toast { bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
