/* ============================================================
   부자TV — 다크 에디토리얼
   순흑·순백을 쓰지 않아 헐레이션(번짐)과 눈부심을 줄인 다크 테마.
   본문 대비 14.8:1, 보조 9.2:1, 캡션 5.5:1 — 전 조합 WCAG AA 이상.
   ============================================================ */

:root {
  /* 표면 — 아래로 갈수록 밝아집니다 */
  --deep:  #0D1014;   /* 티커 · 푸터 */
  --bg:    #12151A;   /* 페이지 */
  --bg-2:  #171B21;   /* 교차 섹션 */
  --bg-3:  #1C2129;   /* 카드 · 패널 */
  --bg-4:  #232932;   /* hover · 입력창 */

  --text:   #E9E7E3;  /* 순백 아님 → 눈부심 완화 */
  --text-2: #B2B8C1;
  --muted:  #8E959F;

  --line:   rgba(233,231,227,.15);
  --line-2: rgba(233,231,227,.095);
  --line-3: rgba(233,231,227,.055);

  --signal:      #FF8A57;   /* 다크 위 액센트 (7.9:1) */
  --signal-2:    #FFA477;
  --signal-deep: #C4400F;
  --signal-soft: rgba(255,138,87,.13);
  --signal-line: rgba(255,138,87,.34);
  --gold:        #D9AE72;   /* 로고 워드마크 (다크 위 9.6:1) */

  /* 타이포 — 가독성 우선 */
  --fs-base: 17px;
  --lh-body: 1.8;
  --measure: 64ch;

  --r-xs: 4px;
  --r-sm: 8px;
  --r:    10px;
  --r-lg: 14px;

  --shell: 1240px;
  --gutter: 28px;
  --nav-h: 74px;
  --ticker-h: 44px;

  --ease: cubic-bezier(.2,.7,.3,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  background: var(--bg);
  overflow-x: hidden;            /* 반드시 루트에만 */
  color-scheme: dark;
}
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(255,138,87,.2);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; letter-spacing: -.04em; line-height: 1.18; font-weight: 800; color: var(--text); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--signal); color: #12151A; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: var(--r-xs); }

.skiplink {
  position: absolute; left: -9999px; top: 8px; z-index: 210;
  background: var(--signal); color: #12151A; padding: 12px 18px; border-radius: var(--r-sm); font-weight: 800;
}
.skiplink:focus { left: 16px; }

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--signal); z-index: 90; transition: width .1s linear;
}

/* ============================================================
   최근 상담 티커 — 최상단 가로 바
   ============================================================ */
