/* services-base.css — 서비스상세 20페이지 공통 컴포넌트 (헤더/히어로/CTA/푸터 제외)
   페이지별 CSS가 :root 토큰(--h, --disp-font 등)과 헤더/히어로/CTA/푸터 아키타입만 재정의한다. */

*, *::before, *::after{ box-sizing: border-box; }
*{ min-width: 0; }
html, body{ max-width: 100%; overflow-x: hidden; }
img, video, svg, table, pre{ max-width: 100%; }
img{ height: auto; display: block; }
body{
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Pretendard Variable", Pretendard, sans-serif;
  -webkit-text-size-adjust: 100%; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.78;
}
a{ color: inherit; }
:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){ *{ animation: none !important; transition: none !important; } }

.wrap{ width: 100%; max-width: min(1120px, 100%); margin-inline: auto; padding-inline: clamp(14px, 4.2vw, 28px); }

h1{ font-family: var(--disp-font), -apple-system, "Apple SD Gothic Neo", sans-serif; font-weight: var(--disp-weight, 700); font-size: clamp(24px, 6.4vw, 44px); line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
h2{ font-family: var(--disp-font), -apple-system, "Apple SD Gothic Neo", sans-serif; font-weight: var(--disp-weight, 700); font-size: clamp(19px, 4.6vw, 30px); line-height: 1.38; margin: 0 0 10px; }
h3{ font-weight: 700; font-size: clamp(16px, 3.9vw, 21px); margin: 0 0 6px; }
p, li{ font-size: clamp(15px, 3.9vw, 17px); line-height: 1.78; }
.small{ font-size: clamp(12px, 3.2vw, 13.5px); }
p{ margin: 0 0 14px; max-width: 68ch; }
.answer{ font-weight: 600; color: var(--ink); }

/* 전/후 사진 밴드 */
.ba-band{ display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 2.4vw, 20px); margin-block: clamp(24px, 5vw, 40px); }
.ba-set{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.ba-set figure{ position: relative; margin: 0; border-radius: var(--r); overflow: hidden; }
.ba-set img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ba-set figcaption{ position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: hsl(var(--h) 40% 10% / .62); color: #fff; font-size: 12px; font-weight: 600; }

/* 단독 현장사진 그리드(전후쌍이 아닌 완료/현장 사진용) */
.shot-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: clamp(10px, 2.4vw, 18px); margin-block: clamp(24px, 5vw, 40px); }
.shot-grid figure{ position: relative; margin: 0; border-radius: var(--r); overflow: hidden; }
.shot-grid img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.shot-grid figcaption{ position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: hsl(var(--h) 40% 10% / .62); color: #fff; font-size: 12px; font-weight: 600; }

/* 본문 단락 — 이미지 먼저 */
.para{ display: flex; flex-direction: column; gap: 16px; padding-block: clamp(20px, 4vw, 32px); border-top: 1px solid var(--line); }
.para-visual{ margin: 0; border-radius: var(--r); overflow: hidden; }
.para-visual img{ width: 100%; aspect-ratio: 16/10; object-fit: cover; }
@media (min-width: 768px){ .para{ flex-direction: row; align-items: center; gap: 32px; } .para-visual{ flex: 0 0 42%; } .para-body{ flex: 1 1 auto; min-width: 0; } }

/* 텍스트 심화: 표 + 체크리스트 */
.deep{ padding-block: clamp(24px, 5vw, 40px); border-top: 1px solid var(--line); }
.table-wrap{ overflow-x: auto; margin-block: 16px; }
table{ width: 100%; border-collapse: collapse; min-width: 480px; }
th, td{ text-align: left; padding: 12px 10px; border-top: 1px solid var(--line); font-size: 15px; }
thead th{ border-top: none; font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }
.checklist{ list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li{ display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.checklist li svg{ flex: none; margin-top: 3px; color: var(--brand); }
.note{ font-size: 13.5px; color: var(--ink-soft); margin-top: 16px; }

/* 버튼 공통 */
.btn-row{ display: flex; flex-wrap: wrap; gap: 12px; }
.btn{ display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 24px; border-radius: var(--r); font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; }

/* FAQ */
.faq{ padding-block: clamp(24px, 5vw, 40px); border-top: 1px solid var(--line); }
.faq-item{ border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq-item summary{ cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; }
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: "+"; flex: none; font-weight: 400; color: var(--brand); }
.faq-item[open] summary::after{ content: "\2212"; }
.faq-item p{ margin: 8px 0 0; color: var(--ink-soft); }

/* 캐러셀 링크 카드 */
.rel{ padding-block: clamp(24px, 5vw, 40px); border-top: 1px solid var(--line); }
.rel-track{ display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; max-width: 100%; min-width: 0; padding-bottom: 6px; }
.rel-card{ flex: 0 0 clamp(220px, 72vw, 300px); scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-decoration: none; color: var(--ink); min-height: 44px; }
.rel-card h3{ font-size: 16px; margin-bottom: 6px; color: var(--brand-deep); font-family: inherit; font-weight: 700; }
.rel-card p{ font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.rel-nav{ display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.rel-nav button{ width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 16px; }

/* 푸터 공통 텍스트 */
.biz{ display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); font-size: clamp(11px, 3vw, 12.5px); line-height: 1.45; letter-spacing: .01em; word-break: keep-all; }
.biz span{ white-space: nowrap; }
.biz .sep{ opacity: .45; }
.biz .addr{ white-space: normal; }

/* ==========================================================================
   공통 헤더/네비 뼈대 (아키타입 클래스가 세부만 재정의)
   ========================================================================== */
.site-head{ border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap{ display: flex; align-items: center; justify-content: space-between; height: clamp(56px, 8vw, 64px); gap: 14px; }
.site-head__mark{ font-weight: 800; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); flex: none; }
.site-head__nav{ display: flex; gap: 4px; overflow-x: auto; }
.site-head__nav a{ display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: clamp(13px, 3.4vw, 15px); font-weight: 600; color: var(--ink-soft); text-decoration: none; white-space: nowrap; border-radius: var(--r); }
.site-head__nav a:hover, .site-head__nav a:active{ color: var(--brand); background: var(--brand-soft); }
.notice-bar{ background: var(--brand-soft); color: var(--brand-deep); text-align: center; font-size: 12.5px; padding: 6px 10px; }

/* HEADER 아키타입 */
.hd-h2 .wrap{ flex-direction: column; height: auto; padding-block: 10px; gap: 6px; text-align: center; }
.hd-h2 .site-head__nav{ justify-content: center; }
.hd-h3 .site-head__nav{ flex-wrap: wrap; }
.hd-h3 .site-head__nav a{ border: 1px solid var(--line); border-radius: 999px; }
.hd-h5{ position: sticky; top: 0; z-index: 20; box-shadow: var(--sh, 0 1px 2px rgba(0,0,0,.05)); }
.hd-h6 .wrap{ align-items: flex-start; padding-block: 10px; }
.hd-h6 .site-head__nav{ flex-direction: column; gap: 0; align-items: flex-end; }
.hd-h6 .site-head__nav a{ min-height: 22px; font-size: 12.5px; }
.hd-h7{ background: var(--brand); border-bottom-color: var(--brand); }
.hd-h7 .site-head__mark, .hd-h7 .site-head__nav a{ color: #fff; }
.hd-h7 .site-head__nav a:hover{ background: hsl(0 0% 100% / .18); color: #fff; }
.hd-h9 .wrap{ border-left: 4px solid var(--brand); padding-left: 14px; }
.hd-h10{ border-top: 1px solid var(--line); border-bottom: 3px double var(--line); }
.hd-h10 .site-head__mark{ letter-spacing: .12em; text-transform: uppercase; font-size: 15px; }

/* HERO 뼈대 */
.hero{ padding-block: clamp(28px, 6vw, 56px); position: relative; }
.hero .eyebrow{ display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--brand); }
.hero p.lead{ margin: 18px 0 0; max-width: 46ch; color: var(--ink-soft); font-size: clamp(15px, 4vw, 18px); }
.hero-media{ border-radius: var(--r); overflow: hidden; }
.hero-media img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* HERO 아키타입 */
.hero-e1{ min-height: 46dvh; display: flex; align-items: flex-end; color: #fff; background-size: cover; background-position: center; overflow: hidden; }
.hero-e1::before{ content:""; position:absolute; inset:0; background: linear-gradient(180deg, hsl(var(--h) 30% 10% / .1), hsl(var(--h) 30% 8% / .82)); }
.hero-e1 .wrap{ position: relative; z-index: 1; padding-block: 32px; }
.hero-e1 h1{ color: #fff; } .hero-e1 .eyebrow{ color: hsl(var(--h) 40% 88%); } .hero-e1 p.lead{ color: hsl(var(--h) 20% 90%); }
.hero-e4 .wrap{ background: var(--surface); border-radius: 18px; padding: clamp(24px,5vw,48px); text-align: center; box-shadow: 0 1px 3px hsl(var(--h) 20% 20% / .08); }
.hero-e5-strip{ height: 26dvh; background-size: cover; background-position: center; }
.hero-e5 .wrap{ padding-block: 24px; text-align: center; }
.hero-e6{ clip-path: polygon(0 0,100% 0,100% 88%,0 100%); background: var(--brand-soft); padding-block: clamp(32px,6vw,56px); }
.hero-e7{ background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; text-align: center; padding-block: clamp(36px,7vw,64px); }
.hero-e7 h1{ color: #fff; } .hero-e7 .eyebrow{ color: hsl(0 0% 100% / .85); } .hero-e7 p.lead{ color: hsl(0 0% 100% / .85); margin-inline: auto; }
.hero-e8{ min-height: 40dvh; display: flex; align-items: center; color: #fff; background-size: cover; background-position: center; position: relative; }
.hero-e8::before{ content:""; position:absolute; inset:0; background: hsl(var(--h) 30% 10% / .58); }
.hero-e8 .wrap{ position: relative; z-index: 1; }
.hero-e8 h1{ color: #fff; } .hero-e8 .eyebrow{ color: hsl(var(--h) 40% 90%); } .hero-e8 p.lead{ color: hsl(var(--h) 15% 92%); }
.hero-e9 .wrap{ display: grid; grid-template-columns: 28px 1fr; gap: 18px; align-items: start; }
.hero-e9 .side-label{ writing-mode: vertical-rl; font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--brand); }
.hero-e10 .wrap{ border: 1px solid var(--line); border-radius: var(--r); padding: clamp(28px,6vw,56px); text-align: center; }

/* CTA 뼈대 */
.cta{ padding-block: clamp(32px, 6vw, 56px); }
.cta h2{ margin-bottom: 8px; } .cta p{ margin: 0 0 22px; color: var(--ink-soft); }

/* CTA 아키타입 */
.cta-c2 .wrap{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-c2 p{ margin: 0; max-width: 44ch; }
.cta-c3 .wrap > div{ background: var(--surface); border-radius: var(--r); padding: clamp(20px,4vw,32px); box-shadow: 0 10px 30px -18px hsl(var(--h) 30% 20% / .3); text-align: center; }
.cta-c4{ border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); text-align: center; }
.cta-c4 .btn{ border: none; text-decoration: underline; text-underline-offset: 4px; padding: 0; min-width: 0; color: var(--brand-deep); }
.cta-c6 .wrap{ border-left: 4px solid var(--brand); padding-left: 18px; text-align: left; }
.cta-c7{ background: linear-gradient(120deg, var(--surface) 45%, var(--brand) 45%); }
.cta-c7 .wrap{ text-align: right; }
.cta-c7 .btn--solid{ background: #fff; color: var(--brand-deep); }
.cta-c8 .wrap > div{ border: 1.5px dashed var(--line); border-radius: var(--r); padding: clamp(20px,4vw,32px); text-align: center; }
.cta-c9{ position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 15; padding-bottom: env(safe-area-inset-bottom); }
.cta-c10 ol{ counter-reset: step; list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; max-width: 46ch; }
.cta-c10 li{ counter-increment: step; display: flex; gap: 10px; }
.cta-c10 li::before{ content: counter(step); flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* 버튼 색 변형 */
.btn--outline{ border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover, .btn--outline:active{ background: var(--brand-soft); }
.btn--solid{ background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--solid:hover, .btn--solid:active{ background: var(--brand-deep); border-color: var(--brand-deep); }

/* FOOTER 뼈대 */
.site-foot{ background: var(--surface); }

/* FOOTER 아키타입 */
.ft-f1{ border-top: 1px solid var(--line); }
.ft-f1 .biz{ color: var(--ink-soft); justify-content: center; }
.ft-f2{ background: hsl(var(--h) 30% 14%); }
.ft-f2 .biz{ color: hsl(var(--h) 20% 88%); justify-content: center; }
.ft-f3{ background: var(--brand-deep); }
.ft-f3 .biz{ color: #fff; justify-content: flex-start; }
.ft-f4{ background: var(--brand-soft); }
.ft-f4 .biz{ color: var(--brand-deep); justify-content: center; }
.ft-f4 .biz .sep{ content:"|"; }
.ft-f5{ border-top: 2px solid; border-image: linear-gradient(90deg, var(--brand), var(--brand-soft)) 1; }
.ft-f5 .biz{ color: var(--ink-soft); justify-content: center; }
.ft-f6{ border-left: 4px solid var(--brand); }
.ft-f6 .biz{ color: var(--ink-soft); justify-content: flex-start; }
.ft-f7{ border-top: 1px double var(--line); border-bottom: 1px double var(--line); }
.ft-f7 .biz{ color: var(--ink-soft); justify-content: center; letter-spacing: .03em; }
.ft-f8{ background: var(--brand-deep); border-radius: 16px 16px 0 0; }
.ft-f8 .biz{ color: #fff; justify-content: center; }
.ft-f9{ border-top: 1px dashed var(--line); }
.ft-f9 .biz{ color: var(--ink-soft); justify-content: center; }
.ft-f10{ border-top: 4px solid var(--brand); background: hsl(var(--h) 10% 95%); }
.ft-f10 .biz{ color: var(--ink-soft); justify-content: center; }
