/* ==========================================================================
   대구 누수·방수 홈페이지 — 디자인 시스템
   이 파일 하나만 고치면 모든 페이지 디자인이 함께 바뀝니다.

   설계 방향
   · 활자 중심 : 박스와 테두리를 줄이고, 글자 크기와 여백으로 구분
   · 웜 뉴트럴 : 차가운 남색 대신 종이 같은 따뜻한 바탕 + 테라코타 강조
   · 부드러운 곡선 : 큰 모서리 반경, 얇은 실선
   ========================================================================== */

/* --- 1. 색·크기 기본값 ----------------------------------------------------
   색을 바꾸려면 아래 값만 고치세요. */
:root {
  /* 바탕 */
  --paper:      #FAF8F4;   /* 기본 배경 (따뜻한 오프화이트) */
  --paper-2:    #F2EDE5;   /* 한 단계 진한 배경 */
  --paper-3:    #E9E2D7;
  --white:      #FFFFFF;

  /* 글자 */
  --ink:        #191512;   /* 제목 */
  --ink-2:      #574F47;   /* 본문 */
  --ink-3:      #8C8378;   /* 보조 */

  /* 강조 (테라코타) */
  --clay:       #B04A26;
  --clay-2:     #8E3A1B;
  --clay-tint:  #FBEFE8;

  /* 어두운 면 */
  --dark:       #221D19;
  --dark-2:     #2F2822;

  --line:       #E4DCD0;   /* 얇은 실선 */
  --line-soft:  #EFE9E0;

  --naver:      #03C75A;   /* 네이버 톡톡 그린 */
  --naver-ink:  #FFFFFF;

  --r-sm:  10px;
  --r:     16px;
  --r-lg:  26px;
  --r-xl:  36px;

  --wrap:  1180px;
  --gut:   24px;
}

/* --- 2. 기본 ------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* 링크로 이동할 때 상단 고정 메뉴에 제목이 가리지 않도록 */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  /* Pretendard가 없으면 시스템 글꼴로 자동 대체됩니다 */
  font-family: "Pretendard Variable", Pretendard, -apple-system,
               BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
               "맑은 고딕", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  color: var(--ink-2);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 78px;          /* 하단 고정 바 자리 */
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }

a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-2); }

::selection { background: var(--clay); color: #fff; }

/* --- 3. 레이아웃 ---------------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.wrap--narrow { max-width: 860px; }

.section { padding: clamp(60px, 8vw, 118px) 0; }
.section--tight { padding: clamp(44px, 5vw, 76px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--white  { background: var(--white); }
.section--dark {
  background: var(--dark);
  color: #C8BFB4;
}
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }
.section--dark .eyebrow { color: #D99C7C; }
.section--dark .lead { color: #B5ABA0; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- 4. 활자 -------------------------------------------------------------
   큰 화면에서는 크게, 작은 화면에서는 작게 자동 조절됩니다. */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.18;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.048em;
}
h2 {
  font-size: clamp(1.62rem, 3.2vw, 2.55rem);
  font-weight: 750;
  letter-spacing: -.042em;
}
h3 { font-size: clamp(1.12rem, 1.6vw, 1.32rem); font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 62ch;
}

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 18px;
}

.muted { color: var(--ink-3); font-size: .92rem; }
strong { color: var(--ink); font-weight: 700; }

/* 섹션 머리 */
.head {
  max-width: 720px;
  margin-bottom: clamp(34px, 4vw, 56px);
}
.head p { margin-bottom: 0; }

/* --- 5. 헤더 -------------------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 248, 244, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr-in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.logo { color: var(--ink); line-height: 1.25; }
.logo:hover { color: var(--ink); }
.logo b {
  display: block;
  font-size: 1.17rem;
  font-weight: 800;
  letter-spacing: -.04em;
}
.logo span {
  display: block;
  font-size: .715rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  min-width: 0;
}
.nav a {
  color: var(--ink-2);
  font-size: .925rem;
  font-weight: 600;
  letter-spacing: -.02em;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .16s, color .16s;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }

.hdr-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: #fff !important;
  font-size: .9rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .16s, transform .16s;
}
.hdr-cta:hover { background: var(--clay); transform: translateY(-1px); }

/* --- 6. 버튼 -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 56px;
  text-align: center;
  transition: transform .16s cubic-bezier(.2,.7,.3,1), background .16s, box-shadow .16s, color .16s;
}
.btn:hover { transform: translateY(-2px); }

.btn--clay {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(176, 74, 38, .65);
}
.btn--clay:hover { background: var(--clay-2); color: #fff; box-shadow: 0 14px 32px -10px rgba(176,74,38,.7); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--dark-2); color: #fff; }

.btn--naver { background: var(--naver); color: var(--naver-ink); }
.btn--naver:hover { background: #02B152; color: var(--naver-ink); }

.btn--line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn--ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* 텍스트 링크 화살표 */
.arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--clay);
}
.arrow svg { transition: transform .18s; }
a:hover .arrow svg, .arrow:hover svg { transform: translateX(4px); }

