/* 홍단 홈페이지 테마 — "새벽 바다(주) · 황금 들판(보조) · 붉은 해(포인트) · 새벽빛(배경)"
   1안(신뢰형 코퍼레이트) + 포트폴리오 중심 화면. 기존 responsee/template-style 위에 덮어쓴다. */
:root {
    --hd-primary: #0B3C5D;        /* 딥 오션 블루: 메뉴·제목·푸터 */
    --hd-primary-2: #3A7CA5;      /* 새벽 물빛: hover·보조 배경 */
    --hd-primary-soft: #E6EEF3;   /* 물안개: 카드·표 배경 */
    --hd-gold: #C9A24B;           /* 골든 라이스: 선·아이콘(글자 금지) */
    --hd-gold-text: #8A6A1F;      /* 익은 벼: 골드 글자 */
    --hd-gold-soft: #F3E9CF;      /* 볏짚: 강조 박스 */
    --hd-accent: #C00000;         /* 홍단 레드: 문의 버튼·핵심 숫자 */
    --hd-glow: #F2B35A;           /* 아침놀: 그라데이션 끝 */
    --hd-bg: #FBF7EF;             /* 돈 아이보리: 페이지 배경 */
    --hd-text: #1F2A33;           /* 본문 글자 */
    --hd-muted: #5B6670;
    --hd-white: #FFFFFF;
    --hd-radius: 12px;
    --hd-shadow: 0 6px 20px rgba(11, 60, 93, .10);
    --hd-max: 1180px;
    --hd-font: 'Pretendard', 'Noto Sans KR', -apple-system, 'Malgun Gothic', sans-serif;
}

/* 기존 페이지의 인라인 `* { font-family: serif }`보다 우선(아이콘 글꼴은 제외) */
body, body *:not([class^="icon-"]):not([class*=" icon-"]) { font-family: var(--hd-font); }
body { background: var(--hd-bg); color: var(--hd-text); font-size: 16px; line-height: 1.7; word-break: keep-all; }
/* template-style.css 의 모바일 body(padding-top 60px, 어두운 배경)를 무효화 — 새 헤더는 sticky */
@media screen and (max-width: 768px) { body { padding-top: 0 !important; background: var(--hd-bg) !important; } }
a { color: var(--hd-primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--hd-glow); outline-offset: 2px; }

.hd-wrap { max-width: var(--hd-max); margin: 0 auto; padding: 0 20px; }
.hd-section { padding: 80px 0; }
.hd-section.alt { background: var(--hd-white); }
.hd-eyebrow { color: var(--hd-gold-text); font-weight: 700; letter-spacing: .08em; font-size: .85rem; text-transform: uppercase; margin: 0 0 8px; }
.hd-title { color: var(--hd-primary); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.3; margin: 0 0 12px; }
.hd-lead { color: var(--hd-muted); font-size: 1.05rem; margin: 0 0 40px; }
.hd-rule { width: 48px; height: 3px; background: var(--hd-gold); border: 0; margin: 0 0 20px; }