.ticker {
  background: var(--deep); border-bottom: 1px solid var(--line-3);
  position: relative; z-index: 61;
}
.ticker__inner { display: flex; align-items: center; gap: 18px; min-height: var(--ticker-h); }
.ticker__label {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--signal);
}
.ticker__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none;
  box-shadow: 0 0 0 0 rgba(255,138,87,.6); animation: tickerPulse 2.4s var(--ease) infinite;
}
@keyframes tickerPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,138,87,.5); }
  70% { box-shadow: 0 0 0 7px rgba(255,138,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,138,87,0); }
}
.ticker__view {
  flex: 1 1 auto; position: relative; height: var(--ticker-h); overflow: hidden; min-width: 0;
}
.ticker__item {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: var(--text-2); white-space: nowrap;
  transform: translateY(100%); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
/* JS 가 붙기 전에는 첫 항목만 보이게 (붙은 뒤에는 아래 is-on/is-out 이 전담).
   .is-live 로 범위를 좁히지 않으면 전환 후 첫 항목이 다시 나타나 겹칩니다. */
.ticker:not(.is-live) .ticker__item:first-child { transform: translateY(0); opacity: 1; }
.ticker__item.is-on  { transform: translateY(0); opacity: 1; }
.ticker__item.is-out { transform: translateY(-100%); opacity: 0; }
/* 활성 항목만 이벤트/가독성 대상 */
.ticker.is-live .ticker__item:not(.is-on) { opacity: 0; }
.ticker__loc { color: var(--text); font-weight: 700; letter-spacing: -.02em; }
.ticker__msg { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ticker__tag {
  flex: none; padding: 3px 9px; border-radius: var(--r-xs);
  background: var(--signal-soft); color: var(--signal); font-size: 12.5px; font-weight: 800;
}
.ticker__cta {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: -.02em;
}
.ticker__cta:hover { color: var(--signal); }

/* ---------- layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 112px 0; position: relative; }
.section--tight { padding: 78px 0; }
.section--alt, .section--paper, .section--ink { background: var(--bg-2); }
.section--dark { background: var(--deep); }
.section--feature {
  background: var(--deep); position: relative; overflow: hidden;
  border-top: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3);
}
.section--feature::before {
  content: ""; position: absolute; inset: -50% -10% auto -10%; height: 700px; pointer-events: none;
  background: radial-gradient(46% 44% at 50% 26%, rgba(255,138,87,.10) 0%, rgba(255,138,87,0) 70%);
}
.section--feature > .shell { position: relative; z-index: 1; }

/* ---------- 섹션 헤드 ---------- */
.sechead {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 26px 64px; align-items: end;
  margin-bottom: 52px; padding-bottom: 26px; border-bottom: 2px solid var(--line);
}
.sechead__desc { color: var(--text-2); font-size: 16px; line-height: 1.82; max-width: 48ch; }
.eyebrow {
  display: block; font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 14px;
}
.sechead h2 { font-size: clamp(29px, 3.8vw, 46px); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 56px; padding: 0 28px; border-radius: var(--r);
  font-size: 16px; font-weight: 700; letter-spacing: -.015em;
  border: 2px solid transparent; transition: all .2s var(--ease); white-space: nowrap;
}
.btn--brass, .btn--signal { background: var(--signal); color: #12151A; border-color: var(--signal); }
.btn--brass:hover, .btn--signal:hover { background: var(--signal-2); border-color: var(--signal-2); transform: translateY(-2px); }
.btn--ink, .btn--light { background: var(--text); color: #12151A; border-color: var(--text); }
.btn--ink:hover, .btn--light:hover { background: #fff; border-color: #fff; transform: translateY(-2px); }
.btn--ghost, .btn--onink { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover, .btn--onink:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-2px); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 15px; }

/* ---------- 헤더 ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(18,21,26,.9);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .25s var(--ease);
}
.header.is-solid { border-bottom-color: var(--line-2); }
.header__inner { min-height: var(--nav-h); display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; letter-spacing: -.045em; }
.brand__mark {
  width: 40px; height: 37px; display: grid; place-items: center; flex: none;
  color: var(--signal);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.brand__svg { width: 100%; height: 100%; display: block; }
.brand:hover .brand__mark { transform: translateY(-1px); }
.brand__word { color: var(--gold); white-space: nowrap; }
.brand__suffix { color: var(--signal); }
.brand__img { height: 38px; width: auto; max-width: 220px; object-fit: contain; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 4px; margin: 0 12px; font-size: 16px; font-weight: 600; color: var(--text-2);
  transition: color .18s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .24s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--text); font-weight: 700; }
.header__cta { display: flex; align-items: center; gap: 10px; }
.callbtn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border-radius: var(--r); background: var(--signal); color: #12151A;
  font-weight: 800; font-size: 16px; letter-spacing: -.015em; transition: all .2s var(--ease);
}
.callbtn:hover { background: var(--signal-2); transform: translateY(-1px); }
.callbtn svg { flex: none; }
.callicon {
  display: none; width: 48px; height: 48px; border-radius: var(--r); align-items: center; justify-content: center;
  background: var(--signal); color: #12151A; flex: none;
}
.burger {
  display: none; width: 48px; height: 48px; flex: none;
  border: 2px solid var(--line); border-radius: var(--r); background: transparent;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: background .2s var(--ease); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
  transition: transform .26s var(--ease), top .26s var(--ease);
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobilemenu {
  display: none; background: var(--bg-2); border-bottom: 1px solid var(--line-2);
  position: sticky; top: var(--nav-h); z-index: 55;
}
.mobilemenu.is-open { display: block; }
.mobilemenu nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px; font-weight: 700; font-size: 19px; letter-spacing: -.03em;
  border-bottom: 1px solid var(--line-3);
}
.mobilemenu nav a span { color: var(--signal); }
.mobilemenu__call {
  display: flex; align-items: center; gap: 13px; margin: 18px 0 22px;
  padding: 17px 20px; border-radius: var(--r); background: var(--signal); color: #12151A;
}
.mobilemenu__call span { display: flex; flex-direction: column; line-height: 1.35; }
.mobilemenu__call b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.mobilemenu__call em { font-style: normal; font-size: 13px; opacity: .8; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; background: var(--bg); overflow: hidden; isolation: isolate;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + 76px) 0 84px;
  border-bottom: 2px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(44% 40% at 78% 40%, rgba(255,138,87,.13) 0%, rgba(255,138,87,0) 68%),
    radial-gradient(60% 54% at 12% 6%, rgba(160,190,235,.07) 0%, rgba(160,190,235,0) 66%);
}
.hero > .shell { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 56px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 14px;
  border-radius: var(--r-xs); background: var(--signal-soft); color: var(--signal);
  font-size: 14px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 26px;
  border-left: 3px solid var(--signal);
}
.badge__dot { display: none; }

.hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.12; letter-spacing: -.048em; }
.hero h1 .accent { color: var(--signal); white-space: nowrap; }
.hero__desc { margin-top: 26px; font-size: 17.5px; line-height: 1.82; color: var(--text-2); max-width: var(--measure); }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: 10px 34px; font-size: 14.5px; color: var(--muted);
}
.hero__meta b { color: var(--text); font-weight: 700; }

.hero__visual { position: relative; }
.frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--bg-3); border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -46px rgba(0,0,0,.9);
}
.frame img, .frame svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame__tag {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 20px;
  background: var(--signal); color: #12151A; border-radius: 0 var(--r-sm) 0 0;
  font-size: 14.5px; font-weight: 800; letter-spacing: -.02em;
}
.frame__tag .dot { display: none; }

.hero--compact { padding: calc(var(--nav-h) + 58px) 0 62px; }
.hero--compact h1 { font-size: clamp(30px, 4.2vw, 50px); }

/* ---------- 스펙 로우 ---------- */
.grid { display: grid; gap: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: transparent; border: 0; border-top: 2px solid var(--line);
  padding: 24px 26px 30px 0; border-radius: 0;
}
.card:hover h3 { color: var(--signal); }
.card__num {
  display: block; font-size: 14px; font-weight: 800; letter-spacing: .12em;
  color: var(--signal); margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.card__chip {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-xs);
  background: var(--signal); color: #12151A; font-weight: 800; font-size: 14px; margin-bottom: 16px;
}
.card h3 { font-size: 21px; margin-bottom: 11px; letter-spacing: -.04em; transition: color .2s var(--ease); }
.card p { font-size: 16px; line-height: 1.78; color: var(--text-2); max-width: 40ch; }
.card--flat { border-top-color: var(--line-2); }
.card--lg { padding: 28px 30px 34px 0; }
.card--lg h3 { font-size: 24px; }
.card--lg p { font-size: 16.5px; max-width: 46ch; }

/* ---------- 타공/무타공 ---------- */
.methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 2px solid var(--line); }
.method { padding: 40px 44px 44px 0; border-radius: 0; background: transparent; border: 0; position: relative; }
.method + .method { padding-left: 44px; border-left: 1px solid var(--line-2); }
.method__tag {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: var(--r-xs);
  background: var(--bg-4); color: var(--text); font-size: 13.5px; font-weight: 800; margin-bottom: 22px;
}
.method h3 { font-size: 30px; margin-bottom: 26px; letter-spacing: -.045em; }
.method li {
  display: flex; gap: 13px; padding: 15px 0; font-size: 16.5px; line-height: 1.72;
  color: var(--text-2); border-top: 1px solid var(--line-3);
}
.method li:first-child { border-top: 0; padding-top: 0; }
.method li svg { flex: none; margin-top: 5px; color: var(--signal); }
.method--dark .method__tag { background: var(--signal); color: #12151A; }

/* ---------- 시공사진 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.gitem { position: relative; }
.gitem__media {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--r-sm); background: var(--bg-3); border: 1px solid var(--line-2);
}
.gitem__media img, .gitem__media svg.ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.gitem__media:hover img, .gitem__media:hover svg.ph { transform: scale(1.04); }
.gitem--zoom { cursor: zoom-in; }
.gitem__badge {
  position: absolute; top: 0; left: 0; z-index: 2;
  min-height: 30px; padding: 0 12px; display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 800; background: var(--bg-4); color: var(--text);
  border-radius: 0 0 var(--r-xs) 0;
}
.gitem__badge.is-drill { background: var(--signal); color: #12151A; }
.gitem__meta { padding-top: 14px; }
.gitem__loc { font-size: 17.5px; font-weight: 800; letter-spacing: -.035em; }
.gitem__desc { font-size: 15px; color: var(--muted); margin-top: 3px; line-height: 1.65; }
.gitem__scrim { display: contents; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filters a {
  min-height: 46px; padding: 0 20px; border-radius: var(--r-sm); display: inline-flex; align-items: center;
  font-size: 15.5px; font-weight: 700; border: 2px solid var(--line-2); color: var(--text-2); background: transparent;
  transition: all .2s var(--ease);
}
.filters a:hover { border-color: var(--signal); color: var(--signal); }
.filters a.is-active { background: var(--signal); border-color: var(--signal); color: #12151A; }

.note { margin-top: 26px; font-size: 15px; color: var(--muted); line-height: 1.8; max-width: var(--measure); }
.note a { color: var(--signal); font-weight: 700; border-bottom: 1px solid currentColor; }

/* ---------- 지역 ---------- */
.regiongrid, .regiongrid--light {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2);
}
.regiongrid a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 68px; padding: 16px 20px 16px 0; font-size: 17px; font-weight: 700; letter-spacing: -.03em;
  border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; color: var(--text);
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}
.regiongrid a:hover { color: var(--signal); padding-left: 8px; }
.regiongrid a .arrow { color: var(--signal); opacity: 0; transition: opacity .18s var(--ease); }
.regiongrid a:hover .arrow { opacity: 1; }
.hoodcount { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 8px; }

.grouplabel {
  font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.grouplabel::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

.hoodblock { margin-top: 54px; padding-top: 38px; border-top: 2px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px;
  border-radius: var(--r-sm); font-size: 15.5px; font-weight: 700; letter-spacing: -.02em;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text-2);
  transition: all .18s var(--ease);
}
.chips a:hover { border-color: var(--signal); color: var(--signal); background: var(--bg-4); }
.chips--lg a { min-height: 50px; padding: 0 20px; font-size: 16px; }

.hoodsearch { position: relative; margin-bottom: 30px; max-width: 560px; }
.hoodsearch input {
  width: 100%; min-height: 60px; padding: 0 52px 0 50px; border-radius: var(--r);
  border: 2px solid var(--line); background: var(--bg-3); font: inherit; font-size: 17px; color: var(--text);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.hoodsearch input::placeholder { color: var(--muted); }
.hoodsearch input:focus { outline: none; border-color: var(--signal); background: var(--bg-4); }
.hoodsearch__icon { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hoodsearch__clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: var(--r-xs); background: var(--bg-4); color: var(--text-2);
  display: none; place-items: center;
}
.hoodsearch__clear.is-on { display: grid; }
.hoodsearch__clear:hover { background: var(--signal); color: #12151A; }
.hoodresults { display: grid; gap: 0; margin-bottom: 34px; }
.hoodresults a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 4px; border-bottom: 1px solid var(--line-2); font-size: 17px; font-weight: 700;
  letter-spacing: -.03em; transition: color .18s var(--ease), padding-left .18s var(--ease);
}
.hoodresults a:hover { color: var(--signal); padding-left: 8px; }
.hoodresults em { font-style: normal; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.hoodresults mark { background: var(--signal-soft); color: var(--signal); border-radius: 2px; padding: 0 3px; }
.hoodempty { padding: 26px 4px; color: var(--muted); font-size: 16px; border-bottom: 1px solid var(--line-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 2px solid var(--line); counter-reset: faq; }
.faq details { background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; }
.faq details[open] { background: var(--bg-2); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 28px 60px 28px 62px; display: grid; gap: 9px; counter-increment: faq;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { padding-bottom: 18px; }
.faq summary::before {
  content: counter(faq, decimal-leading-zero);
  position: absolute; left: 4px; top: 31px;
  font-size: 15px; font-weight: 800; color: var(--signal); font-variant-numeric: tabular-nums;
}
.faq summary::after {
  content: ""; position: absolute; right: 16px; top: 35px; width: 16px; height: 16px;
  background:
    linear-gradient(var(--text), var(--text)) center/16px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center/2px 16px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__cat { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.faq__q { font-size: 21px; font-weight: 800; letter-spacing: -.04em; line-height: 1.42; }
.faq__short { font-size: 16.5px; line-height: 1.75; color: var(--signal); font-weight: 600; }
.faq__body {
  margin: 0 60px 30px 62px; padding-top: 18px; border-top: 1px solid var(--line-3);
  font-size: 16.5px; line-height: 1.88; color: var(--text-2); max-width: var(--measure);
}

/* ---------- 한눈에 보기 ---------- */
.factlist { margin: 0; border-top: 2px solid var(--line); }
.factlist__row {
  display: grid; grid-template-columns: 300px 1fr; gap: 14px 48px;
  padding: 26px 4px; border-bottom: 1px solid var(--line-2); align-items: start;
}
.factlist dt { font-size: 18px; font-weight: 800; letter-spacing: -.035em; line-height: 1.45; }
.factlist dt::before { display: none; }
.factlist dd { margin: 0; font-size: 16.5px; line-height: 1.82; color: var(--text-2); max-width: var(--measure); }

/* ---------- CTA ---------- */
.cta {
  border-radius: var(--r-lg); padding: 66px 58px; position: relative; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line-2);
  display: grid; grid-template-columns: 1.25fr auto; gap: 40px; align-items: center;
}
.cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--signal); }
.cta::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,87,.14), rgba(255,138,87,0) 66%); pointer-events: none;
}
.cta__inner { position: relative; }
.cta h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.045em; }
.cta p { margin-top: 16px; color: var(--text-2); font-size: 16.5px; line-height: 1.82; max-width: 52ch; }
.cta__actions { position: relative; display: flex; flex-direction: column; gap: 11px; min-width: 250px; }
.cta__phone {
  font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: var(--signal); margin-bottom: 6px;
  font-variant-numeric: tabular-nums; display: block;
}
.cta__phone:hover { color: var(--signal-2); }

/* ---------- 폼 ---------- */
.form {
  display: grid; gap: 20px; background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 36px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 700; color: var(--text); }
.field input, .field textarea {
  width: 100%; border: 2px solid var(--line-2); border-radius: var(--r-sm); padding: 15px 16px;
  font: inherit; font-size: 17px; background: var(--bg-4); color: var(--text);
  transition: border-color .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #F0705C; }
.field textarea { min-height: 140px; resize: vertical; }
.field__hint { font-size: 14px; color: var(--muted); }
.req { color: var(--signal); }
.flash { padding: 16px 20px; border-radius: var(--r-sm); font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.flash.success { background: var(--signal-soft); color: var(--signal); border-left: 4px solid var(--signal); }
.flash.error { background: rgba(240,112,92,.14); color: #F0705C; border-left: 4px solid #F0705C; }

/* ---------- 푸터 ---------- */
.footer { background: var(--deep); color: var(--text-2); padding: 84px 0 36px; border-top: 1px solid var(--line-3); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer h4 { font-size: 14px; margin-bottom: 20px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer .brand { margin-bottom: 18px; }
.footer .brand__mark { color: var(--signal); }
.footer .brand__img { height: 40px; }
.footer p { font-size: 15px; line-height: 1.85; }
.footer__note { margin-top: 15px; max-width: 44ch; color: var(--muted); font-size: 14.5px; }
.footer li { padding: 7px 0; font-size: 15px; }
.footer a:hover { color: var(--signal); }
.footer__phone {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text);
  font-size: 26px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 10px;
}
.footer__phone:hover { color: var(--signal); }
.footer__links { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.footer__bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line-3);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted);
}

/* ---------- 맨 위로 ---------- */
.totop {
  position: fixed; right: 24px; bottom: 24px; z-index: 65;
  width: 52px; height: 52px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--bg-3); color: var(--text); display: grid; place-items: center;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: all .26s var(--ease);
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--signal); color: #12151A; border-color: var(--signal); }

/* ---------- 사진 확대 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(8,10,13,.96); align-items: center; justify-content: center; padding: 36px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1120px, 94vw); max-height: 84vh; width: auto; height: auto; border-radius: var(--r-sm); }
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: 28px; text-align: center;
  color: var(--text); font-size: 16px; font-weight: 700; padding: 0 24px; letter-spacing: -.02em;
}
.lightbox__close, .lightbox__nav {
  position: absolute; border: 1px solid var(--line); background: rgba(28,33,41,.9); color: var(--text);
  display: grid; place-items: center; border-radius: var(--r-sm);
}
.lightbox__close { top: 22px; right: 22px; width: 50px; height: 50px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 24px; line-height: 1; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--signal); color: #12151A; border-color: var(--signal); }
.lightbox__nav--prev { left: 22px; } .lightbox__nav--next { right: 22px; }
body.is-locked { overflow: hidden; }

/* ---------- 모바일 하단바 ---------- */
.callbar { display: none; }

/* ---------- 기타 ---------- */
.crumb { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; font-weight: 600; }
.crumb a:hover { color: var(--signal); }
.contactgrid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.copytoast {
  position: fixed; left: 50%; bottom: 36px; transform: translate(-50%, 14px); z-index: 120;
  background: var(--signal); color: #12151A; font-size: 15px; font-weight: 800;
  padding: 14px 22px; border-radius: var(--r-sm);
  opacity: 0; transition: opacity .26s var(--ease), transform .26s var(--ease); pointer-events: none;
}
.copytoast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   반응형 — 모바일 가독성 우선 (본문 축소 없음)
   ============================================================ */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .regiongrid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --nav-h: 68px; --gutter: 22px; --ticker-h: 42px; }
  .nav, .callbtn { display: none; }
  .callicon, .burger { display: inline-flex; }
  .header__cta { margin-left: auto; }

  .ticker__cta { display: none; }
  .ticker__item { font-size: 14px; }

  .hero { padding: calc(var(--nav-h) + 44px) 0 56px; }
  .hero--compact { padding: calc(var(--nav-h) + 34px) 0 46px; }
  .hero__grid { grid-template-columns: 1fr; gap: 38px; }

  .section { padding: 72px 0; }
  .section--tight { padding: 56px 0; }
  .sechead { grid-template-columns: 1fr; gap: 16px; align-items: start; margin-bottom: 34px; padding-bottom: 20px; }

  .methods { grid-template-columns: 1fr; }
  .method { padding: 32px 0 34px; border-bottom: 1px solid var(--line-2); }
  .method + .method { padding-left: 0; border-left: 0; }
  .cta { grid-template-columns: 1fr; padding: 44px 30px; }
  .cta__actions { min-width: 0; }
  .contactgrid { grid-template-columns: 1fr; gap: 28px; }
  .regiongrid { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 60px 0 30px; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }

  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; gap: 10px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(13,16,20,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-2);
  }
  .callbar .btn { flex: 1; min-height: 54px; padding: 0 14px; font-size: 16px; }
  .totop { right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
  .lightbox { padding: 16px; }
  .lightbox__nav { width: 46px; height: 46px; }
}