/* --- 7. 히어로 ------------------------------------------------------------ */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); }
.hero-in {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 32px; }

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hero-meta li {
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-meta svg { color: var(--clay); }

/* --- 8. 핵심 요약 (AI가 발췌하기 좋은 블록) -------------------------------- */
.summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 40px);
  margin: 0 0 clamp(30px, 4vw, 46px);
}
.summary h2 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 20px;
}
.summary ul { list-style: none; margin: 0; padding: 0; }
.summary li {
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 13px;
  font-size: 1.04rem;
  line-height: 1.7;
}
.summary li:last-child { margin-bottom: 0; }
.summary li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}

/* --- 9. 카드 ------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.8vw, 34px);
  color: var(--ink-2);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), border-color .2s, box-shadow .2s;
}
a.card:hover {
  transform: translateY(-4px);
  border-color: var(--paper-3);
  box-shadow: 0 20px 44px -24px rgba(34, 29, 25, .28);
  color: var(--ink-2);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; color: var(--ink-2); margin-bottom: 20px; }
.card .arrow { margin-top: auto; }

.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay);
  background: var(--clay-tint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

/* 번호가 붙은 카드 (방식 1·2·3·4) */
.card--num { position: relative; padding-top: 34px; }
.card--num .num {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink-3);
  margin-bottom: 14px;
}

/* --- 10. 체크리스트 ------------------------------------------------------- */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2px 34px;
}
.checks li {
  position: relative;
  padding: 15px 0 15px 32px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1rem;
  color: var(--ink-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--clay);
}

/* 하면 안 되는 것 */
.checks--dont li::before {
  border: 0;
  background: none;
  content: "✕";
  color: #A8341F;
  font-weight: 800;
  font-size: .95rem;
  top: 14px;
  left: 2px;
  width: auto;
  height: auto;
}

/* --- 11. 단계(프로세스) --------------------------------------------------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps > li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 3vw, 38px) 0;
  border-top: 1px solid var(--line);
}
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before {
  content: counter(s, decimal-leading-zero);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--paper-3);
  line-height: 1;
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 1rem; }

.pill {
  display: inline-block;
  margin-top: 12px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--clay);
  background: var(--clay-tint);
  border-radius: 999px;
  padding: 5px 14px;
}

/* --- 12. 원칙(약속) ------------------------------------------------------- */
.promises { list-style: none; counter-reset: p; padding: 0; margin: 0; }
.promises li {
  counter-increment: p;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: clamp(14px, 2.5vw, 32px);
  padding: clamp(24px, 3vw, 34px) 0;
  border-top: 1px solid var(--line);
}
.promises li:last-child { border-bottom: 1px solid var(--line); }
.promises li::before {
  content: counter(p, decimal-leading-zero);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clay);
  letter-spacing: -.04em;
  line-height: 1.3;
}
.promises strong {
  display: block;
  font-size: clamp(1.08rem, 1.5vw, 1.26rem);
  color: var(--ink);
  letter-spacing: -.03em;
  margin-bottom: 7px;
}
.promises span { font-size: 1rem; color: var(--ink-2); }