.hd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: .2s; cursor: pointer; }
.hd-btn-accent { background: var(--hd-accent); color: var(--hd-white) !important; }
.hd-btn-accent:hover { background: #9E0000; }
.hd-btn-ghost { border-color: rgba(255,255,255,.8); color: var(--hd-white) !important; background: transparent; }
.hd-btn-ghost:hover { background: rgba(255,255,255,.12); }
.hd-btn-line { border-color: var(--hd-primary); color: var(--hd-primary) !important; background: transparent; }
.hd-btn-line:hover { background: var(--hd-primary); color: var(--hd-white) !important; }

/* ---------------- 헤더 ---------------- */
.hd-header { position: sticky; top: 0; z-index: 100; background: var(--hd-primary); box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.hd-header .hd-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.hd-logo { display: flex; align-items: center; gap: 10px; color: var(--hd-white) !important; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }
.hd-logo { position: relative; }
.hd-logo .sun { width: 34px; height: 34px; display: block; border-radius: 50%; transform-origin: 0 0; filter: drop-shadow(0 0 0 rgba(242,179,90,0)); }
/* 로고 클릭: 아래에서 떠오르며 2.4배까지 커지고 아침놀 빛이 번진 뒤 제자리로.
   헤더가 화면 왼쪽 위에 붙어 있으므로 로고의 왼쪽 위 모서리를 고정점(transform-origin: 0 0)으로 두고
   오른쪽 아래 방향으로 키워 화면 밖으로 잘리지 않게 한다(34px → 81.6px, 위·왼쪽 여백은 그대로). */
.hd-logo .sun.rising { position: relative; z-index: 2; animation: hd-logo-rise 1.6s cubic-bezier(.22,.8,.3,1) both; }
@keyframes hd-logo-rise {
    0%   { transform: translateY(18px) scale(.6); opacity: .4; filter: drop-shadow(0 0 0 rgba(242,179,90,0)); }
    55%  { transform: translateY(0) scale(2.4); opacity: 1; filter: drop-shadow(0 0 14px rgba(242,179,90,.95)); }
    75%  { transform: translateY(0) scale(2.4); opacity: 1; filter: drop-shadow(0 0 18px rgba(242,179,90,.8)); }
    100% { transform: translateY(0) scale(1); opacity: 1; filter: drop-shadow(0 0 0 rgba(242,179,90,0)); }
}
.hd-logo small { font-weight: 500; font-size: .8rem; color: var(--hd-gold-soft); margin-left: 2px; }
.hd-nav { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.hd-nav > li { position: relative; }
.hd-nav > li > a { display: block; padding: 24px 16px; color: var(--hd-white) !important; text-decoration: none; font-weight: 600; font-size: 1rem; }
.hd-nav > li > a:hover, .hd-nav > li.on > a { color: var(--hd-glow) !important; }
.hd-nav > li.on > a { box-shadow: inset 0 -3px 0 var(--hd-glow); }
.hd-sub { display: none; position: absolute; left: 0; top: 100%; min-width: 160px; background: var(--hd-white); border-radius: 0 0 var(--hd-radius) var(--hd-radius); box-shadow: var(--hd-shadow); list-style: none; margin: 0; padding: 8px 0; }
.hd-nav > li:hover .hd-sub, .hd-nav > li:focus-within .hd-sub { display: block; }
.hd-sub a { display: block; padding: 10px 18px; color: var(--hd-text) !important; text-decoration: none; font-size: .95rem; }
.hd-sub a:hover { background: var(--hd-primary-soft); color: var(--hd-primary) !important; }
.hd-nav .hd-btn { margin-left: 10px; padding: 10px 20px; }
.hd-menu-btn { display: none; background: none; border: 0; color: var(--hd-white); font-size: 1.6rem; cursor: pointer; padding: 8px; }

@media (max-width: 900px) {
    .hd-menu-btn { display: block; }
    .hd-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--hd-primary); padding: 8px 0 20px; }
    .hd-nav.open { display: flex; }
    .hd-nav > li > a { padding: 14px 24px; }
    .hd-sub { display: block; position: static; background: transparent; box-shadow: none; padding: 0 0 6px 16px; }
    .hd-sub a { color: rgba(255,255,255,.85) !important; padding: 8px 24px; }
    .hd-sub a:hover { background: transparent; color: var(--hd-glow) !important; }
    .hd-nav .hd-btn { margin: 10px 24px 0; justify-content: center; }
}

/* 기존 서브 페이지 제목 띠(#head)를 테마 색으로 */
#head { background: linear-gradient(120deg, var(--hd-primary) 0%, var(--hd-primary-2) 100%) !important; }
#head h1 { color: var(--hd-white) !important; font-family: var(--hd-font) !important; font-weight: 800; letter-spacing: .04em; }

/* ---------------- 홈: 첫 화면(일출) ---------------- */
.hd-hero { position: relative; overflow: hidden; color: var(--hd-white);
    background: linear-gradient(180deg, var(--hd-primary) 0%, var(--hd-primary-2) 62%, var(--hd-glow) 100%); }
.hd-hero .hd-wrap { position: relative; z-index: 1; padding: 110px 20px 150px; }
/* 해: 황금 들판 뒤에서 첫 화면 높이의 중간까지 떠오른다(페이지를 열 때 한 번). 들판(.field)이 DOM 에서 뒤라 해를 가린 채 시작 */
.hd-hero .sun { position: absolute; z-index: 0; right: 12%; bottom: calc(50% - 120px); width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, #E0281A 0%, var(--hd-accent) 60%, rgba(192,0,0,0) 72%); opacity: .9;
    animation: hd-sunrise 3.6s cubic-bezier(.2,.7,.25,1) .3s both, hd-sun-lift 4.5s cubic-bezier(.45,.05,.35,1) 6.9s forwards; }
/* ③ 바다가 차오르는 동안 해도 같은 시간·같은 곡선으로 함께 올라가 늘 수면 위에 있게 한다.
   바다 윗면은 46px → 50%, 해 아랫면은 (50% - 반지름) → (50% + 4px) 로 움직여 진행률이 같으면 해가 항상 위에 있고, 끝에서 수면 4px 위에 뜬다 */
@keyframes hd-sun-lift { to { bottom: calc(50% + 4px); } }
.hd-hero .sun::after { content: ""; position: absolute; inset: -60%; border-radius: 50%;
    background: radial-gradient(circle, rgba(242,179,90,.45) 0%, rgba(242,179,90,0) 60%); animation: hd-sunglow 3.6s ease-out .3s both; }
@keyframes hd-sunrise {
    from { transform: translateY(175%); opacity: .55; }
    to   { transform: translateY(0); opacity: .9; }
}
@keyframes hd-sunglow { from { opacity: 0; } to { opacity: 1; } }
/* 메인 해 타임라인
   ① 0.3~3.9s 떠오름 → ② 3.9~6.9s 정지(3초) → ③ 6.9~11.4s 바다가 첫 화면 중간(50%)까지 천천히 차오르고 해도 함께 올라가 늘 수면 위에 뜸
   → ④ 11.4s~ 해 안쪽이 황금빛으로 바뀌며(2.5s) 빛살이 반시계방향으로 회전(한 바퀴 60초, 계속) */

/* ③ 바다: 들판 위에서 첫 화면 50% 높이까지 올라온다. 해는 hd-sun-lift 로 함께 올라가 수면 위에 있고, 들판은 맨 아래에 남는다 */
.hd-hero .sea { position: absolute; z-index: 0; left: 0; right: 0; bottom: 46px; height: 0;
    background:
        repeating-linear-gradient(180deg, rgba(255,255,255,.10) 0 1px, rgba(255,255,255,0) 1px 14px),
        linear-gradient(180deg, #2E6F95 0%, #145179 35%, var(--hd-primary) 100%);
    box-shadow: 0 -6px 18px rgba(11,60,93,.35);
    animation: hd-sea-rise 4.5s cubic-bezier(.45,.05,.35,1) 6.9s forwards; }
.hd-hero .sea::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: rgba(255,236,190,.55); filter: blur(1px); }
@keyframes hd-sea-rise { to { height: calc(50% - 46px); } }

/* ④ 황금빛: 붉은 해 위에 황금 그라데이션 층을 서서히 겹친다 */
.hd-hero .sun .gold { position: absolute; inset: 0; border-radius: 50%; z-index: 1; opacity: 0;
    background: radial-gradient(circle, #FFF1C4 0%, #FFD36E 28%, var(--hd-glow) 50%, var(--hd-gold) 62%, rgba(201,162,75,0) 72%);
    animation: hd-sun-gold 2.5s ease-in-out 11.4s forwards; }
@keyframes hd-sun-gold { to { opacity: 1; } }

/* ④ 빛살: 해 자체는 균일한 원이라 돌아도 보이지 않으므로, 빛살 무늬를 돌려 회전하는 느낌을 준다 */
.hd-hero .sun::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; z-index: 2;
    background: repeating-conic-gradient(from 0deg, rgba(255,250,232,.42) 0deg 5deg, rgba(255,250,232,0) 5deg 22.5deg);
    -webkit-mask-image: radial-gradient(circle, transparent 18%, #000 42%, #000 62%, transparent 71%);
            mask-image: radial-gradient(circle, transparent 18%, #000 42%, #000 62%, transparent 71%);
    opacity: 0; animation: hd-sunrays-in 2.5s ease-out 11.4s forwards, hd-sunspin 60s linear 11.4s infinite; }
@keyframes hd-sunrays-in { to { opacity: 1; } }
@keyframes hd-sunspin { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@media (max-width: 700px) { .hd-hero .sun { width: 160px; height: 160px; right: 6%; bottom: calc(50% - 80px); } }
@media (prefers-reduced-motion: reduce) { .hd-hero .sun, .hd-hero .sun::after, .hd-logo .sun.rising { animation: none; } .hd-hero .sun::before, .hd-hero .sun .gold { animation: none; opacity: 1; } .hd-hero .sea { animation: none; height: calc(50% - 46px); } .hd-hero .sun { bottom: calc(50% + 4px); } }
.hd-hero .field { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 46px;
    background: repeating-linear-gradient(100deg, var(--hd-gold) 0 14px, #B8913E 14px 22px); opacity: .85; }
.hd-hero .hd-eyebrow { color: var(--hd-gold-soft); }
.hd-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.25; margin: 0 0 18px; color: var(--hd-white); }
.hd-hero p { font-size: 1.15rem; max-width: 620px; margin: 0 0 34px; color: rgba(255,255,255,.92); }
.hd-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 실적 숫자 */
.hd-stats { position: relative; z-index: 2; margin-top: -56px; }
.hd-stats ul { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; background: var(--hd-white); border-radius: var(--hd-radius); box-shadow: var(--hd-shadow); }
.hd-stats li { padding: 28px 20px; text-align: center; border-left: 1px solid #EEE7DA; }
.hd-stats li:first-child { border-left: 0; }
.hd-stats strong { display: block; font-size: 2rem; font-weight: 800; color: var(--hd-accent); line-height: 1.2; }
.hd-stats span { color: var(--hd-muted); font-size: .95rem; }

/* 카드(사업 분야·사례 공통) */
.hd-grid { display: grid; gap: 24px; }
.hd-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.hd-grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .hd-grid.c4 { grid-template-columns: repeat(2, 1fr); } .hd-grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hd-grid.c4, .hd-grid.c3, .hd-stats ul { grid-template-columns: 1fr; } .hd-stats li { border-left: 0; border-top: 1px solid #EEE7DA; } .hd-stats li:first-child { border-top: 0; } }

.hd-card { display: flex; flex-direction: column; background: var(--hd-white); border-radius: var(--hd-radius); box-shadow: var(--hd-shadow); overflow: hidden; text-decoration: none; color: var(--hd-text) !important; transition: transform .2s, box-shadow .2s; border-top: 3px solid var(--hd-gold); }
.hd-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(11,60,93,.16); }
.hd-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.hd-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.hd-card h3 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--hd-primary); line-height: 1.4; }
.hd-card p { margin: 0; color: var(--hd-muted); font-size: .95rem; }
.hd-card .more { margin-top: auto; padding-top: 10px; color: var(--hd-accent); font-weight: 700; font-size: .9rem; }

/* 사례 카드 */
.hd-tag { align-self: flex-start; display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--hd-primary-soft); color: var(--hd-primary); }
.hd-case .customer { color: var(--hd-gold-text); font-weight: 600; font-size: .9rem; }
.hd-case dl { margin: 6px 0 0; display: grid; grid-template-columns: 72px 1fr; gap: 4px 10px; font-size: .88rem; }
.hd-case dt { color: var(--hd-muted); font-weight: 600; }
.hd-case dd { margin: 0; color: var(--hd-text); overflow-wrap: anywhere; }

/* 문의 띠 */
.hd-cta { background: var(--hd-primary); color: var(--hd-white); }
.hd-cta .hd-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 48px 20px; }
.hd-cta h2 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; color: var(--hd-white); }
.hd-cta p { margin: 0; color: rgba(255,255,255,.85); }
.hd-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- 포트폴리오 목록 ---------------- */
.hd-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.hd-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hd-chips a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid #D8D0C0; background: var(--hd-white); color: var(--hd-text) !important; text-decoration: none; font-size: .92rem; font-weight: 600; }
.hd-chips a:hover { border-color: var(--hd-primary-2); }
.hd-chips a.on { background: var(--hd-primary); border-color: var(--hd-primary); color: var(--hd-white) !important; }
.hd-search { display: flex; gap: 8px; }
.hd-search input { padding: 10px 14px; border: 1px solid #D8D0C0; border-radius: 999px; min-width: 220px; font-size: .95rem; background: var(--hd-white); }
.hd-search button { padding: 10px 18px; border-radius: 999px; border: 0; background: var(--hd-primary); color: var(--hd-white); font-weight: 700; cursor: pointer; }
.hd-note { border-left: 3px solid var(--hd-gold); background: var(--hd-gold-soft); padding: 12px 18px; border-radius: 0 8px 8px 0; color: var(--hd-text); margin: 0 0 28px; font-size: .95rem; }
.hd-empty { text-align: center; padding: 60px 0; color: var(--hd-muted); }
.hd-pager { display: flex; justify-content: center; gap: 6px; list-style: none; margin: 40px 0 0; padding: 0; }
.hd-pager a, .hd-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 8px; text-decoration: none; font-weight: 600; background: var(--hd-white); color: var(--hd-text) !important; border: 1px solid #E5DDCD; }
.hd-pager .on { background: var(--hd-primary); color: var(--hd-white) !important; border-color: var(--hd-primary); }

/* ---------------- 푸터 ---------------- */
.hd-footer { background: #082B43; color: rgba(255,255,255,.8); font-size: .9rem; }
.hd-footer .hd-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; padding: 40px 20px; }
.hd-footer strong { color: var(--hd-white); font-size: 1.05rem; }
.hd-footer p { margin: 6px 0; }
.hd-footer a { color: rgba(255,255,255,.85) !important; text-decoration: none; }
.hd-footer .links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; align-items: center; align-content: flex-start; }
.hd-footer .links .story { padding: 6px 14px; border: 1px solid var(--hd-gold); border-radius: 999px; color: var(--hd-gold-soft) !important; font-weight: 700; transition: .2s; }
.hd-footer .links .story:hover { background: var(--hd-gold); color: #082B43 !important; }
.hd-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: .8rem; color: rgba(255,255,255,.6); display: flex; justify-content: flex-start; gap: 12px;}
.hd-footer .copy a { color: transparent !important; font-size: 10px; }
@media (max-width: 700px) { .hd-footer .hd-wrap { grid-template-columns: 1fr; } .hd-footer .links { justify-content: flex-start; } }

/* 고정 문의 버튼(모든 화면 오른쪽 아래) */
.hd-float { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: row; gap: 10px; }
.hd-float a { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.2); text-decoration: none; font-weight: 800; font-size: .75rem; }
.hd-float .tel { background: var(--hd-accent); color: var(--hd-white) !important; }
.hd-float img { width: 54px; height: 54px; border-radius: 50%; }
.hd-float .x { background: #000; }
.hd-float .x svg { width: 24px; height: 24px; fill: #fff; }

/* ---------------- 사업분야: 서비스 예시 탭(헤더 아래) ---------------- */
/* 옛 템플릿(responsee)이 nav 를 position:absolute·z-index:500, 모바일 height:60px 로 잡으므로 되돌린다 */
.hd-svc-tabs { position: relative; top: auto; z-index: 1; height: auto; background: var(--hd-white); border-bottom: 1px solid #E5DDCD; box-shadow: 0 2px 8px rgba(11,60,93,.06); }
.hd-svc-tabs .hd-wrap { display: grid; grid-template-columns: auto 1fr; align-items: stretch; padding-top: 12px; padding-bottom: 12px; }
.hd-svc-tabs a { display: block; padding: 6px 14px; border-radius: 999px; color: var(--hd-text) !important; text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.hd-svc-tabs a:hover { background: var(--hd-primary-soft); color: var(--hd-primary) !important; }
.hd-svc-tabs a.on { background: var(--hd-primary); color: var(--hd-white) !important; }
.hd-svc-tabs .overview { align-self: center; margin-right: 20px; padding: 10px 18px; font-weight: 800; }
.hd-svc-tabs .rows { border-left: 1px solid #E5DDCD; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.hd-svc-tabs .row { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 8px; }
.hd-svc-tabs .field { color: var(--hd-gold-text); font-size: .82rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.hd-svc-tabs ul { display: flex; flex-wrap: wrap; gap: 2px 4px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 768px) {
    .hd-svc-tabs .hd-wrap { grid-template-columns: 1fr; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
    .hd-svc-tabs .overview { justify-self: start; margin: 0; padding: 6px 12px; }
    .hd-svc-tabs .rows { border-left: 0; border-top: 1px solid #E5DDCD; padding: 6px 0 0; gap: 2px; }
    .hd-svc-tabs .row { grid-template-columns: 64px 1fr; gap: 4px; align-items: start; }
    .hd-svc-tabs .field { padding-top: 6px; font-size: .75rem; letter-spacing: 0; white-space: normal; line-height: 1.3; }
    .hd-svc-tabs a { padding: 4px 10px; font-size: .85rem; }
}

/* 서비스 예시 페이지 */
.hd-svc-hero { color: var(--hd-white); background: linear-gradient(120deg, var(--hd-primary) 0%, var(--hd-primary-2) 100%); }
.hd-svc-hero .hd-wrap { padding: 64px 20px 56px; }
.hd-svc-hero .hd-eyebrow { color: var(--hd-gold-soft); }
.hd-svc-hero h1 { margin: 0 0 14px; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.3; color: var(--hd-white); }
.hd-svc-hero p { max-width: 680px; margin: 0 0 28px; font-size: 1.1rem; color: rgba(255,255,255,.92); }
.hd-svc-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hd-svc-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.hd-svc-who li { position: relative; padding: 22px 22px 22px 52px; background: var(--hd-white); border-radius: var(--hd-radius); box-shadow: var(--hd-shadow); font-weight: 600; line-height: 1.6; }
.hd-svc-who li::before { content: "\201C"; position: absolute; left: 18px; top: 8px; font-size: 2.6rem; line-height: 1; color: var(--hd-gold); font-family: Georgia, serif; }

.hd-svc-result { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.hd-svc-result figure { margin: 0; }
.hd-svc-result img { width: 100%; height: auto; display: block; border-radius: var(--hd-radius); box-shadow: var(--hd-shadow); }
.hd-svc-result figcaption { margin-top: 10px; color: var(--hd-muted); font-size: .85rem; }
.hd-check { list-style: none; margin: 0 0 20px; padding: 0; }
.hd-check li { position: relative; padding: 6px 0 6px 28px; }
.hd-check li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 2.5px solid var(--hd-accent); border-bottom: 2.5px solid var(--hd-accent); transform: rotate(-45deg); }
.hd-svc-spec { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 16px; margin-top: 10px; background: var(--hd-primary-soft); border-radius: 10px; font-size: .93rem; }
.hd-svc-spec strong { color: var(--hd-primary); }

.hd-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.hd-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 16px 16px; background: var(--hd-white); border-radius: var(--hd-radius); box-shadow: var(--hd-shadow); counter-increment: step; }
.hd-steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hd-gold); color: var(--hd-white); font-weight: 800; }
.hd-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 22px; color: var(--hd-gold); font-weight: 800; }
.hd-steps h3 { margin: 4px 0 0; font-size: 1.05rem; font-weight: 800; color: var(--hd-primary); }
.hd-steps p { margin: 0; flex: 1; color: var(--hd-muted); font-size: .9rem; line-height: 1.6; }
.hd-steps .who { align-self: flex-start; margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.hd-steps .who-c { background: var(--hd-gold-soft); color: var(--hd-gold-text); }
.hd-steps .who-h { background: var(--hd-primary-soft); color: var(--hd-primary); }
.hd-steps .who-t { background: #E7F3EA; color: #23703A; }
@media (max-width: 1000px) { .hd-steps { grid-template-columns: repeat(3, 1fr); } .hd-steps li:nth-child(3n)::after { display: none; } }
@media (max-width: 600px) { .hd-steps { grid-template-columns: 1fr; } .hd-steps li::after { display: none; } }

.hd-svc-prep { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.hd-faq details { background: var(--hd-white); border-radius: 10px; box-shadow: var(--hd-shadow); margin-bottom: 10px; }
.hd-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--hd-primary); list-style: none; }
.hd-faq summary::-webkit-details-marker { display: none; }
.hd-faq summary::before { content: "Q"; margin-right: 10px; color: var(--hd-accent); font-weight: 800; }
.hd-faq details p { margin: 0; padding: 0 20px 18px 44px; color: var(--hd-text); }
.hd-svc-kmong { margin-top: 10px !important; font-size: .85rem; color: rgba(255,255,255,.7) !important; }
.hd-svc-kmong a { color: var(--hd-gold-soft) !important; }
@media (max-width: 900px) { .hd-svc-result, .hd-svc-prep { grid-template-columns: 1fr; gap: 32px; } }

/* '진행 절차 보기' 등 페이지 안 이동: 고정 헤더(72px)에 제목이 가리지 않게 */
.hd-section[id] { scroll-margin-top: 72px; }

/* 문의 팝업: 헤더(100) 위, 고정 전화·카톡 버튼(.hd-float 200) 아래 */
.hd-modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: flex-start; justify-content: center; padding: 88px 16px 24px; background: rgba(8,43,67,.55); overflow-y: auto; }
.hd-modal.open { display: flex; }
.hd-modal-box { position: relative; width: 100%; max-width: 1100px; background: var(--hd-bg); border-radius: var(--hd-radius); box-shadow: 0 20px 50px rgba(0,0,0,.3); padding: 8px 28px 32px; }
.hd-modal-close { position: absolute; right: 14px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--hd-primary-soft); color: var(--hd-primary); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.hd-modal-close:hover { background: var(--hd-primary); color: var(--hd-white); }
.hd-modal #content { padding: 0; background: transparent; }
.hd-modal #content h4 { margin-top: 24px !important; margin-bottom: 32px !important; }
body.hd-modal-on { overflow: hidden; }
@media (max-width: 600px) { .hd-modal { padding: 80px 8px 16px; } .hd-modal-box { padding: 8px 14px 24px; } }
