/* 신규 20페이지 공통 베이스. 기존 assets/site.css와 클래스명 충돌 방지를 위해 전부 hd- 프리픽스. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.hd-page {
  margin: 0;
  background: var(--hd-bg, #fff);
  color: #1c2230;
  font-family: var(--hd-body-font, 'Pretendard', sans-serif);
  line-height: 1.75;
  min-width: 0;
  overflow-x: hidden;
}
.hd-page h1, .hd-page h2, .hd-page h3, .hd-page h4 {
  font-family: var(--hd-heading-font, var(--hd-body-font));
  color: var(--hd-main, #1c2230);
  line-height: 1.35;
  margin: 0 0 .6em;
}
.hd-page img { max-width: 100%; display: block; }
.hd-page a { color: inherit; }
.hd-page a:focus-visible, .hd-page button:focus-visible { outline: 3px solid var(--hd-accent, #2563eb); outline-offset: 2px; }
.hd-wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }
@media (prefers-reduced-motion: reduce) {
  .hd-page * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 헤더 HD1-HD4 ---------- */
.hd-header { border-bottom: 1px solid rgba(0,0,0,.08); }
.hd-header-inner { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hd-logo { font-family: var(--hd-heading-font); font-weight: 800; font-size: 18px; color: var(--hd-main); text-decoration: none; }
.hd-cta-link { background: var(--hd-main); color: #fff !important; padding: 9px 16px; border-radius: 8px; font-weight: 700; }

.hd-hd1 .hd-header-inner { flex-direction: row; }
.hd-hd2 .hd-header-inner { flex-direction: column; text-align: center; }
.hd-hd3 { position: relative; }
.hd-hd3-bar { background: var(--hd-main); color: #fff; text-align: center; font-size: 12.5px; padding: 6px 10px; }

/* ---------- 히어로 HR1-HR5 (사진 없음) ---------- */
.hd-hero { padding: 52px 20px 44px; }
.hd-hero-inner { max-width: 900px; margin: 0 auto; }
.hd-hero-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--hd-accent); margin-bottom: 12px; }
.hd-hero h1 { font-size: clamp(26px, 4.4vw, 40px); margin-bottom: .4em; }
.hd-hero p { font-size: 16px; color: #444; max-width: 620px; }

.hd-hr1 { background: var(--hd-bg); border-bottom: 1px solid rgba(0,0,0,.08); text-align: left; }
.hd-hr2 { background: linear-gradient(180deg, var(--hd-bg), #fff); text-align: center; }
.hd-hr2 .hd-hero-inner { margin: 0 auto; }
.hd-hr2 p { margin-left: auto; margin-right: auto; }
.hd-hr3 .hd-hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.hd-hr3 svg { width: 100%; height: auto; }
.hd-hr4 { background: #f4f5f7; text-align: left; }
.hd-hr5 .hd-hero { background: var(--hd-main); color: #fff; text-align: left; }
.hd-hr5 .hd-hero-label, .hd-hr5 .hd-hero h1 { color: #fff; }
.hd-hr5 .hd-hero p { color: rgba(255,255,255,.88); }
@media (max-width: 720px) { .hd-hr3 .hd-hero-inner { grid-template-columns: 1fr; } }

/* ---------- 본문 레이아웃 L1-L10 ---------- */
.hd-section { padding: 34px 20px; }
.hd-section .hd-wrap > h2 { font-size: 22px; margin-bottom: 14px; }
.hd-section-desc { color: #555; margin-bottom: 20px; }

/* L1: 3열 카드 그리드 */
.hd-l1-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hd-l1-grid .hd-card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 18px; }
@media (max-width: 760px) { .hd-l1-grid { grid-template-columns: 1fr; } }

/* L2/L3: 좌우 분할 */
.hd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.hd-l3 .hd-split { direction: rtl; }
.hd-l3 .hd-split > * { direction: ltr; }
@media (max-width: 760px) { .hd-split { grid-template-columns: 1fr; } }

/* L4: 세로 타임라인 */
.hd-timeline { border-left: 3px solid var(--hd-main); padding-left: 22px; display: flex; flex-direction: column; gap: 22px; }
.hd-timeline .hd-tl-item { position: relative; }
.hd-timeline .hd-tl-item::before { content: ''; position: absolute; left: -28px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--hd-accent); }

/* L5: 넘버링 스텝 아코디언 */
.hd-accordion details { border: 1px solid rgba(0,0,0,.1); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.hd-accordion summary { font-weight: 700; cursor: pointer; color: var(--hd-main); }

/* L6: 비교 테이블 중앙 */
.hd-compare-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.hd-compare-table th, .hd-compare-table td { border: 1px solid rgba(0,0,0,.1); padding: 10px 12px; text-align: left; font-size: 14.5px; }
.hd-compare-table th { background: var(--hd-bg); color: var(--hd-main); }

/* L7: 지그재그 */
.hd-zigzag .hd-zz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-bottom: 26px; }
.hd-zigzag .hd-zz-row:nth-child(even) { direction: rtl; }
.hd-zigzag .hd-zz-row:nth-child(even) > * { direction: ltr; }
@media (max-width: 760px) { .hd-zigzag .hd-zz-row { grid-template-columns: 1fr; } }

/* L8: 좌측 사이드바 목차 */
.hd-sidebar-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.hd-sidebar-layout .hd-toc { position: sticky; top: 16px; border-right: 1px solid rgba(0,0,0,.08); padding-right: 14px; }
.hd-sidebar-layout .hd-toc a { display: block; padding: 6px 0; font-size: 14px; color: #555; text-decoration: none; }
.hd-sidebar-layout .hd-toc a:hover { color: var(--hd-main); }
@media (max-width: 760px) { .hd-sidebar-layout { grid-template-columns: 1fr; } .hd-sidebar-layout .hd-toc { position: static; border-right: none; border-bottom: 1px solid rgba(0,0,0,.08); padding-bottom: 10px; } }

/* L9: 풀블리드 배너 + 중앙 단일 컬럼 */
.hd-l9-banner { background: var(--hd-main); color: #fff; padding: 30px 20px; text-align: center; }
.hd-l9-banner h2 { color: #fff; }
.hd-l9-single { max-width: 680px; margin: 0 auto; }

/* L10: 매거진 2단 + 드롭캡 */
.hd-magazine { column-count: 2; column-gap: 32px; }
.hd-magazine p:first-of-type::first-letter { font-size: 2.6em; font-weight: 800; float: left; line-height: .9; padding-right: 8px; color: var(--hd-main); }
@media (max-width: 760px) { .hd-magazine { column-count: 1; } }

/* ---------- CTA CT1-CT7 ---------- */
.hd-cta { padding: 30px 20px; }
.hd-cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.hd-btn { display: inline-block; padding: 13px 26px; border-radius: 9px; font-weight: 800; text-decoration: none; font-size: 15.5px; }
.hd-btn-solid { background: var(--hd-main); color: #fff; }
.hd-btn-outline { background: transparent; color: var(--hd-main); border: 2px solid var(--hd-main); }
.hd-btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hd-btn-col { display: flex; flex-direction: column; gap: 12px; align-items: center; }

.hd-cta.hd-ct1 { background: var(--hd-main); }
.hd-ct1 .hd-btn-solid { background: #fff; color: var(--hd-main); }
.hd-ct2 .hd-cta-inner { background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 14px; padding: 24px; }
.hd-ct3 .hd-cta-inner { display: grid; grid-template-columns: 1fr auto; text-align: left; align-items: center; gap: 20px; }
.hd-ct4-sticky { position: fixed; left: 0; right: 0; bottom: 0; background: var(--hd-main); padding: 10px 16px; display: flex; justify-content: center; gap: 10px; z-index: 30; }
.hd-ct4-sticky .hd-btn { padding: 10px 18px; font-size: 14px; }
.hd-ct4-inline { border-left: 4px solid var(--hd-accent); background: var(--hd-bg); padding: 12px 16px; margin: 20px 0; font-size: 14.5px; }
.hd-ct5-line { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(0,0,0,.08); border-bottom: 1px solid rgba(0,0,0,.08); padding: 14px 0; margin: 24px 0; }
.hd-cta.hd-ct6 { background: var(--hd-main); clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }
.hd-ct6 .hd-btn-solid { background: #fff; color: var(--hd-main); }
.hd-ct7 .hd-cta-inner { border: 2px solid var(--hd-main); border-radius: 14px; padding: 24px; background: transparent; }

/* ---------- 이미지 페어 ---------- */
.hd-figure { max-width: 480px; margin: 30px auto; text-align: center; }
.hd-figure img { width: 100%; height: auto; border-radius: 10px; margin: 0 auto; }
.hd-figure figcaption { font-size: 13px; color: #666; margin-top: 8px; }

/* ---------- 시공 과정 4매 갤러리 ---------- */
.hd-gallery4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.hd-gallery4 figure { margin: 0; }
.hd-gallery4 .hd-sq { position: relative; width: 100%; padding-top: 100%; overflow: hidden; border-radius: 10px; background: var(--hd-bg); }
.hd-gallery4 .hd-sq img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.hd-gallery4 figcaption { font-size: 12px; color: #666; margin-top: 6px; text-align: center; }
.hd-gallery4 .hd-g-step { font-size: 11px; font-weight: 800; color: var(--hd-accent); display: block; margin-bottom: 2px; }
@media (max-width: 720px) { .hd-gallery4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 관련 서비스 카드 그리드(7개) ---------- */
.hd-svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 30px; }
.hd-svc-card { display: block; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; overflow: hidden; text-decoration: none; background: #fff; transition: transform .2s, box-shadow .2s; }
.hd-svc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,.1); }
.hd-svc-card .hd-sq { position: relative; width: 100%; padding-top: 100%; overflow: hidden; background: var(--hd-bg); }
.hd-svc-card .hd-sq img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.hd-svc-card span { display: block; padding: 8px 10px; font-size: 13px; font-weight: 700; color: #333; text-align: center; }
@media (max-width: 760px) { .hd-svc-cards { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 콘텐츠 형식 헬퍼 (CF1-CF8) ---------- */
.hd-summary3 { background: var(--hd-bg); border-left: 4px solid var(--hd-main); border-radius: 8px; padding: 16px 20px; margin: 0 0 26px; font-size: 14.5px; }
.hd-summary3 li { margin-bottom: 4px; }
.hd-qa h3 { font-size: 17px; }
.hd-checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.hd-checklist li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.hd-checklist li::before { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border: 2px solid var(--hd-main); border-radius: 4px; }
.hd-term { color: var(--hd-main); font-weight: 700; }
.hd-note { background: rgba(0,0,0,.035); border-radius: 8px; padding: 12px 16px; font-size: 13.5px; color: #555; margin: 16px 0; }
.hd-faq { border-top: 1px solid rgba(0,0,0,.08); padding-top: 18px; margin-top: 26px; }
.hd-faq details { border-bottom: 1px solid rgba(0,0,0,.08); padding: 12px 0; }
.hd-faq summary { font-weight: 700; cursor: pointer; }
.hd-related { font-size: 13.5px; margin: 22px 0; }
.hd-related a { color: var(--hd-main); font-weight: 700; text-decoration: underline; }

/* ---------- 푸터 FT1-FT3 ---------- */
.hd-footer { border-top: 1px solid rgba(0,0,0,.1); padding: 30px 20px; font-size: 12.5px; color: #666; }
.hd-footer a { text-decoration: none; color: #555; }
.hd-footer a:hover { color: var(--hd-main); }
.hd-ft1 .hd-footer-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 20px; }
.hd-ft2 .hd-footer-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.hd-ft3 .hd-footer-inner { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.hd-footer-biz { line-height: 1.9; }
.hd-footer-links { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { .hd-ft1 .hd-footer-inner, .hd-ft2 .hd-footer-inner { grid-template-columns: 1fr; } }