/* --- 13. 표 -------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin: 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .98rem;
  min-width: 520px;
}
th, td {
  padding: 18px 20px 18px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--ink-3);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-bottom: 12px;
  white-space: nowrap;
}
td strong { color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
caption {
  caption-side: bottom;
  font-size: .88rem;
  color: var(--ink-3);
  padding-top: 18px;
  text-align: left;
}

/* --- 14. FAQ (자바스크립트 없이 동작 — 크롤러가 전부 읽습니다) -------------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 26px 48px 26px 0;
  font-weight: 700;
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.5;
  position: relative;
  transition: color .16s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--clay); }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  background: var(--clay);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), opacity .22s;
}
.faq summary::before { width: 15px; height: 2px; margin-top: -1px; }
.faq summary::after  { width: 2px; height: 15px; margin-top: -7.5px; right: 14.5px; }
.faq details[open] summary::after { transform: rotate(90deg); opacity: 0; }
.faq .a { padding: 0 8% 30px 0; }
.faq .a p { font-size: 1rem; }

/* --- 15. 문의 CTA -------------------------------------------------------- */
.cta {
  background: var(--dark);
  color: #B9AFA4;
  border-radius: var(--r-xl);
  padding: clamp(38px, 5.5vw, 72px) clamp(26px, 5vw, 60px);
  text-align: center;
}
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: #ADA398; max-width: 54ch; margin: 0 auto 30px; font-size: 1.05rem; }
.cta .btn-row { justify-content: center; }
.cta-note { margin: 26px auto 0 !important; font-size: .89rem; color: #877D72 !important; }

/* 밝은 CTA (섹션 사이 가벼운 유도) */
.cta--soft {
  background: var(--clay-tint);
  color: var(--ink-2);
  border: 1px solid #F0DDD2;
}
.cta--soft h2 { color: var(--ink); }
.cta--soft p { color: var(--ink-2); }

/* --- 16. 사진 자리 ------------------------------------------------------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.shot {
  background: var(--paper-2);
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 22px;
  gap: 8px;
  overflow: hidden;
}
.shot b {
  color: var(--ink);
  font-size: .97rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.5;
}
.shot span {
  font-size: .78rem;
  color: var(--ink-3);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  letter-spacing: -.01em;
}
/* 촬영 가이드 — 사진을 넣으면 이 줄도 함께 지우면 됩니다 */
.shot em {
  display: block;
  font-style: normal;
  font-size: .79rem;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 36ch;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(120, 105, 90, .16);
}
.shot em b { color: var(--ink-2); font-weight: 700; }
.shot--video em { color: #8B8177; border-top-color: rgba(255,255,255,.12); }
.shot--video em b { color: #C4BAB0; }
.shot svg { color: var(--paper-3); margin-bottom: 4px; }
.shot--wide { aspect-ratio: 16 / 10; }
.shot--tall { aspect-ratio: 3 / 4; }
.shot--video { aspect-ratio: 16 / 9; background: var(--dark-2); }
.shot--video b { color: #fff; }
.shot--video span { color: #8B8177; }
.shot--video svg { color: #4A423A; }

/* 실제 사진이 들어오면 이 클래스로 감쌉니다 */
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--img { padding: 0; background: var(--paper-2); }
.shot--img img { display: block; }
/* 세로 사진은 잘리지 않게 전체를 보여줍니다 */
.shot--fit { padding: 0; background: var(--dark-2); }
.shot--fit img { width: 100%; height: 100%; object-fit: contain; }

/* --- 16-2. 설명 그림(도해) ------------------------------------------------
   글로만 설명하기 어려운 부분을 그림으로 보여줍니다. */
.fig {
  background: var(--paper-2);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 34px);
  margin: 0;
}
.fig--white { background: var(--white); border: 1px solid var(--line); }
.fig--dark  { background: var(--dark-2); }
.fig svg { width: 100%; height: auto; display: block; }
.fig figcaption {
  margin-top: 16px;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--ink-3);
}
.fig--dark figcaption { color: #9C9288; }

/* 그림 + 글 나란히 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}
.split--text-first { grid-template-columns: 1.05fr .95fr; }
.split h3 { margin-bottom: 12px; }

/* 그림 안에서 쓰는 글자 크기 */
.fig text { font-family: inherit; }

/* 집 단면도 (메인 페이지) */
.house { position: relative; }
.house a text { cursor: pointer; }
.house a:hover .hot { fill: var(--clay); }
.house a:hover text { fill: var(--clay); font-weight: 700; }
.hot { transition: fill .18s; }

/* --- 16-3. 본문 중간 그림 (읽기 피로 줄이기) ------------------------------
   글이 2~3문단 이어지면 그림 하나를 끼워 호흡을 끊습니다. */
.fig--inline {
  margin: 34px 0;
}
.fig--full { margin: 40px 0; }

/* 그림 안내 라벨 (그림이 무엇을 설명하는지) */
.fig-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

/* 3단 비교 그림 */
.fig-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.fig-3 > figure { margin: 0; display: flex; flex-direction: column; }
.fig-3 .fig { padding: 20px 18px; }
.fig-3 h4 {
  font-size: 1.02rem;
  margin: 14px 0 6px;
  letter-spacing: -.03em;
}
.fig-3 p { font-size: .92rem; color: var(--ink-2); margin: 0; }

/* 그림 안 범례 */
.legend {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--ink-2);
}
.legend i {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* --- 16-3b. 외부 후기(숨고·네이버 플레이스) ------------------------------- */
.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.proof-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 34px);
  color: var(--ink-2);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s, border-color .2s;
}
a.proof-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -24px rgba(34,29,25,.28);
  border-color: var(--paper-3);
  color: var(--ink-2);
}
.proof-card .src {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.proof-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.proof-score b {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.05em;
  line-height: 1;
}
.proof-score span { font-size: 1rem; color: var(--ink-3); font-weight: 600; }
.stars { display: flex; gap: 3px; margin-bottom: 14px; }
.stars svg { color: #E8A33C; }
.proof-card p { font-size: .96rem; margin-bottom: 18px; }
.proof-card .arrow { margin-top: auto; }

/* 실제 후기 인용 */
.quotes { display: grid; gap: 14px; }
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);
  border-radius: var(--r);
  padding: 24px 26px;
}
.quote p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.quote footer {
  font-size: .86rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.quote footer b { color: var(--ink-2); font-weight: 600; }

/* --- 16-4. 현장 기록(블로그) --------------------------------------------- */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--ink-2);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s, border-color .2s;
}
a.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -24px rgba(34, 29, 25, .28);
  border-color: var(--paper-3);
  color: var(--ink-2);
}
.post-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.post-card .thumb svg { width: 100%; height: 100%; display: block; }
.post-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.14rem; margin-bottom: 10px; line-height: 1.4; }
.post-card p { font-size: .95rem; margin-bottom: 18px; }
.post-card .meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: .84rem;
  color: var(--ink-3);
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.post-card .meta b { color: var(--ink-2); font-weight: 600; }