@media (max-width: 760px) {
  :root { --lh-body: 1.82; }
  /* 모바일에서도 2열 그리드를 유지해 페이지 길이를 줄입니다 */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .regiongrid { grid-template-columns: repeat(2, 1fr); column-gap: 18px; }
  .section { padding: 60px 0; }
  .card { padding: 20px 0 26px; }
  .card p { font-size: 16.5px; max-width: none; }
  .card--lg { padding: 22px 0 28px; }
  .factlist__row { grid-template-columns: 1fr; gap: 8px; padding: 22px 2px; }
  .factlist dd { font-size: 17px; }
  .form { padding: 26px 20px; }
  .cta { padding: 36px 24px; }
  .cta p { font-size: 17px; }
  .cta__phone { font-size: 30px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
  .faq summary { padding: 24px 48px 24px 46px; }
  .faq summary::before { left: 2px; top: 27px; font-size: 13.5px; }
  .faq summary::after { right: 8px; top: 31px; }
  .faq__q { font-size: 19.5px; }
  .faq__short { font-size: 16px; }
  .faq__body { margin: 0 8px 26px 46px; font-size: 16.5px; }
  .method li { font-size: 17px; }
  .hero__desc { font-size: 17px; }
  .sechead__desc { font-size: 16.5px; }
  .gitem__desc { font-size: 15.5px; }
}

@media (max-width: 520px) {
  :root { --gutter: 20px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 38px); }
  .hero__actions .btn { flex: 1; min-width: 150px; }
  .brand { font-size: 19px; gap: 9px; }
  .brand__mark { width: 36px; height: 33px; }
  .brand__img { height: 34px; max-width: 170px; }
  .sechead h2 { font-size: 28px; }
  .method h3 { font-size: 25px; }
  .ticker__label span:not(.ticker__dot) { display: none; }
  .ticker__tag { display: none; }
}