/* 사례 필터 칩 */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
}
.chips a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -.02em;
}
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --- 16-5. 사례 상세 본문 ------------------------------------------------- */
.article { max-width: 780px; margin: 0 auto; }
.article > h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 52px 0 18px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.article > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.article > h3 { margin: 34px 0 12px; }
.article > p { font-size: 1.06rem; line-height: 1.85; }
.article > figure { margin: 30px 0; }
.article > ul, .article > ol { font-size: 1.04rem; line-height: 1.85; padding-left: 22px; }
.article > ul li, .article > ol li { margin-bottom: 10px; }

/* 사례 요약 정보 (한눈에) */
.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin: 0 0 36px;
}
.spec div { background: var(--white); padding: 18px 20px; }
.spec dt {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.spec dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.4;
}

/* 시공 전후 나란히 */
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ba figure { margin: 0; }
.ba figcaption {
  margin-top: 10px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-2);
  text-align: center;
}
.ba .tag-ba {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.ba .before .tag-ba { background: #F6E4DC; color: var(--clay-2); }
.ba .after  .tag-ba { background: #E2EFE8; color: #2F6B52; }

/* --- 17. 유튜브 --------------------------------------------------------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.video iframe,
.video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* --- 18. 대표 소개 ------------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.profile-name {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 6px;
}
.profile-role {
  color: var(--clay);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
blockquote {
  margin: 0 0 24px;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--clay);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -.035em;
  color: var(--ink);
}

/* --- 19. 숫자 지표 ------------------------------------------------------- */
.stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: var(--r);
  overflow: hidden;
}
.stats li {
  background: var(--dark);
  padding: 30px 20px;
  text-align: center;
}
.stats b {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.05em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stats span { font-size: .88rem; color: #9C9288; }

/* --- 20. 지역 태그 ------------------------------------------------------- */
.areas {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.areas li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  letter-spacing: -.02em;
}

/* --- 21. 브레드크럼 ------------------------------------------------------ */
.crumb {
  font-size: .84rem;
  color: var(--ink-3);
  padding: 22px 0 0;
  margin: 0;
  letter-spacing: -.01em;
}
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--clay); }
.crumb i { font-style: normal; margin: 0 8px; color: var(--paper-3); }

/* --- 22. 알림 박스 ------------------------------------------------------- */
.note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 26px;
  font-size: .99rem;
}
.note--warn { background: #FDF3EF; border-color: #F0DACE; }
.note--warn strong { color: var(--clay-2); }

/* --- 23. 문의 양식 ------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.field label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color .16s, box-shadow .16s;
}
.field input::placeholder, .field textarea::placeholder { color: #B7AEA3; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-tint);
}
.field textarea { min-height: 140px; resize: vertical; }
.field--full { grid-column: 1 / -1; }

/* --- 24. 관련 페이지 ----------------------------------------------------- */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.related li { border-top: 1px solid var(--line); }
.related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.03em;
}
.related a:hover { color: var(--clay); }
.related small {
  display: block;
  font-weight: 500;
  color: var(--ink-3);
  font-size: .85rem;
  letter-spacing: -.01em;
  margin-top: 2px;
}
.related svg { color: var(--paper-3); transition: transform .18s, color .18s; }
.related a:hover svg { color: var(--clay); transform: translateX(4px); }

/* --- 25. 푸터 ----------------------------------------------------------- */
.ftr {
  background: var(--dark);
  color: #8E857B;
  padding: clamp(48px, 6vw, 80px) 0 40px;
  font-size: .93rem;
}
.ftr a { color: #C0B7AC; }
.ftr a:hover { color: #fff; }
.ftr-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}
.ftr h4 {
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.ftr-brand b {
  display: block;
  color: #fff;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 10px;
}
.ftr-links { list-style: none; padding: 0; margin: 0; }
.ftr-links li { margin-bottom: 10px; }
.ftr-biz { font-size: .84rem; line-height: 2; color: #6E655C; }

/* --- 26. 하단 고정 문의 바 ----------------------------------------------- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: flex;
  gap: 9px;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 244, .93);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
}
.callbar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.025em;
  transition: transform .16s;
}
.callbar a:active { transform: scale(.98); }
.callbar .cb-call  { background: var(--clay); color: #fff; }
.callbar .cb-naver { background: var(--naver); color: var(--naver-ink); }

/* PC에서는 화면을 가로지르지 않고, 오른쪽 아래에 뜨는 작은 버튼으로 */
@media (min-width: 761px) {
  .callbar {
    left: auto;
    right: 26px;
    bottom: 26px;
    width: auto;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 14px 36px -10px rgba(34, 29, 25, .3);
  }
  .callbar a {
    flex: 0 0 auto;
    padding: 0 24px;
    min-height: 50px;
    font-size: .98rem;
  }
  body { padding-bottom: 0; }
}

/* --- 27. 스크롤 등장 효과 (지원하는 브라우저에서만) ------------------------ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(26px); }
      to   { opacity: 1; transform: translateY(0); }
    }
  }
}

/* --- 28. 태블릿·모바일 -------------------------------------------------- */
@media (max-width: 1040px) {
  .nav a { padding: 8px 9px; font-size: .88rem; }
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 34px; }
  .profile { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gut: 20px; }
  body { font-size: 16.5px; }

  /* 헤더: 로고 줄 + 가로 스크롤 메뉴 줄 */
  .hdr-in {
    flex-wrap: wrap;
    gap: 0;
    padding-top: 12px;
    padding-bottom: 6px;
    min-height: 0;
  }
  .logo { flex: 1; }
  .hdr-cta { padding: 10px 16px; font-size: .84rem; }
  .nav {
    order: 3;
    width: 100%;
    margin: 10px -20px 0;
    padding: 0 20px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }

  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }

  .steps > li,
  .promises li { grid-template-columns: 1fr; gap: 8px; }
  .steps > li::before,
  .promises li::before { font-size: 1.3rem; }

  .checks { grid-template-columns: 1fr; gap: 0; }
  .split, .split--text-first { grid-template-columns: 1fr; gap: 26px; }
  .fig-3 { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; gap: 20px; }
  .spec { grid-template-columns: 1fr 1fr; }
  .faq .a { padding-right: 0; }
  .related { grid-template-columns: 1fr; gap: 0; }
  .ftr-top { grid-template-columns: 1fr; gap: 30px; }
}

/* --- 29. 인쇄 ----------------------------------------------------------- */
@media print {
  .callbar, .nav, .cta, .hdr-cta { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
  .faq details { open: true; }
}