/* ---------- 모션 최소화 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ticker__dot { animation: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 인쇄 ---------- */
@media print {
  .header, .callbar, .mobilemenu, .hero__visual, .totop, .lightbox, .progress, .ticker { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .section { padding: 20px 0; }
}

/* ---------- 상담 페이지: 모바일에서 폼을 먼저 보여줍니다 ---------- */
@media (max-width: 980px) {
  /* 히어로를 압축해 폼이 첫 화면에 들어오도록 */
  .hero--compact { padding: calc(var(--nav-h) + 22px) 0 26px; }
  .hero--compact h1 { font-size: clamp(26px, 6.4vw, 32px); }
  .hero--compact .hero__desc { margin-top: 14px; font-size: 15.5px; }
  .hero--compact .hero__meta { margin-top: 18px; padding-top: 14px; gap: 4px 18px; font-size: 13px; }
  .hero--compact .badge { margin-bottom: 14px; }
  .hero--compact .crumb { margin-bottom: 12px; }

  /* 정보 카드보다 폼이 먼저 오도록 순서 변경 */
  .contactgrid { display: flex; flex-direction: column; gap: 22px; }
  .contactgrid__form { order: 1; scroll-margin-top: calc(var(--nav-h) + 12px); }
  .contactgrid__info { order: 2; }
  /* 폼 위 여백 축소 */
  .hero--compact + .section { padding-top: 26px; }
}

/* ---------- 모바일 2열 그리드 세부 조정 ---------- */
@media (max-width: 760px) {
  /* 시공사진 — 썸네일 그리드 */
  .gitem__meta { padding-top: 10px; }
  .gitem__loc { font-size: 15px; letter-spacing: -.04em; }
  .gitem__desc { font-size: 13px; margin-top: 2px; line-height: 1.5; }
  .gitem__badge { min-height: 26px; padding: 0 9px; font-size: 11.5px; }

  /* 지역 목록 — 2열 */
  .regiongrid a { min-height: 54px; padding: 12px 8px 12px 0; font-size: 15px; }
  .regiongrid a .arrow { display: none; }
  .hoodcount { display: block; margin: 2px 0 0; font-size: 12px; }

  /* 스펙 카드 — 2열 */
  .card { padding: 18px 0 22px; }
  .card h3 { font-size: 18px; margin-bottom: 7px; }
  .card p { font-size: 15px; line-height: 1.7; }
  .card__num { font-size: 13px; margin-bottom: 10px; }
  .card--lg { padding: 20px 0 24px; }
  .card--lg h3 { font-size: 20px; }
  .card--lg p { font-size: 15.5px; }

  /* FAQ — 접힌 상태에서는 질문만 보여 목록을 짧게, 펼치면 결론부터 전부 표시 */
  .faq summary { padding: 17px 44px 17px 40px; gap: 6px; }
  .faq summary::before { left: 0; top: 20px; }
  .faq summary::after { right: 4px; top: 24px; width: 14px; height: 14px; }
  .faq__cat { font-size: 11.5px; letter-spacing: .12em; }
  .faq__q { font-size: 17px; line-height: 1.45; }
  .faq details:not([open]) .faq__short { display: none; }
  .faq details[open] .faq__short { font-size: 15.5px; }
  .faq__body { margin: 0 4px 22px 40px; font-size: 16px; }
}

@media (max-width: 359px) {
  /* 아주 좁은 구형 기기(360px 미만)에서만 시공사진 1열 */
  .gallery { grid-template-columns: 1fr; gap: 24px; }
  .gitem__loc { font-size: 17px; }
  .gitem__desc { font-size: 14.5px; }
}

/* ---------- FAQ 페이지네이션 (모바일) ---------- */
.faqpager__wrap { margin-top: 20px; }
.faqpager {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.faqpager__nums { display: flex; gap: 6px; }
.faqpager__btn {
  min-width: 46px; height: 46px; padding: 0 6px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  display: grid; place-items: center; transition: all .18s var(--ease);
}
.faqpager__btn:hover:not(:disabled) { border-color: var(--signal); color: var(--signal); }
.faqpager__btn[aria-current="true"] {
  background: var(--signal); border-color: var(--signal); color: #12151A;
}
.faqpager__nav { font-size: 21px; line-height: 1; color: var(--text); }
.faqpager__btn:disabled { opacity: .3; cursor: default; }
.faqpager__count {
  margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--muted);
}

@media (max-width: 420px) {
  .faqpager { gap: 6px; }
  .faqpager__nums { gap: 4px; }
  .faqpager__btn { min-width: 42px; height: 44px; font-size: 15px; }
}
